From f0e0f56524eed8852f3413e3161741de1ac0b457 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 2 Mar 2023 03:40:55 +0000 Subject: [PATCH] CodeGen from PR 22084 in Azure/azure-rest-api-specs Merge 92d4e5ba93fca63ce2cce5fafdf447e63b4a6b53 into 4b899f169c483a128f0fed3c6eff1e8b02dfe494 --- .../appservice/armappservice/CHANGELOG.md | 55 + ...cecertificateorders_client_example_test.go | 555 -- ...serviceenvironments_client_example_test.go | 1155 --- .../appserviceplans_client_example_test.go | 173 - .../appservice/armappservice/autorest.md | 6 +- .../armappservice/certificateorders_client.go | 286 +- .../certificateordersdiagnostics_client.go | 35 +- ...teordersdiagnostics_client_example_test.go | 69 - .../certificateregistrationprovider_client.go | 14 +- ...egistrationprovider_client_example_test.go | 41 - .../armappservice/certificates_client.go | 76 +- .../certificates_client_example_test.go | 166 - .../appservice/armappservice/constants.go | 65 +- .../armappservice/containerapps_client.go | 82 +- .../containerapps_client_example_test.go | 198 - .../containerappsrevisions_client.go | 80 +- ...tainerappsrevisions_client_example_test.go | 129 - .../armappservice/deletedwebapps_client.go | 35 +- .../deletedwebapps_client_example_test.go | 64 - .../armappservice/diagnostics_client.go | 371 +- .../diagnostics_client_example_test.go | 593 -- .../domainregistrationprovider_client.go | 14 +- ...egistrationprovider_client_example_test.go | 41 - .../armappservice/domains_client.go | 211 +- .../domains_client_example_test.go | 564 -- .../armappservice/environments_client.go | 704 +- .../appservice/armappservice/global_client.go | 39 +- .../global_client_example_test.go | 79 - .../appservice/armappservice/go.mod | 14 +- .../appservice/armappservice/go.sum | 24 +- .../armappservice/kubeenvironments_client.go | 86 +- .../kubeenvironments_client_example_test.go | 172 - .../appservice/armappservice/models.go | 814 +- .../appservice/armappservice/models_serde.go | 1831 +++-- .../appservice/armappservice/plans_client.go | 382 +- .../armappservice/provider_client.go | 79 +- .../provider_client_example_test.go | 139 - .../armappservice/recommendations_client.go | 203 +- .../resourcehealthmetadata_client.go | 86 +- ...ourcehealthmetadata_client_example_test.go | 164 - .../armappservice/response_types.go | 615 +- .../armappservice/staticsites_client.go | 2217 ++++-- .../staticsites_client_example_test.go | 1537 ---- .../appservice/armappservice/time_rfc3339.go | 2 +- .../armappservice/topleveldomains_client.go | 38 +- .../topleveldomains_client_example_test.go | 92 - .../armappservice/webapps_client.go | 6871 ++++++++++------- .../webapps_client_example_test.go | 1187 --- .../armappservice/websitemanagement_client.go | 189 +- ...itemanagementclient_client_example_test.go | 69 - .../workflowrunactionrepetitions_client.go | 69 +- ...unactionrepetitions_client_example_test.go | 102 - ...ctionrepetitionsrequesthistories_client.go | 51 +- ...onsrequesthistories_client_example_test.go | 74 - .../workflowrunactions_client.go | 60 +- .../workflowrunactions_client_example_test.go | 101 - ...orkflowrunactionscoperepetitions_client.go | 47 +- ...ionscoperepetitions_client_example_test.go | 72 - .../armappservice/workflowruns_client.go | 50 +- .../workflowruns_client_example_test.go | 92 - .../armappservice/workflows_client.go | 38 +- .../workflows_client_example_test.go | 76 - .../workflowtriggerhistories_client.go | 65 +- ...lowtriggerhistories_client_example_test.go | 99 - .../armappservice/workflowtriggers_client.go | 90 +- .../workflowtriggers_client_example_test.go | 96 - .../armappservice/workflowversions_client.go | 36 +- .../workflowversions_client_example_test.go | 68 - 68 files changed, 9735 insertions(+), 14262 deletions(-) delete mode 100644 sdk/resourcemanager/appservice/armappservice/appservicecertificateorders_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/appserviceenvironments_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/appserviceplans_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/global_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/websitemanagementclient_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go diff --git a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md index 574dbf9f3cf3..56681baca88d 100644 --- a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md +++ b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md @@ -1,5 +1,60 @@ # Release History +## 2.1.0 (2023-03-02) +### Features Added + +- New type alias `BasicAuthName` with values `BasicAuthNameDefault` +- New type alias `DefaultAction` with values `DefaultActionAllow`, `DefaultActionDeny` +- New type alias `WorkflowHealthState` with values `WorkflowHealthStateHealthy`, `WorkflowHealthStateNotSpecified`, `WorkflowHealthStateUnhealthy`, `WorkflowHealthStateUnknown` +- New function `*StaticSitesClient.CreateOrUpdateBasicAuth(context.Context, string, string, BasicAuthName, StaticSiteBasicAuthPropertiesARMResource, *StaticSitesClientCreateOrUpdateBasicAuthOptions) (StaticSitesClientCreateOrUpdateBasicAuthResponse, error)` +- New function `*StaticSitesClient.CreateOrUpdateBuildDatabaseConnection(context.Context, string, string, string, string, DatabaseConnection, *StaticSitesClientCreateOrUpdateBuildDatabaseConnectionOptions) (StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.CreateOrUpdateDatabaseConnection(context.Context, string, string, string, DatabaseConnection, *StaticSitesClientCreateOrUpdateDatabaseConnectionOptions) (StaticSitesClientCreateOrUpdateDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.DeleteBuildDatabaseConnection(context.Context, string, string, string, string, *StaticSitesClientDeleteBuildDatabaseConnectionOptions) (StaticSitesClientDeleteBuildDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.DeleteDatabaseConnection(context.Context, string, string, string, *StaticSitesClientDeleteDatabaseConnectionOptions) (StaticSitesClientDeleteDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.GetBasicAuth(context.Context, string, string, BasicAuthName, *StaticSitesClientGetBasicAuthOptions) (StaticSitesClientGetBasicAuthResponse, error)` +- New function `*StaticSitesClient.GetBuildDatabaseConnection(context.Context, string, string, string, string, *StaticSitesClientGetBuildDatabaseConnectionOptions) (StaticSitesClientGetBuildDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.GetBuildDatabaseConnectionWithDetails(context.Context, string, string, string, string, *StaticSitesClientGetBuildDatabaseConnectionWithDetailsOptions) (StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse, error)` +- New function `*StaticSitesClient.NewGetBuildDatabaseConnectionsPager(string, string, string, *StaticSitesClientGetBuildDatabaseConnectionsOptions) *runtime.Pager[StaticSitesClientGetBuildDatabaseConnectionsResponse]` +- New function `*StaticSitesClient.NewGetBuildDatabaseConnectionsWithDetailsPager(string, string, string, *StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions) *runtime.Pager[StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse]` +- New function `*StaticSitesClient.GetDatabaseConnection(context.Context, string, string, string, *StaticSitesClientGetDatabaseConnectionOptions) (StaticSitesClientGetDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.GetDatabaseConnectionWithDetails(context.Context, string, string, string, *StaticSitesClientGetDatabaseConnectionWithDetailsOptions) (StaticSitesClientGetDatabaseConnectionWithDetailsResponse, error)` +- New function `*StaticSitesClient.NewGetDatabaseConnectionsPager(string, string, *StaticSitesClientGetDatabaseConnectionsOptions) *runtime.Pager[StaticSitesClientGetDatabaseConnectionsResponse]` +- New function `*StaticSitesClient.NewGetDatabaseConnectionsWithDetailsPager(string, string, *StaticSitesClientGetDatabaseConnectionsWithDetailsOptions) *runtime.Pager[StaticSitesClientGetDatabaseConnectionsWithDetailsResponse]` +- New function `*StaticSitesClient.NewListBasicAuthPager(string, string, *StaticSitesClientListBasicAuthOptions) *runtime.Pager[StaticSitesClientListBasicAuthResponse]` +- New function `*StaticSitesClient.UpdateBuildDatabaseConnection(context.Context, string, string, string, string, DatabaseConnectionPatchRequest, *StaticSitesClientUpdateBuildDatabaseConnectionOptions) (StaticSitesClientUpdateBuildDatabaseConnectionResponse, error)` +- New function `*StaticSitesClient.UpdateDatabaseConnection(context.Context, string, string, string, DatabaseConnectionPatchRequest, *StaticSitesClientUpdateDatabaseConnectionOptions) (StaticSitesClientUpdateDatabaseConnectionResponse, error)` +- New function `*WebAppsClient.DeployWorkflowArtifacts(context.Context, string, string, *WebAppsClientDeployWorkflowArtifactsOptions) (WebAppsClientDeployWorkflowArtifactsResponse, error)` +- New function `*WebAppsClient.DeployWorkflowArtifactsSlot(context.Context, string, string, string, *WebAppsClientDeployWorkflowArtifactsSlotOptions) (WebAppsClientDeployWorkflowArtifactsSlotResponse, error)` +- New function `*WebAppsClient.GetInstanceWorkflowSlot(context.Context, string, string, string, string, *WebAppsClientGetInstanceWorkflowSlotOptions) (WebAppsClientGetInstanceWorkflowSlotResponse, error)` +- New function `*WebAppsClient.GetWorkflow(context.Context, string, string, string, *WebAppsClientGetWorkflowOptions) (WebAppsClientGetWorkflowResponse, error)` +- New function `*WebAppsClient.NewListInstanceWorkflowsSlotPager(string, string, string, *WebAppsClientListInstanceWorkflowsSlotOptions) *runtime.Pager[WebAppsClientListInstanceWorkflowsSlotResponse]` +- New function `*WebAppsClient.ListWorkflowsConnections(context.Context, string, string, *WebAppsClientListWorkflowsConnectionsOptions) (WebAppsClientListWorkflowsConnectionsResponse, error)` +- New function `*WebAppsClient.ListWorkflowsConnectionsSlot(context.Context, string, string, string, *WebAppsClientListWorkflowsConnectionsSlotOptions) (WebAppsClientListWorkflowsConnectionsSlotResponse, error)` +- New function `*WebAppsClient.NewListWorkflowsPager(string, string, *WebAppsClientListWorkflowsOptions) *runtime.Pager[WebAppsClientListWorkflowsResponse]` +- New struct `DatabaseConnection` +- New struct `DatabaseConnectionCollection` +- New struct `DatabaseConnectionOverview` +- New struct `DatabaseConnectionPatchRequest` +- New struct `DatabaseConnectionPatchRequestProperties` +- New struct `DatabaseConnectionProperties` +- New struct `StaticSiteBasicAuthPropertiesARMResource` +- New struct `StaticSiteBasicAuthPropertiesARMResourceProperties` +- New struct `StaticSiteBasicAuthPropertiesCollection` +- New struct `StaticSiteDatabaseConnectionConfigurationFileOverview` +- New struct `WorkflowArtifacts` +- New struct `WorkflowEnvelope` +- New struct `WorkflowEnvelopeCollection` +- New struct `WorkflowEnvelopeProperties` +- New struct `WorkflowHealth` +- New field `ElasticWebAppScaleLimit` in struct `SiteConfig` +- New field `IPSecurityRestrictionsDefaultAction` in struct `SiteConfig` +- New field `Metadata` in struct `SiteConfig` +- New field `ScmIPSecurityRestrictionsDefaultAction` in struct `SiteConfig` +- New field `ManagedEnvironmentID` in struct `SiteProperties` +- New field `DatabaseConnections` in struct `StaticSite` +- New field `DatabaseConnections` in struct `StaticSiteBuildARMResourceProperties` + + ## 2.0.0 (2022-07-12) ### Breaking Changes diff --git a/sdk/resourcemanager/appservice/armappservice/appservicecertificateorders_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/appservicecertificateorders_client_example_test.go deleted file mode 100644 index b916a4239ef5..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/appservicecertificateorders_client_example_test.go +++ /dev/null @@ -1,555 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ListAppServiceCertificateOrdersBySubscription.json -func ExampleCertificateOrdersClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ValidateAppServiceCertificatePurchaseInformationBySubscription.json -func ExampleCertificateOrdersClient_ValidatePurchaseInformation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.ValidatePurchaseInformation(ctx, - armappservice.CertificateOrder{ - Location: to.Ptr("Global"), - Properties: &armappservice.CertificateOrderProperties{ - AutoRenew: to.Ptr(true), - Certificates: map[string]*armappservice.Certificate{ - "SampleCertName1": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - "SampleCertName2": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName2"), - }, - }, - DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - KeySize: to.Ptr[int32](2048), - ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - ValidityInYears: to.Ptr[int32](2), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ListAppServiceCertificateOrdersByResourceGroup.json -func ExampleCertificateOrdersClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("testrg123", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/GetAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testrg123", - "SampleCertificateOrderName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/CreateAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "testrg123", - "SampleCertificateOrderName", - armappservice.CertificateOrder{ - Location: to.Ptr("Global"), - Properties: &armappservice.CertificateOrderProperties{ - AutoRenew: to.Ptr(true), - Certificates: map[string]*armappservice.Certificate{ - "SampleCertName1": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - "SampleCertName2": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName2"), - }, - }, - DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - KeySize: to.Ptr[int32](2048), - ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - ValidityInYears: to.Ptr[int32](2), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/DeleteAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "testrg123", - "SampleCertificateOrderName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/UpdateAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "testrg123", - "SampleCertificateOrderName", - armappservice.CertificateOrderPatchResource{ - Properties: &armappservice.CertificateOrderPatchResourceProperties{ - AutoRenew: to.Ptr(true), - Certificates: map[string]*armappservice.Certificate{ - "SampleCertName1": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - "SampleCertName2": { - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName2"), - }, - }, - DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - KeySize: to.Ptr[int32](2048), - ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - ValidityInYears: to.Ptr[int32](2), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ListCertificatesByAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_NewListCertificatesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListCertificatesPager("testrg123", - "SampleCertificateOrderName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/GetAppServiceCertificate.json -func ExampleCertificateOrdersClient_GetCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetCertificate(ctx, - "testrg123", - "SampleCertificateOrderName", - "SampleCertName1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/CreateAppServiceCertificate.json -func ExampleCertificateOrdersClient_BeginCreateOrUpdateCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdateCertificate(ctx, - "testrg123", - "SampleCertificateOrderName", - "SampleCertName1", - armappservice.CertificateResource{ - Location: to.Ptr("Global"), - Properties: &armappservice.Certificate{ - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/DeleteAppServiceCertificate.json -func ExampleCertificateOrdersClient_DeleteCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeleteCertificate(ctx, - "testrg123", - "SampleCertificateOrderName", - "SampleCertName1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/UpdateAppServiceCertificate.json -func ExampleCertificateOrdersClient_UpdateCertificate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateCertificate(ctx, - "testrg123", - "SampleCertificateOrderName", - "SampleCertName1", - armappservice.CertificatePatchResource{ - Properties: &armappservice.Certificate{ - KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - KeyVaultSecretName: to.Ptr("SampleSecretName1"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ReissueAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Reissue() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Reissue(ctx, - "testrg123", - "SampleCertificateOrderName", - armappservice.ReissueCertificateOrderRequest{ - Properties: &armappservice.ReissueCertificateOrderRequestProperties{ - Csr: to.Ptr("CSR1223238Value"), - DelayExistingRevokeInHours: to.Ptr[int32](2), - IsPrivateKeyExternal: to.Ptr(false), - KeySize: to.Ptr[int32](2048), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/RenewAppServiceCertificateOrder.json -func ExampleCertificateOrdersClient_Renew() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Renew(ctx, - "testrg123", - "SampleCertificateOrderName", - armappservice.RenewCertificateOrderRequest{ - Properties: &armappservice.RenewCertificateOrderRequestProperties{ - Csr: to.Ptr("CSR1223238Value"), - IsPrivateKeyExternal: to.Ptr(false), - KeySize: to.Ptr[int32](2048), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ResendAppServiceCertificateOrderEmail.json -func ExampleCertificateOrdersClient_ResendEmail() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.ResendEmail(ctx, - "testrg123", - "SampleCertificateOrderName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ResendDomainOwnershipVerificationEmail.json -func ExampleCertificateOrdersClient_ResendRequestEmails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.ResendRequestEmails(ctx, - "testrg123", - "SampleCertificateOrderName", - armappservice.NameIdentifier{ - Name: to.Ptr("Domain name"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/RetrieveSiteSeal.json -func ExampleCertificateOrdersClient_RetrieveSiteSeal() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RetrieveSiteSeal(ctx, - "testrg123", - "SampleCertOrder", - armappservice.SiteSealRequest{ - LightTheme: to.Ptr(true), - Locale: to.Ptr("en-us"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/VerifyDomainOwnership.json -func ExampleCertificateOrdersClient_VerifyDomainOwnership() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.VerifyDomainOwnership(ctx, - "testrg123", - "SampleCertificateOrderName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/RetrieveCertificateOrderActions.json -func ExampleCertificateOrdersClient_RetrieveCertificateActions() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RetrieveCertificateActions(ctx, - "testrg123", - "SampleCertOrder", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/RetrieveCertificateEmailHistory.json -func ExampleCertificateOrdersClient_RetrieveCertificateEmailHistory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RetrieveCertificateEmailHistory(ctx, - "testrg123", - "SampleCertOrder", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/appserviceenvironments_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/appserviceenvironments_client_example_test.go deleted file mode 100644 index 8be9fbcd52e2..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/appserviceenvironments_client_example_test.go +++ /dev/null @@ -1,1155 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_List.json -func ExampleEnvironmentsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListByResourceGroup.json -func ExampleEnvironmentsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("test-rg", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Get.json -func ExampleEnvironmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_CreateOrUpdate.json -func ExampleEnvironmentsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "test-rg", - "test-ase", - armappservice.EnvironmentResource{ - Kind: to.Ptr("Asev3"), - Location: to.Ptr("South Central US"), - Properties: &armappservice.Environment{ - VirtualNetwork: &armappservice.VirtualNetworkProfile{ - ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/delegated"), - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Delete.json -func ExampleEnvironmentsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "test-rg", - "test-ase", - &armappservice.EnvironmentsClientBeginDeleteOptions{ForceDelete: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Update.json -func ExampleEnvironmentsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "test-rg", - "test-ase", - armappservice.EnvironmentPatchResource{ - Properties: &armappservice.Environment{ - FrontEndScaleFactor: to.Ptr[int32](20), - VirtualNetwork: &armappservice.VirtualNetworkProfile{ - ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListCapacities.json -func ExampleEnvironmentsClient_NewListCapacitiesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListCapacitiesPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetVipInfo.json -func ExampleEnvironmentsClient_GetVipInfo() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetVipInfo(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ChangeVnet.json -func ExampleEnvironmentsClient_BeginChangeVnet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginChangeVnet(ctx, - "test-rg", - "test-ase", - armappservice.VirtualNetworkProfile{ - ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - for res.More() { - nextResult, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json -func ExampleEnvironmentsClient_GetAseV3NetworkingConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAseV3NetworkingConfiguration(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json -func ExampleEnvironmentsClient_UpdateAseNetworkingConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateAseNetworkingConfiguration(ctx, - "test-rg", - "test-ase", - armappservice.AseV3NetworkingConfiguration{ - Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - FtpEnabled: to.Ptr(true), - RemoteDebugEnabled: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListDiagnostics.json -func ExampleEnvironmentsClient_ListDiagnostics() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListDiagnostics(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json -func ExampleEnvironmentsClient_GetDiagnosticsItem() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetDiagnosticsItem(ctx, - "test-rg", - "test-ase", - "test-diagnostic", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetInboundNetworkDependenciesEndpoints.json -func ExampleEnvironmentsClient_NewGetInboundNetworkDependenciesEndpointsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetInboundNetworkDependenciesEndpointsPager("Sample-WestUSResourceGroup", - "SampleAse", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListMultiRolePools.json -func ExampleEnvironmentsClient_NewListMultiRolePoolsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListMultiRolePoolsPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetMultiRolePool.json -func ExampleEnvironmentsClient_GetMultiRolePool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetMultiRolePool(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json -func ExampleEnvironmentsClient_BeginCreateOrUpdateMultiRolePool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdateMultiRolePool(ctx, - "test-rg", - "test-ase", - armappservice.WorkerPoolResource{ - Properties: &armappservice.WorkerPool{ - WorkerCount: to.Ptr[int32](3), - WorkerSize: to.Ptr("Medium"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json -func ExampleEnvironmentsClient_UpdateMultiRolePool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateMultiRolePool(ctx, - "test-rg", - "test-ase", - armappservice.WorkerPoolResource{ - Properties: &armappservice.WorkerPool{ - WorkerCount: to.Ptr[int32](3), - WorkerSize: to.Ptr("Medium"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json -func ExampleEnvironmentsClient_NewListMultiRolePoolInstanceMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListMultiRolePoolInstanceMetricDefinitionsPager("test-rg", - "test-ase", - "10.7.1.8", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json -func ExampleEnvironmentsClient_NewListMultiRoleMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListMultiRoleMetricDefinitionsPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json -func ExampleEnvironmentsClient_TestUpgradeAvailableNotification() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.TestUpgradeAvailableNotification(ctx, - "rg", - "SampleHostingEnvironment", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Upgrade.json -func ExampleEnvironmentsClient_BeginUpgrade() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpgrade(ctx, - "rg", - "SampleHostingEnvironment", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json -func ExampleEnvironmentsClient_NewListMultiRoleUsagesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListMultiRoleUsagesPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListOperations.json -func ExampleEnvironmentsClient_ListOperations() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListOperations(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetOutboundNetworkDependenciesEndpoints.json -func ExampleEnvironmentsClient_NewGetOutboundNetworkDependenciesEndpointsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetOutboundNetworkDependenciesEndpointsPager("Sample-WestUSResourceGroup", - "SampleAse", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json -func ExampleEnvironmentsClient_NewGetPrivateEndpointConnectionListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetPrivateEndpointConnectionListPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json -func ExampleEnvironmentsClient_GetPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateEndpointConnection(ctx, - "test-rg", - "test-ase", - "fa38656c-034e-43d8-adce-fe06ce039c98", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json -func ExampleEnvironmentsClient_BeginApproveOrRejectPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginApproveOrRejectPrivateEndpointConnection(ctx, - "test-rg", - "test-ase", - "fa38656c-034e-43d8-adce-fe06ce039c98", - armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by johndoe@company.com"), - Status: to.Ptr("Approved"), - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json -func ExampleEnvironmentsClient_BeginDeletePrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeletePrivateEndpointConnection(ctx, - "test-rg", - "test-ase", - "fa38656c-034e-43d8-adce-fe06ce039c98", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json -func ExampleEnvironmentsClient_GetPrivateLinkResources() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateLinkResources(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Reboot.json -func ExampleEnvironmentsClient_Reboot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Reboot(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Resume.json -func ExampleEnvironmentsClient_BeginResume() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginResume(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - for res.More() { - nextResult, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListAppServicePlans.json -func ExampleEnvironmentsClient_NewListAppServicePlansPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAppServicePlansPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListWebApps.json -func ExampleEnvironmentsClient_NewListWebAppsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListWebAppsPager("test-rg", - "test-ase", - &armappservice.EnvironmentsClientListWebAppsOptions{PropertiesToInclude: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_Suspend.json -func ExampleEnvironmentsClient_BeginSuspend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginSuspend(ctx, - "test-rg", - "test-ase", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - for res.More() { - nextResult, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListUsages.json -func ExampleEnvironmentsClient_NewListUsagesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListUsagesPager("test-rg", - "test-ase", - &armappservice.EnvironmentsClientListUsagesOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListWorkerPools.json -func ExampleEnvironmentsClient_NewListWorkerPoolsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListWorkerPoolsPager("test-rg", - "test-ase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_GetWorkerPool.json -func ExampleEnvironmentsClient_GetWorkerPool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetWorkerPool(ctx, - "test-rg", - "test-ase", - "workerPool1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json -func ExampleEnvironmentsClient_BeginCreateOrUpdateWorkerPool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdateWorkerPool(ctx, - "test-rg", - "test-ase", - "0", - armappservice.WorkerPoolResource{ - Properties: &armappservice.WorkerPool{ - WorkerCount: to.Ptr[int32](3), - WorkerSize: to.Ptr("Small"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json -func ExampleEnvironmentsClient_UpdateWorkerPool() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateWorkerPool(ctx, - "test-rg", - "test-ase", - "0", - armappservice.WorkerPoolResource{ - Properties: &armappservice.WorkerPool{ - WorkerCount: to.Ptr[int32](3), - WorkerSize: to.Ptr("Small"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json -func ExampleEnvironmentsClient_NewListWorkerPoolInstanceMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListWorkerPoolInstanceMetricDefinitionsPager("test-rg", - "test-ase", - "0", - "10.8.0.7", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json -func ExampleEnvironmentsClient_NewListWebWorkerMetricDefinitionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListWebWorkerMetricDefinitionsPager("test-rg", - "test-ase", - "0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json -func ExampleEnvironmentsClient_NewListWebWorkerUsagesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListWebWorkerUsagesPager("test-rg", - "test-ase", - "0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/appserviceplans_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/appserviceplans_client_example_test.go deleted file mode 100644 index 1ed698079ebb..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/appserviceplans_client_example_test.go +++ /dev/null @@ -1,173 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListAppServicePlans.json -func ExamplePlansClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewPlansClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(&armappservice.PlansClientListOptions{Detailed: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListAppServicePlansByResourceGroup.json -func ExamplePlansClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewPlansClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("testrg123", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetAppServicePlan.json -func ExamplePlansClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewPlansClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testrg123", - "testsf6141", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateAppServicePlan.json -func ExamplePlansClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewPlansClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "testrg123", - "testsf6141", - armappservice.Plan{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.PlanProperties{}, - SKU: &armappservice.SKUDescription{ - Name: to.Ptr("P1"), - Capacity: to.Ptr[int32](1), - Family: to.Ptr("P"), - Size: to.Ptr("P1"), - Tier: to.Ptr("Premium"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteAppServicePlan.json -func ExamplePlansClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewPlansClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "testrg123", - "testsf6141", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/PatchAppServicePlan.json -func ExamplePlansClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewPlansClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "testrg123", - "testsf6141", - armappservice.PlanPatchResource{ - Kind: to.Ptr("app"), - Properties: &armappservice.PlanPatchResourceProperties{}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/autorest.md b/sdk/resourcemanager/appservice/armappservice/autorest.md index f179fd49654b..ddad98048f55 100644 --- a/sdk/resourcemanager/appservice/armappservice/autorest.md +++ b/sdk/resourcemanager/appservice/armappservice/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/web/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/432872fac1d0f8edcae98a0e8504afc0ee302710/specification/web/resource-manager/readme.go.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/web/resource-manager/readme.md +- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/web/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0 +module-version: 2.1.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go b/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go index 98713508d43a..bcfd262e1a65 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go @@ -32,9 +32,9 @@ type CertificateOrdersClient struct { } // NewCertificateOrdersClient creates a new instance of CertificateOrdersClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCertificateOrdersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateOrdersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewCertificateOrdersClient(subscriptionID string, credential azcore.TokenCr // BeginCreateOrUpdate - Description for Create or update a certificate purchase order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// certificateDistinguishedName - Distinguished name to use for the certificate order. -// options - CertificateOrdersClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateOrdersClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - certificateDistinguishedName - Distinguished name to use for the certificate order. +// - options - CertificateOrdersClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateOrdersClient.BeginCreateOrUpdate +// method. func (client *CertificateOrdersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrder, options *CertificateOrdersClientBeginCreateOrUpdateOptions) (*runtime.Poller[CertificateOrdersClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, certificateOrderName, certificateDistinguishedName, options) @@ -77,7 +78,8 @@ func (client *CertificateOrdersClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - Description for Create or update a certificate purchase order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *CertificateOrdersClient) createOrUpdate(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrder, options *CertificateOrdersClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, certificateOrderName, certificateDistinguishedName, options) if err != nil { @@ -113,7 +115,7 @@ func (client *CertificateOrdersClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, certificateDistinguishedName) @@ -121,13 +123,14 @@ func (client *CertificateOrdersClient) createOrUpdateCreateRequest(ctx context.C // BeginCreateOrUpdateCertificate - Description for Creates or updates a certificate and associates with key vault secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// name - Name of the certificate. -// keyVaultCertificate - Key vault certificate resource Id. -// options - CertificateOrdersClientBeginCreateOrUpdateCertificateOptions contains the optional parameters for the CertificateOrdersClient.BeginCreateOrUpdateCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - name - Name of the certificate. +// - keyVaultCertificate - Key vault certificate resource Id. +// - options - CertificateOrdersClientBeginCreateOrUpdateCertificateOptions contains the optional parameters for the CertificateOrdersClient.BeginCreateOrUpdateCertificate +// method. func (client *CertificateOrdersClient) BeginCreateOrUpdateCertificate(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificateResource, options *CertificateOrdersClientBeginCreateOrUpdateCertificateOptions) (*runtime.Poller[CertificateOrdersClientCreateOrUpdateCertificateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateCertificate(ctx, resourceGroupName, certificateOrderName, name, keyVaultCertificate, options) @@ -142,7 +145,8 @@ func (client *CertificateOrdersClient) BeginCreateOrUpdateCertificate(ctx contex // CreateOrUpdateCertificate - Description for Creates or updates a certificate and associates with key vault secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *CertificateOrdersClient) createOrUpdateCertificate(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificateResource, options *CertificateOrdersClientBeginCreateOrUpdateCertificateOptions) (*http.Response, error) { req, err := client.createOrUpdateCertificateCreateRequest(ctx, resourceGroupName, certificateOrderName, name, keyVaultCertificate, options) if err != nil { @@ -182,7 +186,7 @@ func (client *CertificateOrdersClient) createOrUpdateCertificateCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, keyVaultCertificate) @@ -190,11 +194,12 @@ func (client *CertificateOrdersClient) createOrUpdateCertificateCreateRequest(ct // Delete - Description for Delete an existing certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// options - CertificateOrdersClientDeleteOptions contains the optional parameters for the CertificateOrdersClient.Delete -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - options - CertificateOrdersClientDeleteOptions contains the optional parameters for the CertificateOrdersClient.Delete +// method. func (client *CertificateOrdersClient) Delete(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientDeleteOptions) (CertificateOrdersClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, certificateOrderName, options) if err != nil { @@ -230,7 +235,7 @@ func (client *CertificateOrdersClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -238,12 +243,13 @@ func (client *CertificateOrdersClient) deleteCreateRequest(ctx context.Context, // DeleteCertificate - Description for Delete the certificate associated with a certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// name - Name of the certificate. -// options - CertificateOrdersClientDeleteCertificateOptions contains the optional parameters for the CertificateOrdersClient.DeleteCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - name - Name of the certificate. +// - options - CertificateOrdersClientDeleteCertificateOptions contains the optional parameters for the CertificateOrdersClient.DeleteCertificate +// method. func (client *CertificateOrdersClient) DeleteCertificate(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, options *CertificateOrdersClientDeleteCertificateOptions) (CertificateOrdersClientDeleteCertificateResponse, error) { req, err := client.deleteCertificateCreateRequest(ctx, resourceGroupName, certificateOrderName, name, options) if err != nil { @@ -283,7 +289,7 @@ func (client *CertificateOrdersClient) deleteCertificateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -291,10 +297,11 @@ func (client *CertificateOrdersClient) deleteCertificateCreateRequest(ctx contex // Get - Description for Get a certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order.. -// options - CertificateOrdersClientGetOptions contains the optional parameters for the CertificateOrdersClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order.. +// - options - CertificateOrdersClientGetOptions contains the optional parameters for the CertificateOrdersClient.Get method. func (client *CertificateOrdersClient) Get(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientGetOptions) (CertificateOrdersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, certificateOrderName, options) if err != nil { @@ -330,7 +337,7 @@ func (client *CertificateOrdersClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -347,12 +354,13 @@ func (client *CertificateOrdersClient) getHandleResponse(resp *http.Response) (C // GetCertificate - Description for Get the certificate associated with a certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// name - Name of the certificate. -// options - CertificateOrdersClientGetCertificateOptions contains the optional parameters for the CertificateOrdersClient.GetCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - name - Name of the certificate. +// - options - CertificateOrdersClientGetCertificateOptions contains the optional parameters for the CertificateOrdersClient.GetCertificate +// method. func (client *CertificateOrdersClient) GetCertificate(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, options *CertificateOrdersClientGetCertificateOptions) (CertificateOrdersClientGetCertificateResponse, error) { req, err := client.getCertificateCreateRequest(ctx, resourceGroupName, certificateOrderName, name, options) if err != nil { @@ -392,7 +400,7 @@ func (client *CertificateOrdersClient) getCertificateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -408,9 +416,10 @@ func (client *CertificateOrdersClient) getCertificateHandleResponse(resp *http.R } // NewListPager - Description for List all certificate orders in a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - CertificateOrdersClientListOptions contains the optional parameters for the CertificateOrdersClient.List method. +// +// Generated from API version 2022-09-01 +// - options - CertificateOrdersClientListOptions contains the optional parameters for the CertificateOrdersClient.NewListPager +// method. func (client *CertificateOrdersClient) NewListPager(options *CertificateOrdersClientListOptions) *runtime.Pager[CertificateOrdersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CertificateOrdersClientListResponse]{ More: func(page CertificateOrdersClientListResponse) bool { @@ -451,7 +460,7 @@ func (client *CertificateOrdersClient) listCreateRequest(ctx context.Context, op return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -467,11 +476,11 @@ func (client *CertificateOrdersClient) listHandleResponse(resp *http.Response) ( } // NewListByResourceGroupPager - Description for Get certificate orders in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - CertificateOrdersClientListByResourceGroupOptions contains the optional parameters for the CertificateOrdersClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - CertificateOrdersClientListByResourceGroupOptions contains the optional parameters for the CertificateOrdersClient.NewListByResourceGroupPager +// method. func (client *CertificateOrdersClient) NewListByResourceGroupPager(resourceGroupName string, options *CertificateOrdersClientListByResourceGroupOptions) *runtime.Pager[CertificateOrdersClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[CertificateOrdersClientListByResourceGroupResponse]{ More: func(page CertificateOrdersClientListByResourceGroupResponse) bool { @@ -516,7 +525,7 @@ func (client *CertificateOrdersClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -532,12 +541,12 @@ func (client *CertificateOrdersClient) listByResourceGroupHandleResponse(resp *h } // NewListCertificatesPager - Description for List all certificates associated with a certificate order. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// options - CertificateOrdersClientListCertificatesOptions contains the optional parameters for the CertificateOrdersClient.ListCertificates -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - options - CertificateOrdersClientListCertificatesOptions contains the optional parameters for the CertificateOrdersClient.NewListCertificatesPager +// method. func (client *CertificateOrdersClient) NewListCertificatesPager(resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientListCertificatesOptions) *runtime.Pager[CertificateOrdersClientListCertificatesResponse] { return runtime.NewPager(runtime.PagingHandler[CertificateOrdersClientListCertificatesResponse]{ More: func(page CertificateOrdersClientListCertificatesResponse) bool { @@ -586,7 +595,7 @@ func (client *CertificateOrdersClient) listCertificatesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -603,12 +612,13 @@ func (client *CertificateOrdersClient) listCertificatesHandleResponse(resp *http // Reissue - Description for Reissue an existing certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// reissueCertificateOrderRequest - Parameters for the reissue. -// options - CertificateOrdersClientReissueOptions contains the optional parameters for the CertificateOrdersClient.Reissue -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - reissueCertificateOrderRequest - Parameters for the reissue. +// - options - CertificateOrdersClientReissueOptions contains the optional parameters for the CertificateOrdersClient.Reissue +// method. func (client *CertificateOrdersClient) Reissue(ctx context.Context, resourceGroupName string, certificateOrderName string, reissueCertificateOrderRequest ReissueCertificateOrderRequest, options *CertificateOrdersClientReissueOptions) (CertificateOrdersClientReissueResponse, error) { req, err := client.reissueCreateRequest(ctx, resourceGroupName, certificateOrderName, reissueCertificateOrderRequest, options) if err != nil { @@ -644,7 +654,7 @@ func (client *CertificateOrdersClient) reissueCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, reissueCertificateOrderRequest) @@ -652,11 +662,12 @@ func (client *CertificateOrdersClient) reissueCreateRequest(ctx context.Context, // Renew - Description for Renew an existing certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// renewCertificateOrderRequest - Renew parameters -// options - CertificateOrdersClientRenewOptions contains the optional parameters for the CertificateOrdersClient.Renew method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - renewCertificateOrderRequest - Renew parameters +// - options - CertificateOrdersClientRenewOptions contains the optional parameters for the CertificateOrdersClient.Renew method. func (client *CertificateOrdersClient) Renew(ctx context.Context, resourceGroupName string, certificateOrderName string, renewCertificateOrderRequest RenewCertificateOrderRequest, options *CertificateOrdersClientRenewOptions) (CertificateOrdersClientRenewResponse, error) { req, err := client.renewCreateRequest(ctx, resourceGroupName, certificateOrderName, renewCertificateOrderRequest, options) if err != nil { @@ -692,7 +703,7 @@ func (client *CertificateOrdersClient) renewCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, renewCertificateOrderRequest) @@ -700,11 +711,12 @@ func (client *CertificateOrdersClient) renewCreateRequest(ctx context.Context, r // ResendEmail - Description for Resend certificate email. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// options - CertificateOrdersClientResendEmailOptions contains the optional parameters for the CertificateOrdersClient.ResendEmail -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - options - CertificateOrdersClientResendEmailOptions contains the optional parameters for the CertificateOrdersClient.ResendEmail +// method. func (client *CertificateOrdersClient) ResendEmail(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientResendEmailOptions) (CertificateOrdersClientResendEmailResponse, error) { req, err := client.resendEmailCreateRequest(ctx, resourceGroupName, certificateOrderName, options) if err != nil { @@ -740,7 +752,7 @@ func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -749,12 +761,13 @@ func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Cont // ResendRequestEmails - Resend domain verification ownership email containing steps on how to verify a domain for a given // certificate order // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// nameIdentifier - Email address -// options - CertificateOrdersClientResendRequestEmailsOptions contains the optional parameters for the CertificateOrdersClient.ResendRequestEmails -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - nameIdentifier - Email address +// - options - CertificateOrdersClientResendRequestEmailsOptions contains the optional parameters for the CertificateOrdersClient.ResendRequestEmails +// method. func (client *CertificateOrdersClient) ResendRequestEmails(ctx context.Context, resourceGroupName string, certificateOrderName string, nameIdentifier NameIdentifier, options *CertificateOrdersClientResendRequestEmailsOptions) (CertificateOrdersClientResendRequestEmailsResponse, error) { req, err := client.resendRequestEmailsCreateRequest(ctx, resourceGroupName, certificateOrderName, nameIdentifier, options) if err != nil { @@ -790,7 +803,7 @@ func (client *CertificateOrdersClient) resendRequestEmailsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, nameIdentifier) @@ -798,11 +811,12 @@ func (client *CertificateOrdersClient) resendRequestEmailsCreateRequest(ctx cont // RetrieveCertificateActions - Description for Retrieve the list of certificate actions. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the certificate order. -// options - CertificateOrdersClientRetrieveCertificateActionsOptions contains the optional parameters for the CertificateOrdersClient.RetrieveCertificateActions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the certificate order. +// - options - CertificateOrdersClientRetrieveCertificateActionsOptions contains the optional parameters for the CertificateOrdersClient.RetrieveCertificateActions +// method. func (client *CertificateOrdersClient) RetrieveCertificateActions(ctx context.Context, resourceGroupName string, name string, options *CertificateOrdersClientRetrieveCertificateActionsOptions) (CertificateOrdersClientRetrieveCertificateActionsResponse, error) { req, err := client.retrieveCertificateActionsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -838,7 +852,7 @@ func (client *CertificateOrdersClient) retrieveCertificateActionsCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -855,11 +869,12 @@ func (client *CertificateOrdersClient) retrieveCertificateActionsHandleResponse( // RetrieveCertificateEmailHistory - Description for Retrieve email history. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the certificate order. -// options - CertificateOrdersClientRetrieveCertificateEmailHistoryOptions contains the optional parameters for the CertificateOrdersClient.RetrieveCertificateEmailHistory -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the certificate order. +// - options - CertificateOrdersClientRetrieveCertificateEmailHistoryOptions contains the optional parameters for the CertificateOrdersClient.RetrieveCertificateEmailHistory +// method. func (client *CertificateOrdersClient) RetrieveCertificateEmailHistory(ctx context.Context, resourceGroupName string, name string, options *CertificateOrdersClientRetrieveCertificateEmailHistoryOptions) (CertificateOrdersClientRetrieveCertificateEmailHistoryResponse, error) { req, err := client.retrieveCertificateEmailHistoryCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -895,7 +910,7 @@ func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -918,12 +933,13 @@ func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryHandleResp // clicks on the site seal. The site seal images are expected to be static images // and hosted by the reseller, to minimize delays for customer page load times. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// siteSealRequest - Site seal request. -// options - CertificateOrdersClientRetrieveSiteSealOptions contains the optional parameters for the CertificateOrdersClient.RetrieveSiteSeal -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - siteSealRequest - Site seal request. +// - options - CertificateOrdersClientRetrieveSiteSealOptions contains the optional parameters for the CertificateOrdersClient.RetrieveSiteSeal +// method. func (client *CertificateOrdersClient) RetrieveSiteSeal(ctx context.Context, resourceGroupName string, certificateOrderName string, siteSealRequest SiteSealRequest, options *CertificateOrdersClientRetrieveSiteSealOptions) (CertificateOrdersClientRetrieveSiteSealResponse, error) { req, err := client.retrieveSiteSealCreateRequest(ctx, resourceGroupName, certificateOrderName, siteSealRequest, options) if err != nil { @@ -959,7 +975,7 @@ func (client *CertificateOrdersClient) retrieveSiteSealCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteSealRequest) @@ -976,12 +992,13 @@ func (client *CertificateOrdersClient) retrieveSiteSealHandleResponse(resp *http // Update - Description for Create or update a certificate purchase order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// certificateDistinguishedName - Distinguished name to use for the certificate order. -// options - CertificateOrdersClientUpdateOptions contains the optional parameters for the CertificateOrdersClient.Update -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - certificateDistinguishedName - Distinguished name to use for the certificate order. +// - options - CertificateOrdersClientUpdateOptions contains the optional parameters for the CertificateOrdersClient.Update +// method. func (client *CertificateOrdersClient) Update(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrderPatchResource, options *CertificateOrdersClientUpdateOptions) (CertificateOrdersClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, certificateOrderName, certificateDistinguishedName, options) if err != nil { @@ -1017,7 +1034,7 @@ func (client *CertificateOrdersClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, certificateDistinguishedName) @@ -1034,13 +1051,14 @@ func (client *CertificateOrdersClient) updateHandleResponse(resp *http.Response) // UpdateCertificate - Description for Creates or updates a certificate and associates with key vault secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// name - Name of the certificate. -// keyVaultCertificate - Key vault certificate resource Id. -// options - CertificateOrdersClientUpdateCertificateOptions contains the optional parameters for the CertificateOrdersClient.UpdateCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - name - Name of the certificate. +// - keyVaultCertificate - Key vault certificate resource Id. +// - options - CertificateOrdersClientUpdateCertificateOptions contains the optional parameters for the CertificateOrdersClient.UpdateCertificate +// method. func (client *CertificateOrdersClient) UpdateCertificate(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificatePatchResource, options *CertificateOrdersClientUpdateCertificateOptions) (CertificateOrdersClientUpdateCertificateResponse, error) { req, err := client.updateCertificateCreateRequest(ctx, resourceGroupName, certificateOrderName, name, keyVaultCertificate, options) if err != nil { @@ -1080,7 +1098,7 @@ func (client *CertificateOrdersClient) updateCertificateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, keyVaultCertificate) @@ -1097,10 +1115,11 @@ func (client *CertificateOrdersClient) updateCertificateHandleResponse(resp *htt // ValidatePurchaseInformation - Description for Validate information for a certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// appServiceCertificateOrder - Information for a certificate order. -// options - CertificateOrdersClientValidatePurchaseInformationOptions contains the optional parameters for the CertificateOrdersClient.ValidatePurchaseInformation -// method. +// +// Generated from API version 2022-09-01 +// - appServiceCertificateOrder - Information for a certificate order. +// - options - CertificateOrdersClientValidatePurchaseInformationOptions contains the optional parameters for the CertificateOrdersClient.ValidatePurchaseInformation +// method. func (client *CertificateOrdersClient) ValidatePurchaseInformation(ctx context.Context, appServiceCertificateOrder CertificateOrder, options *CertificateOrdersClientValidatePurchaseInformationOptions) (CertificateOrdersClientValidatePurchaseInformationResponse, error) { req, err := client.validatePurchaseInformationCreateRequest(ctx, appServiceCertificateOrder, options) if err != nil { @@ -1128,7 +1147,7 @@ func (client *CertificateOrdersClient) validatePurchaseInformationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appServiceCertificateOrder) @@ -1136,11 +1155,12 @@ func (client *CertificateOrdersClient) validatePurchaseInformationCreateRequest( // VerifyDomainOwnership - Description for Verify domain ownership for this certificate order. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - Name of the certificate order. -// options - CertificateOrdersClientVerifyDomainOwnershipOptions contains the optional parameters for the CertificateOrdersClient.VerifyDomainOwnership -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - Name of the certificate order. +// - options - CertificateOrdersClientVerifyDomainOwnershipOptions contains the optional parameters for the CertificateOrdersClient.VerifyDomainOwnership +// method. func (client *CertificateOrdersClient) VerifyDomainOwnership(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientVerifyDomainOwnershipOptions) (CertificateOrdersClientVerifyDomainOwnershipResponse, error) { req, err := client.verifyDomainOwnershipCreateRequest(ctx, resourceGroupName, certificateOrderName, options) if err != nil { @@ -1176,7 +1196,7 @@ func (client *CertificateOrdersClient) verifyDomainOwnershipCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go index b27294a71692..95dd243c8511 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go @@ -33,9 +33,9 @@ type CertificateOrdersDiagnosticsClient struct { } // NewCertificateOrdersDiagnosticsClient creates a new instance of CertificateOrdersDiagnosticsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCertificateOrdersDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateOrdersDiagnosticsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -59,12 +59,13 @@ func NewCertificateOrdersDiagnosticsClient(subscriptionID string, credential azc // GetAppServiceCertificateOrderDetectorResponse - Description for Microsoft.CertificateRegistration call to get a detector // response from App Lens. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - The certificate order name for which the response is needed. -// detectorName - The detector name which needs to be run. -// options - CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResponseOptions contains the optional -// parameters for the CertificateOrdersDiagnosticsClient.GetAppServiceCertificateOrderDetectorResponse method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - The certificate order name for which the response is needed. +// - detectorName - The detector name which needs to be run. +// - options - CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResponseOptions contains the optional +// parameters for the CertificateOrdersDiagnosticsClient.GetAppServiceCertificateOrderDetectorResponse method. func (client *CertificateOrdersDiagnosticsClient) GetAppServiceCertificateOrderDetectorResponse(ctx context.Context, resourceGroupName string, certificateOrderName string, detectorName string, options *CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResponseOptions) (CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResponseResponse, error) { req, err := client.getAppServiceCertificateOrderDetectorResponseCreateRequest(ctx, resourceGroupName, certificateOrderName, detectorName, options) if err != nil { @@ -113,7 +114,7 @@ func (client *CertificateOrdersDiagnosticsClient) getAppServiceCertificateOrderD if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -130,12 +131,12 @@ func (client *CertificateOrdersDiagnosticsClient) getAppServiceCertificateOrderD // NewListAppServiceCertificateOrderDetectorResponsePager - Description for Microsoft.CertificateRegistration to get the list // of detectors for this RP. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// certificateOrderName - The certificate order name for which the response is needed. -// options - CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions contains the optional -// parameters for the CertificateOrdersDiagnosticsClient.ListAppServiceCertificateOrderDetectorResponse method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - certificateOrderName - The certificate order name for which the response is needed. +// - options - CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions contains the optional +// parameters for the CertificateOrdersDiagnosticsClient.NewListAppServiceCertificateOrderDetectorResponsePager method. func (client *CertificateOrdersDiagnosticsClient) NewListAppServiceCertificateOrderDetectorResponsePager(resourceGroupName string, certificateOrderName string, options *CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions) *runtime.Pager[CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseResponse] { return runtime.NewPager(runtime.PagingHandler[CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseResponse]{ More: func(page CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseResponse) bool { @@ -184,7 +185,7 @@ func (client *CertificateOrdersDiagnosticsClient) listAppServiceCertificateOrder return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go deleted file mode 100644 index 95880cf3850d..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go +++ /dev/null @@ -1,69 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json -func ExampleCertificateOrdersDiagnosticsClient_NewListAppServiceCertificateOrderDetectorResponsePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersDiagnosticsClient("5700fc96-77b4-4f8d-afce-c353d8c443bd", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAppServiceCertificateOrderDetectorResponsePager("Sample-WestUSResourceGroup", - "SampleCertificateOrderName", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json -func ExampleCertificateOrdersDiagnosticsClient_GetAppServiceCertificateOrderDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateOrdersDiagnosticsClient("5700fc96-77b4-4f8d-afce-c353d8c443bd", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAppServiceCertificateOrderDetectorResponse(ctx, - "Sample-WestUSResourceGroup", - "SampleCertificateOrderName", - "AutoRenewStatus", - &armappservice.CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go index 84bf66ce3c6d..f5db732277b4 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go @@ -28,8 +28,8 @@ type CertificateRegistrationProviderClient struct { } // NewCertificateRegistrationProviderClient creates a new instance of CertificateRegistrationProviderClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCertificateRegistrationProviderClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateRegistrationProviderClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -51,10 +51,10 @@ func NewCertificateRegistrationProviderClient(credential azcore.TokenCredential, // NewListOperationsPager - Description for Implements Csm operations Api to exposes the list of available Csm Apis under // the resource provider -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - CertificateRegistrationProviderClientListOperationsOptions contains the optional parameters for the CertificateRegistrationProviderClient.ListOperations -// method. +// +// Generated from API version 2022-09-01 +// - options - CertificateRegistrationProviderClientListOperationsOptions contains the optional parameters for the CertificateRegistrationProviderClient.NewListOperationsPager +// method. func (client *CertificateRegistrationProviderClient) NewListOperationsPager(options *CertificateRegistrationProviderClientListOperationsOptions) *runtime.Pager[CertificateRegistrationProviderClientListOperationsResponse] { return runtime.NewPager(runtime.PagingHandler[CertificateRegistrationProviderClientListOperationsResponse]{ More: func(page CertificateRegistrationProviderClientListOperationsResponse) bool { @@ -91,7 +91,7 @@ func (client *CertificateRegistrationProviderClient) listOperationsCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go deleted file mode 100644 index 53841d889402..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2022-03-01/examples/ListOperations.json -func ExampleCertificateRegistrationProviderClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificateRegistrationProviderClient(cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListOperationsPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificates_client.go b/sdk/resourcemanager/appservice/armappservice/certificates_client.go index e9623de7aa49..1beff59e8f5e 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificates_client.go @@ -32,9 +32,9 @@ type CertificatesClient struct { } // NewCertificatesClient creates a new instance of CertificatesClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificatesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewCertificatesClient(subscriptionID string, credential azcore.TokenCredent // CreateOrUpdate - Description for Create or update a certificate. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the certificate. -// certificateEnvelope - Details of certificate, if it exists already. -// options - CertificatesClientCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.CreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the certificate. +// - certificateEnvelope - Details of certificate, if it exists already. +// - options - CertificatesClientCreateOrUpdateOptions contains the optional parameters for the CertificatesClient.CreateOrUpdate +// method. func (client *CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, certificateEnvelope AppCertificate, options *CertificatesClientCreateOrUpdateOptions) (CertificatesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, certificateEnvelope, options) if err != nil { @@ -98,7 +99,7 @@ func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, certificateEnvelope) @@ -115,10 +116,11 @@ func (client *CertificatesClient) createOrUpdateHandleResponse(resp *http.Respon // Delete - Description for Delete a certificate. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the certificate. -// options - CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the certificate. +// - options - CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method. func (client *CertificatesClient) Delete(ctx context.Context, resourceGroupName string, name string, options *CertificatesClientDeleteOptions) (CertificatesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -154,7 +156,7 @@ func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -162,10 +164,11 @@ func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resou // Get - Description for Get a certificate. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the certificate. -// options - CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the certificate. +// - options - CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method. func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName string, name string, options *CertificatesClientGetOptions) (CertificatesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -201,7 +204,7 @@ func (client *CertificatesClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -217,9 +220,9 @@ func (client *CertificatesClient) getHandleResponse(resp *http.Response) (Certif } // NewListPager - Description for Get all certificates for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - CertificatesClientListOptions contains the optional parameters for the CertificatesClient.List method. +// +// Generated from API version 2022-09-01 +// - options - CertificatesClientListOptions contains the optional parameters for the CertificatesClient.NewListPager method. func (client *CertificatesClient) NewListPager(options *CertificatesClientListOptions) *runtime.Pager[CertificatesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CertificatesClientListResponse]{ More: func(page CertificatesClientListResponse) bool { @@ -260,7 +263,7 @@ func (client *CertificatesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -281,11 +284,11 @@ func (client *CertificatesClient) listHandleResponse(resp *http.Response) (Certi } // NewListByResourceGroupPager - Description for Get all certificates in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - CertificatesClientListByResourceGroupOptions contains the optional parameters for the CertificatesClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - CertificatesClientListByResourceGroupOptions contains the optional parameters for the CertificatesClient.NewListByResourceGroupPager +// method. func (client *CertificatesClient) NewListByResourceGroupPager(resourceGroupName string, options *CertificatesClientListByResourceGroupOptions) *runtime.Pager[CertificatesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[CertificatesClientListByResourceGroupResponse]{ More: func(page CertificatesClientListByResourceGroupResponse) bool { @@ -330,7 +333,7 @@ func (client *CertificatesClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -347,11 +350,12 @@ func (client *CertificatesClient) listByResourceGroupHandleResponse(resp *http.R // Update - Description for Create or update a certificate. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the certificate. -// certificateEnvelope - Details of certificate, if it exists already. -// options - CertificatesClientUpdateOptions contains the optional parameters for the CertificatesClient.Update method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the certificate. +// - certificateEnvelope - Details of certificate, if it exists already. +// - options - CertificatesClientUpdateOptions contains the optional parameters for the CertificatesClient.Update method. func (client *CertificatesClient) Update(ctx context.Context, resourceGroupName string, name string, certificateEnvelope AppCertificatePatchResource, options *CertificatesClientUpdateOptions) (CertificatesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, name, certificateEnvelope, options) if err != nil { @@ -387,7 +391,7 @@ func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, certificateEnvelope) diff --git a/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go deleted file mode 100644 index 893c875f47d2..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go +++ /dev/null @@ -1,166 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListCertificates.json -func ExampleCertificatesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificatesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(&armappservice.CertificatesClientListOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListCertificatesByResourceGroup.json -func ExampleCertificatesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificatesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("testrg123", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetCertificate.json -func ExampleCertificatesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificatesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testrg123", - "testc6282", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateCertificate.json -func ExampleCertificatesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificatesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "testrg123", - "testc6282", - armappservice.AppCertificate{ - Location: to.Ptr("East US"), - Properties: &armappservice.AppCertificateProperties{ - HostNames: []*string{ - to.Ptr("ServerCert")}, - Password: to.Ptr(""), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteCertificate.json -func ExampleCertificatesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificatesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "testrg123", - "testc6282", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/PatchCertificate.json -func ExampleCertificatesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewCertificatesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "testrg123", - "testc6282", - armappservice.AppCertificatePatchResource{ - Properties: &armappservice.AppCertificatePatchResourceProperties{ - Password: to.Ptr(""), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/constants.go b/sdk/resourcemanager/appservice/armappservice/constants.go index 5e8bbec5a887..5bb0fa8a0c2d 100644 --- a/sdk/resourcemanager/appservice/armappservice/constants.go +++ b/sdk/resourcemanager/appservice/armappservice/constants.go @@ -11,7 +11,7 @@ package armappservice const ( moduleName = "armappservice" - moduleVersion = "v2.0.0" + moduleVersion = "v2.1.0" ) // ActiveRevisionsMode - ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple @@ -180,6 +180,19 @@ func PossibleBackupRestoreOperationTypeValues() []BackupRestoreOperationType { } } +type BasicAuthName string + +const ( + BasicAuthNameDefault BasicAuthName = "default" +) + +// PossibleBasicAuthNameValues returns the possible values for the BasicAuthName const type. +func PossibleBasicAuthNameValues() []BasicAuthName { + return []BasicAuthName{ + BasicAuthNameDefault, + } +} + // BuildStatus - The status of the static site build. type BuildStatus string @@ -685,6 +698,22 @@ func PossibleDaysOfWeekValues() []DaysOfWeek { } } +// DefaultAction - Default action for main access restriction if no rules are matched. +type DefaultAction string + +const ( + DefaultActionAllow DefaultAction = "Allow" + DefaultActionDeny DefaultAction = "Deny" +) + +// PossibleDefaultActionValues returns the possible values for the DefaultAction const type. +func PossibleDefaultActionValues() []DefaultAction { + return []DefaultAction{ + DefaultActionAllow, + DefaultActionDeny, + } +} + // DeploymentBuildStatus - Deployment build status. type DeploymentBuildStatus string @@ -2184,6 +2213,26 @@ func PossibleWorkerSizeOptionsValues() []WorkerSizeOptions { } } +// WorkflowHealthState - Gets or sets the workflow health state. +type WorkflowHealthState string + +const ( + WorkflowHealthStateNotSpecified WorkflowHealthState = "NotSpecified" + WorkflowHealthStateHealthy WorkflowHealthState = "Healthy" + WorkflowHealthStateUnhealthy WorkflowHealthState = "Unhealthy" + WorkflowHealthStateUnknown WorkflowHealthState = "Unknown" +) + +// PossibleWorkflowHealthStateValues returns the possible values for the WorkflowHealthState const type. +func PossibleWorkflowHealthStateValues() []WorkflowHealthState { + return []WorkflowHealthState{ + WorkflowHealthStateNotSpecified, + WorkflowHealthStateHealthy, + WorkflowHealthStateUnhealthy, + WorkflowHealthStateUnknown, + } +} + // WorkflowProvisioningState - The workflow provisioning state. type WorkflowProvisioningState string @@ -2264,26 +2313,26 @@ func PossibleWorkflowSKUNameValues() []WorkflowSKUName { } } -// WorkflowState - The workflow state. +// WorkflowState - Gets or sets the state of the workflow. type WorkflowState string const ( + WorkflowStateNotSpecified WorkflowState = "NotSpecified" WorkflowStateCompleted WorkflowState = "Completed" - WorkflowStateDeleted WorkflowState = "Deleted" - WorkflowStateDisabled WorkflowState = "Disabled" WorkflowStateEnabled WorkflowState = "Enabled" - WorkflowStateNotSpecified WorkflowState = "NotSpecified" + WorkflowStateDisabled WorkflowState = "Disabled" + WorkflowStateDeleted WorkflowState = "Deleted" WorkflowStateSuspended WorkflowState = "Suspended" ) // PossibleWorkflowStateValues returns the possible values for the WorkflowState const type. func PossibleWorkflowStateValues() []WorkflowState { return []WorkflowState{ + WorkflowStateNotSpecified, WorkflowStateCompleted, - WorkflowStateDeleted, - WorkflowStateDisabled, WorkflowStateEnabled, - WorkflowStateNotSpecified, + WorkflowStateDisabled, + WorkflowStateDeleted, WorkflowStateSuspended, } } diff --git a/sdk/resourcemanager/appservice/armappservice/containerapps_client.go b/sdk/resourcemanager/appservice/armappservice/containerapps_client.go index 6474a87afa89..9338d393c2ce 100644 --- a/sdk/resourcemanager/appservice/armappservice/containerapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/containerapps_client.go @@ -32,9 +32,9 @@ type ContainerAppsClient struct { } // NewContainerAppsClient creates a new instance of ContainerAppsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewContainerAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewContainerAppsClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Description for Create or update a Container App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Container App. -// options - ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Container App. +// - options - ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate +// method. func (client *ContainerAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ContainerAppsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, name, containerAppEnvelope, options) @@ -76,7 +77,8 @@ func (client *ContainerAppsClient) BeginCreateOrUpdate(ctx context.Context, reso // CreateOrUpdate - Description for Create or update a Container App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *ContainerAppsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, containerAppEnvelope, options) if err != nil { @@ -112,7 +114,7 @@ func (client *ContainerAppsClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, containerAppEnvelope) @@ -120,11 +122,12 @@ func (client *ContainerAppsClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Description for Delete a Container App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Container App. -// options - ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Container App. +// - options - ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete +// method. func (client *ContainerAppsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientBeginDeleteOptions) (*runtime.Poller[ContainerAppsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, name, options) @@ -139,7 +142,8 @@ func (client *ContainerAppsClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Description for Delete a Container App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *ContainerAppsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -175,7 +179,7 @@ func (client *ContainerAppsClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -183,10 +187,11 @@ func (client *ContainerAppsClient) deleteCreateRequest(ctx context.Context, reso // Get - Get the properties of a Container App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Container App. -// options - ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Container App. +// - options - ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method. func (client *ContainerAppsClient) Get(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientGetOptions) (ContainerAppsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -222,7 +227,7 @@ func (client *ContainerAppsClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -238,11 +243,11 @@ func (client *ContainerAppsClient) getHandleResponse(resp *http.Response) (Conta } // NewListByResourceGroupPager - Get the Container Apps in a given resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.NewListByResourceGroupPager +// method. func (client *ContainerAppsClient) NewListByResourceGroupPager(resourceGroupName string, options *ContainerAppsClientListByResourceGroupOptions) *runtime.Pager[ContainerAppsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[ContainerAppsClientListByResourceGroupResponse]{ More: func(page ContainerAppsClientListByResourceGroupResponse) bool { @@ -287,7 +292,7 @@ func (client *ContainerAppsClient) listByResourceGroupCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -303,10 +308,10 @@ func (client *ContainerAppsClient) listByResourceGroupHandleResponse(resp *http. } // NewListBySubscriptionPager - Get the Container Apps in a given subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.ListBySubscription -// method. +// +// Generated from API version 2022-09-01 +// - options - ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.NewListBySubscriptionPager +// method. func (client *ContainerAppsClient) NewListBySubscriptionPager(options *ContainerAppsClientListBySubscriptionOptions) *runtime.Pager[ContainerAppsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[ContainerAppsClientListBySubscriptionResponse]{ More: func(page ContainerAppsClientListBySubscriptionResponse) bool { @@ -347,7 +352,7 @@ func (client *ContainerAppsClient) listBySubscriptionCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -364,10 +369,11 @@ func (client *ContainerAppsClient) listBySubscriptionHandleResponse(resp *http.R // ListSecrets - List secrets for a container app // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// name - Name of the Container App. -// options - ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets -// method. +// +// Generated from API version 2022-09-01 +// - name - Name of the Container App. +// - options - ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets +// method. func (client *ContainerAppsClient) ListSecrets(ctx context.Context, name string, options *ContainerAppsClientListSecretsOptions) (ContainerAppsClientListSecretsResponse, error) { req, err := client.listSecretsCreateRequest(ctx, name, options) if err != nil { @@ -399,7 +405,7 @@ func (client *ContainerAppsClient) listSecretsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go deleted file mode 100644 index f5feff159206..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go +++ /dev/null @@ -1,198 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListContainerAppsBySubscription.json -func ExampleContainerAppsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySubscriptionPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListContainerAppsByResourceGroup.json -func ExampleContainerAppsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("rg", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetContainerApp.json -func ExampleContainerAppsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "rg", - "testcontainerApp0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateContainerApp.json -func ExampleContainerAppsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "rg", - "testcontainerApp0", - armappservice.ContainerApp{ - Kind: to.Ptr("containerApp"), - Location: to.Ptr("East US"), - Properties: &armappservice.ContainerAppProperties{ - Configuration: &armappservice.Configuration{ - Ingress: &armappservice.Ingress{ - External: to.Ptr(true), - TargetPort: to.Ptr[int32](3000), - }, - }, - KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - Template: &armappservice.Template{ - Containers: []*armappservice.Container{ - { - Name: to.Ptr("testcontainerApp0"), - Image: to.Ptr("repo/testcontainerApp0:v1"), - }}, - Dapr: &armappservice.Dapr{ - AppPort: to.Ptr[int32](3000), - Enabled: to.Ptr(true), - }, - Scale: &armappservice.Scale{ - MaxReplicas: to.Ptr[int32](5), - MinReplicas: to.Ptr[int32](1), - Rules: []*armappservice.ScaleRule{ - { - Name: to.Ptr("httpscalingrule"), - Custom: &armappservice.CustomScaleRule{ - Type: to.Ptr("http"), - Metadata: map[string]*string{ - "concurrentRequests": to.Ptr("50"), - }, - }, - }}, - }, - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteContainerApp.json -func ExampleContainerAppsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "rg", - "testWorkerApp0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListContainerAppSecrets.json -func ExampleContainerAppsClient_ListSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListSecrets(ctx, - "testcontainerApp0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go index f1ee042148b8..1e97104287d9 100644 --- a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go @@ -32,9 +32,9 @@ type ContainerAppsRevisionsClient struct { } // NewContainerAppsRevisionsClient creates a new instance of ContainerAppsRevisionsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewContainerAppsRevisionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsRevisionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewContainerAppsRevisionsClient(subscriptionID string, credential azcore.To // ActivateRevision - Activates a revision for a Container App // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// containerAppName - Name of the Container App. -// name - Name of the Container App Revision to activate -// options - ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - containerAppName - Name of the Container App. +// - name - Name of the Container App Revision to activate +// - options - ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision +// method. func (client *ContainerAppsRevisionsClient) ActivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientActivateRevisionOptions) (ContainerAppsRevisionsClientActivateRevisionResponse, error) { req, err := client.activateRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) if err != nil { @@ -102,7 +103,7 @@ func (client *ContainerAppsRevisionsClient) activateRevisionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -110,12 +111,13 @@ func (client *ContainerAppsRevisionsClient) activateRevisionCreateRequest(ctx co // DeactivateRevision - Deactivates a revision for a Container App // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// containerAppName - Name of the Container App. -// name - Name of the Container App Revision to deactivate -// options - ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - containerAppName - Name of the Container App. +// - name - Name of the Container App Revision to deactivate +// - options - ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision +// method. func (client *ContainerAppsRevisionsClient) DeactivateRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientDeactivateRevisionOptions) (ContainerAppsRevisionsClientDeactivateRevisionResponse, error) { req, err := client.deactivateRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) if err != nil { @@ -155,7 +157,7 @@ func (client *ContainerAppsRevisionsClient) deactivateRevisionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -163,12 +165,13 @@ func (client *ContainerAppsRevisionsClient) deactivateRevisionCreateRequest(ctx // GetRevision - Get a revision of a Container App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// containerAppName - Name of the Container App. -// name - Name of the Container App Revision. -// options - ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - containerAppName - Name of the Container App. +// - name - Name of the Container App Revision. +// - options - ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision +// method. func (client *ContainerAppsRevisionsClient) GetRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientGetRevisionOptions) (ContainerAppsRevisionsClientGetRevisionResponse, error) { req, err := client.getRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) if err != nil { @@ -208,7 +211,7 @@ func (client *ContainerAppsRevisionsClient) getRevisionCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -224,12 +227,12 @@ func (client *ContainerAppsRevisionsClient) getRevisionHandleResponse(resp *http } // NewListRevisionsPager - Get the Revisions for a given Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// containerAppName - Name of the Container App for which Revisions are needed. -// options - ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.ListRevisions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - containerAppName - Name of the Container App for which Revisions are needed. +// - options - ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.NewListRevisionsPager +// method. func (client *ContainerAppsRevisionsClient) NewListRevisionsPager(resourceGroupName string, containerAppName string, options *ContainerAppsRevisionsClientListRevisionsOptions) *runtime.Pager[ContainerAppsRevisionsClientListRevisionsResponse] { return runtime.NewPager(runtime.PagingHandler[ContainerAppsRevisionsClientListRevisionsResponse]{ More: func(page ContainerAppsRevisionsClientListRevisionsResponse) bool { @@ -278,7 +281,7 @@ func (client *ContainerAppsRevisionsClient) listRevisionsCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -295,12 +298,13 @@ func (client *ContainerAppsRevisionsClient) listRevisionsHandleResponse(resp *ht // RestartRevision - Restarts a revision for a Container App // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// containerAppName - Name of the Container App. -// name - Name of the Container App Revision to restart -// options - ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - containerAppName - Name of the Container App. +// - name - Name of the Container App Revision to restart +// - options - ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision +// method. func (client *ContainerAppsRevisionsClient) RestartRevision(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientRestartRevisionOptions) (ContainerAppsRevisionsClientRestartRevisionResponse, error) { req, err := client.restartRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) if err != nil { @@ -340,7 +344,7 @@ func (client *ContainerAppsRevisionsClient) restartRevisionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go deleted file mode 100644 index 8b4176f31498..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go +++ /dev/null @@ -1,129 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListRevisions.json -func ExampleContainerAppsRevisionsClient_NewListRevisionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsRevisionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListRevisionsPager("rg", - "testcontainerApp0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetRevision.json -func ExampleContainerAppsRevisionsClient_GetRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsRevisionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetRevision(ctx, - "rg", - "testcontainerApp0", - "testcontainerApp0-pjxhsye", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ActivateRevision.json -func ExampleContainerAppsRevisionsClient_ActivateRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsRevisionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.ActivateRevision(ctx, - "rg", - "testcontainerApp0", - "testcontainerApp0-pjxhsye", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeactivateRevision.json -func ExampleContainerAppsRevisionsClient_DeactivateRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsRevisionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeactivateRevision(ctx, - "rg", - "testcontainerApp0", - "testcontainerApp0-pjxhsye", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/RestartRevision.json -func ExampleContainerAppsRevisionsClient_RestartRevision() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewContainerAppsRevisionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.RestartRevision(ctx, - "rg", - "testStaticSite0", - "testcontainerApp0-pjxhsye", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go index ae12a542b18a..3e25079a05bb 100644 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go @@ -32,9 +32,9 @@ type DeletedWebAppsClient struct { } // NewDeletedWebAppsClient creates a new instance of DeletedWebAppsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDeletedWebAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedWebAppsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,11 @@ func NewDeletedWebAppsClient(subscriptionID string, credential azcore.TokenCrede // GetDeletedWebAppByLocation - Description for Get deleted app for a subscription at location. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// deletedSiteID - The numeric ID of the deleted app, e.g. 12345 -// options - DeletedWebAppsClientGetDeletedWebAppByLocationOptions contains the optional parameters for the DeletedWebAppsClient.GetDeletedWebAppByLocation -// method. +// +// Generated from API version 2022-09-01 +// - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 +// - options - DeletedWebAppsClientGetDeletedWebAppByLocationOptions contains the optional parameters for the DeletedWebAppsClient.GetDeletedWebAppByLocation +// method. func (client *DeletedWebAppsClient) GetDeletedWebAppByLocation(ctx context.Context, location string, deletedSiteID string, options *DeletedWebAppsClientGetDeletedWebAppByLocationOptions) (DeletedWebAppsClientGetDeletedWebAppByLocationResponse, error) { req, err := client.getDeletedWebAppByLocationCreateRequest(ctx, location, deletedSiteID, options) if err != nil { @@ -96,7 +97,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -112,9 +113,9 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationHandleResponse(res } // NewListPager - Description for Get all deleted apps for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - DeletedWebAppsClientListOptions contains the optional parameters for the DeletedWebAppsClient.List method. +// +// Generated from API version 2022-09-01 +// - options - DeletedWebAppsClientListOptions contains the optional parameters for the DeletedWebAppsClient.NewListPager method. func (client *DeletedWebAppsClient) NewListPager(options *DeletedWebAppsClientListOptions) *runtime.Pager[DeletedWebAppsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DeletedWebAppsClientListResponse]{ More: func(page DeletedWebAppsClientListResponse) bool { @@ -155,7 +156,7 @@ func (client *DeletedWebAppsClient) listCreateRequest(ctx context.Context, optio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -171,10 +172,10 @@ func (client *DeletedWebAppsClient) listHandleResponse(resp *http.Response) (Del } // NewListByLocationPager - Description for Get all deleted apps for a subscription at location -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - DeletedWebAppsClientListByLocationOptions contains the optional parameters for the DeletedWebAppsClient.ListByLocation -// method. +// +// Generated from API version 2022-09-01 +// - options - DeletedWebAppsClientListByLocationOptions contains the optional parameters for the DeletedWebAppsClient.NewListByLocationPager +// method. func (client *DeletedWebAppsClient) NewListByLocationPager(location string, options *DeletedWebAppsClientListByLocationOptions) *runtime.Pager[DeletedWebAppsClientListByLocationResponse] { return runtime.NewPager(runtime.PagingHandler[DeletedWebAppsClientListByLocationResponse]{ More: func(page DeletedWebAppsClientListByLocationResponse) bool { @@ -219,7 +220,7 @@ func (client *DeletedWebAppsClient) listByLocationCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go deleted file mode 100644 index b70c549af40c..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go +++ /dev/null @@ -1,64 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListDeletedWebAppsByLocation.json -func ExampleDeletedWebAppsClient_NewListByLocationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDeletedWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByLocationPager("West US 2", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetDeletedWebAppByLocation.json -func ExampleDeletedWebAppsClient_GetDeletedWebAppByLocation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDeletedWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetDeletedWebAppByLocation(ctx, - "West US 2", - "9", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go index 2dec58fc86a4..e52c4054a300 100644 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go @@ -33,9 +33,9 @@ type DiagnosticsClient struct { } // NewDiagnosticsClient creates a new instance of DiagnosticsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiagnosticsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewDiagnosticsClient(subscriptionID string, credential azcore.TokenCredenti // ExecuteSiteAnalysis - Description for Execute Analysis // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Category Name -// analysisName - Analysis Resource Name -// options - DiagnosticsClientExecuteSiteAnalysisOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteAnalysis -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Category Name +// - analysisName - Analysis Resource Name +// - options - DiagnosticsClientExecuteSiteAnalysisOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteAnalysis +// method. func (client *DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, options *DiagnosticsClientExecuteSiteAnalysisOptions) (DiagnosticsClientExecuteSiteAnalysisResponse, error) { req, err := client.executeSiteAnalysisCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, analysisName, options) if err != nil { @@ -117,7 +118,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisCreateRequest(ctx context.Co if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -134,14 +135,15 @@ func (client *DiagnosticsClient) executeSiteAnalysisHandleResponse(resp *http.Re // ExecuteSiteAnalysisSlot - Description for Execute Analysis // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Category Name -// analysisName - Analysis Resource Name -// slot - Slot Name -// options - DiagnosticsClientExecuteSiteAnalysisSlotOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteAnalysisSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Category Name +// - analysisName - Analysis Resource Name +// - slot - Slot Name +// - options - DiagnosticsClientExecuteSiteAnalysisSlotOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteAnalysisSlot +// method. func (client *DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, slot string, options *DiagnosticsClientExecuteSiteAnalysisSlotOptions) (DiagnosticsClientExecuteSiteAnalysisSlotResponse, error) { req, err := client.executeSiteAnalysisSlotCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, analysisName, slot, options) if err != nil { @@ -198,7 +200,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisSlotCreateRequest(ctx contex if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -215,13 +217,14 @@ func (client *DiagnosticsClient) executeSiteAnalysisSlotHandleResponse(resp *htt // ExecuteSiteDetector - Description for Execute Detector // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// detectorName - Detector Resource Name -// diagnosticCategory - Category Name -// options - DiagnosticsClientExecuteSiteDetectorOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteDetector -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - detectorName - Detector Resource Name +// - diagnosticCategory - Category Name +// - options - DiagnosticsClientExecuteSiteDetectorOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteDetector +// method. func (client *DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, resourceGroupName string, siteName string, detectorName string, diagnosticCategory string, options *DiagnosticsClientExecuteSiteDetectorOptions) (DiagnosticsClientExecuteSiteDetectorResponse, error) { req, err := client.executeSiteDetectorCreateRequest(ctx, resourceGroupName, siteName, detectorName, diagnosticCategory, options) if err != nil { @@ -274,7 +277,7 @@ func (client *DiagnosticsClient) executeSiteDetectorCreateRequest(ctx context.Co if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -291,14 +294,15 @@ func (client *DiagnosticsClient) executeSiteDetectorHandleResponse(resp *http.Re // ExecuteSiteDetectorSlot - Description for Execute Detector // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// detectorName - Detector Resource Name -// diagnosticCategory - Category Name -// slot - Slot Name -// options - DiagnosticsClientExecuteSiteDetectorSlotOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteDetectorSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - detectorName - Detector Resource Name +// - diagnosticCategory - Category Name +// - slot - Slot Name +// - options - DiagnosticsClientExecuteSiteDetectorSlotOptions contains the optional parameters for the DiagnosticsClient.ExecuteSiteDetectorSlot +// method. func (client *DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, resourceGroupName string, siteName string, detectorName string, diagnosticCategory string, slot string, options *DiagnosticsClientExecuteSiteDetectorSlotOptions) (DiagnosticsClientExecuteSiteDetectorSlotResponse, error) { req, err := client.executeSiteDetectorSlotCreateRequest(ctx, resourceGroupName, siteName, detectorName, diagnosticCategory, slot, options) if err != nil { @@ -355,7 +359,7 @@ func (client *DiagnosticsClient) executeSiteDetectorSlotCreateRequest(ctx contex if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -372,12 +376,13 @@ func (client *DiagnosticsClient) executeSiteDetectorSlotHandleResponse(resp *htt // GetHostingEnvironmentDetectorResponse - Description for Get Hosting Environment Detector Response // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - App Service Environment Name -// detectorName - Detector Resource Name -// options - DiagnosticsClientGetHostingEnvironmentDetectorResponseOptions contains the optional parameters for the DiagnosticsClient.GetHostingEnvironmentDetectorResponse -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - App Service Environment Name +// - detectorName - Detector Resource Name +// - options - DiagnosticsClientGetHostingEnvironmentDetectorResponseOptions contains the optional parameters for the DiagnosticsClient.GetHostingEnvironmentDetectorResponse +// method. func (client *DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx context.Context, resourceGroupName string, name string, detectorName string, options *DiagnosticsClientGetHostingEnvironmentDetectorResponseOptions) (DiagnosticsClientGetHostingEnvironmentDetectorResponseResponse, error) { req, err := client.getHostingEnvironmentDetectorResponseCreateRequest(ctx, resourceGroupName, name, detectorName, options) if err != nil { @@ -426,7 +431,7 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseCreateRequ if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -443,13 +448,14 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseHandleResp // GetSiteAnalysis - Description for Get Site Analysis // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// analysisName - Analysis Name -// options - DiagnosticsClientGetSiteAnalysisOptions contains the optional parameters for the DiagnosticsClient.GetSiteAnalysis -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - analysisName - Analysis Name +// - options - DiagnosticsClientGetSiteAnalysisOptions contains the optional parameters for the DiagnosticsClient.GetSiteAnalysis +// method. func (client *DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, options *DiagnosticsClientGetSiteAnalysisOptions) (DiagnosticsClientGetSiteAnalysisResponse, error) { req, err := client.getSiteAnalysisCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, analysisName, options) if err != nil { @@ -493,7 +499,7 @@ func (client *DiagnosticsClient) getSiteAnalysisCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -510,14 +516,15 @@ func (client *DiagnosticsClient) getSiteAnalysisHandleResponse(resp *http.Respon // GetSiteAnalysisSlot - Description for Get Site Analysis // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// analysisName - Analysis Name -// slot - Slot - optional -// options - DiagnosticsClientGetSiteAnalysisSlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteAnalysisSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - analysisName - Analysis Name +// - slot - Slot - optional +// - options - DiagnosticsClientGetSiteAnalysisSlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteAnalysisSlot +// method. func (client *DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, slot string, options *DiagnosticsClientGetSiteAnalysisSlotOptions) (DiagnosticsClientGetSiteAnalysisSlotResponse, error) { req, err := client.getSiteAnalysisSlotCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, analysisName, slot, options) if err != nil { @@ -565,7 +572,7 @@ func (client *DiagnosticsClient) getSiteAnalysisSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -582,13 +589,14 @@ func (client *DiagnosticsClient) getSiteAnalysisSlotHandleResponse(resp *http.Re // GetSiteDetector - Description for Get Detector // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// detectorName - Detector Name -// options - DiagnosticsClientGetSiteDetectorOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetector -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - detectorName - Detector Name +// - options - DiagnosticsClientGetSiteDetectorOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetector +// method. func (client *DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, options *DiagnosticsClientGetSiteDetectorOptions) (DiagnosticsClientGetSiteDetectorResponse, error) { req, err := client.getSiteDetectorCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, detectorName, options) if err != nil { @@ -632,7 +640,7 @@ func (client *DiagnosticsClient) getSiteDetectorCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -649,12 +657,13 @@ func (client *DiagnosticsClient) getSiteDetectorHandleResponse(resp *http.Respon // GetSiteDetectorResponse - Description for Get site detector response // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// detectorName - Detector Resource Name -// options - DiagnosticsClientGetSiteDetectorResponseOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetectorResponse -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - detectorName - Detector Resource Name +// - options - DiagnosticsClientGetSiteDetectorResponseOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetectorResponse +// method. func (client *DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, resourceGroupName string, siteName string, detectorName string, options *DiagnosticsClientGetSiteDetectorResponseOptions) (DiagnosticsClientGetSiteDetectorResponseResponse, error) { req, err := client.getSiteDetectorResponseCreateRequest(ctx, resourceGroupName, siteName, detectorName, options) if err != nil { @@ -703,7 +712,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseCreateRequest(ctx contex if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -720,13 +729,14 @@ func (client *DiagnosticsClient) getSiteDetectorResponseHandleResponse(resp *htt // GetSiteDetectorResponseSlot - Description for Get site detector response // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// detectorName - Detector Resource Name -// slot - Slot Name -// options - DiagnosticsClientGetSiteDetectorResponseSlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetectorResponseSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - detectorName - Detector Resource Name +// - slot - Slot Name +// - options - DiagnosticsClientGetSiteDetectorResponseSlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetectorResponseSlot +// method. func (client *DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, resourceGroupName string, siteName string, detectorName string, slot string, options *DiagnosticsClientGetSiteDetectorResponseSlotOptions) (DiagnosticsClientGetSiteDetectorResponseSlotResponse, error) { req, err := client.getSiteDetectorResponseSlotCreateRequest(ctx, resourceGroupName, siteName, detectorName, slot, options) if err != nil { @@ -779,7 +789,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotCreateRequest(ctx co if options != nil && options.TimeGrain != nil { reqQP.Set("timeGrain", *options.TimeGrain) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -796,14 +806,15 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotHandleResponse(resp // GetSiteDetectorSlot - Description for Get Detector // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// detectorName - Detector Name -// slot - Slot Name -// options - DiagnosticsClientGetSiteDetectorSlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetectorSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - detectorName - Detector Name +// - slot - Slot Name +// - options - DiagnosticsClientGetSiteDetectorSlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteDetectorSlot +// method. func (client *DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, slot string, options *DiagnosticsClientGetSiteDetectorSlotOptions) (DiagnosticsClientGetSiteDetectorSlotResponse, error) { req, err := client.getSiteDetectorSlotCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, detectorName, slot, options) if err != nil { @@ -851,7 +862,7 @@ func (client *DiagnosticsClient) getSiteDetectorSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -868,12 +879,13 @@ func (client *DiagnosticsClient) getSiteDetectorSlotHandleResponse(resp *http.Re // GetSiteDiagnosticCategory - Description for Get Diagnostics Category // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// options - DiagnosticsClientGetSiteDiagnosticCategoryOptions contains the optional parameters for the DiagnosticsClient.GetSiteDiagnosticCategory -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - options - DiagnosticsClientGetSiteDiagnosticCategoryOptions contains the optional parameters for the DiagnosticsClient.GetSiteDiagnosticCategory +// method. func (client *DiagnosticsClient) GetSiteDiagnosticCategory(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, options *DiagnosticsClientGetSiteDiagnosticCategoryOptions) (DiagnosticsClientGetSiteDiagnosticCategoryResponse, error) { req, err := client.getSiteDiagnosticCategoryCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, options) if err != nil { @@ -913,7 +925,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategoryCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -930,13 +942,14 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategoryHandleResponse(resp *h // GetSiteDiagnosticCategorySlot - Description for Get Diagnostics Category // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// slot - Slot Name -// options - DiagnosticsClientGetSiteDiagnosticCategorySlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteDiagnosticCategorySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - slot - Slot Name +// - options - DiagnosticsClientGetSiteDiagnosticCategorySlotOptions contains the optional parameters for the DiagnosticsClient.GetSiteDiagnosticCategorySlot +// method. func (client *DiagnosticsClient) GetSiteDiagnosticCategorySlot(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, options *DiagnosticsClientGetSiteDiagnosticCategorySlotOptions) (DiagnosticsClientGetSiteDiagnosticCategorySlotResponse, error) { req, err := client.getSiteDiagnosticCategorySlotCreateRequest(ctx, resourceGroupName, siteName, diagnosticCategory, slot, options) if err != nil { @@ -980,7 +993,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -996,12 +1009,12 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotHandleResponse(res } // NewListHostingEnvironmentDetectorResponsesPager - Description for List Hosting Environment Detector Responses -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site Name -// options - DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.ListHostingEnvironmentDetectorResponses -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site Name +// - options - DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.NewListHostingEnvironmentDetectorResponsesPager +// method. func (client *DiagnosticsClient) NewListHostingEnvironmentDetectorResponsesPager(resourceGroupName string, name string, options *DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions) *runtime.Pager[DiagnosticsClientListHostingEnvironmentDetectorResponsesResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListHostingEnvironmentDetectorResponsesResponse]{ More: func(page DiagnosticsClientListHostingEnvironmentDetectorResponsesResponse) bool { @@ -1050,7 +1063,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1066,13 +1079,13 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesHandleRe } // NewListSiteAnalysesPager - Description for Get Site Analyses -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// options - DiagnosticsClientListSiteAnalysesOptions contains the optional parameters for the DiagnosticsClient.ListSiteAnalyses -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - options - DiagnosticsClientListSiteAnalysesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteAnalysesPager +// method. func (client *DiagnosticsClient) NewListSiteAnalysesPager(resourceGroupName string, siteName string, diagnosticCategory string, options *DiagnosticsClientListSiteAnalysesOptions) *runtime.Pager[DiagnosticsClientListSiteAnalysesResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteAnalysesResponse]{ More: func(page DiagnosticsClientListSiteAnalysesResponse) bool { @@ -1125,7 +1138,7 @@ func (client *DiagnosticsClient) listSiteAnalysesCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1141,14 +1154,14 @@ func (client *DiagnosticsClient) listSiteAnalysesHandleResponse(resp *http.Respo } // NewListSiteAnalysesSlotPager - Description for Get Site Analyses -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// slot - Slot Name -// options - DiagnosticsClientListSiteAnalysesSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteAnalysesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - slot - Slot Name +// - options - DiagnosticsClientListSiteAnalysesSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteAnalysesSlotPager +// method. func (client *DiagnosticsClient) NewListSiteAnalysesSlotPager(resourceGroupName string, siteName string, diagnosticCategory string, slot string, options *DiagnosticsClientListSiteAnalysesSlotOptions) *runtime.Pager[DiagnosticsClientListSiteAnalysesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteAnalysesSlotResponse]{ More: func(page DiagnosticsClientListSiteAnalysesSlotResponse) bool { @@ -1205,7 +1218,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1221,12 +1234,12 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotHandleResponse(resp *http.R } // NewListSiteDetectorResponsesPager - Description for List Site Detector Responses -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// options - DiagnosticsClientListSiteDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectorResponses -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - options - DiagnosticsClientListSiteDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorResponsesPager +// method. func (client *DiagnosticsClient) NewListSiteDetectorResponsesPager(resourceGroupName string, siteName string, options *DiagnosticsClientListSiteDetectorResponsesOptions) *runtime.Pager[DiagnosticsClientListSiteDetectorResponsesResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteDetectorResponsesResponse]{ More: func(page DiagnosticsClientListSiteDetectorResponsesResponse) bool { @@ -1275,7 +1288,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1291,13 +1304,13 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesHandleResponse(resp *h } // NewListSiteDetectorResponsesSlotPager - Description for List Site Detector Responses -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// slot - Slot Name -// options - DiagnosticsClientListSiteDetectorResponsesSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectorResponsesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - slot - Slot Name +// - options - DiagnosticsClientListSiteDetectorResponsesSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorResponsesSlotPager +// method. func (client *DiagnosticsClient) NewListSiteDetectorResponsesSlotPager(resourceGroupName string, siteName string, slot string, options *DiagnosticsClientListSiteDetectorResponsesSlotOptions) *runtime.Pager[DiagnosticsClientListSiteDetectorResponsesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteDetectorResponsesSlotResponse]{ More: func(page DiagnosticsClientListSiteDetectorResponsesSlotResponse) bool { @@ -1350,7 +1363,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1366,13 +1379,13 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotHandleResponse(res } // NewListSiteDetectorsPager - Description for Get Detectors -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// options - DiagnosticsClientListSiteDetectorsOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectors -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - options - DiagnosticsClientListSiteDetectorsOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorsPager +// method. func (client *DiagnosticsClient) NewListSiteDetectorsPager(resourceGroupName string, siteName string, diagnosticCategory string, options *DiagnosticsClientListSiteDetectorsOptions) *runtime.Pager[DiagnosticsClientListSiteDetectorsResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteDetectorsResponse]{ More: func(page DiagnosticsClientListSiteDetectorsResponse) bool { @@ -1425,7 +1438,7 @@ func (client *DiagnosticsClient) listSiteDetectorsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1441,14 +1454,14 @@ func (client *DiagnosticsClient) listSiteDetectorsHandleResponse(resp *http.Resp } // NewListSiteDetectorsSlotPager - Description for Get Detectors -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// diagnosticCategory - Diagnostic Category -// slot - Slot Name -// options - DiagnosticsClientListSiteDetectorsSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectorsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - diagnosticCategory - Diagnostic Category +// - slot - Slot Name +// - options - DiagnosticsClientListSiteDetectorsSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorsSlotPager +// method. func (client *DiagnosticsClient) NewListSiteDetectorsSlotPager(resourceGroupName string, siteName string, diagnosticCategory string, slot string, options *DiagnosticsClientListSiteDetectorsSlotOptions) *runtime.Pager[DiagnosticsClientListSiteDetectorsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteDetectorsSlotResponse]{ More: func(page DiagnosticsClientListSiteDetectorsSlotResponse) bool { @@ -1505,7 +1518,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1521,12 +1534,12 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotHandleResponse(resp *http. } // NewListSiteDiagnosticCategoriesPager - Description for Get Diagnostics Categories -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// options - DiagnosticsClientListSiteDiagnosticCategoriesOptions contains the optional parameters for the DiagnosticsClient.ListSiteDiagnosticCategories -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - options - DiagnosticsClientListSiteDiagnosticCategoriesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDiagnosticCategoriesPager +// method. func (client *DiagnosticsClient) NewListSiteDiagnosticCategoriesPager(resourceGroupName string, siteName string, options *DiagnosticsClientListSiteDiagnosticCategoriesOptions) *runtime.Pager[DiagnosticsClientListSiteDiagnosticCategoriesResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteDiagnosticCategoriesResponse]{ More: func(page DiagnosticsClientListSiteDiagnosticCategoriesResponse) bool { @@ -1575,7 +1588,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1591,13 +1604,13 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesHandleResponse(resp } // NewListSiteDiagnosticCategoriesSlotPager - Description for Get Diagnostics Categories -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site Name -// slot - Slot Name -// options - DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteDiagnosticCategoriesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site Name +// - slot - Slot Name +// - options - DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDiagnosticCategoriesSlotPager +// method. func (client *DiagnosticsClient) NewListSiteDiagnosticCategoriesSlotPager(resourceGroupName string, siteName string, slot string, options *DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions) *runtime.Pager[DiagnosticsClientListSiteDiagnosticCategoriesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[DiagnosticsClientListSiteDiagnosticCategoriesSlotResponse]{ More: func(page DiagnosticsClientListSiteDiagnosticCategoriesSlotResponse) bool { @@ -1650,7 +1663,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go deleted file mode 100644 index 830e34bca639..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go +++ /dev/null @@ -1,593 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json -func ExampleDiagnosticsClient_NewListHostingEnvironmentDetectorResponsesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListHostingEnvironmentDetectorResponsesPager("Sample-WestUSResourceGroup", - "SampleAppServiceEnvironment", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json -func ExampleDiagnosticsClient_GetHostingEnvironmentDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetHostingEnvironmentDetectorResponse(ctx, - "Sample-WestUSResourceGroup", - "SampleAppServiceEnvironment", - "runtimeavailability", - &armappservice.DiagnosticsClientGetHostingEnvironmentDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteDetectorResponses.json -func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", - "SampleApp", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteDetectorResponse.json -func ExampleDiagnosticsClient_GetSiteDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteDetectorResponse(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "runtimeavailability", - &armappservice.DiagnosticsClientGetSiteDetectorResponseOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteDiagnosticCategories.json -func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteDiagnosticCategoriesPager("Sample-WestUSResourceGroup", - "SampleApp", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json -func ExampleDiagnosticsClient_GetSiteDiagnosticCategory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteDiagnosticCategory(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteAnalyses.json -func ExampleDiagnosticsClient_NewListSiteAnalysesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteAnalysesPager("Sample-WestUSResourceGroup", - "SampleApp", - "availability", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteAnalysis.json -func ExampleDiagnosticsClient_GetSiteAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteAnalysis(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "appanalysis", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ExecuteSiteAnalysis.json -func ExampleDiagnosticsClient_ExecuteSiteAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ExecuteSiteAnalysis(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "apprestartanalyses", - &armappservice.DiagnosticsClientExecuteSiteAnalysisOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteDetectors.json -func ExampleDiagnosticsClient_NewListSiteDetectorsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteDetectorsPager("Sample-WestUSResourceGroup", - "SampleApp", - "availability", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteDetector.json -func ExampleDiagnosticsClient_GetSiteDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteDetector(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "sitecrashes", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ExecuteSiteDetector.json -func ExampleDiagnosticsClient_ExecuteSiteDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ExecuteSiteDetector(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "sitecrashes", - "availability", - &armappservice.DiagnosticsClientExecuteSiteDetectorOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteDetectorResponses.json -func ExampleDiagnosticsClient_NewListSiteDetectorResponsesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteDetectorResponsesSlotPager("Sample-WestUSResourceGroup", - "SampleApp", - "staging", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteDetectorResponse.json -func ExampleDiagnosticsClient_GetSiteDetectorResponseSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteDetectorResponseSlot(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "runtimeavailability", - "staging", - &armappservice.DiagnosticsClientGetSiteDetectorResponseSlotOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteDiagnosticCategories.json -func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteDiagnosticCategoriesSlotPager("Sample-WestUSResourceGroup", - "SampleApp", - "Production", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json -func ExampleDiagnosticsClient_GetSiteDiagnosticCategorySlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteDiagnosticCategorySlot(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteAnalyses.json -func ExampleDiagnosticsClient_NewListSiteAnalysesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteAnalysesSlotPager("Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "Production", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteAnalysis.json -func ExampleDiagnosticsClient_GetSiteAnalysisSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteAnalysisSlot(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "appanalysis", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ExecuteSiteAnalysis.json -func ExampleDiagnosticsClient_ExecuteSiteAnalysisSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ExecuteSiteAnalysisSlot(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "apprestartanalyses", - "Production", - &armappservice.DiagnosticsClientExecuteSiteAnalysisSlotOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ListSiteDetectors.json -func ExampleDiagnosticsClient_NewListSiteDetectorsSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteDetectorsSlotPager("Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "Production", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_GetSiteDetector.json -func ExampleDiagnosticsClient_GetSiteDetectorSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetSiteDetectorSlot(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "availability", - "sitecrashes", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Diagnostics_ExecuteSiteDetector.json -func ExampleDiagnosticsClient_ExecuteSiteDetectorSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDiagnosticsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ExecuteSiteDetectorSlot(ctx, - "Sample-WestUSResourceGroup", - "SampleApp", - "sitecrashes", - "availability", - "Production", - &armappservice.DiagnosticsClientExecuteSiteDetectorSlotOptions{StartTime: nil, - EndTime: nil, - TimeGrain: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go index 432aa11b8f07..449b128c2234 100644 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go @@ -28,8 +28,8 @@ type DomainRegistrationProviderClient struct { } // NewDomainRegistrationProviderClient creates a new instance of DomainRegistrationProviderClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDomainRegistrationProviderClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainRegistrationProviderClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -51,10 +51,10 @@ func NewDomainRegistrationProviderClient(credential azcore.TokenCredential, opti // NewListOperationsPager - Description for Implements Csm operations Api to exposes the list of available Csm Apis under // the resource provider -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - DomainRegistrationProviderClientListOperationsOptions contains the optional parameters for the DomainRegistrationProviderClient.ListOperations -// method. +// +// Generated from API version 2022-09-01 +// - options - DomainRegistrationProviderClientListOperationsOptions contains the optional parameters for the DomainRegistrationProviderClient.NewListOperationsPager +// method. func (client *DomainRegistrationProviderClient) NewListOperationsPager(options *DomainRegistrationProviderClientListOperationsOptions) *runtime.Pager[DomainRegistrationProviderClientListOperationsResponse] { return runtime.NewPager(runtime.PagingHandler[DomainRegistrationProviderClientListOperationsResponse]{ More: func(page DomainRegistrationProviderClientListOperationsResponse) bool { @@ -91,7 +91,7 @@ func (client *DomainRegistrationProviderClient) listOperationsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go deleted file mode 100644 index ab17a2fac6c2..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListOperations.json -func ExampleDomainRegistrationProviderClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainRegistrationProviderClient(cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListOperationsPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/domains_client.go b/sdk/resourcemanager/appservice/armappservice/domains_client.go index 47058fee9013..48e5c6005f86 100644 --- a/sdk/resourcemanager/appservice/armappservice/domains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domains_client.go @@ -33,9 +33,9 @@ type DomainsClient struct { } // NewDomainsClient creates a new instance of DomainsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,10 +58,11 @@ func NewDomainsClient(subscriptionID string, credential azcore.TokenCredential, // CheckAvailability - Description for Check if a domain is available for registration. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// identifier - Name of the domain. -// options - DomainsClientCheckAvailabilityOptions contains the optional parameters for the DomainsClient.CheckAvailability -// method. +// +// Generated from API version 2022-09-01 +// - identifier - Name of the domain. +// - options - DomainsClientCheckAvailabilityOptions contains the optional parameters for the DomainsClient.CheckAvailability +// method. func (client *DomainsClient) CheckAvailability(ctx context.Context, identifier NameIdentifier, options *DomainsClientCheckAvailabilityOptions) (DomainsClientCheckAvailabilityResponse, error) { req, err := client.checkAvailabilityCreateRequest(ctx, identifier, options) if err != nil { @@ -89,7 +90,7 @@ func (client *DomainsClient) checkAvailabilityCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, identifier) @@ -106,12 +107,13 @@ func (client *DomainsClient) checkAvailabilityHandleResponse(resp *http.Response // BeginCreateOrUpdate - Description for Creates or updates a domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of the domain. -// domain - Domain registration information. -// options - DomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of the domain. +// - domain - Domain registration information. +// - options - DomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainsClient.BeginCreateOrUpdate +// method. func (client *DomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, domainName string, domain Domain, options *DomainsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DomainsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, domainName, domain, options) @@ -126,7 +128,8 @@ func (client *DomainsClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // CreateOrUpdate - Description for Creates or updates a domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *DomainsClient) createOrUpdate(ctx context.Context, resourceGroupName string, domainName string, domain Domain, options *DomainsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, domainName, domain, options) if err != nil { @@ -162,7 +165,7 @@ func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domain) @@ -171,13 +174,14 @@ func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, re // CreateOrUpdateOwnershipIdentifier - Description for Creates an ownership identifier for a domain or updates identifier // details for an existing identifier // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of domain. -// name - Name of identifier. -// domainOwnershipIdentifier - A JSON representation of the domain ownership properties. -// options - DomainsClientCreateOrUpdateOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.CreateOrUpdateOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of domain. +// - name - Name of identifier. +// - domainOwnershipIdentifier - A JSON representation of the domain ownership properties. +// - options - DomainsClientCreateOrUpdateOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.CreateOrUpdateOwnershipIdentifier +// method. func (client *DomainsClient) CreateOrUpdateOwnershipIdentifier(ctx context.Context, resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier, options *DomainsClientCreateOrUpdateOwnershipIdentifierOptions) (DomainsClientCreateOrUpdateOwnershipIdentifierResponse, error) { req, err := client.createOrUpdateOwnershipIdentifierCreateRequest(ctx, resourceGroupName, domainName, name, domainOwnershipIdentifier, options) if err != nil { @@ -217,7 +221,7 @@ func (client *DomainsClient) createOrUpdateOwnershipIdentifierCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domainOwnershipIdentifier) @@ -234,10 +238,11 @@ func (client *DomainsClient) createOrUpdateOwnershipIdentifierHandleResponse(res // Delete - Description for Delete a domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of the domain. -// options - DomainsClientDeleteOptions contains the optional parameters for the DomainsClient.Delete method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of the domain. +// - options - DomainsClientDeleteOptions contains the optional parameters for the DomainsClient.Delete method. func (client *DomainsClient) Delete(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientDeleteOptions) (DomainsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, domainName, options) if err != nil { @@ -276,7 +281,7 @@ func (client *DomainsClient) deleteCreateRequest(ctx context.Context, resourceGr if options != nil && options.ForceHardDeleteDomain != nil { reqQP.Set("forceHardDeleteDomain", strconv.FormatBool(*options.ForceHardDeleteDomain)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,12 +289,13 @@ func (client *DomainsClient) deleteCreateRequest(ctx context.Context, resourceGr // DeleteOwnershipIdentifier - Description for Delete ownership identifier for domain // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of domain. -// name - Name of identifier. -// options - DomainsClientDeleteOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.DeleteOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of domain. +// - name - Name of identifier. +// - options - DomainsClientDeleteOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.DeleteOwnershipIdentifier +// method. func (client *DomainsClient) DeleteOwnershipIdentifier(ctx context.Context, resourceGroupName string, domainName string, name string, options *DomainsClientDeleteOwnershipIdentifierOptions) (DomainsClientDeleteOwnershipIdentifierResponse, error) { req, err := client.deleteOwnershipIdentifierCreateRequest(ctx, resourceGroupName, domainName, name, options) if err != nil { @@ -329,7 +335,7 @@ func (client *DomainsClient) deleteOwnershipIdentifierCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -337,10 +343,11 @@ func (client *DomainsClient) deleteOwnershipIdentifierCreateRequest(ctx context. // Get - Description for Get a domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of the domain. -// options - DomainsClientGetOptions contains the optional parameters for the DomainsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of the domain. +// - options - DomainsClientGetOptions contains the optional parameters for the DomainsClient.Get method. func (client *DomainsClient) Get(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientGetOptions) (DomainsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, domainName, options) if err != nil { @@ -376,7 +383,7 @@ func (client *DomainsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -393,9 +400,10 @@ func (client *DomainsClient) getHandleResponse(resp *http.Response) (DomainsClie // GetControlCenterSsoRequest - Description for Generate a single sign-on request for the domain management portal. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - DomainsClientGetControlCenterSsoRequestOptions contains the optional parameters for the DomainsClient.GetControlCenterSsoRequest -// method. +// +// Generated from API version 2022-09-01 +// - options - DomainsClientGetControlCenterSsoRequestOptions contains the optional parameters for the DomainsClient.GetControlCenterSsoRequest +// method. func (client *DomainsClient) GetControlCenterSsoRequest(ctx context.Context, options *DomainsClientGetControlCenterSsoRequestOptions) (DomainsClientGetControlCenterSsoRequestResponse, error) { req, err := client.getControlCenterSsoRequestCreateRequest(ctx, options) if err != nil { @@ -423,7 +431,7 @@ func (client *DomainsClient) getControlCenterSsoRequestCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -440,12 +448,13 @@ func (client *DomainsClient) getControlCenterSsoRequestHandleResponse(resp *http // GetOwnershipIdentifier - Description for Get ownership identifier for domain // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of domain. -// name - Name of identifier. -// options - DomainsClientGetOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.GetOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of domain. +// - name - Name of identifier. +// - options - DomainsClientGetOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.GetOwnershipIdentifier +// method. func (client *DomainsClient) GetOwnershipIdentifier(ctx context.Context, resourceGroupName string, domainName string, name string, options *DomainsClientGetOwnershipIdentifierOptions) (DomainsClientGetOwnershipIdentifierResponse, error) { req, err := client.getOwnershipIdentifierCreateRequest(ctx, resourceGroupName, domainName, name, options) if err != nil { @@ -485,7 +494,7 @@ func (client *DomainsClient) getOwnershipIdentifierCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -501,9 +510,9 @@ func (client *DomainsClient) getOwnershipIdentifierHandleResponse(resp *http.Res } // NewListPager - Description for Get all domains in a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - DomainsClientListOptions contains the optional parameters for the DomainsClient.List method. +// +// Generated from API version 2022-09-01 +// - options - DomainsClientListOptions contains the optional parameters for the DomainsClient.NewListPager method. func (client *DomainsClient) NewListPager(options *DomainsClientListOptions) *runtime.Pager[DomainsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DomainsClientListResponse]{ More: func(page DomainsClientListResponse) bool { @@ -544,7 +553,7 @@ func (client *DomainsClient) listCreateRequest(ctx context.Context, options *Dom return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -560,11 +569,11 @@ func (client *DomainsClient) listHandleResponse(resp *http.Response) (DomainsCli } // NewListByResourceGroupPager - Description for Get all domains in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.NewListByResourceGroupPager +// method. func (client *DomainsClient) NewListByResourceGroupPager(resourceGroupName string, options *DomainsClientListByResourceGroupOptions) *runtime.Pager[DomainsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DomainsClientListByResourceGroupResponse]{ More: func(page DomainsClientListByResourceGroupResponse) bool { @@ -609,7 +618,7 @@ func (client *DomainsClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -625,12 +634,12 @@ func (client *DomainsClient) listByResourceGroupHandleResponse(resp *http.Respon } // NewListOwnershipIdentifiersPager - Description for Lists domain ownership identifiers. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of domain. -// options - DomainsClientListOwnershipIdentifiersOptions contains the optional parameters for the DomainsClient.ListOwnershipIdentifiers -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of domain. +// - options - DomainsClientListOwnershipIdentifiersOptions contains the optional parameters for the DomainsClient.NewListOwnershipIdentifiersPager +// method. func (client *DomainsClient) NewListOwnershipIdentifiersPager(resourceGroupName string, domainName string, options *DomainsClientListOwnershipIdentifiersOptions) *runtime.Pager[DomainsClientListOwnershipIdentifiersResponse] { return runtime.NewPager(runtime.PagingHandler[DomainsClientListOwnershipIdentifiersResponse]{ More: func(page DomainsClientListOwnershipIdentifiersResponse) bool { @@ -679,7 +688,7 @@ func (client *DomainsClient) listOwnershipIdentifiersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -695,11 +704,11 @@ func (client *DomainsClient) listOwnershipIdentifiersHandleResponse(resp *http.R } // NewListRecommendationsPager - Description for Get domain name recommendations based on keywords. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// parameters - Search parameters for domain name recommendations. -// options - DomainsClientListRecommendationsOptions contains the optional parameters for the DomainsClient.ListRecommendations -// method. +// +// Generated from API version 2022-09-01 +// - parameters - Search parameters for domain name recommendations. +// - options - DomainsClientListRecommendationsOptions contains the optional parameters for the DomainsClient.NewListRecommendationsPager +// method. func (client *DomainsClient) NewListRecommendationsPager(parameters DomainRecommendationSearchParameters, options *DomainsClientListRecommendationsOptions) *runtime.Pager[DomainsClientListRecommendationsResponse] { return runtime.NewPager(runtime.PagingHandler[DomainsClientListRecommendationsResponse]{ More: func(page DomainsClientListRecommendationsResponse) bool { @@ -740,7 +749,7 @@ func (client *DomainsClient) listRecommendationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -757,10 +766,11 @@ func (client *DomainsClient) listRecommendationsHandleResponse(resp *http.Respon // Renew - Description for Renew a domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of the domain. -// options - DomainsClientRenewOptions contains the optional parameters for the DomainsClient.Renew method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of the domain. +// - options - DomainsClientRenewOptions contains the optional parameters for the DomainsClient.Renew method. func (client *DomainsClient) Renew(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientRenewOptions) (DomainsClientRenewResponse, error) { req, err := client.renewCreateRequest(ctx, resourceGroupName, domainName, options) if err != nil { @@ -796,7 +806,7 @@ func (client *DomainsClient) renewCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -804,10 +814,11 @@ func (client *DomainsClient) renewCreateRequest(ctx context.Context, resourceGro // TransferOut - Transfer out domain to another registrar // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of domain. -// options - DomainsClientTransferOutOptions contains the optional parameters for the DomainsClient.TransferOut method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of domain. +// - options - DomainsClientTransferOutOptions contains the optional parameters for the DomainsClient.TransferOut method. func (client *DomainsClient) TransferOut(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientTransferOutOptions) (DomainsClientTransferOutResponse, error) { req, err := client.transferOutCreateRequest(ctx, resourceGroupName, domainName, options) if err != nil { @@ -843,7 +854,7 @@ func (client *DomainsClient) transferOutCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -860,11 +871,12 @@ func (client *DomainsClient) transferOutHandleResponse(resp *http.Response) (Dom // Update - Description for Creates or updates a domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of the domain. -// domain - Domain registration information. -// options - DomainsClientUpdateOptions contains the optional parameters for the DomainsClient.Update method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of the domain. +// - domain - Domain registration information. +// - options - DomainsClientUpdateOptions contains the optional parameters for the DomainsClient.Update method. func (client *DomainsClient) Update(ctx context.Context, resourceGroupName string, domainName string, domain DomainPatchResource, options *DomainsClientUpdateOptions) (DomainsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, domainName, domain, options) if err != nil { @@ -900,7 +912,7 @@ func (client *DomainsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domain) @@ -918,13 +930,14 @@ func (client *DomainsClient) updateHandleResponse(resp *http.Response) (DomainsC // UpdateOwnershipIdentifier - Description for Creates an ownership identifier for a domain or updates identifier details // for an existing identifier // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// domainName - Name of domain. -// name - Name of identifier. -// domainOwnershipIdentifier - A JSON representation of the domain ownership properties. -// options - DomainsClientUpdateOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.UpdateOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - domainName - Name of domain. +// - name - Name of identifier. +// - domainOwnershipIdentifier - A JSON representation of the domain ownership properties. +// - options - DomainsClientUpdateOwnershipIdentifierOptions contains the optional parameters for the DomainsClient.UpdateOwnershipIdentifier +// method. func (client *DomainsClient) UpdateOwnershipIdentifier(ctx context.Context, resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier, options *DomainsClientUpdateOwnershipIdentifierOptions) (DomainsClientUpdateOwnershipIdentifierResponse, error) { req, err := client.updateOwnershipIdentifierCreateRequest(ctx, resourceGroupName, domainName, name, domainOwnershipIdentifier, options) if err != nil { @@ -964,7 +977,7 @@ func (client *DomainsClient) updateOwnershipIdentifierCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domainOwnershipIdentifier) diff --git a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go deleted file mode 100644 index 6e540d691032..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go +++ /dev/null @@ -1,564 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/CheckDomainAvailability.json -func ExampleDomainsClient_CheckAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckAvailability(ctx, - armappservice.NameIdentifier{ - Name: to.Ptr("abcd.com"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListDomainsBySubscription.json -func ExampleDomainsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/GetDomainControlCenterSsoRequest.json -func ExampleDomainsClient_GetControlCenterSsoRequest() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetControlCenterSsoRequest(ctx, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListDomainRecommendations.json -func ExampleDomainsClient_NewListRecommendationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListRecommendationsPager(armappservice.DomainRecommendationSearchParameters{ - Keywords: to.Ptr("example1"), - MaxDomainRecommendations: to.Ptr[int32](10), - }, - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListDomainsByResourceGroup.json -func ExampleDomainsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("testrg123", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/GetDomain.json -func ExampleDomainsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testrg123", - "example.com", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/CreateAppServiceDomain.json -func ExampleDomainsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "testrg123", - "example.com", - armappservice.Domain{ - Location: to.Ptr("global"), - Tags: map[string]*string{}, - Properties: &armappservice.DomainProperties{ - AuthCode: to.Ptr("exampleAuthCode"), - AutoRenew: to.Ptr(true), - Consent: &armappservice.DomainPurchaseConsent{ - AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t }()), - AgreedBy: to.Ptr("192.0.2.1"), - AgreementKeys: []*string{ - to.Ptr("agreementKey1")}, - }, - ContactAdmin: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("admin@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Admin"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactBilling: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("billing@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Billing"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactRegistrant: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("registrant@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Registrant"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactTech: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("tech@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Tech"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - Privacy: to.Ptr(false), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/DeleteAppServiceDomain.json -func ExampleDomainsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "testrg123", - "example.com", - &armappservice.DomainsClientDeleteOptions{ForceHardDeleteDomain: to.Ptr(true)}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/UpdateAppServiceDomain.json -func ExampleDomainsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "testrg123", - "example.com", - armappservice.DomainPatchResource{ - Properties: &armappservice.DomainPatchResourceProperties{ - AuthCode: to.Ptr("exampleAuthCode"), - AutoRenew: to.Ptr(true), - Consent: &armappservice.DomainPurchaseConsent{ - AgreedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53Z"); return t }()), - AgreedBy: to.Ptr("192.0.2.1"), - AgreementKeys: []*string{ - to.Ptr("agreementKey1")}, - }, - ContactAdmin: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("admin@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Admin"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactBilling: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("billing@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Billing"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactRegistrant: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("registrant@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Registrant"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - ContactTech: &armappservice.Contact{ - AddressMailing: &armappservice.Address{ - Address1: to.Ptr("3400 State St"), - City: to.Ptr("Chicago"), - Country: to.Ptr("United States"), - PostalCode: to.Ptr("67098"), - State: to.Ptr("IL"), - }, - Email: to.Ptr("tech@email.com"), - Fax: to.Ptr("1-245-534-2242"), - JobTitle: to.Ptr("Tech"), - NameFirst: to.Ptr("John"), - NameLast: to.Ptr("Doe"), - NameMiddle: to.Ptr(""), - Organization: to.Ptr("Microsoft Inc."), - Phone: to.Ptr("1-245-534-2242"), - }, - DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - Privacy: to.Ptr(false), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListDomainOwnershipIdentifiers.json -func ExampleDomainsClient_NewListOwnershipIdentifiersPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListOwnershipIdentifiersPager("testrg123", - "example.com", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/GetDomainOwnershipIdentifier.json -func ExampleDomainsClient_GetOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetOwnershipIdentifier(ctx, - "testrg123", - "example.com", - "SampleOwnershipId", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/CreateAppServiceDomainOwnershipIdentifier.json -func ExampleDomainsClient_CreateOrUpdateOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateOwnershipIdentifier(ctx, - "testrg123", - "example.com", - "SampleOwnershipId", - armappservice.DomainOwnershipIdentifier{ - Properties: &armappservice.DomainOwnershipIdentifierProperties{ - OwnershipID: to.Ptr("SampleOwnershipId"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json -func ExampleDomainsClient_DeleteOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeleteOwnershipIdentifier(ctx, - "testrg123", - "example.com", - "ownershipIdentifier", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json -func ExampleDomainsClient_UpdateOwnershipIdentifier() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateOwnershipIdentifier(ctx, - "testrg123", - "example.com", - "SampleOwnershipId", - armappservice.DomainOwnershipIdentifier{ - Properties: &armappservice.DomainOwnershipIdentifierProperties{ - OwnershipID: to.Ptr("SampleOwnershipId"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/RenewDomain.json -func ExampleDomainsClient_Renew() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("3dddfa4f-cedf-4dc0-ba29-b6d1a69ab545", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Renew(ctx, - "RG", - "example.com", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/TransferOutDomain.json -func ExampleDomainsClient_TransferOut() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.TransferOut(ctx, - "testrg123", - "example.com", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/environments_client.go b/sdk/resourcemanager/appservice/armappservice/environments_client.go index bb86d287cf3d..5691526bcb1c 100644 --- a/sdk/resourcemanager/appservice/armappservice/environments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/environments_client.go @@ -33,9 +33,9 @@ type EnvironmentsClient struct { } // NewEnvironmentsClient creates a new instance of EnvironmentsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EnvironmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewEnvironmentsClient(subscriptionID string, credential azcore.TokenCredent // BeginApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the -// EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the +// EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection method. func (client *EnvironmentsClient) BeginApproveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*runtime.Poller[EnvironmentsClientApproveOrRejectPrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.approveOrRejectPrivateEndpointConnection(ctx, resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) @@ -77,7 +78,8 @@ func (client *EnvironmentsClient) BeginApproveOrRejectPrivateEndpointConnection( // ApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.approveOrRejectPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) if err != nil { @@ -117,20 +119,20 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, privateEndpointWrapper) } // BeginChangeVnet - Description for Move an App Service Environment to a different VNET. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// vnetInfo - Details for the new virtual network. -// options - EnvironmentsClientBeginChangeVnetOptions contains the optional parameters for the EnvironmentsClient.BeginChangeVnet -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - vnetInfo - Details for the new virtual network. +// - options - EnvironmentsClientBeginChangeVnetOptions contains the optional parameters for the EnvironmentsClient.BeginChangeVnet +// method. func (client *EnvironmentsClient) BeginChangeVnet(ctx context.Context, resourceGroupName string, name string, vnetInfo VirtualNetworkProfile, options *EnvironmentsClientBeginChangeVnetOptions) (*runtime.Poller[*runtime.Pager[EnvironmentsClientChangeVnetResponse]], error) { pager := runtime.NewPager(runtime.PagingHandler[EnvironmentsClientChangeVnetResponse]{ More: func(page EnvironmentsClientChangeVnetResponse) bool { @@ -167,8 +169,8 @@ func (client *EnvironmentsClient) BeginChangeVnet(ctx context.Context, resourceG } // ChangeVnet - Description for Move an App Service Environment to a different VNET. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) changeVnet(ctx context.Context, resourceGroupName string, name string, vnetInfo VirtualNetworkProfile, options *EnvironmentsClientBeginChangeVnetOptions) (*http.Response, error) { req, err := client.changeVnetCreateRequest(ctx, resourceGroupName, name, vnetInfo, options) if err != nil { @@ -204,7 +206,7 @@ func (client *EnvironmentsClient) changeVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, vnetInfo) @@ -221,12 +223,13 @@ func (client *EnvironmentsClient) changeVnetHandleResponse(resp *http.Response) // BeginCreateOrUpdate - Description for Create or update an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// hostingEnvironmentEnvelope - Configuration details of the App Service Environment. -// options - EnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - hostingEnvironmentEnvelope - Configuration details of the App Service Environment. +// - options - EnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdate +// method. func (client *EnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentResource, options *EnvironmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[EnvironmentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, name, hostingEnvironmentEnvelope, options) @@ -241,7 +244,8 @@ func (client *EnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resou // CreateOrUpdate - Description for Create or update an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentResource, options *EnvironmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, hostingEnvironmentEnvelope, options) if err != nil { @@ -277,7 +281,7 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, hostingEnvironmentEnvelope) @@ -285,12 +289,13 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex // BeginCreateOrUpdateMultiRolePool - Description for Create or update a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// multiRolePoolEnvelope - Properties of the multi-role pool. -// options - EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdateMultiRolePool -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - multiRolePoolEnvelope - Properties of the multi-role pool. +// - options - EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdateMultiRolePool +// method. func (client *EnvironmentsClient) BeginCreateOrUpdateMultiRolePool(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions) (*runtime.Poller[EnvironmentsClientCreateOrUpdateMultiRolePoolResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateMultiRolePool(ctx, resourceGroupName, name, multiRolePoolEnvelope, options) @@ -305,7 +310,8 @@ func (client *EnvironmentsClient) BeginCreateOrUpdateMultiRolePool(ctx context.C // CreateOrUpdateMultiRolePool - Description for Create or update a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) createOrUpdateMultiRolePool(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions) (*http.Response, error) { req, err := client.createOrUpdateMultiRolePoolCreateRequest(ctx, resourceGroupName, name, multiRolePoolEnvelope, options) if err != nil { @@ -341,7 +347,7 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, multiRolePoolEnvelope) @@ -349,13 +355,14 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx c // BeginCreateOrUpdateWorkerPool - Description for Create or update a worker pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// workerPoolEnvelope - Properties of the worker pool. -// options - EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdateWorkerPool -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - workerPoolEnvelope - Properties of the worker pool. +// - options - EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdateWorkerPool +// method. func (client *EnvironmentsClient) BeginCreateOrUpdateWorkerPool(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions) (*runtime.Poller[EnvironmentsClientCreateOrUpdateWorkerPoolResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateWorkerPool(ctx, resourceGroupName, name, workerPoolName, workerPoolEnvelope, options) @@ -370,7 +377,8 @@ func (client *EnvironmentsClient) BeginCreateOrUpdateWorkerPool(ctx context.Cont // CreateOrUpdateWorkerPool - Description for Create or update a worker pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) createOrUpdateWorkerPool(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions) (*http.Response, error) { req, err := client.createOrUpdateWorkerPoolCreateRequest(ctx, resourceGroupName, name, workerPoolName, workerPoolEnvelope, options) if err != nil { @@ -410,7 +418,7 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, workerPoolEnvelope) @@ -418,11 +426,12 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx cont // BeginDelete - Description for Delete an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientBeginDeleteOptions contains the optional parameters for the EnvironmentsClient.BeginDelete -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientBeginDeleteOptions contains the optional parameters for the EnvironmentsClient.BeginDelete +// method. func (client *EnvironmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginDeleteOptions) (*runtime.Poller[EnvironmentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, name, options) @@ -437,7 +446,8 @@ func (client *EnvironmentsClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Description for Delete an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -476,7 +486,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, resou if options != nil && options.ForceDelete != nil { reqQP.Set("forceDelete", strconv.FormatBool(*options.ForceDelete)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -484,11 +494,12 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, resou // DeleteAseCustomDNSSuffixConfiguration - Delete Custom Dns Suffix configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration +// method. func (client *EnvironmentsClient) DeleteAseCustomDNSSuffixConfiguration(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationOptions) (EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationResponse, error) { req, err := client.deleteAseCustomDNSSuffixConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -524,7 +535,7 @@ func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -541,11 +552,12 @@ func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationHandleRes // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.BeginDeletePrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.BeginDeletePrivateEndpointConnection +// method. func (client *EnvironmentsClient) BeginDeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions) (*runtime.Poller[EnvironmentsClientDeletePrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deletePrivateEndpointConnection(ctx, resourceGroupName, name, privateEndpointConnectionName, options) @@ -560,7 +572,8 @@ func (client *EnvironmentsClient) BeginDeletePrivateEndpointConnection(ctx conte // DeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.deletePrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, options) if err != nil { @@ -600,7 +613,7 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -608,10 +621,11 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(c // Get - Description for Get the properties of an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetOptions contains the optional parameters for the EnvironmentsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetOptions contains the optional parameters for the EnvironmentsClient.Get method. func (client *EnvironmentsClient) Get(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetOptions) (EnvironmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -647,7 +661,7 @@ func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -664,11 +678,12 @@ func (client *EnvironmentsClient) getHandleResponse(resp *http.Response) (Enviro // GetAseCustomDNSSuffixConfiguration - Get Custom Dns Suffix configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.GetAseCustomDNSSuffixConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.GetAseCustomDNSSuffixConfiguration +// method. func (client *EnvironmentsClient) GetAseCustomDNSSuffixConfiguration(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetAseCustomDNSSuffixConfigurationOptions) (EnvironmentsClientGetAseCustomDNSSuffixConfigurationResponse, error) { req, err := client.getAseCustomDNSSuffixConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -704,7 +719,7 @@ func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -721,11 +736,12 @@ func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationHandleRespon // GetAseV3NetworkingConfiguration - Description for Get networking configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetAseV3NetworkingConfigurationOptions contains the optional parameters for the EnvironmentsClient.GetAseV3NetworkingConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetAseV3NetworkingConfigurationOptions contains the optional parameters for the EnvironmentsClient.GetAseV3NetworkingConfiguration +// method. func (client *EnvironmentsClient) GetAseV3NetworkingConfiguration(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetAseV3NetworkingConfigurationOptions) (EnvironmentsClientGetAseV3NetworkingConfigurationResponse, error) { req, err := client.getAseV3NetworkingConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -761,7 +777,7 @@ func (client *EnvironmentsClient) getAseV3NetworkingConfigurationCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -778,12 +794,13 @@ func (client *EnvironmentsClient) getAseV3NetworkingConfigurationHandleResponse( // GetDiagnosticsItem - Description for Get a diagnostics item for an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// diagnosticsName - Name of the diagnostics item. -// options - EnvironmentsClientGetDiagnosticsItemOptions contains the optional parameters for the EnvironmentsClient.GetDiagnosticsItem -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - diagnosticsName - Name of the diagnostics item. +// - options - EnvironmentsClientGetDiagnosticsItemOptions contains the optional parameters for the EnvironmentsClient.GetDiagnosticsItem +// method. func (client *EnvironmentsClient) GetDiagnosticsItem(ctx context.Context, resourceGroupName string, name string, diagnosticsName string, options *EnvironmentsClientGetDiagnosticsItemOptions) (EnvironmentsClientGetDiagnosticsItemResponse, error) { req, err := client.getDiagnosticsItemCreateRequest(ctx, resourceGroupName, name, diagnosticsName, options) if err != nil { @@ -823,7 +840,7 @@ func (client *EnvironmentsClient) getDiagnosticsItemCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -840,12 +857,12 @@ func (client *EnvironmentsClient) getDiagnosticsItemHandleResponse(resp *http.Re // NewGetInboundNetworkDependenciesEndpointsPager - Description for Get the network endpoints of all inbound dependencies // of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.GetInboundNetworkDependenciesEndpoints -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.NewGetInboundNetworkDependenciesEndpointsPager +// method. func (client *EnvironmentsClient) NewGetInboundNetworkDependenciesEndpointsPager(resourceGroupName string, name string, options *EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions) *runtime.Pager[EnvironmentsClientGetInboundNetworkDependenciesEndpointsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientGetInboundNetworkDependenciesEndpointsResponse]{ More: func(page EnvironmentsClientGetInboundNetworkDependenciesEndpointsResponse) bool { @@ -894,7 +911,7 @@ func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -911,11 +928,12 @@ func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsHandleRe // GetMultiRolePool - Description for Get properties of a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.GetMultiRolePool -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.GetMultiRolePool +// method. func (client *EnvironmentsClient) GetMultiRolePool(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetMultiRolePoolOptions) (EnvironmentsClientGetMultiRolePoolResponse, error) { req, err := client.getMultiRolePoolCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -951,7 +969,7 @@ func (client *EnvironmentsClient) getMultiRolePoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -968,12 +986,12 @@ func (client *EnvironmentsClient) getMultiRolePoolHandleResponse(resp *http.Resp // NewGetOutboundNetworkDependenciesEndpointsPager - Description for Get the network endpoints of all outbound dependencies // of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.GetOutboundNetworkDependenciesEndpoints -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.NewGetOutboundNetworkDependenciesEndpointsPager +// method. func (client *EnvironmentsClient) NewGetOutboundNetworkDependenciesEndpointsPager(resourceGroupName string, name string, options *EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions) *runtime.Pager[EnvironmentsClientGetOutboundNetworkDependenciesEndpointsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientGetOutboundNetworkDependenciesEndpointsResponse]{ More: func(page EnvironmentsClientGetOutboundNetworkDependenciesEndpointsResponse) bool { @@ -1022,7 +1040,7 @@ func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1039,12 +1057,13 @@ func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsHandleR // GetPrivateEndpointConnection - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// privateEndpointConnectionName - Name of the private endpoint connection. -// options - EnvironmentsClientGetPrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.GetPrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - privateEndpointConnectionName - Name of the private endpoint connection. +// - options - EnvironmentsClientGetPrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.GetPrivateEndpointConnection +// method. func (client *EnvironmentsClient) GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *EnvironmentsClientGetPrivateEndpointConnectionOptions) (EnvironmentsClientGetPrivateEndpointConnectionResponse, error) { req, err := client.getPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, options) if err != nil { @@ -1084,7 +1103,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1101,12 +1120,12 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionHandleResponse(res // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoints associated with a hosting // environment -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the EnvironmentsClient.GetPrivateEndpointConnectionList -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the EnvironmentsClient.NewGetPrivateEndpointConnectionListPager +// method. func (client *EnvironmentsClient) NewGetPrivateEndpointConnectionListPager(resourceGroupName string, name string, options *EnvironmentsClientGetPrivateEndpointConnectionListOptions) *runtime.Pager[EnvironmentsClientGetPrivateEndpointConnectionListResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientGetPrivateEndpointConnectionListResponse]{ More: func(page EnvironmentsClientGetPrivateEndpointConnectionListResponse) bool { @@ -1155,7 +1174,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionListCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1172,11 +1191,12 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionListHandleResponse // GetPrivateLinkResources - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetPrivateLinkResourcesOptions contains the optional parameters for the EnvironmentsClient.GetPrivateLinkResources -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetPrivateLinkResourcesOptions contains the optional parameters for the EnvironmentsClient.GetPrivateLinkResources +// method. func (client *EnvironmentsClient) GetPrivateLinkResources(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetPrivateLinkResourcesOptions) (EnvironmentsClientGetPrivateLinkResourcesResponse, error) { req, err := client.getPrivateLinkResourcesCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1212,7 +1232,7 @@ func (client *EnvironmentsClient) getPrivateLinkResourcesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1229,10 +1249,11 @@ func (client *EnvironmentsClient) getPrivateLinkResourcesHandleResponse(resp *ht // GetVipInfo - Description for Get IP addresses assigned to an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientGetVipInfoOptions contains the optional parameters for the EnvironmentsClient.GetVipInfo method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientGetVipInfoOptions contains the optional parameters for the EnvironmentsClient.GetVipInfo method. func (client *EnvironmentsClient) GetVipInfo(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetVipInfoOptions) (EnvironmentsClientGetVipInfoResponse, error) { req, err := client.getVipInfoCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1268,7 +1289,7 @@ func (client *EnvironmentsClient) getVipInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1285,12 +1306,13 @@ func (client *EnvironmentsClient) getVipInfoHandleResponse(resp *http.Response) // GetWorkerPool - Description for Get properties of a worker pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// options - EnvironmentsClientGetWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.GetWorkerPool -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - options - EnvironmentsClientGetWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.GetWorkerPool +// method. func (client *EnvironmentsClient) GetWorkerPool(ctx context.Context, resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientGetWorkerPoolOptions) (EnvironmentsClientGetWorkerPoolResponse, error) { req, err := client.getWorkerPoolCreateRequest(ctx, resourceGroupName, name, workerPoolName, options) if err != nil { @@ -1330,7 +1352,7 @@ func (client *EnvironmentsClient) getWorkerPoolCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1346,9 +1368,9 @@ func (client *EnvironmentsClient) getWorkerPoolHandleResponse(resp *http.Respons } // NewListPager - Description for Get all App Service Environments for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - EnvironmentsClientListOptions contains the optional parameters for the EnvironmentsClient.List method. +// +// Generated from API version 2022-09-01 +// - options - EnvironmentsClientListOptions contains the optional parameters for the EnvironmentsClient.NewListPager method. func (client *EnvironmentsClient) NewListPager(options *EnvironmentsClientListOptions) *runtime.Pager[EnvironmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListResponse]{ More: func(page EnvironmentsClientListResponse) bool { @@ -1389,7 +1411,7 @@ func (client *EnvironmentsClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1405,12 +1427,12 @@ func (client *EnvironmentsClient) listHandleResponse(resp *http.Response) (Envir } // NewListAppServicePlansPager - Description for Get all App Service plans in an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListAppServicePlansOptions contains the optional parameters for the EnvironmentsClient.ListAppServicePlans -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListAppServicePlansOptions contains the optional parameters for the EnvironmentsClient.NewListAppServicePlansPager +// method. func (client *EnvironmentsClient) NewListAppServicePlansPager(resourceGroupName string, name string, options *EnvironmentsClientListAppServicePlansOptions) *runtime.Pager[EnvironmentsClientListAppServicePlansResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListAppServicePlansResponse]{ More: func(page EnvironmentsClientListAppServicePlansResponse) bool { @@ -1459,7 +1481,7 @@ func (client *EnvironmentsClient) listAppServicePlansCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1475,11 +1497,11 @@ func (client *EnvironmentsClient) listAppServicePlansHandleResponse(resp *http.R } // NewListByResourceGroupPager - Description for Get all App Service Environments in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - EnvironmentsClientListByResourceGroupOptions contains the optional parameters for the EnvironmentsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - EnvironmentsClientListByResourceGroupOptions contains the optional parameters for the EnvironmentsClient.NewListByResourceGroupPager +// method. func (client *EnvironmentsClient) NewListByResourceGroupPager(resourceGroupName string, options *EnvironmentsClientListByResourceGroupOptions) *runtime.Pager[EnvironmentsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListByResourceGroupResponse]{ More: func(page EnvironmentsClientListByResourceGroupResponse) bool { @@ -1524,7 +1546,7 @@ func (client *EnvironmentsClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1540,12 +1562,12 @@ func (client *EnvironmentsClient) listByResourceGroupHandleResponse(resp *http.R } // NewListCapacitiesPager - Description for Get the used, available, and total worker capacity an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListCapacitiesOptions contains the optional parameters for the EnvironmentsClient.ListCapacities -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListCapacitiesOptions contains the optional parameters for the EnvironmentsClient.NewListCapacitiesPager +// method. func (client *EnvironmentsClient) NewListCapacitiesPager(resourceGroupName string, name string, options *EnvironmentsClientListCapacitiesOptions) *runtime.Pager[EnvironmentsClientListCapacitiesResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListCapacitiesResponse]{ More: func(page EnvironmentsClientListCapacitiesResponse) bool { @@ -1594,7 +1616,7 @@ func (client *EnvironmentsClient) listCapacitiesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1611,11 +1633,12 @@ func (client *EnvironmentsClient) listCapacitiesHandleResponse(resp *http.Respon // ListDiagnostics - Description for Get diagnostic information for an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListDiagnosticsOptions contains the optional parameters for the EnvironmentsClient.ListDiagnostics -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListDiagnosticsOptions contains the optional parameters for the EnvironmentsClient.ListDiagnostics +// method. func (client *EnvironmentsClient) ListDiagnostics(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListDiagnosticsOptions) (EnvironmentsClientListDiagnosticsResponse, error) { req, err := client.listDiagnosticsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1651,7 +1674,7 @@ func (client *EnvironmentsClient) listDiagnosticsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1668,12 +1691,12 @@ func (client *EnvironmentsClient) listDiagnosticsHandleResponse(resp *http.Respo // NewListMultiRoleMetricDefinitionsPager - Description for Get metric definitions for a multi-role pool of an App Service // Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListMultiRoleMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRoleMetricDefinitions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListMultiRoleMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRoleMetricDefinitionsPager +// method. func (client *EnvironmentsClient) NewListMultiRoleMetricDefinitionsPager(resourceGroupName string, name string, options *EnvironmentsClientListMultiRoleMetricDefinitionsOptions) *runtime.Pager[EnvironmentsClientListMultiRoleMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListMultiRoleMetricDefinitionsResponse]{ More: func(page EnvironmentsClientListMultiRoleMetricDefinitionsResponse) bool { @@ -1722,7 +1745,7 @@ func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1739,13 +1762,13 @@ func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsHandleResponse(r // NewListMultiRolePoolInstanceMetricDefinitionsPager - Description for Get metric definitions for a specific instance of // a multi-role pool of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// instance - Name of the instance in the multi-role pool. -// options - EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions contains the optional parameters for the -// EnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - instance - Name of the instance in the multi-role pool. +// - options - EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions contains the optional parameters for the +// EnvironmentsClient.NewListMultiRolePoolInstanceMetricDefinitionsPager method. func (client *EnvironmentsClient) NewListMultiRolePoolInstanceMetricDefinitionsPager(resourceGroupName string, name string, instance string, options *EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions) *runtime.Pager[EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsResponse]{ More: func(page EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsResponse) bool { @@ -1798,7 +1821,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1814,12 +1837,12 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsHand } // NewListMultiRolePoolSKUsPager - Description for Get available SKUs for scaling a multi-role pool. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListMultiRolePoolSKUsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRolePoolSKUs -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListMultiRolePoolSKUsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolSKUsPager +// method. func (client *EnvironmentsClient) NewListMultiRolePoolSKUsPager(resourceGroupName string, name string, options *EnvironmentsClientListMultiRolePoolSKUsOptions) *runtime.Pager[EnvironmentsClientListMultiRolePoolSKUsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListMultiRolePoolSKUsResponse]{ More: func(page EnvironmentsClientListMultiRolePoolSKUsResponse) bool { @@ -1868,7 +1891,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1884,12 +1907,12 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsHandleResponse(resp *http } // NewListMultiRolePoolsPager - Description for Get all multi-role pools. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListMultiRolePoolsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRolePools -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListMultiRolePoolsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolsPager +// method. func (client *EnvironmentsClient) NewListMultiRolePoolsPager(resourceGroupName string, name string, options *EnvironmentsClientListMultiRolePoolsOptions) *runtime.Pager[EnvironmentsClientListMultiRolePoolsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListMultiRolePoolsResponse]{ More: func(page EnvironmentsClientListMultiRolePoolsResponse) bool { @@ -1938,7 +1961,7 @@ func (client *EnvironmentsClient) listMultiRolePoolsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1954,12 +1977,12 @@ func (client *EnvironmentsClient) listMultiRolePoolsHandleResponse(resp *http.Re } // NewListMultiRoleUsagesPager - Description for Get usage metrics for a multi-role pool of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListMultiRoleUsagesOptions contains the optional parameters for the EnvironmentsClient.ListMultiRoleUsages -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListMultiRoleUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRoleUsagesPager +// method. func (client *EnvironmentsClient) NewListMultiRoleUsagesPager(resourceGroupName string, name string, options *EnvironmentsClientListMultiRoleUsagesOptions) *runtime.Pager[EnvironmentsClientListMultiRoleUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListMultiRoleUsagesResponse]{ More: func(page EnvironmentsClientListMultiRoleUsagesResponse) bool { @@ -2008,7 +2031,7 @@ func (client *EnvironmentsClient) listMultiRoleUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2025,11 +2048,12 @@ func (client *EnvironmentsClient) listMultiRoleUsagesHandleResponse(resp *http.R // ListOperations - Description for List all currently running operations on the App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListOperationsOptions contains the optional parameters for the EnvironmentsClient.ListOperations -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListOperationsOptions contains the optional parameters for the EnvironmentsClient.ListOperations +// method. func (client *EnvironmentsClient) ListOperations(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListOperationsOptions) (EnvironmentsClientListOperationsResponse, error) { req, err := client.listOperationsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2065,7 +2089,7 @@ func (client *EnvironmentsClient) listOperationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2081,11 +2105,12 @@ func (client *EnvironmentsClient) listOperationsHandleResponse(resp *http.Respon } // NewListUsagesPager - Description for Get global usage metrics of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListUsagesOptions contains the optional parameters for the EnvironmentsClient.ListUsages method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListUsagesPager +// method. func (client *EnvironmentsClient) NewListUsagesPager(resourceGroupName string, name string, options *EnvironmentsClientListUsagesOptions) *runtime.Pager[EnvironmentsClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListUsagesResponse]{ More: func(page EnvironmentsClientListUsagesResponse) bool { @@ -2134,7 +2159,7 @@ func (client *EnvironmentsClient) listUsagesCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -2155,12 +2180,12 @@ func (client *EnvironmentsClient) listUsagesHandleResponse(resp *http.Response) } // NewListWebAppsPager - Description for Get all apps in an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListWebAppsOptions contains the optional parameters for the EnvironmentsClient.ListWebApps -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListWebAppsOptions contains the optional parameters for the EnvironmentsClient.NewListWebAppsPager +// method. func (client *EnvironmentsClient) NewListWebAppsPager(resourceGroupName string, name string, options *EnvironmentsClientListWebAppsOptions) *runtime.Pager[EnvironmentsClientListWebAppsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListWebAppsResponse]{ More: func(page EnvironmentsClientListWebAppsResponse) bool { @@ -2212,7 +2237,7 @@ func (client *EnvironmentsClient) listWebAppsCreateRequest(ctx context.Context, if options != nil && options.PropertiesToInclude != nil { reqQP.Set("propertiesToInclude", *options.PropertiesToInclude) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2228,13 +2253,13 @@ func (client *EnvironmentsClient) listWebAppsHandleResponse(resp *http.Response) } // NewListWebWorkerMetricDefinitionsPager - Description for Get metric definitions for a worker pool of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// options - EnvironmentsClientListWebWorkerMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListWebWorkerMetricDefinitions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - options - EnvironmentsClientListWebWorkerMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListWebWorkerMetricDefinitionsPager +// method. func (client *EnvironmentsClient) NewListWebWorkerMetricDefinitionsPager(resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientListWebWorkerMetricDefinitionsOptions) *runtime.Pager[EnvironmentsClientListWebWorkerMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListWebWorkerMetricDefinitionsResponse]{ More: func(page EnvironmentsClientListWebWorkerMetricDefinitionsResponse) bool { @@ -2287,7 +2312,7 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2303,13 +2328,13 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsHandleResponse(r } // NewListWebWorkerUsagesPager - Description for Get usage metrics for a worker pool of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// options - EnvironmentsClientListWebWorkerUsagesOptions contains the optional parameters for the EnvironmentsClient.ListWebWorkerUsages -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - options - EnvironmentsClientListWebWorkerUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListWebWorkerUsagesPager +// method. func (client *EnvironmentsClient) NewListWebWorkerUsagesPager(resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientListWebWorkerUsagesOptions) *runtime.Pager[EnvironmentsClientListWebWorkerUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListWebWorkerUsagesResponse]{ More: func(page EnvironmentsClientListWebWorkerUsagesResponse) bool { @@ -2362,7 +2387,7 @@ func (client *EnvironmentsClient) listWebWorkerUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2379,14 +2404,14 @@ func (client *EnvironmentsClient) listWebWorkerUsagesHandleResponse(resp *http.R // NewListWorkerPoolInstanceMetricDefinitionsPager - Description for Get metric definitions for a specific instance of a worker // pool of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// instance - Name of the instance in the worker pool. -// options - EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListWorkerPoolInstanceMetricDefinitions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - instance - Name of the instance in the worker pool. +// - options - EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolInstanceMetricDefinitionsPager +// method. func (client *EnvironmentsClient) NewListWorkerPoolInstanceMetricDefinitionsPager(resourceGroupName string, name string, workerPoolName string, instance string, options *EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions) *runtime.Pager[EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsResponse]{ More: func(page EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsResponse) bool { @@ -2443,7 +2468,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2459,13 +2484,13 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsHandleR } // NewListWorkerPoolSKUsPager - Description for Get available SKUs for scaling a worker pool. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// options - EnvironmentsClientListWorkerPoolSKUsOptions contains the optional parameters for the EnvironmentsClient.ListWorkerPoolSKUs -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - options - EnvironmentsClientListWorkerPoolSKUsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolSKUsPager +// method. func (client *EnvironmentsClient) NewListWorkerPoolSKUsPager(resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientListWorkerPoolSKUsOptions) *runtime.Pager[EnvironmentsClientListWorkerPoolSKUsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListWorkerPoolSKUsResponse]{ More: func(page EnvironmentsClientListWorkerPoolSKUsResponse) bool { @@ -2518,7 +2543,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2534,12 +2559,12 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsHandleResponse(resp *http.Re } // NewListWorkerPoolsPager - Description for Get all worker pools of an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientListWorkerPoolsOptions contains the optional parameters for the EnvironmentsClient.ListWorkerPools -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientListWorkerPoolsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolsPager +// method. func (client *EnvironmentsClient) NewListWorkerPoolsPager(resourceGroupName string, name string, options *EnvironmentsClientListWorkerPoolsOptions) *runtime.Pager[EnvironmentsClientListWorkerPoolsResponse] { return runtime.NewPager(runtime.PagingHandler[EnvironmentsClientListWorkerPoolsResponse]{ More: func(page EnvironmentsClientListWorkerPoolsResponse) bool { @@ -2588,7 +2613,7 @@ func (client *EnvironmentsClient) listWorkerPoolsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2605,10 +2630,11 @@ func (client *EnvironmentsClient) listWorkerPoolsHandleResponse(resp *http.Respo // Reboot - Description for Reboot all machines in an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientRebootOptions contains the optional parameters for the EnvironmentsClient.Reboot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientRebootOptions contains the optional parameters for the EnvironmentsClient.Reboot method. func (client *EnvironmentsClient) Reboot(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientRebootOptions) (EnvironmentsClientRebootResponse, error) { req, err := client.rebootCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2644,19 +2670,19 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // BeginResume - Description for Resume an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientBeginResumeOptions contains the optional parameters for the EnvironmentsClient.BeginResume -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientBeginResumeOptions contains the optional parameters for the EnvironmentsClient.BeginResume +// method. func (client *EnvironmentsClient) BeginResume(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginResumeOptions) (*runtime.Poller[*runtime.Pager[EnvironmentsClientResumeResponse]], error) { pager := runtime.NewPager(runtime.PagingHandler[EnvironmentsClientResumeResponse]{ More: func(page EnvironmentsClientResumeResponse) bool { @@ -2693,8 +2719,8 @@ func (client *EnvironmentsClient) BeginResume(ctx context.Context, resourceGroup } // Resume - Description for Resume an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) resume(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginResumeOptions) (*http.Response, error) { req, err := client.resumeCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2730,7 +2756,7 @@ func (client *EnvironmentsClient) resumeCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2746,12 +2772,12 @@ func (client *EnvironmentsClient) resumeHandleResponse(resp *http.Response) (Env } // BeginSuspend - Description for Suspend an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientBeginSuspendOptions contains the optional parameters for the EnvironmentsClient.BeginSuspend -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientBeginSuspendOptions contains the optional parameters for the EnvironmentsClient.BeginSuspend +// method. func (client *EnvironmentsClient) BeginSuspend(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginSuspendOptions) (*runtime.Poller[*runtime.Pager[EnvironmentsClientSuspendResponse]], error) { pager := runtime.NewPager(runtime.PagingHandler[EnvironmentsClientSuspendResponse]{ More: func(page EnvironmentsClientSuspendResponse) bool { @@ -2788,8 +2814,8 @@ func (client *EnvironmentsClient) BeginSuspend(ctx context.Context, resourceGrou } // Suspend - Description for Suspend an App Service Environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) suspend(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginSuspendOptions) (*http.Response, error) { req, err := client.suspendCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2825,7 +2851,7 @@ func (client *EnvironmentsClient) suspendCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2842,11 +2868,12 @@ func (client *EnvironmentsClient) suspendHandleResponse(resp *http.Response) (En // TestUpgradeAvailableNotification - Send a test notification that an upgrade is available for this App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientTestUpgradeAvailableNotificationOptions contains the optional parameters for the EnvironmentsClient.TestUpgradeAvailableNotification -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientTestUpgradeAvailableNotificationOptions contains the optional parameters for the EnvironmentsClient.TestUpgradeAvailableNotification +// method. func (client *EnvironmentsClient) TestUpgradeAvailableNotification(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientTestUpgradeAvailableNotificationOptions) (EnvironmentsClientTestUpgradeAvailableNotificationResponse, error) { req, err := client.testUpgradeAvailableNotificationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2882,7 +2909,7 @@ func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2890,11 +2917,12 @@ func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest( // Update - Description for Create or update an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// hostingEnvironmentEnvelope - Configuration details of the App Service Environment. -// options - EnvironmentsClientUpdateOptions contains the optional parameters for the EnvironmentsClient.Update method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - hostingEnvironmentEnvelope - Configuration details of the App Service Environment. +// - options - EnvironmentsClientUpdateOptions contains the optional parameters for the EnvironmentsClient.Update method. func (client *EnvironmentsClient) Update(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentPatchResource, options *EnvironmentsClientUpdateOptions) (EnvironmentsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, name, hostingEnvironmentEnvelope, options) if err != nil { @@ -2930,7 +2958,7 @@ func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, hostingEnvironmentEnvelope) @@ -2947,11 +2975,12 @@ func (client *EnvironmentsClient) updateHandleResponse(resp *http.Response) (Env // UpdateAseCustomDNSSuffixConfiguration - Update Custom Dns Suffix configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.UpdateAseCustomDNSSuffixConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.UpdateAseCustomDNSSuffixConfiguration +// method. func (client *EnvironmentsClient) UpdateAseCustomDNSSuffixConfiguration(ctx context.Context, resourceGroupName string, name string, customDNSSuffixConfiguration CustomDNSSuffixConfiguration, options *EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationOptions) (EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationResponse, error) { req, err := client.updateAseCustomDNSSuffixConfigurationCreateRequest(ctx, resourceGroupName, name, customDNSSuffixConfiguration, options) if err != nil { @@ -2987,7 +3016,7 @@ func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, customDNSSuffixConfiguration) @@ -3004,11 +3033,12 @@ func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationHandleRes // UpdateAseNetworkingConfiguration - Description for Update networking configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientUpdateAseNetworkingConfigurationOptions contains the optional parameters for the EnvironmentsClient.UpdateAseNetworkingConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientUpdateAseNetworkingConfigurationOptions contains the optional parameters for the EnvironmentsClient.UpdateAseNetworkingConfiguration +// method. func (client *EnvironmentsClient) UpdateAseNetworkingConfiguration(ctx context.Context, resourceGroupName string, name string, aseNetworkingConfiguration AseV3NetworkingConfiguration, options *EnvironmentsClientUpdateAseNetworkingConfigurationOptions) (EnvironmentsClientUpdateAseNetworkingConfigurationResponse, error) { req, err := client.updateAseNetworkingConfigurationCreateRequest(ctx, resourceGroupName, name, aseNetworkingConfiguration, options) if err != nil { @@ -3044,7 +3074,7 @@ func (client *EnvironmentsClient) updateAseNetworkingConfigurationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, aseNetworkingConfiguration) @@ -3061,12 +3091,13 @@ func (client *EnvironmentsClient) updateAseNetworkingConfigurationHandleResponse // UpdateMultiRolePool - Description for Create or update a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// multiRolePoolEnvelope - Properties of the multi-role pool. -// options - EnvironmentsClientUpdateMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.UpdateMultiRolePool -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - multiRolePoolEnvelope - Properties of the multi-role pool. +// - options - EnvironmentsClientUpdateMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.UpdateMultiRolePool +// method. func (client *EnvironmentsClient) UpdateMultiRolePool(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, options *EnvironmentsClientUpdateMultiRolePoolOptions) (EnvironmentsClientUpdateMultiRolePoolResponse, error) { req, err := client.updateMultiRolePoolCreateRequest(ctx, resourceGroupName, name, multiRolePoolEnvelope, options) if err != nil { @@ -3102,7 +3133,7 @@ func (client *EnvironmentsClient) updateMultiRolePoolCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, multiRolePoolEnvelope) @@ -3119,13 +3150,14 @@ func (client *EnvironmentsClient) updateMultiRolePoolHandleResponse(resp *http.R // UpdateWorkerPool - Description for Create or update a worker pool. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// workerPoolName - Name of the worker pool. -// workerPoolEnvelope - Properties of the worker pool. -// options - EnvironmentsClientUpdateWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.UpdateWorkerPool -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - workerPoolName - Name of the worker pool. +// - workerPoolEnvelope - Properties of the worker pool. +// - options - EnvironmentsClientUpdateWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.UpdateWorkerPool +// method. func (client *EnvironmentsClient) UpdateWorkerPool(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, options *EnvironmentsClientUpdateWorkerPoolOptions) (EnvironmentsClientUpdateWorkerPoolResponse, error) { req, err := client.updateWorkerPoolCreateRequest(ctx, resourceGroupName, name, workerPoolName, workerPoolEnvelope, options) if err != nil { @@ -3165,7 +3197,7 @@ func (client *EnvironmentsClient) updateWorkerPoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, workerPoolEnvelope) @@ -3182,11 +3214,12 @@ func (client *EnvironmentsClient) updateWorkerPoolHandleResponse(resp *http.Resp // BeginUpgrade - Description for Initiate an upgrade of an App Service Environment if one is available. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service Environment. -// options - EnvironmentsClientBeginUpgradeOptions contains the optional parameters for the EnvironmentsClient.BeginUpgrade -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service Environment. +// - options - EnvironmentsClientBeginUpgradeOptions contains the optional parameters for the EnvironmentsClient.BeginUpgrade +// method. func (client *EnvironmentsClient) BeginUpgrade(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginUpgradeOptions) (*runtime.Poller[EnvironmentsClientUpgradeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.upgrade(ctx, resourceGroupName, name, options) @@ -3201,7 +3234,8 @@ func (client *EnvironmentsClient) BeginUpgrade(ctx context.Context, resourceGrou // Upgrade - Description for Initiate an upgrade of an App Service Environment if one is available. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *EnvironmentsClient) upgrade(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginUpgradeOptions) (*http.Response, error) { req, err := client.upgradeCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -3237,7 +3271,7 @@ func (client *EnvironmentsClient) upgradeCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/global_client.go b/sdk/resourcemanager/appservice/armappservice/global_client.go index 3731d1e5e7b0..64b7edef128a 100644 --- a/sdk/resourcemanager/appservice/armappservice/global_client.go +++ b/sdk/resourcemanager/appservice/armappservice/global_client.go @@ -32,9 +32,9 @@ type GlobalClient struct { } // NewGlobalClient creates a new instance of GlobalClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGlobalClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GlobalClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,9 +57,10 @@ func NewGlobalClient(subscriptionID string, credential azcore.TokenCredential, o // GetDeletedWebApp - Description for Get deleted app for a subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// deletedSiteID - The numeric ID of the deleted app, e.g. 12345 -// options - GlobalClientGetDeletedWebAppOptions contains the optional parameters for the GlobalClient.GetDeletedWebApp method. +// +// Generated from API version 2022-09-01 +// - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 +// - options - GlobalClientGetDeletedWebAppOptions contains the optional parameters for the GlobalClient.GetDeletedWebApp method. func (client *GlobalClient) GetDeletedWebApp(ctx context.Context, deletedSiteID string, options *GlobalClientGetDeletedWebAppOptions) (GlobalClientGetDeletedWebAppResponse, error) { req, err := client.getDeletedWebAppCreateRequest(ctx, deletedSiteID, options) if err != nil { @@ -91,7 +92,7 @@ func (client *GlobalClient) getDeletedWebAppCreateRequest(ctx context.Context, d return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -108,10 +109,11 @@ func (client *GlobalClient) getDeletedWebAppHandleResponse(resp *http.Response) // GetDeletedWebAppSnapshots - Description for Get all deleted apps for a subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// deletedSiteID - The numeric ID of the deleted app, e.g. 12345 -// options - GlobalClientGetDeletedWebAppSnapshotsOptions contains the optional parameters for the GlobalClient.GetDeletedWebAppSnapshots -// method. +// +// Generated from API version 2022-09-01 +// - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 +// - options - GlobalClientGetDeletedWebAppSnapshotsOptions contains the optional parameters for the GlobalClient.GetDeletedWebAppSnapshots +// method. func (client *GlobalClient) GetDeletedWebAppSnapshots(ctx context.Context, deletedSiteID string, options *GlobalClientGetDeletedWebAppSnapshotsOptions) (GlobalClientGetDeletedWebAppSnapshotsResponse, error) { req, err := client.getDeletedWebAppSnapshotsCreateRequest(ctx, deletedSiteID, options) if err != nil { @@ -143,7 +145,7 @@ func (client *GlobalClient) getDeletedWebAppSnapshotsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -160,11 +162,12 @@ func (client *GlobalClient) getDeletedWebAppSnapshotsHandleResponse(resp *http.R // GetSubscriptionOperationWithAsyncResponse - Description for Gets an operation in a subscription and given region // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - Location name -// operationID - Operation Id -// options - GlobalClientGetSubscriptionOperationWithAsyncResponseOptions contains the optional parameters for the GlobalClient.GetSubscriptionOperationWithAsyncResponse -// method. +// +// Generated from API version 2022-09-01 +// - location - Location name +// - operationID - Operation Id +// - options - GlobalClientGetSubscriptionOperationWithAsyncResponseOptions contains the optional parameters for the GlobalClient.GetSubscriptionOperationWithAsyncResponse +// method. func (client *GlobalClient) GetSubscriptionOperationWithAsyncResponse(ctx context.Context, location string, operationID string, options *GlobalClientGetSubscriptionOperationWithAsyncResponseOptions) (GlobalClientGetSubscriptionOperationWithAsyncResponseResponse, error) { req, err := client.getSubscriptionOperationWithAsyncResponseCreateRequest(ctx, location, operationID, options) if err != nil { @@ -200,7 +203,7 @@ func (client *GlobalClient) getSubscriptionOperationWithAsyncResponseCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go deleted file mode 100644 index 729703a8f2fb..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go +++ /dev/null @@ -1,79 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetDeletedWebApp.json -func ExampleGlobalClient_GetDeletedWebApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewGlobalClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetDeletedWebApp(ctx, - "9", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetDeletedWebAppSnapshots.json -func ExampleGlobalClient_GetDeletedWebAppSnapshots() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewGlobalClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetDeletedWebAppSnapshots(ctx, - "9", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSubscriptionOperationWithAsyncResponse.json -func ExampleGlobalClient_GetSubscriptionOperationWithAsyncResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewGlobalClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.GetSubscriptionOperationWithAsyncResponse(ctx, - "West US", - "34adfa4f-cedf-4dc0-ba29-b6d1a69ab5d5", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/go.mod b/sdk/resourcemanager/appservice/armappservice/go.mod index c8878d02e014..8c14ea38e776 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.mod +++ b/sdk/resourcemanager/appservice/armappservice/go.mod @@ -2,20 +2,12 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappse go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect - github.com/google/uuid v1.1.1 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect - golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/appservice/armappservice/go.sum b/sdk/resourcemanager/appservice/armappservice/go.sum index 8828b17b1853..3afb578030a5 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.sum +++ b/sdk/resourcemanager/appservice/armappservice/go.sum @@ -1,33 +1,15 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 h1:sVPhtT2qjO86rTUaWMr4WoES4TkjGnzcioXcnHV9s5k= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= -github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU= -github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= -github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw= -golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go index 52631fcd09f7..cabab8920072 100644 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go @@ -32,9 +32,9 @@ type KubeEnvironmentsClient struct { } // NewKubeEnvironmentsClient creates a new instance of KubeEnvironmentsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKubeEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KubeEnvironmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewKubeEnvironmentsClient(subscriptionID string, credential azcore.TokenCre // BeginCreateOrUpdate - Description for Creates or updates a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Kubernetes Environment. -// kubeEnvironmentEnvelope - Configuration details of the Kubernetes Environment. -// options - KubeEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the KubeEnvironmentsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Kubernetes Environment. +// - kubeEnvironmentEnvelope - Configuration details of the Kubernetes Environment. +// - options - KubeEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the KubeEnvironmentsClient.BeginCreateOrUpdate +// method. func (client *KubeEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironment, options *KubeEnvironmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[KubeEnvironmentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, name, kubeEnvironmentEnvelope, options) @@ -77,7 +78,8 @@ func (client *KubeEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, r // CreateOrUpdate - Description for Creates or updates a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *KubeEnvironmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironment, options *KubeEnvironmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, kubeEnvironmentEnvelope, options) if err != nil { @@ -113,7 +115,7 @@ func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, kubeEnvironmentEnvelope) @@ -121,11 +123,12 @@ func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Co // BeginDelete - Description for Delete a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Kubernetes Environment. -// options - KubeEnvironmentsClientBeginDeleteOptions contains the optional parameters for the KubeEnvironmentsClient.BeginDelete -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Kubernetes Environment. +// - options - KubeEnvironmentsClientBeginDeleteOptions contains the optional parameters for the KubeEnvironmentsClient.BeginDelete +// method. func (client *KubeEnvironmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientBeginDeleteOptions) (*runtime.Poller[KubeEnvironmentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, name, options) @@ -140,7 +143,8 @@ func (client *KubeEnvironmentsClient) BeginDelete(ctx context.Context, resourceG // Delete - Description for Delete a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *KubeEnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -176,7 +180,7 @@ func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -184,10 +188,11 @@ func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, r // Get - Description for Get the properties of a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Kubernetes Environment. -// options - KubeEnvironmentsClientGetOptions contains the optional parameters for the KubeEnvironmentsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Kubernetes Environment. +// - options - KubeEnvironmentsClientGetOptions contains the optional parameters for the KubeEnvironmentsClient.Get method. func (client *KubeEnvironmentsClient) Get(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientGetOptions) (KubeEnvironmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -223,7 +228,7 @@ func (client *KubeEnvironmentsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -239,11 +244,11 @@ func (client *KubeEnvironmentsClient) getHandleResponse(resp *http.Response) (Ku } // NewListByResourceGroupPager - Description for Get all the Kubernetes Environments in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - KubeEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the KubeEnvironmentsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - KubeEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the KubeEnvironmentsClient.NewListByResourceGroupPager +// method. func (client *KubeEnvironmentsClient) NewListByResourceGroupPager(resourceGroupName string, options *KubeEnvironmentsClientListByResourceGroupOptions) *runtime.Pager[KubeEnvironmentsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[KubeEnvironmentsClientListByResourceGroupResponse]{ More: func(page KubeEnvironmentsClientListByResourceGroupResponse) bool { @@ -288,7 +293,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -304,10 +309,10 @@ func (client *KubeEnvironmentsClient) listByResourceGroupHandleResponse(resp *ht } // NewListBySubscriptionPager - Description for Get all Kubernetes Environments for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - KubeEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the KubeEnvironmentsClient.ListBySubscription -// method. +// +// Generated from API version 2022-09-01 +// - options - KubeEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the KubeEnvironmentsClient.NewListBySubscriptionPager +// method. func (client *KubeEnvironmentsClient) NewListBySubscriptionPager(options *KubeEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[KubeEnvironmentsClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[KubeEnvironmentsClientListBySubscriptionResponse]{ More: func(page KubeEnvironmentsClientListBySubscriptionResponse) bool { @@ -348,7 +353,7 @@ func (client *KubeEnvironmentsClient) listBySubscriptionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -365,11 +370,12 @@ func (client *KubeEnvironmentsClient) listBySubscriptionHandleResponse(resp *htt // Update - Description for Creates or updates a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the Kubernetes Environment. -// kubeEnvironmentEnvelope - Configuration details of the Kubernetes Environment. -// options - KubeEnvironmentsClientUpdateOptions contains the optional parameters for the KubeEnvironmentsClient.Update method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the Kubernetes Environment. +// - kubeEnvironmentEnvelope - Configuration details of the Kubernetes Environment. +// - options - KubeEnvironmentsClientUpdateOptions contains the optional parameters for the KubeEnvironmentsClient.Update method. func (client *KubeEnvironmentsClient) Update(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironmentPatchResource, options *KubeEnvironmentsClientUpdateOptions) (KubeEnvironmentsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, name, kubeEnvironmentEnvelope, options) if err != nil { @@ -405,7 +411,7 @@ func (client *KubeEnvironmentsClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, kubeEnvironmentEnvelope) diff --git a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go deleted file mode 100644 index 9cddefa7b781..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go +++ /dev/null @@ -1,172 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/KubeEnvironments_ListBySubscription.json -func ExampleKubeEnvironmentsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewKubeEnvironmentsClient("8efdecc5-919e-44eb-b179-915dca89ebf9", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySubscriptionPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/KubeEnvironments_ListByResourceGroup.json -func ExampleKubeEnvironmentsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewKubeEnvironmentsClient("8efdecc5-919e-44eb-b179-915dca89ebf9", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("examplerg", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/KubeEnvironments_Get.json -func ExampleKubeEnvironmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewKubeEnvironmentsClient("8efdecc5-919e-44eb-b179-915dca89ebf9", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "examplerg", - "jlaw-demo1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/KubeEnvironments_CreateOrUpdate.json -func ExampleKubeEnvironmentsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewKubeEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "examplerg", - "testkubeenv", - armappservice.KubeEnvironment{ - Location: to.Ptr("East US"), - Properties: &armappservice.KubeEnvironmentProperties{ - StaticIP: to.Ptr("1.2.3.4"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/KubeEnvironments_Delete.json -func ExampleKubeEnvironmentsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewKubeEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "examplerg", - "examplekenv", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/KubeEnvironments_Update.json -func ExampleKubeEnvironmentsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewKubeEnvironmentsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "examplerg", - "testkubeenv", - armappservice.KubeEnvironmentPatchResource{ - Properties: &armappservice.KubeEnvironmentPatchResourceProperties{ - StaticIP: to.Ptr("1.2.3.4"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/models.go b/sdk/resourcemanager/appservice/armappservice/models.go index d3a149b3450c..e35a43bbd8fb 100644 --- a/sdk/resourcemanager/appservice/armappservice/models.go +++ b/sdk/resourcemanager/appservice/armappservice/models.go @@ -1287,19 +1287,19 @@ type CertificateOrdersClientGetOptions struct { // placeholder for future optional parameters } -// CertificateOrdersClientListByResourceGroupOptions contains the optional parameters for the CertificateOrdersClient.ListByResourceGroup +// CertificateOrdersClientListByResourceGroupOptions contains the optional parameters for the CertificateOrdersClient.NewListByResourceGroupPager // method. type CertificateOrdersClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// CertificateOrdersClientListCertificatesOptions contains the optional parameters for the CertificateOrdersClient.ListCertificates +// CertificateOrdersClientListCertificatesOptions contains the optional parameters for the CertificateOrdersClient.NewListCertificatesPager // method. type CertificateOrdersClientListCertificatesOptions struct { // placeholder for future optional parameters } -// CertificateOrdersClientListOptions contains the optional parameters for the CertificateOrdersClient.List method. +// CertificateOrdersClientListOptions contains the optional parameters for the CertificateOrdersClient.NewListPager method. type CertificateOrdersClientListOptions struct { // placeholder for future optional parameters } @@ -1379,7 +1379,7 @@ type CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResp } // CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions contains the optional parameters -// for the CertificateOrdersDiagnosticsClient.ListAppServiceCertificateOrderDetectorResponse method. +// for the CertificateOrdersDiagnosticsClient.NewListAppServiceCertificateOrderDetectorResponsePager method. type CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions struct { // placeholder for future optional parameters } @@ -1402,7 +1402,7 @@ type CertificatePatchResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// CertificateRegistrationProviderClientListOperationsOptions contains the optional parameters for the CertificateRegistrationProviderClient.ListOperations +// CertificateRegistrationProviderClientListOperationsOptions contains the optional parameters for the CertificateRegistrationProviderClient.NewListOperationsPager // method. type CertificateRegistrationProviderClientListOperationsOptions struct { // placeholder for future optional parameters @@ -1447,13 +1447,13 @@ type CertificatesClientGetOptions struct { // placeholder for future optional parameters } -// CertificatesClientListByResourceGroupOptions contains the optional parameters for the CertificatesClient.ListByResourceGroup +// CertificatesClientListByResourceGroupOptions contains the optional parameters for the CertificatesClient.NewListByResourceGroupPager // method. type CertificatesClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// CertificatesClientListOptions contains the optional parameters for the CertificatesClient.List method. +// CertificatesClientListOptions contains the optional parameters for the CertificatesClient.NewListPager method. type CertificatesClientListOptions struct { // Return only information specified in the filter (using OData syntax). For example: $filter=KeyVaultId eq 'KeyVaultId' Filter *string @@ -1703,13 +1703,13 @@ type ContainerAppsClientGetOptions struct { // placeholder for future optional parameters } -// ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.ListByResourceGroup +// ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.NewListByResourceGroupPager // method. type ContainerAppsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.ListBySubscription +// ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.NewListBySubscriptionPager // method. type ContainerAppsClientListBySubscriptionOptions struct { // placeholder for future optional parameters @@ -1764,7 +1764,7 @@ type ContainerAppsRevisionsClientGetRevisionOptions struct { // placeholder for future optional parameters } -// ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.ListRevisions +// ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.NewListRevisionsPager // method. type ContainerAppsRevisionsClientListRevisionsOptions struct { // placeholder for future optional parameters @@ -1857,7 +1857,7 @@ type ContentLink struct { ContentVersion *string `json:"contentVersion,omitempty" azure:"ro"` // READ-ONLY; The metadata. - Metadata interface{} `json:"metadata,omitempty" azure:"ro"` + Metadata any `json:"metadata,omitempty" azure:"ro"` } // ContinuousWebJob - Continuous Web Job Information. @@ -1905,7 +1905,7 @@ type ContinuousWebJobProperties struct { RunCommand *string `json:"run_command,omitempty"` // Job settings. - Settings map[string]interface{} `json:"settings,omitempty"` + Settings map[string]any `json:"settings,omitempty"` // Job status. Status *ContinuousWebJobStatus `json:"status,omitempty"` @@ -2356,6 +2356,96 @@ type DatabaseBackupSetting struct { Name *string `json:"name,omitempty"` } +// DatabaseConnection - Static Site Database Connection resource. +type DatabaseConnection struct { + // Kind of resource. + Kind *string `json:"kind,omitempty"` + + // DatabaseConnection resource specific properties + Properties *DatabaseConnectionProperties `json:"properties,omitempty"` + + // READ-ONLY; Resource Id. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; Resource Name. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource type. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// DatabaseConnectionCollection - Collection of static site database connections. +type DatabaseConnectionCollection struct { + // REQUIRED; Collection of resources. + Value []*DatabaseConnection `json:"value,omitempty"` + + // READ-ONLY; Link to next page of resources. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` +} + +// DatabaseConnectionOverview - Static Site Database Connection overview. +type DatabaseConnectionOverview struct { + // READ-ONLY; A list of configuration files associated with this database connection. + ConfigurationFiles []*StaticSiteDatabaseConnectionConfigurationFileOverview `json:"configurationFiles,omitempty" azure:"ro"` + + // READ-ONLY; If present, the identity is used in conjunction with connection string to connect to the database. Use of the + // system-assigned managed identity is indicated with the string 'SystemAssigned', while use + // of a user-assigned managed identity is indicated with the resource id of the managed identity resource. + ConnectionIdentity *string `json:"connectionIdentity,omitempty" azure:"ro"` + + // READ-ONLY; If present, the name of this database connection resource. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The region of the database resource. + Region *string `json:"region,omitempty" azure:"ro"` + + // READ-ONLY; The resource id of the database. + ResourceID *string `json:"resourceId,omitempty" azure:"ro"` +} + +// DatabaseConnectionPatchRequest - Static Site Database Connection Request Properties resource when patching +type DatabaseConnectionPatchRequest struct { + // DatabaseConnectionPatchRequest resource specific properties + Properties *DatabaseConnectionPatchRequestProperties `json:"properties,omitempty"` +} + +// DatabaseConnectionPatchRequestProperties - DatabaseConnectionPatchRequest resource specific properties +type DatabaseConnectionPatchRequestProperties struct { + // If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned + // managed identity is indicated with the string 'SystemAssigned', while use + // of a user-assigned managed identity is indicated with the resource id of the managed identity resource. + ConnectionIdentity *string `json:"connectionIdentity,omitempty"` + + // The connection string to use to connect to the database. + ConnectionString *string `json:"connectionString,omitempty"` + + // The region of the database resource. + Region *string `json:"region,omitempty"` + + // The resource id of the database. + ResourceID *string `json:"resourceId,omitempty"` +} + +// DatabaseConnectionProperties - DatabaseConnection resource specific properties +type DatabaseConnectionProperties struct { + // REQUIRED; The region of the database resource. + Region *string `json:"region,omitempty"` + + // REQUIRED; The resource id of the database. + ResourceID *string `json:"resourceId,omitempty"` + + // If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned + // managed identity is indicated with the string 'SystemAssigned', while use + // of a user-assigned managed identity is indicated with the resource id of the managed identity resource. + ConnectionIdentity *string `json:"connectionIdentity,omitempty"` + + // The connection string to use to connect to the database. + ConnectionString *string `json:"connectionString,omitempty"` + + // READ-ONLY; A list of configuration files associated with this database connection. + ConfigurationFiles []*StaticSiteDatabaseConnectionConfigurationFileOverview `json:"configurationFiles,omitempty" azure:"ro"` +} + // DefaultAuthorizationPolicy - The configuration settings of the Azure Active Directory default authorization policy. type DefaultAuthorizationPolicy struct { // The configuration settings of the Azure Active Directory allowed applications. @@ -2494,13 +2584,13 @@ type DeletedWebAppsClientGetDeletedWebAppByLocationOptions struct { // placeholder for future optional parameters } -// DeletedWebAppsClientListByLocationOptions contains the optional parameters for the DeletedWebAppsClient.ListByLocation +// DeletedWebAppsClientListByLocationOptions contains the optional parameters for the DeletedWebAppsClient.NewListByLocationPager // method. type DeletedWebAppsClientListByLocationOptions struct { // placeholder for future optional parameters } -// DeletedWebAppsClientListOptions contains the optional parameters for the DeletedWebAppsClient.List method. +// DeletedWebAppsClientListOptions contains the optional parameters for the DeletedWebAppsClient.NewListPager method. type DeletedWebAppsClientListOptions struct { // placeholder for future optional parameters } @@ -3005,54 +3095,55 @@ type DiagnosticsClientGetSiteDiagnosticCategorySlotOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.ListHostingEnvironmentDetectorResponses +// DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.NewListHostingEnvironmentDetectorResponsesPager // method. type DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteAnalysesOptions contains the optional parameters for the DiagnosticsClient.ListSiteAnalyses method. +// DiagnosticsClientListSiteAnalysesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteAnalysesPager +// method. type DiagnosticsClientListSiteAnalysesOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteAnalysesSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteAnalysesSlot +// DiagnosticsClientListSiteAnalysesSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteAnalysesSlotPager // method. type DiagnosticsClientListSiteAnalysesSlotOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectorResponses +// DiagnosticsClientListSiteDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorResponsesPager // method. type DiagnosticsClientListSiteDetectorResponsesOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteDetectorResponsesSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectorResponsesSlot +// DiagnosticsClientListSiteDetectorResponsesSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorResponsesSlotPager // method. type DiagnosticsClientListSiteDetectorResponsesSlotOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteDetectorsOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectors +// DiagnosticsClientListSiteDetectorsOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorsPager // method. type DiagnosticsClientListSiteDetectorsOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteDetectorsSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteDetectorsSlot +// DiagnosticsClientListSiteDetectorsSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorsSlotPager // method. type DiagnosticsClientListSiteDetectorsSlotOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteDiagnosticCategoriesOptions contains the optional parameters for the DiagnosticsClient.ListSiteDiagnosticCategories +// DiagnosticsClientListSiteDiagnosticCategoriesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDiagnosticCategoriesPager // method. type DiagnosticsClientListSiteDiagnosticCategoriesOptions struct { // placeholder for future optional parameters } -// DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions contains the optional parameters for the DiagnosticsClient.ListSiteDiagnosticCategoriesSlot +// DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDiagnosticCategoriesSlotPager // method. type DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions struct { // placeholder for future optional parameters @@ -3324,7 +3415,7 @@ type DomainRecommendationSearchParameters struct { MaxDomainRecommendations *int32 `json:"maxDomainRecommendations,omitempty"` } -// DomainRegistrationProviderClientListOperationsOptions contains the optional parameters for the DomainRegistrationProviderClient.ListOperations +// DomainRegistrationProviderClientListOperationsOptions contains the optional parameters for the DomainRegistrationProviderClient.NewListOperationsPager // method. type DomainRegistrationProviderClientListOperationsOptions struct { // placeholder for future optional parameters @@ -3376,23 +3467,25 @@ type DomainsClientGetOwnershipIdentifierOptions struct { // placeholder for future optional parameters } -// DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.ListByResourceGroup method. +// DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.NewListByResourceGroupPager +// method. type DomainsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// DomainsClientListOptions contains the optional parameters for the DomainsClient.List method. +// DomainsClientListOptions contains the optional parameters for the DomainsClient.NewListPager method. type DomainsClientListOptions struct { // placeholder for future optional parameters } -// DomainsClientListOwnershipIdentifiersOptions contains the optional parameters for the DomainsClient.ListOwnershipIdentifiers +// DomainsClientListOwnershipIdentifiersOptions contains the optional parameters for the DomainsClient.NewListOwnershipIdentifiersPager // method. type DomainsClientListOwnershipIdentifiersOptions struct { // placeholder for future optional parameters } -// DomainsClientListRecommendationsOptions contains the optional parameters for the DomainsClient.ListRecommendations method. +// DomainsClientListRecommendationsOptions contains the optional parameters for the DomainsClient.NewListRecommendationsPager +// method. type DomainsClientListRecommendationsOptions struct { // placeholder for future optional parameters } @@ -3668,7 +3761,7 @@ type EnvironmentsClientGetDiagnosticsItemOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.GetInboundNetworkDependenciesEndpoints +// EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.NewGetInboundNetworkDependenciesEndpointsPager // method. type EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions struct { // placeholder for future optional parameters @@ -3685,13 +3778,13 @@ type EnvironmentsClientGetOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.GetOutboundNetworkDependenciesEndpoints +// EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.NewGetOutboundNetworkDependenciesEndpointsPager // method. type EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the EnvironmentsClient.GetPrivateEndpointConnectionList +// EnvironmentsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the EnvironmentsClient.NewGetPrivateEndpointConnectionListPager // method. type EnvironmentsClientGetPrivateEndpointConnectionListOptions struct { // placeholder for future optional parameters @@ -3719,19 +3812,20 @@ type EnvironmentsClientGetWorkerPoolOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListAppServicePlansOptions contains the optional parameters for the EnvironmentsClient.ListAppServicePlans +// EnvironmentsClientListAppServicePlansOptions contains the optional parameters for the EnvironmentsClient.NewListAppServicePlansPager // method. type EnvironmentsClientListAppServicePlansOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListByResourceGroupOptions contains the optional parameters for the EnvironmentsClient.ListByResourceGroup +// EnvironmentsClientListByResourceGroupOptions contains the optional parameters for the EnvironmentsClient.NewListByResourceGroupPager // method. type EnvironmentsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListCapacitiesOptions contains the optional parameters for the EnvironmentsClient.ListCapacities method. +// EnvironmentsClientListCapacitiesOptions contains the optional parameters for the EnvironmentsClient.NewListCapacitiesPager +// method. type EnvironmentsClientListCapacitiesOptions struct { // placeholder for future optional parameters } @@ -3741,31 +3835,31 @@ type EnvironmentsClientListDiagnosticsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListMultiRoleMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRoleMetricDefinitions +// EnvironmentsClientListMultiRoleMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRoleMetricDefinitionsPager // method. type EnvironmentsClientListMultiRoleMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions +// EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolInstanceMetricDefinitionsPager // method. type EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListMultiRolePoolSKUsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRolePoolSKUs +// EnvironmentsClientListMultiRolePoolSKUsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolSKUsPager // method. type EnvironmentsClientListMultiRolePoolSKUsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListMultiRolePoolsOptions contains the optional parameters for the EnvironmentsClient.ListMultiRolePools +// EnvironmentsClientListMultiRolePoolsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolsPager // method. type EnvironmentsClientListMultiRolePoolsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListMultiRoleUsagesOptions contains the optional parameters for the EnvironmentsClient.ListMultiRoleUsages +// EnvironmentsClientListMultiRoleUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRoleUsagesPager // method. type EnvironmentsClientListMultiRoleUsagesOptions struct { // placeholder for future optional parameters @@ -3776,12 +3870,12 @@ type EnvironmentsClientListOperationsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListOptions contains the optional parameters for the EnvironmentsClient.List method. +// EnvironmentsClientListOptions contains the optional parameters for the EnvironmentsClient.NewListPager method. type EnvironmentsClientListOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListUsagesOptions contains the optional parameters for the EnvironmentsClient.ListUsages method. +// EnvironmentsClientListUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListUsagesPager method. type EnvironmentsClientListUsagesOptions struct { // Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' // or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and @@ -3789,37 +3883,38 @@ type EnvironmentsClientListUsagesOptions struct { Filter *string } -// EnvironmentsClientListWebAppsOptions contains the optional parameters for the EnvironmentsClient.ListWebApps method. +// EnvironmentsClientListWebAppsOptions contains the optional parameters for the EnvironmentsClient.NewListWebAppsPager method. type EnvironmentsClientListWebAppsOptions struct { // Comma separated list of app properties to include. PropertiesToInclude *string } -// EnvironmentsClientListWebWorkerMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListWebWorkerMetricDefinitions +// EnvironmentsClientListWebWorkerMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListWebWorkerMetricDefinitionsPager // method. type EnvironmentsClientListWebWorkerMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListWebWorkerUsagesOptions contains the optional parameters for the EnvironmentsClient.ListWebWorkerUsages +// EnvironmentsClientListWebWorkerUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListWebWorkerUsagesPager // method. type EnvironmentsClientListWebWorkerUsagesOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.ListWorkerPoolInstanceMetricDefinitions +// EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolInstanceMetricDefinitionsPager // method. type EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListWorkerPoolSKUsOptions contains the optional parameters for the EnvironmentsClient.ListWorkerPoolSKUs +// EnvironmentsClientListWorkerPoolSKUsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolSKUsPager // method. type EnvironmentsClientListWorkerPoolSKUsOptions struct { // placeholder for future optional parameters } -// EnvironmentsClientListWorkerPoolsOptions contains the optional parameters for the EnvironmentsClient.ListWorkerPools method. +// EnvironmentsClientListWorkerPoolsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolsPager +// method. type EnvironmentsClientListWorkerPoolsOptions struct { // placeholder for future optional parameters } @@ -3932,7 +4027,7 @@ type Expression struct { Text *string `json:"text,omitempty"` // Anything - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // ExpressionRoot - The expression root. @@ -3950,7 +4045,7 @@ type ExpressionRoot struct { Text *string `json:"text,omitempty"` // Anything - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // ExpressionTraces - The expression traces. @@ -3961,7 +4056,7 @@ type ExpressionTraces struct { NextLink *string `json:"nextLink,omitempty"` // Anything - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // ExtendedLocation - Extended Location. @@ -4224,7 +4319,7 @@ type FunctionEnvelopeCollection struct { // FunctionEnvelopeProperties - FunctionEnvelope resource specific properties type FunctionEnvelopeProperties struct { // Config information. - Config interface{} `json:"config,omitempty"` + Config any `json:"config,omitempty"` // Config URI. ConfigHref *string `json:"config_href,omitempty"` @@ -4974,7 +5069,7 @@ type KeyValuePairStringObject struct { Key *string `json:"key,omitempty" azure:"ro"` // READ-ONLY; Anything - Value interface{} `json:"value,omitempty" azure:"ro"` + Value any `json:"value,omitempty" azure:"ro"` } // KubeEnvironment - A Kubernetes cluster specialized for web workloads by Azure App Service @@ -5126,13 +5221,13 @@ type KubeEnvironmentsClientGetOptions struct { // placeholder for future optional parameters } -// KubeEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the KubeEnvironmentsClient.ListByResourceGroup +// KubeEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the KubeEnvironmentsClient.NewListByResourceGroupPager // method. type KubeEnvironmentsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// KubeEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the KubeEnvironmentsClient.ListBySubscription +// KubeEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the KubeEnvironmentsClient.NewListBySubscriptionPager // method. type KubeEnvironmentsClientListBySubscriptionOptions struct { // placeholder for future optional parameters @@ -5648,8 +5743,8 @@ type OperationResult struct { EndTime *time.Time `json:"endTime,omitempty"` // Anything - Error interface{} `json:"error,omitempty"` - IterationCount *int32 `json:"iterationCount,omitempty"` + Error any `json:"error,omitempty"` + IterationCount *int32 `json:"iterationCount,omitempty"` // Gets the retry histories. RetryHistory []*RetryHistory `json:"retryHistory,omitempty"` @@ -5661,19 +5756,19 @@ type OperationResult struct { Status *WorkflowStatus `json:"status,omitempty"` // READ-ONLY; Gets the inputs. - Inputs interface{} `json:"inputs,omitempty" azure:"ro"` + Inputs any `json:"inputs,omitempty" azure:"ro"` // READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty" azure:"ro"` // READ-ONLY; Gets the outputs. - Outputs interface{} `json:"outputs,omitempty" azure:"ro"` + Outputs any `json:"outputs,omitempty" azure:"ro"` // READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty" azure:"ro"` // READ-ONLY; Gets the tracked properties. - TrackedProperties interface{} `json:"trackedProperties,omitempty" azure:"ro"` + TrackedProperties any `json:"trackedProperties,omitempty" azure:"ro"` // READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty" azure:"ro"` @@ -5691,7 +5786,7 @@ type OperationResultProperties struct { EndTime *time.Time `json:"endTime,omitempty"` // Anything - Error interface{} `json:"error,omitempty"` + Error any `json:"error,omitempty"` // The start time of the workflow scope repetition. StartTime *time.Time `json:"startTime,omitempty"` @@ -6039,7 +6134,8 @@ type PlansClientGetVnetGatewayOptions struct { // placeholder for future optional parameters } -// PlansClientListByResourceGroupOptions contains the optional parameters for the PlansClient.ListByResourceGroup method. +// PlansClientListByResourceGroupOptions contains the optional parameters for the PlansClient.NewListByResourceGroupPager +// method. type PlansClientListByResourceGroupOptions struct { // placeholder for future optional parameters } @@ -6055,12 +6151,13 @@ type PlansClientListHybridConnectionKeysOptions struct { // placeholder for future optional parameters } -// PlansClientListHybridConnectionsOptions contains the optional parameters for the PlansClient.ListHybridConnections method. +// PlansClientListHybridConnectionsOptions contains the optional parameters for the PlansClient.NewListHybridConnectionsPager +// method. type PlansClientListHybridConnectionsOptions struct { // placeholder for future optional parameters } -// PlansClientListOptions contains the optional parameters for the PlansClient.List method. +// PlansClientListOptions contains the optional parameters for the PlansClient.NewListPager method. type PlansClientListOptions struct { // Specify true to return all App Service plan properties. The default is false, which returns a subset of the properties. // Retrieval of all properties may increase the API latency. @@ -6072,7 +6169,7 @@ type PlansClientListRoutesForVnetOptions struct { // placeholder for future optional parameters } -// PlansClientListUsagesOptions contains the optional parameters for the PlansClient.ListUsages method. +// PlansClientListUsagesOptions contains the optional parameters for the PlansClient.NewListUsagesPager method. type PlansClientListUsagesOptions struct { // Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' // or name.value eq 'Metric2'). @@ -6084,13 +6181,13 @@ type PlansClientListVnetsOptions struct { // placeholder for future optional parameters } -// PlansClientListWebAppsByHybridConnectionOptions contains the optional parameters for the PlansClient.ListWebAppsByHybridConnection +// PlansClientListWebAppsByHybridConnectionOptions contains the optional parameters for the PlansClient.NewListWebAppsByHybridConnectionPager // method. type PlansClientListWebAppsByHybridConnectionOptions struct { // placeholder for future optional parameters } -// PlansClientListWebAppsOptions contains the optional parameters for the PlansClient.ListWebApps method. +// PlansClientListWebAppsOptions contains the optional parameters for the PlansClient.NewListWebAppsPager method. type PlansClientListWebAppsOptions struct { // Supported filter: $filter=state eq running. Returns only web apps that are currently running Filter *string @@ -6663,45 +6760,46 @@ type ProcessThreadInfoProperties struct { Identifier *int32 `json:"identifier,omitempty" azure:"ro"` } -// ProviderClientGetAvailableStacksOnPremOptions contains the optional parameters for the ProviderClient.GetAvailableStacksOnPrem +// ProviderClientGetAvailableStacksOnPremOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksOnPremPager // method. type ProviderClientGetAvailableStacksOnPremOptions struct { OSTypeSelected *ProviderOsTypeSelected } -// ProviderClientGetAvailableStacksOptions contains the optional parameters for the ProviderClient.GetAvailableStacks method. +// ProviderClientGetAvailableStacksOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksPager +// method. type ProviderClientGetAvailableStacksOptions struct { OSTypeSelected *ProviderOsTypeSelected } -// ProviderClientGetFunctionAppStacksForLocationOptions contains the optional parameters for the ProviderClient.GetFunctionAppStacksForLocation +// ProviderClientGetFunctionAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksForLocationPager // method. type ProviderClientGetFunctionAppStacksForLocationOptions struct { // Stack OS Type StackOsType *ProviderStackOsType } -// ProviderClientGetFunctionAppStacksOptions contains the optional parameters for the ProviderClient.GetFunctionAppStacks +// ProviderClientGetFunctionAppStacksOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksPager // method. type ProviderClientGetFunctionAppStacksOptions struct { // Stack OS Type StackOsType *ProviderStackOsType } -// ProviderClientGetWebAppStacksForLocationOptions contains the optional parameters for the ProviderClient.GetWebAppStacksForLocation +// ProviderClientGetWebAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksForLocationPager // method. type ProviderClientGetWebAppStacksForLocationOptions struct { // Stack OS Type StackOsType *ProviderStackOsType } -// ProviderClientGetWebAppStacksOptions contains the optional parameters for the ProviderClient.GetWebAppStacks method. +// ProviderClientGetWebAppStacksOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksPager method. type ProviderClientGetWebAppStacksOptions struct { // Stack OS Type StackOsType *ProviderStackOsType } -// ProviderClientListOperationsOptions contains the optional parameters for the ProviderClient.ListOperations method. +// ProviderClientListOperationsOptions contains the optional parameters for the ProviderClient.NewListOperationsPager method. type ProviderClientListOperationsOptions struct { // placeholder for future optional parameters } @@ -7076,7 +7174,7 @@ type RecommendationsClientGetRuleDetailsByWebAppOptions struct { UpdateSeen *bool } -// RecommendationsClientListHistoryForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.ListHistoryForHostingEnvironment +// RecommendationsClientListHistoryForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.NewListHistoryForHostingEnvironmentPager // method. type RecommendationsClientListHistoryForHostingEnvironmentOptions struct { // Specify false to return all recommendations. The default is true, which returns only expired recommendations. @@ -7087,7 +7185,7 @@ type RecommendationsClientListHistoryForHostingEnvironmentOptions struct { Filter *string } -// RecommendationsClientListHistoryForWebAppOptions contains the optional parameters for the RecommendationsClient.ListHistoryForWebApp +// RecommendationsClientListHistoryForWebAppOptions contains the optional parameters for the RecommendationsClient.NewListHistoryForWebAppPager // method. type RecommendationsClientListHistoryForWebAppOptions struct { // Specify false to return all recommendations. The default is true, which returns only expired recommendations. @@ -7098,7 +7196,7 @@ type RecommendationsClientListHistoryForWebAppOptions struct { Filter *string } -// RecommendationsClientListOptions contains the optional parameters for the RecommendationsClient.List method. +// RecommendationsClientListOptions contains the optional parameters for the RecommendationsClient.NewListPager method. type RecommendationsClientListOptions struct { // Specify true to return only the most critical recommendations. The default is false, which returns all recommendations. Featured *bool @@ -7108,7 +7206,7 @@ type RecommendationsClientListOptions struct { Filter *string } -// RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.ListRecommendedRulesForHostingEnvironment +// RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.NewListRecommendedRulesForHostingEnvironmentPager // method. type RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions struct { // Specify true to return only the most critical recommendations. The default is false, which returns all recommendations. @@ -7118,7 +7216,7 @@ type RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions struc Filter *string } -// RecommendationsClientListRecommendedRulesForWebAppOptions contains the optional parameters for the RecommendationsClient.ListRecommendedRulesForWebApp +// RecommendationsClientListRecommendedRulesForWebAppOptions contains the optional parameters for the RecommendationsClient.NewListRecommendedRulesForWebAppPager // method. type RecommendationsClientListRecommendedRulesForWebAppOptions struct { // Specify true to return only the most critical recommendations. The default is false, which returns all recommendations. @@ -7373,7 +7471,7 @@ type RepetitionIndex struct { // Request - A request. type Request struct { // A list of all the headers attached to the request. - Headers interface{} `json:"headers,omitempty"` + Headers any `json:"headers,omitempty"` // The HTTP method used for the request. Method *string `json:"method,omitempty"` @@ -7496,25 +7594,26 @@ type ResourceHealthMetadataClientGetBySiteSlotOptions struct { // placeholder for future optional parameters } -// ResourceHealthMetadataClientListByResourceGroupOptions contains the optional parameters for the ResourceHealthMetadataClient.ListByResourceGroup +// ResourceHealthMetadataClientListByResourceGroupOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListByResourceGroupPager // method. type ResourceHealthMetadataClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// ResourceHealthMetadataClientListBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.ListBySite +// ResourceHealthMetadataClientListBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListBySitePager // method. type ResourceHealthMetadataClientListBySiteOptions struct { // placeholder for future optional parameters } -// ResourceHealthMetadataClientListBySiteSlotOptions contains the optional parameters for the ResourceHealthMetadataClient.ListBySiteSlot +// ResourceHealthMetadataClientListBySiteSlotOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListBySiteSlotPager // method. type ResourceHealthMetadataClientListBySiteSlotOptions struct { // placeholder for future optional parameters } -// ResourceHealthMetadataClientListOptions contains the optional parameters for the ResourceHealthMetadataClient.List method. +// ResourceHealthMetadataClientListOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListPager +// method. type ResourceHealthMetadataClientListOptions struct { // placeholder for future optional parameters } @@ -7636,7 +7735,7 @@ type Response struct { BodyLink *ContentLink `json:"bodyLink,omitempty"` // A list of all the headers attached to the response. - Headers interface{} `json:"headers,omitempty"` + Headers any `json:"headers,omitempty"` // The status code of the response. StatusCode *int32 `json:"statusCode,omitempty"` @@ -8053,8 +8152,8 @@ type SiteAuthSettingsProperties struct { // form "key=value". AdditionalLoginParams []*string `json:"additionalLoginParams,omitempty"` - // Allowed audience values to consider when validating JWTs issued by Azure Active Directory. Note that the ClientID value - // is always considered an allowed audience, regardless of this setting. + // Allowed audience values to consider when validating JSON Web Tokens issued by Azure Active Directory. Note that the ClientID + // value is always considered an allowed audience, regardless of this setting. AllowedAudiences []*string `json:"allowedAudiences,omitempty"` // External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part @@ -8310,6 +8409,10 @@ type SiteConfig struct { // Document root. DocumentRoot *string `json:"documentRoot,omitempty"` + // Maximum number of workers that a site can scale out to. This setting only applies to apps in plans where ElasticScaleEnabled + // is true + ElasticWebAppScaleLimit *int32 `json:"elasticWebAppScaleLimit,omitempty"` + // This is work around for polymorphic types. Experiments *Experiments `json:"experiments,omitempty"` @@ -8340,6 +8443,9 @@ type SiteConfig struct { // IP security restrictions for main. IPSecurityRestrictions []*IPSecurityRestriction `json:"ipSecurityRestrictions,omitempty"` + // Default action for main access restriction if no rules are matched. + IPSecurityRestrictionsDefaultAction *DefaultAction `json:"ipSecurityRestrictionsDefaultAction,omitempty"` + // Java container. JavaContainer *string `json:"javaContainer,omitempty"` @@ -8373,6 +8479,9 @@ type SiteConfig struct { // Managed Service Identity Id ManagedServiceIdentityID *int32 `json:"managedServiceIdentityId,omitempty"` + // Application metadata. This property cannot be retrieved, since it may contain secrets. + Metadata []*NameValuePair `json:"metadata,omitempty"` + // MinTlsVersion: configures the minimum version of TLS required for SSL requests MinTLSVersion *SupportedTLSVersions `json:"minTlsVersion,omitempty"` @@ -8424,6 +8533,9 @@ type SiteConfig struct { // IP security restrictions for scm. ScmIPSecurityRestrictions []*IPSecurityRestriction `json:"scmIpSecurityRestrictions,omitempty"` + // Default action for scm access restriction if no rules are matched. + ScmIPSecurityRestrictionsDefaultAction *DefaultAction `json:"scmIpSecurityRestrictionsDefaultAction,omitempty"` + // IP security restrictions for scm to use main. ScmIPSecurityRestrictionsUseMain *bool `json:"scmIpSecurityRestrictionsUseMain,omitempty"` @@ -8943,6 +9055,11 @@ type SiteProperties struct { // Identity to use for Key Vault Reference authentication. KeyVaultReferenceIdentity *string `json:"keyVaultReferenceIdentity,omitempty"` + // Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the + // form + // /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} + ManagedEnvironmentID *string `json:"managedEnvironmentId,omitempty"` + // Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"` @@ -9360,7 +9477,7 @@ type SourceControlProperties struct { // StackMajorVersion - Application stack major version. type StackMajorVersion struct { // Example: All the function apps need AppSetting: "FUNCTIONSWORKERRUNTIME" to be set stack name - AppSettingsDictionary map[string]interface{} `json:"appSettingsDictionary,omitempty"` + AppSettingsDictionary map[string]any `json:"appSettingsDictionary,omitempty"` // true if this supports Application Insights; otherwise, false. ApplicationInsights *bool `json:"applicationInsights,omitempty"` @@ -9387,7 +9504,7 @@ type StackMajorVersion struct { RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0 - SiteConfigPropertiesDictionary map[string]interface{} `json:"siteConfigPropertiesDictionary,omitempty"` + SiteConfigPropertiesDictionary map[string]any `json:"siteConfigPropertiesDictionary,omitempty"` } // StackMinorVersion - Application stack minor version. @@ -9489,6 +9606,9 @@ type StaticSite struct { // READ-ONLY; The custom domains associated with this static site. CustomDomains []*string `json:"customDomains,omitempty" azure:"ro"` + // READ-ONLY; Database connections for the static site + DatabaseConnections []*DatabaseConnectionOverview `json:"databaseConnections,omitempty" azure:"ro"` + // READ-ONLY; The default autogenerated hostname for the static site. DefaultHostname *string `json:"defaultHostname,omitempty" azure:"ro"` @@ -9535,6 +9655,51 @@ type StaticSiteARMResource struct { Type *string `json:"type,omitempty" azure:"ro"` } +// StaticSiteBasicAuthPropertiesARMResource - Static site basic auth properties ARM resource. +type StaticSiteBasicAuthPropertiesARMResource struct { + // Kind of resource. + Kind *string `json:"kind,omitempty"` + + // StaticSiteBasicAuthPropertiesARMResource resource specific properties + Properties *StaticSiteBasicAuthPropertiesARMResourceProperties `json:"properties,omitempty"` + + // READ-ONLY; Resource Id. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; Resource Name. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource type. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// StaticSiteBasicAuthPropertiesARMResourceProperties - StaticSiteBasicAuthPropertiesARMResource resource specific properties +type StaticSiteBasicAuthPropertiesARMResourceProperties struct { + // REQUIRED; State indicating if basic auth is enabled and for what environments it is active. + ApplicableEnvironmentsMode *string `json:"applicableEnvironmentsMode,omitempty"` + + // The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments. + Environments []*string `json:"environments,omitempty"` + + // The password for basic auth. + Password *string `json:"password,omitempty"` + + // Url to the secret in Key Vault. + SecretURL *string `json:"secretUrl,omitempty"` + + // READ-ONLY; State indicating if basic auth has a secret and what type it is. + SecretState *string `json:"secretState,omitempty" azure:"ro"` +} + +// StaticSiteBasicAuthPropertiesCollection - Collection of static site basic auth. +type StaticSiteBasicAuthPropertiesCollection struct { + // REQUIRED; Collection of resources. + Value []*StaticSiteBasicAuthPropertiesARMResource `json:"value,omitempty"` + + // READ-ONLY; Link to next page of resources. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` +} + // StaticSiteBuildARMResource - Static Site Build ARM resource. type StaticSiteBuildARMResource struct { // Kind of resource. @@ -9561,6 +9726,9 @@ type StaticSiteBuildARMResourceProperties struct { // READ-ONLY; When this build was created. CreatedTimeUTC *time.Time `json:"createdTimeUtc,omitempty" azure:"ro"` + // READ-ONLY; Database connections for the static site build + DatabaseConnections []*DatabaseConnectionOverview `json:"databaseConnections,omitempty" azure:"ro"` + // READ-ONLY; The hostname for a static site build. Hostname *string `json:"hostname,omitempty" azure:"ro"` @@ -9698,6 +9866,18 @@ type StaticSiteCustomDomainRequestPropertiesARMResourceProperties struct { ValidationMethod *string `json:"validationMethod,omitempty"` } +// StaticSiteDatabaseConnectionConfigurationFileOverview - A database connection configuration file +type StaticSiteDatabaseConnectionConfigurationFileOverview struct { + // READ-ONLY; The Base64 encoding of the file contents. + Contents *string `json:"contents,omitempty" azure:"ro"` + + // READ-ONLY; The name of the configuration file. + FileName *string `json:"fileName,omitempty" azure:"ro"` + + // READ-ONLY; The type of configuration file. + Type *string `json:"type,omitempty" azure:"ro"` +} + // StaticSiteFunctionOverviewARMResource - Static Site Function Overview ARM resource. type StaticSiteFunctionOverviewARMResource struct { // Kind of resource. @@ -10189,6 +10369,24 @@ type StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions str ResumeToken string } +// StaticSitesClientCreateOrUpdateBasicAuthOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateBasicAuth +// method. +type StaticSitesClientCreateOrUpdateBasicAuthOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientCreateOrUpdateBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateBuildDatabaseConnection +// method. +type StaticSitesClientCreateOrUpdateBuildDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientCreateOrUpdateDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateDatabaseConnection +// method. +type StaticSitesClientCreateOrUpdateDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + // StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateStaticSiteAppSettings // method. type StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions struct { @@ -10219,6 +10417,18 @@ type StaticSitesClientCreateUserRolesInvitationLinkOptions struct { // placeholder for future optional parameters } +// StaticSitesClientDeleteBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.DeleteBuildDatabaseConnection +// method. +type StaticSitesClientDeleteBuildDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientDeleteDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.DeleteDatabaseConnection +// method. +type StaticSitesClientDeleteDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + // StaticSitesClientDeleteStaticSiteUserOptions contains the optional parameters for the StaticSitesClient.DeleteStaticSiteUser // method. type StaticSitesClientDeleteStaticSiteUserOptions struct { @@ -10237,6 +10447,59 @@ type StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions struct // placeholder for future optional parameters } +// StaticSitesClientGetBasicAuthOptions contains the optional parameters for the StaticSitesClient.GetBasicAuth method. +type StaticSitesClientGetBasicAuthOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.GetBuildDatabaseConnection +// method. +type StaticSitesClientGetBuildDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetBuildDatabaseConnectionWithDetailsOptions contains the optional parameters for the StaticSitesClient.GetBuildDatabaseConnectionWithDetails +// method. +type StaticSitesClientGetBuildDatabaseConnectionWithDetailsOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetBuildDatabaseConnectionsOptions contains the optional parameters for the StaticSitesClient.NewGetBuildDatabaseConnectionsPager +// method. +type StaticSitesClientGetBuildDatabaseConnectionsOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions contains the optional parameters for the StaticSitesClient.NewGetBuildDatabaseConnectionsWithDetailsPager +// method. +type StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.GetDatabaseConnection +// method. +type StaticSitesClientGetDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetDatabaseConnectionWithDetailsOptions contains the optional parameters for the StaticSitesClient.GetDatabaseConnectionWithDetails +// method. +type StaticSitesClientGetDatabaseConnectionWithDetailsOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetDatabaseConnectionsOptions contains the optional parameters for the StaticSitesClient.NewGetDatabaseConnectionsPager +// method. +type StaticSitesClientGetDatabaseConnectionsOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientGetDatabaseConnectionsWithDetailsOptions contains the optional parameters for the StaticSitesClient.NewGetDatabaseConnectionsWithDetailsPager +// method. +type StaticSitesClientGetDatabaseConnectionsWithDetailsOptions struct { + // placeholder for future optional parameters +} + // StaticSitesClientGetLinkedBackendForBuildOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackendForBuild // method. type StaticSitesClientGetLinkedBackendForBuildOptions struct { @@ -10248,19 +10511,19 @@ type StaticSitesClientGetLinkedBackendOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetLinkedBackendsForBuildOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackendsForBuild +// StaticSitesClientGetLinkedBackendsForBuildOptions contains the optional parameters for the StaticSitesClient.NewGetLinkedBackendsForBuildPager // method. type StaticSitesClientGetLinkedBackendsForBuildOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetLinkedBackendsOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackends +// StaticSitesClientGetLinkedBackendsOptions contains the optional parameters for the StaticSitesClient.NewGetLinkedBackendsPager // method. type StaticSitesClientGetLinkedBackendsOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the StaticSitesClient.GetPrivateEndpointConnectionList +// StaticSitesClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the StaticSitesClient.NewGetPrivateEndpointConnectionListPager // method. type StaticSitesClientGetPrivateEndpointConnectionListOptions struct { // placeholder for future optional parameters @@ -10284,7 +10547,7 @@ type StaticSitesClientGetStaticSiteBuildOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetStaticSiteBuildsOptions contains the optional parameters for the StaticSitesClient.GetStaticSiteBuilds +// StaticSitesClientGetStaticSiteBuildsOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSiteBuildsPager // method. type StaticSitesClientGetStaticSiteBuildsOptions struct { // placeholder for future optional parameters @@ -10301,7 +10564,7 @@ type StaticSitesClientGetStaticSiteOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetStaticSitesByResourceGroupOptions contains the optional parameters for the StaticSitesClient.GetStaticSitesByResourceGroup +// StaticSitesClientGetStaticSitesByResourceGroupOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSitesByResourceGroupPager // method. type StaticSitesClientGetStaticSitesByResourceGroupOptions struct { // placeholder for future optional parameters @@ -10319,19 +10582,25 @@ type StaticSitesClientGetUserProvidedFunctionAppForStaticSiteOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.GetUserProvidedFunctionAppsForStaticSiteBuild +// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSiteBuildPager // method. type StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions struct { // placeholder for future optional parameters } -// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetUserProvidedFunctionAppsForStaticSite +// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions contains the optional parameters for the StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSitePager // method. type StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions struct { // placeholder for future optional parameters } -// StaticSitesClientListOptions contains the optional parameters for the StaticSitesClient.List method. +// StaticSitesClientListBasicAuthOptions contains the optional parameters for the StaticSitesClient.NewListBasicAuthPager +// method. +type StaticSitesClientListBasicAuthOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientListOptions contains the optional parameters for the StaticSitesClient.NewListPager method. type StaticSitesClientListOptions struct { // placeholder for future optional parameters } @@ -10354,7 +10623,7 @@ type StaticSitesClientListStaticSiteBuildFunctionAppSettingsOptions struct { // placeholder for future optional parameters } -// StaticSitesClientListStaticSiteBuildFunctionsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteBuildFunctions +// StaticSitesClientListStaticSiteBuildFunctionsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteBuildFunctionsPager // method. type StaticSitesClientListStaticSiteBuildFunctionsOptions struct { // placeholder for future optional parameters @@ -10366,7 +10635,7 @@ type StaticSitesClientListStaticSiteConfiguredRolesOptions struct { // placeholder for future optional parameters } -// StaticSitesClientListStaticSiteCustomDomainsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteCustomDomains +// StaticSitesClientListStaticSiteCustomDomainsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteCustomDomainsPager // method. type StaticSitesClientListStaticSiteCustomDomainsOptions struct { // placeholder for future optional parameters @@ -10378,7 +10647,7 @@ type StaticSitesClientListStaticSiteFunctionAppSettingsOptions struct { // placeholder for future optional parameters } -// StaticSitesClientListStaticSiteFunctionsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteFunctions +// StaticSitesClientListStaticSiteFunctionsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteFunctionsPager // method. type StaticSitesClientListStaticSiteFunctionsOptions struct { // placeholder for future optional parameters @@ -10390,7 +10659,7 @@ type StaticSitesClientListStaticSiteSecretsOptions struct { // placeholder for future optional parameters } -// StaticSitesClientListStaticSiteUsersOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteUsers +// StaticSitesClientListStaticSiteUsersOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteUsersPager // method. type StaticSitesClientListStaticSiteUsersOptions struct { // placeholder for future optional parameters @@ -10420,6 +10689,18 @@ type StaticSitesClientUnlinkBackendOptions struct { IsCleaningAuthConfig *bool } +// StaticSitesClientUpdateBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.UpdateBuildDatabaseConnection +// method. +type StaticSitesClientUpdateBuildDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + +// StaticSitesClientUpdateDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.UpdateDatabaseConnection +// method. +type StaticSitesClientUpdateDatabaseConnectionOptions struct { + // placeholder for future optional parameters +} + // StaticSitesClientUpdateStaticSiteOptions contains the optional parameters for the StaticSitesClient.UpdateStaticSite method. type StaticSitesClientUpdateStaticSiteOptions struct { // placeholder for future optional parameters @@ -10773,13 +11054,13 @@ type TopLevelDomainsClientGetOptions struct { // placeholder for future optional parameters } -// TopLevelDomainsClientListAgreementsOptions contains the optional parameters for the TopLevelDomainsClient.ListAgreements +// TopLevelDomainsClientListAgreementsOptions contains the optional parameters for the TopLevelDomainsClient.NewListAgreementsPager // method. type TopLevelDomainsClientListAgreementsOptions struct { // placeholder for future optional parameters } -// TopLevelDomainsClientListOptions contains the optional parameters for the TopLevelDomainsClient.List method. +// TopLevelDomainsClientListOptions contains the optional parameters for the TopLevelDomainsClient.NewListPager method. type TopLevelDomainsClientListOptions struct { // placeholder for future optional parameters } @@ -10916,7 +11197,7 @@ type TriggeredWebJobProperties struct { SchedulerLogsURL *string `json:"scheduler_logs_url,omitempty"` // Job settings. - Settings map[string]interface{} `json:"settings,omitempty"` + Settings map[string]any `json:"settings,omitempty"` // Checks if Customer provided storage account is required StorageAccountRequired *bool `json:"storageAccountRequired,omitempty"` @@ -12219,6 +12500,20 @@ type WebAppsClientDeleteVnetConnectionSlotOptions struct { // placeholder for future optional parameters } +// WebAppsClientDeployWorkflowArtifactsOptions contains the optional parameters for the WebAppsClient.DeployWorkflowArtifacts +// method. +type WebAppsClientDeployWorkflowArtifactsOptions struct { + // Application settings and files of the workflow. + WorkflowArtifacts *WorkflowArtifacts +} + +// WebAppsClientDeployWorkflowArtifactsSlotOptions contains the optional parameters for the WebAppsClient.DeployWorkflowArtifactsSlot +// method. +type WebAppsClientDeployWorkflowArtifactsSlotOptions struct { + // Application settings and files of the workflow. + WorkflowArtifacts *WorkflowArtifacts +} + // WebAppsClientDiscoverBackupOptions contains the optional parameters for the WebAppsClient.DiscoverBackup method. type WebAppsClientDiscoverBackupOptions struct { // placeholder for future optional parameters @@ -12253,13 +12548,13 @@ type WebAppsClientGetAppSettingKeyVaultReferenceSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientGetAppSettingsKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.GetAppSettingsKeyVaultReferences +// WebAppsClientGetAppSettingsKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.NewGetAppSettingsKeyVaultReferencesPager // method. type WebAppsClientGetAppSettingsKeyVaultReferencesOptions struct { // placeholder for future optional parameters } -// WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.GetAppSettingsKeyVaultReferencesSlot +// WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.NewGetAppSettingsKeyVaultReferencesSlotPager // method. type WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions struct { // placeholder for future optional parameters @@ -12522,6 +12817,12 @@ type WebAppsClientGetInstanceProcessSlotOptions struct { // placeholder for future optional parameters } +// WebAppsClientGetInstanceWorkflowSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceWorkflowSlot +// method. +type WebAppsClientGetInstanceWorkflowSlotOptions struct { + // placeholder for future optional parameters +} + // WebAppsClientGetMSDeployLogOptions contains the optional parameters for the WebAppsClient.GetMSDeployLog method. type WebAppsClientGetMSDeployLogOptions struct { // placeholder for future optional parameters @@ -12630,13 +12931,13 @@ type WebAppsClientGetPrivateAccessSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnectionList +// WebAppsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the WebAppsClient.NewGetPrivateEndpointConnectionListPager // method. type WebAppsClientGetPrivateEndpointConnectionListOptions struct { // placeholder for future optional parameters } -// WebAppsClientGetPrivateEndpointConnectionListSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnectionListSlot +// WebAppsClientGetPrivateEndpointConnectionListSlotOptions contains the optional parameters for the WebAppsClient.NewGetPrivateEndpointConnectionListSlotPager // method. type WebAppsClientGetPrivateEndpointConnectionListSlotOptions struct { // placeholder for future optional parameters @@ -12741,13 +13042,13 @@ type WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferences +// WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesPager // method. type WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions struct { // placeholder for future optional parameters } -// WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferencesSlot +// WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesSlotPager // method. type WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions struct { // placeholder for future optional parameters @@ -12870,6 +13171,11 @@ type WebAppsClientGetWebSiteContainerLogsSlotOptions struct { // placeholder for future optional parameters } +// WebAppsClientGetWorkflowOptions contains the optional parameters for the WebAppsClient.GetWorkflow method. +type WebAppsClientGetWorkflowOptions struct { + // placeholder for future optional parameters +} + // WebAppsClientIsCloneableOptions contains the optional parameters for the WebAppsClient.IsCloneable method. type WebAppsClientIsCloneableOptions struct { // placeholder for future optional parameters @@ -12916,53 +13222,55 @@ type WebAppsClientListBackupStatusSecretsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListBackupsOptions contains the optional parameters for the WebAppsClient.ListBackups method. +// WebAppsClientListBackupsOptions contains the optional parameters for the WebAppsClient.NewListBackupsPager method. type WebAppsClientListBackupsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListBackupsSlotOptions contains the optional parameters for the WebAppsClient.ListBackupsSlot method. +// WebAppsClientListBackupsSlotOptions contains the optional parameters for the WebAppsClient.NewListBackupsSlotPager method. type WebAppsClientListBackupsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListBasicPublishingCredentialsPoliciesOptions contains the optional parameters for the WebAppsClient.ListBasicPublishingCredentialsPolicies +// WebAppsClientListBasicPublishingCredentialsPoliciesOptions contains the optional parameters for the WebAppsClient.NewListBasicPublishingCredentialsPoliciesPager // method. type WebAppsClientListBasicPublishingCredentialsPoliciesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions contains the optional parameters for the WebAppsClient.ListBasicPublishingCredentialsPoliciesSlot +// WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions contains the optional parameters for the WebAppsClient.NewListBasicPublishingCredentialsPoliciesSlotPager // method. type WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListByResourceGroupOptions contains the optional parameters for the WebAppsClient.ListByResourceGroup method. +// WebAppsClientListByResourceGroupOptions contains the optional parameters for the WebAppsClient.NewListByResourceGroupPager +// method. type WebAppsClientListByResourceGroupOptions struct { // Specify true to include deployment slots in results. The default is false, which only gives you the production slot of // all apps. IncludeSlots *bool } -// WebAppsClientListConfigurationSnapshotInfoOptions contains the optional parameters for the WebAppsClient.ListConfigurationSnapshotInfo +// WebAppsClientListConfigurationSnapshotInfoOptions contains the optional parameters for the WebAppsClient.NewListConfigurationSnapshotInfoPager // method. type WebAppsClientListConfigurationSnapshotInfoOptions struct { // placeholder for future optional parameters } -// WebAppsClientListConfigurationSnapshotInfoSlotOptions contains the optional parameters for the WebAppsClient.ListConfigurationSnapshotInfoSlot +// WebAppsClientListConfigurationSnapshotInfoSlotOptions contains the optional parameters for the WebAppsClient.NewListConfigurationSnapshotInfoSlotPager // method. type WebAppsClientListConfigurationSnapshotInfoSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListConfigurationsOptions contains the optional parameters for the WebAppsClient.ListConfigurations method. +// WebAppsClientListConfigurationsOptions contains the optional parameters for the WebAppsClient.NewListConfigurationsPager +// method. type WebAppsClientListConfigurationsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListConfigurationsSlotOptions contains the optional parameters for the WebAppsClient.ListConfigurationsSlot +// WebAppsClientListConfigurationsSlotOptions contains the optional parameters for the WebAppsClient.NewListConfigurationsSlotPager // method. type WebAppsClientListConfigurationsSlotOptions struct { // placeholder for future optional parameters @@ -12980,13 +13288,13 @@ type WebAppsClientListConnectionStringsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListContinuousWebJobsOptions contains the optional parameters for the WebAppsClient.ListContinuousWebJobs +// WebAppsClientListContinuousWebJobsOptions contains the optional parameters for the WebAppsClient.NewListContinuousWebJobsPager // method. type WebAppsClientListContinuousWebJobsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListContinuousWebJobsSlotOptions contains the optional parameters for the WebAppsClient.ListContinuousWebJobsSlot +// WebAppsClientListContinuousWebJobsSlotOptions contains the optional parameters for the WebAppsClient.NewListContinuousWebJobsSlotPager // method. type WebAppsClientListContinuousWebJobsSlotOptions struct { // placeholder for future optional parameters @@ -13003,23 +13311,24 @@ type WebAppsClientListDeploymentLogSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListDeploymentsOptions contains the optional parameters for the WebAppsClient.ListDeployments method. +// WebAppsClientListDeploymentsOptions contains the optional parameters for the WebAppsClient.NewListDeploymentsPager method. type WebAppsClientListDeploymentsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListDeploymentsSlotOptions contains the optional parameters for the WebAppsClient.ListDeploymentsSlot method. +// WebAppsClientListDeploymentsSlotOptions contains the optional parameters for the WebAppsClient.NewListDeploymentsSlotPager +// method. type WebAppsClientListDeploymentsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListDomainOwnershipIdentifiersOptions contains the optional parameters for the WebAppsClient.ListDomainOwnershipIdentifiers +// WebAppsClientListDomainOwnershipIdentifiersOptions contains the optional parameters for the WebAppsClient.NewListDomainOwnershipIdentifiersPager // method. type WebAppsClientListDomainOwnershipIdentifiersOptions struct { // placeholder for future optional parameters } -// WebAppsClientListDomainOwnershipIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.ListDomainOwnershipIdentifiersSlot +// WebAppsClientListDomainOwnershipIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.NewListDomainOwnershipIdentifiersSlotPager // method. type WebAppsClientListDomainOwnershipIdentifiersSlotOptions struct { // placeholder for future optional parameters @@ -13046,7 +13355,7 @@ type WebAppsClientListFunctionSecretsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListFunctionsOptions contains the optional parameters for the WebAppsClient.ListFunctions method. +// WebAppsClientListFunctionsOptions contains the optional parameters for the WebAppsClient.NewListFunctionsPager method. type WebAppsClientListFunctionsOptions struct { // placeholder for future optional parameters } @@ -13061,12 +13370,13 @@ type WebAppsClientListHostKeysSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListHostNameBindingsOptions contains the optional parameters for the WebAppsClient.ListHostNameBindings method. +// WebAppsClientListHostNameBindingsOptions contains the optional parameters for the WebAppsClient.NewListHostNameBindingsPager +// method. type WebAppsClientListHostNameBindingsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListHostNameBindingsSlotOptions contains the optional parameters for the WebAppsClient.ListHostNameBindingsSlot +// WebAppsClientListHostNameBindingsSlotOptions contains the optional parameters for the WebAppsClient.NewListHostNameBindingsSlotPager // method. type WebAppsClientListHostNameBindingsSlotOptions struct { // placeholder for future optional parameters @@ -13084,60 +13394,66 @@ type WebAppsClientListHybridConnectionsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceFunctionsSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceFunctionsSlot +// WebAppsClientListInstanceFunctionsSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceFunctionsSlotPager // method. type WebAppsClientListInstanceFunctionsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceIdentifiersOptions contains the optional parameters for the WebAppsClient.ListInstanceIdentifiers +// WebAppsClientListInstanceIdentifiersOptions contains the optional parameters for the WebAppsClient.NewListInstanceIdentifiersPager // method. type WebAppsClientListInstanceIdentifiersOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceIdentifiersSlot +// WebAppsClientListInstanceIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceIdentifiersSlotPager // method. type WebAppsClientListInstanceIdentifiersSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceProcessModulesOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessModules +// WebAppsClientListInstanceProcessModulesOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessModulesPager // method. type WebAppsClientListInstanceProcessModulesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessModulesSlot +// WebAppsClientListInstanceProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessModulesSlotPager // method. type WebAppsClientListInstanceProcessModulesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceProcessThreadsOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessThreads +// WebAppsClientListInstanceProcessThreadsOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessThreadsPager // method. type WebAppsClientListInstanceProcessThreadsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessThreadsSlot +// WebAppsClientListInstanceProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessThreadsSlotPager // method. type WebAppsClientListInstanceProcessThreadsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceProcessesOptions contains the optional parameters for the WebAppsClient.ListInstanceProcesses +// WebAppsClientListInstanceProcessesOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessesPager // method. type WebAppsClientListInstanceProcessesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListInstanceProcessesSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessesSlot +// WebAppsClientListInstanceProcessesSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessesSlotPager // method. type WebAppsClientListInstanceProcessesSlotOptions struct { // placeholder for future optional parameters } +// WebAppsClientListInstanceWorkflowsSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceWorkflowsSlotPager +// method. +type WebAppsClientListInstanceWorkflowsSlotOptions struct { + // placeholder for future optional parameters +} + // WebAppsClientListMetadataOptions contains the optional parameters for the WebAppsClient.ListMetadata method. type WebAppsClientListMetadataOptions struct { // placeholder for future optional parameters @@ -13159,12 +13475,13 @@ type WebAppsClientListNetworkFeaturesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListOptions contains the optional parameters for the WebAppsClient.List method. +// WebAppsClientListOptions contains the optional parameters for the WebAppsClient.NewListPager method. type WebAppsClientListOptions struct { // placeholder for future optional parameters } -// WebAppsClientListPerfMonCountersOptions contains the optional parameters for the WebAppsClient.ListPerfMonCounters method. +// WebAppsClientListPerfMonCountersOptions contains the optional parameters for the WebAppsClient.NewListPerfMonCountersPager +// method. type WebAppsClientListPerfMonCountersOptions struct { // Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z // and endTime eq 2014-12-31T23:59:59Z and timeGrain eq @@ -13172,7 +13489,7 @@ type WebAppsClientListPerfMonCountersOptions struct { Filter *string } -// WebAppsClientListPerfMonCountersSlotOptions contains the optional parameters for the WebAppsClient.ListPerfMonCountersSlot +// WebAppsClientListPerfMonCountersSlotOptions contains the optional parameters for the WebAppsClient.NewListPerfMonCountersSlotPager // method. type WebAppsClientListPerfMonCountersSlotOptions struct { // Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z @@ -13192,51 +13509,54 @@ type WebAppsClientListPremierAddOnsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProcessModulesOptions contains the optional parameters for the WebAppsClient.ListProcessModules method. +// WebAppsClientListProcessModulesOptions contains the optional parameters for the WebAppsClient.NewListProcessModulesPager +// method. type WebAppsClientListProcessModulesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.ListProcessModulesSlot +// WebAppsClientListProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.NewListProcessModulesSlotPager // method. type WebAppsClientListProcessModulesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProcessThreadsOptions contains the optional parameters for the WebAppsClient.ListProcessThreads method. +// WebAppsClientListProcessThreadsOptions contains the optional parameters for the WebAppsClient.NewListProcessThreadsPager +// method. type WebAppsClientListProcessThreadsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.ListProcessThreadsSlot +// WebAppsClientListProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.NewListProcessThreadsSlotPager // method. type WebAppsClientListProcessThreadsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProcessesOptions contains the optional parameters for the WebAppsClient.ListProcesses method. +// WebAppsClientListProcessesOptions contains the optional parameters for the WebAppsClient.NewListProcessesPager method. type WebAppsClientListProcessesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProcessesSlotOptions contains the optional parameters for the WebAppsClient.ListProcessesSlot method. +// WebAppsClientListProcessesSlotOptions contains the optional parameters for the WebAppsClient.NewListProcessesSlotPager +// method. type WebAppsClientListProcessesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListProductionSiteDeploymentStatusesOptions contains the optional parameters for the WebAppsClient.ListProductionSiteDeploymentStatuses +// WebAppsClientListProductionSiteDeploymentStatusesOptions contains the optional parameters for the WebAppsClient.NewListProductionSiteDeploymentStatusesPager // method. type WebAppsClientListProductionSiteDeploymentStatusesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListPublicCertificatesOptions contains the optional parameters for the WebAppsClient.ListPublicCertificates +// WebAppsClientListPublicCertificatesOptions contains the optional parameters for the WebAppsClient.NewListPublicCertificatesPager // method. type WebAppsClientListPublicCertificatesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListPublicCertificatesSlotOptions contains the optional parameters for the WebAppsClient.ListPublicCertificatesSlot +// WebAppsClientListPublicCertificatesSlotOptions contains the optional parameters for the WebAppsClient.NewListPublicCertificatesSlotPager // method. type WebAppsClientListPublicCertificatesSlotOptions struct { // placeholder for future optional parameters @@ -13266,22 +13586,24 @@ type WebAppsClientListRelayServiceConnectionsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSiteBackupsOptions contains the optional parameters for the WebAppsClient.ListSiteBackups method. +// WebAppsClientListSiteBackupsOptions contains the optional parameters for the WebAppsClient.NewListSiteBackupsPager method. type WebAppsClientListSiteBackupsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSiteBackupsSlotOptions contains the optional parameters for the WebAppsClient.ListSiteBackupsSlot method. +// WebAppsClientListSiteBackupsSlotOptions contains the optional parameters for the WebAppsClient.NewListSiteBackupsSlotPager +// method. type WebAppsClientListSiteBackupsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSiteExtensionsOptions contains the optional parameters for the WebAppsClient.ListSiteExtensions method. +// WebAppsClientListSiteExtensionsOptions contains the optional parameters for the WebAppsClient.NewListSiteExtensionsPager +// method. type WebAppsClientListSiteExtensionsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSiteExtensionsSlotOptions contains the optional parameters for the WebAppsClient.ListSiteExtensionsSlot +// WebAppsClientListSiteExtensionsSlotOptions contains the optional parameters for the WebAppsClient.NewListSiteExtensionsSlotPager // method. type WebAppsClientListSiteExtensionsSlotOptions struct { // placeholder for future optional parameters @@ -13304,47 +13626,48 @@ type WebAppsClientListSlotConfigurationNamesOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSlotDifferencesFromProductionOptions contains the optional parameters for the WebAppsClient.ListSlotDifferencesFromProduction +// WebAppsClientListSlotDifferencesFromProductionOptions contains the optional parameters for the WebAppsClient.NewListSlotDifferencesFromProductionPager // method. type WebAppsClientListSlotDifferencesFromProductionOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSlotDifferencesSlotOptions contains the optional parameters for the WebAppsClient.ListSlotDifferencesSlot +// WebAppsClientListSlotDifferencesSlotOptions contains the optional parameters for the WebAppsClient.NewListSlotDifferencesSlotPager // method. type WebAppsClientListSlotDifferencesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSlotSiteDeploymentStatusesSlotOptions contains the optional parameters for the WebAppsClient.ListSlotSiteDeploymentStatusesSlot +// WebAppsClientListSlotSiteDeploymentStatusesSlotOptions contains the optional parameters for the WebAppsClient.NewListSlotSiteDeploymentStatusesSlotPager // method. type WebAppsClientListSlotSiteDeploymentStatusesSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSlotsOptions contains the optional parameters for the WebAppsClient.ListSlots method. +// WebAppsClientListSlotsOptions contains the optional parameters for the WebAppsClient.NewListSlotsPager method. type WebAppsClientListSlotsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSnapshotsFromDRSecondaryOptions contains the optional parameters for the WebAppsClient.ListSnapshotsFromDRSecondary +// WebAppsClientListSnapshotsFromDRSecondaryOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsFromDRSecondaryPager // method. type WebAppsClientListSnapshotsFromDRSecondaryOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSnapshotsFromDRSecondarySlotOptions contains the optional parameters for the WebAppsClient.ListSnapshotsFromDRSecondarySlot +// WebAppsClientListSnapshotsFromDRSecondarySlotOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsFromDRSecondarySlotPager // method. type WebAppsClientListSnapshotsFromDRSecondarySlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSnapshotsOptions contains the optional parameters for the WebAppsClient.ListSnapshots method. +// WebAppsClientListSnapshotsOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsPager method. type WebAppsClientListSnapshotsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListSnapshotsSlotOptions contains the optional parameters for the WebAppsClient.ListSnapshotsSlot method. +// WebAppsClientListSnapshotsSlotOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsSlotPager +// method. type WebAppsClientListSnapshotsSlotOptions struct { // placeholder for future optional parameters } @@ -13371,30 +13694,31 @@ type WebAppsClientListSyncStatusSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListTriggeredWebJobHistoryOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobHistory +// WebAppsClientListTriggeredWebJobHistoryOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobHistoryPager // method. type WebAppsClientListTriggeredWebJobHistoryOptions struct { // placeholder for future optional parameters } -// WebAppsClientListTriggeredWebJobHistorySlotOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobHistorySlot +// WebAppsClientListTriggeredWebJobHistorySlotOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobHistorySlotPager // method. type WebAppsClientListTriggeredWebJobHistorySlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListTriggeredWebJobsOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobs method. +// WebAppsClientListTriggeredWebJobsOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobsPager +// method. type WebAppsClientListTriggeredWebJobsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListTriggeredWebJobsSlotOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobsSlot +// WebAppsClientListTriggeredWebJobsSlotOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobsSlotPager // method. type WebAppsClientListTriggeredWebJobsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListUsagesOptions contains the optional parameters for the WebAppsClient.ListUsages method. +// WebAppsClientListUsagesOptions contains the optional parameters for the WebAppsClient.NewListUsagesPager method. type WebAppsClientListUsagesOptions struct { // Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or // name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq @@ -13402,7 +13726,7 @@ type WebAppsClientListUsagesOptions struct { Filter *string } -// WebAppsClientListUsagesSlotOptions contains the optional parameters for the WebAppsClient.ListUsagesSlot method. +// WebAppsClientListUsagesSlotOptions contains the optional parameters for the WebAppsClient.NewListUsagesSlotPager method. type WebAppsClientListUsagesSlotOptions struct { // Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or // name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq @@ -13421,16 +13745,33 @@ type WebAppsClientListVnetConnectionsSlotOptions struct { // placeholder for future optional parameters } -// WebAppsClientListWebJobsOptions contains the optional parameters for the WebAppsClient.ListWebJobs method. +// WebAppsClientListWebJobsOptions contains the optional parameters for the WebAppsClient.NewListWebJobsPager method. type WebAppsClientListWebJobsOptions struct { // placeholder for future optional parameters } -// WebAppsClientListWebJobsSlotOptions contains the optional parameters for the WebAppsClient.ListWebJobsSlot method. +// WebAppsClientListWebJobsSlotOptions contains the optional parameters for the WebAppsClient.NewListWebJobsSlotPager method. type WebAppsClientListWebJobsSlotOptions struct { // placeholder for future optional parameters } +// WebAppsClientListWorkflowsConnectionsOptions contains the optional parameters for the WebAppsClient.ListWorkflowsConnections +// method. +type WebAppsClientListWorkflowsConnectionsOptions struct { + // placeholder for future optional parameters +} + +// WebAppsClientListWorkflowsConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListWorkflowsConnectionsSlot +// method. +type WebAppsClientListWorkflowsConnectionsSlotOptions struct { + // placeholder for future optional parameters +} + +// WebAppsClientListWorkflowsOptions contains the optional parameters for the WebAppsClient.NewListWorkflowsPager method. +type WebAppsClientListWorkflowsOptions struct { + // placeholder for future optional parameters +} + // WebAppsClientPutPrivateAccessVnetOptions contains the optional parameters for the WebAppsClient.PutPrivateAccessVnet method. type WebAppsClientPutPrivateAccessVnetOptions struct { // placeholder for future optional parameters @@ -13896,7 +14237,7 @@ type WebJobProperties struct { RunCommand *string `json:"run_command,omitempty"` // Job settings. - Settings map[string]interface{} `json:"settings,omitempty"` + Settings map[string]any `json:"settings,omitempty"` // Job URL. URL *string `json:"url,omitempty"` @@ -13968,7 +14309,7 @@ type WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions struct { // placeholder for future optional parameters } -// WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.ListBillingMeters +// WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.NewListBillingMetersPager // method. type WebSiteManagementClientListBillingMetersOptions struct { // Azure Location of billable resource @@ -13977,14 +14318,14 @@ type WebSiteManagementClientListBillingMetersOptions struct { OSType *string } -// WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.ListCustomHostNameSites +// WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.NewListCustomHostNameSitesPager // method. type WebSiteManagementClientListCustomHostNameSitesOptions struct { // Specific hostname Hostname *string } -// WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.ListGeoRegions +// WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListGeoRegionsPager // method. type WebSiteManagementClientListGeoRegionsOptions struct { // Specify true if you want to filter to only regions that support Linux Consumption Workers. @@ -13997,7 +14338,7 @@ type WebSiteManagementClientListGeoRegionsOptions struct { XenonWorkersEnabled *bool } -// WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.ListPremierAddOnOffers +// WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.NewListPremierAddOnOffersPager // method. type WebSiteManagementClientListPremierAddOnOffersOptions struct { // placeholder for future optional parameters @@ -14008,13 +14349,13 @@ type WebSiteManagementClientListSKUsOptions struct { // placeholder for future optional parameters } -// WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the WebSiteManagementClient.ListSiteIdentifiersAssignedToHostName +// WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager // method. type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions struct { // placeholder for future optional parameters } -// WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.ListSourceControls +// WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.NewListSourceControlsPager // method. type WebSiteManagementClientListSourceControlsOptions struct { // placeholder for future optional parameters @@ -14153,12 +14494,75 @@ type Workflow struct { Type *string `json:"type,omitempty" azure:"ro"` } +// WorkflowArtifacts - The workflow filter. +type WorkflowArtifacts struct { + // Application settings of the workflow. + AppSettings any `json:"appSettings,omitempty"` + + // Files of the app. + Files map[string]any `json:"files,omitempty"` + + // Files of the app to delete. + FilesToDelete []*string `json:"filesToDelete,omitempty"` +} + +// WorkflowEnvelope - Workflow properties definition. +type WorkflowEnvelope struct { + // The resource kind. + Kind *string `json:"kind,omitempty"` + + // The resource location. + Location *string `json:"location,omitempty"` + + // Additional workflow properties. + Properties *WorkflowEnvelopeProperties `json:"properties,omitempty"` + + // READ-ONLY; The resource id. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; Gets the resource name. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Gets the resource type. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// WorkflowEnvelopeCollection - Collection of Kudu workflow information elements. +type WorkflowEnvelopeCollection struct { + // REQUIRED; Collection of resources. + Value []*WorkflowEnvelope `json:"value,omitempty"` + + // READ-ONLY; Link to next page of resources. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` +} + +// WorkflowEnvelopeProperties - Additional workflow properties. +type WorkflowEnvelopeProperties struct { + // Gets or sets the files. + Files map[string]any `json:"files,omitempty"` + + // Gets or sets the state of the workflow. + FlowState *WorkflowState `json:"flowState,omitempty"` + + // Gets or sets workflow health. + Health *WorkflowHealth `json:"health,omitempty"` +} + // WorkflowFilter - The workflow filter. type WorkflowFilter struct { // The state of workflows. State *WorkflowState `json:"state,omitempty"` } +// WorkflowHealth - Represents the workflow health. +type WorkflowHealth struct { + // REQUIRED; Gets or sets the workflow health state. + State *WorkflowHealthState `json:"state,omitempty"` + + // Gets or sets the workflow error. + Error *ErrorEntity `json:"error,omitempty"` +} + // WorkflowListResult - The list of workflows. type WorkflowListResult struct { // The URL to get the next set of results. @@ -14174,16 +14578,16 @@ type WorkflowOutputParameter struct { Description *string `json:"description,omitempty"` // The metadata. - Metadata interface{} `json:"metadata,omitempty"` + Metadata any `json:"metadata,omitempty"` // The type. Type *ParameterType `json:"type,omitempty"` // The value. - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` // READ-ONLY; Gets the error. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any `json:"error,omitempty" azure:"ro"` } // WorkflowParameter - The workflow parameters. @@ -14192,13 +14596,13 @@ type WorkflowParameter struct { Description *string `json:"description,omitempty"` // The metadata. - Metadata interface{} `json:"metadata,omitempty"` + Metadata any `json:"metadata,omitempty"` // The type. Type *ParameterType `json:"type,omitempty"` // The value. - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // WorkflowProperties - The workflow properties. @@ -14207,7 +14611,7 @@ type WorkflowProperties struct { AccessControl *FlowAccessControlConfiguration `json:"accessControl,omitempty"` // The definition. - Definition interface{} `json:"definition,omitempty"` + Definition any `json:"definition,omitempty"` // The endpoints configuration. EndpointsConfiguration *FlowEndpointsConfiguration `json:"endpointsConfiguration,omitempty"` @@ -14324,7 +14728,7 @@ type WorkflowRunActionProperties struct { EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` // READ-ONLY; Gets the error. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any `json:"error,omitempty" azure:"ro"` // READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty" azure:"ro"` @@ -14339,7 +14743,7 @@ type WorkflowRunActionProperties struct { Status *WorkflowStatus `json:"status,omitempty" azure:"ro"` // READ-ONLY; Gets the tracked properties. - TrackedProperties interface{} `json:"trackedProperties,omitempty" azure:"ro"` + TrackedProperties any `json:"trackedProperties,omitempty" azure:"ro"` // READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty" azure:"ro"` @@ -14385,8 +14789,8 @@ type WorkflowRunActionRepetitionProperties struct { EndTime *time.Time `json:"endTime,omitempty"` // Anything - Error interface{} `json:"error,omitempty"` - IterationCount *int32 `json:"iterationCount,omitempty"` + Error any `json:"error,omitempty"` + IterationCount *int32 `json:"iterationCount,omitempty"` // The repetition indexes. RepetitionIndexes []*RepetitionIndex `json:"repetitionIndexes,omitempty"` @@ -14401,19 +14805,19 @@ type WorkflowRunActionRepetitionProperties struct { Status *WorkflowStatus `json:"status,omitempty"` // READ-ONLY; Gets the inputs. - Inputs interface{} `json:"inputs,omitempty" azure:"ro"` + Inputs any `json:"inputs,omitempty" azure:"ro"` // READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty" azure:"ro"` // READ-ONLY; Gets the outputs. - Outputs interface{} `json:"outputs,omitempty" azure:"ro"` + Outputs any `json:"outputs,omitempty" azure:"ro"` // READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty" azure:"ro"` // READ-ONLY; Gets the tracked properties. - TrackedProperties interface{} `json:"trackedProperties,omitempty" azure:"ro"` + TrackedProperties any `json:"trackedProperties,omitempty" azure:"ro"` // READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty" azure:"ro"` @@ -14425,13 +14829,13 @@ type WorkflowRunActionRepetitionsClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowRunActionRepetitionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.ListExpressionTraces +// WorkflowRunActionRepetitionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.NewListExpressionTracesPager // method. type WorkflowRunActionRepetitionsClientListExpressionTracesOptions struct { // placeholder for future optional parameters } -// WorkflowRunActionRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.List +// WorkflowRunActionRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.NewListPager // method. type WorkflowRunActionRepetitionsClientListOptions struct { // placeholder for future optional parameters @@ -14443,7 +14847,7 @@ type WorkflowRunActionRepetitionsRequestHistoriesClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowRunActionRepetitionsRequestHistoriesClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsRequestHistoriesClient.List +// WorkflowRunActionRepetitionsRequestHistoriesClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsRequestHistoriesClient.NewListPager // method. type WorkflowRunActionRepetitionsRequestHistoriesClientListOptions struct { // placeholder for future optional parameters @@ -14455,7 +14859,7 @@ type WorkflowRunActionScopeRepetitionsClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowRunActionScopeRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionScopeRepetitionsClient.List +// WorkflowRunActionScopeRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionScopeRepetitionsClient.NewListPager // method. type WorkflowRunActionScopeRepetitionsClientListOptions struct { // placeholder for future optional parameters @@ -14466,13 +14870,13 @@ type WorkflowRunActionsClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowRunActionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionsClient.ListExpressionTraces +// WorkflowRunActionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionsClient.NewListExpressionTracesPager // method. type WorkflowRunActionsClientListExpressionTracesOptions struct { // placeholder for future optional parameters } -// WorkflowRunActionsClientListOptions contains the optional parameters for the WorkflowRunActionsClient.List method. +// WorkflowRunActionsClientListOptions contains the optional parameters for the WorkflowRunActionsClient.NewListPager method. type WorkflowRunActionsClientListOptions struct { // The filter to apply on the operation. Options for filters include: Status. Filter *string @@ -14510,7 +14914,7 @@ type WorkflowRunProperties struct { EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` // READ-ONLY; Gets the error. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any `json:"error,omitempty" azure:"ro"` // READ-ONLY; Gets the outputs. Outputs map[string]*WorkflowOutputParameter `json:"outputs,omitempty" azure:"ro"` @@ -14546,10 +14950,10 @@ type WorkflowRunTrigger struct { EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` // READ-ONLY; Gets the error. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any `json:"error,omitempty" azure:"ro"` // READ-ONLY; Gets the inputs. - Inputs interface{} `json:"inputs,omitempty" azure:"ro"` + Inputs any `json:"inputs,omitempty" azure:"ro"` // READ-ONLY; Gets the link to inputs. InputsLink *ContentLink `json:"inputsLink,omitempty" azure:"ro"` @@ -14558,7 +14962,7 @@ type WorkflowRunTrigger struct { Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Gets the outputs. - Outputs interface{} `json:"outputs,omitempty" azure:"ro"` + Outputs any `json:"outputs,omitempty" azure:"ro"` // READ-ONLY; Gets the link to outputs. OutputsLink *ContentLink `json:"outputsLink,omitempty" azure:"ro"` @@ -14573,7 +14977,7 @@ type WorkflowRunTrigger struct { Status *WorkflowStatus `json:"status,omitempty" azure:"ro"` // READ-ONLY; Gets the tracked properties. - TrackedProperties interface{} `json:"trackedProperties,omitempty" azure:"ro"` + TrackedProperties any `json:"trackedProperties,omitempty" azure:"ro"` // READ-ONLY; Gets the tracking id. TrackingID *string `json:"trackingId,omitempty" azure:"ro"` @@ -14589,7 +14993,7 @@ type WorkflowRunsClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowRunsClientListOptions contains the optional parameters for the WorkflowRunsClient.List method. +// WorkflowRunsClientListOptions contains the optional parameters for the WorkflowRunsClient.NewListPager method. type WorkflowRunsClientListOptions struct { // The filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId. Filter *string @@ -14660,7 +15064,7 @@ type WorkflowTriggerHistoriesClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowTriggerHistoriesClientListOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.List +// WorkflowTriggerHistoriesClientListOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.NewListPager // method. type WorkflowTriggerHistoriesClientListOptions struct { // The filter to apply on the operation. Options for filters include: Status, StartTime, and ClientTrackingId. @@ -14711,7 +15115,7 @@ type WorkflowTriggerHistoryProperties struct { EndTime *time.Time `json:"endTime,omitempty" azure:"ro"` // READ-ONLY; Gets the error. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any `json:"error,omitempty" azure:"ro"` // READ-ONLY; The value indicating whether trigger was fired. Fired *bool `json:"fired,omitempty" azure:"ro"` @@ -14839,7 +15243,7 @@ type WorkflowTriggersClientListCallbackURLOptions struct { // placeholder for future optional parameters } -// WorkflowTriggersClientListOptions contains the optional parameters for the WorkflowTriggersClient.List method. +// WorkflowTriggersClientListOptions contains the optional parameters for the WorkflowTriggersClient.NewListPager method. type WorkflowTriggersClientListOptions struct { // The filter to apply on the operation. Filter *string @@ -14883,7 +15287,7 @@ type WorkflowVersionProperties struct { AccessControl *FlowAccessControlConfiguration `json:"accessControl,omitempty"` // The definition. - Definition interface{} `json:"definition,omitempty"` + Definition any `json:"definition,omitempty"` // The endpoints configuration. EndpointsConfiguration *FlowEndpointsConfiguration `json:"endpointsConfiguration,omitempty"` @@ -14921,7 +15325,7 @@ type WorkflowVersionsClientGetOptions struct { // placeholder for future optional parameters } -// WorkflowVersionsClientListOptions contains the optional parameters for the WorkflowVersionsClient.List method. +// WorkflowVersionsClientListOptions contains the optional parameters for the WorkflowVersionsClient.NewListPager method. type WorkflowVersionsClientListOptions struct { // The number of items to be included in the result. Top *int32 diff --git a/sdk/resourcemanager/appservice/armappservice/models_serde.go b/sdk/resourcemanager/appservice/armappservice/models_serde.go index 4c4a8958f8fa..31658eea47e7 100644 --- a/sdk/resourcemanager/appservice/armappservice/models_serde.go +++ b/sdk/resourcemanager/appservice/armappservice/models_serde.go @@ -19,7 +19,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type APIDefinitionInfo. func (a APIDefinitionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "url", a.URL) return json.Marshal(objectMap) } @@ -46,7 +46,7 @@ func (a *APIDefinitionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIKVReference. func (a APIKVReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -89,7 +89,7 @@ func (a *APIKVReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIKVReferenceCollection. func (a APIKVReferenceCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -120,7 +120,7 @@ func (a *APIKVReferenceCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIKVReferenceProperties. func (a APIKVReferenceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activeVersion", a.ActiveVersion) populate(objectMap, "details", a.Details) populate(objectMap, "identityType", a.IdentityType) @@ -179,7 +179,7 @@ func (a *APIKVReferenceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIManagementConfig. func (a APIManagementConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) return json.Marshal(objectMap) } @@ -206,7 +206,7 @@ func (a *APIManagementConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AbnormalTimePeriod. func (a AbnormalTimePeriod) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", a.EndTime) populate(objectMap, "events", a.Events) populate(objectMap, "solutions", a.Solutions) @@ -245,7 +245,7 @@ func (a *AbnormalTimePeriod) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Address. func (a Address) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "address1", a.Address1) populate(objectMap, "address2", a.Address2) populate(objectMap, "city", a.City) @@ -292,7 +292,7 @@ func (a *Address) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AddressResponse. func (a AddressResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -335,7 +335,7 @@ func (a *AddressResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AddressResponseProperties. func (a AddressResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "internalIpAddress", a.InternalIPAddress) populate(objectMap, "outboundIpAddresses", a.OutboundIPAddresses) populate(objectMap, "serviceIpAddress", a.ServiceIPAddress) @@ -374,7 +374,7 @@ func (a *AddressResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AllowedAudiencesValidation. func (a AllowedAudiencesValidation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedAudiences", a.AllowedAudiences) return json.Marshal(objectMap) } @@ -401,7 +401,7 @@ func (a *AllowedAudiencesValidation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AllowedPrincipals. func (a AllowedPrincipals) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groups", a.Groups) populate(objectMap, "identities", a.Identities) return json.Marshal(objectMap) @@ -432,7 +432,7 @@ func (a *AllowedPrincipals) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AnalysisData. func (a AnalysisData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "data", a.Data) populate(objectMap, "detectorDefinition", a.DetectorDefinition) populate(objectMap, "detectorMetaData", a.DetectorMetaData) @@ -475,7 +475,7 @@ func (a *AnalysisData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AnalysisDefinition. func (a AnalysisDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -518,7 +518,7 @@ func (a *AnalysisDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AnalysisDefinitionProperties. func (a AnalysisDefinitionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", a.Description) return json.Marshal(objectMap) } @@ -545,7 +545,7 @@ func (a *AnalysisDefinitionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppCertificate. func (a AppCertificate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "location", a.Location) @@ -596,7 +596,7 @@ func (a *AppCertificate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppCertificateCollection. func (a AppCertificateCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -627,7 +627,7 @@ func (a *AppCertificateCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppCertificatePatchResource. func (a AppCertificatePatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -670,7 +670,7 @@ func (a *AppCertificatePatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppCertificatePatchResourceProperties. func (a AppCertificatePatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "canonicalName", a.CanonicalName) populateByteArray(objectMap, "cerBlob", a.CerBlob, runtime.Base64StdFormat) populate(objectMap, "domainValidationMethod", a.DomainValidationMethod) @@ -777,7 +777,7 @@ func (a *AppCertificatePatchResourceProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AppCertificateProperties. func (a AppCertificateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "canonicalName", a.CanonicalName) populateByteArray(objectMap, "cerBlob", a.CerBlob, runtime.Base64StdFormat) populate(objectMap, "domainValidationMethod", a.DomainValidationMethod) @@ -884,7 +884,7 @@ func (a *AppCertificateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppInsightsWebAppStackSettings. func (a AppInsightsWebAppStackSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isDefaultOff", a.IsDefaultOff) populate(objectMap, "isSupported", a.IsSupported) return json.Marshal(objectMap) @@ -915,7 +915,7 @@ func (a *AppInsightsWebAppStackSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppLogsConfiguration. func (a AppLogsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "destination", a.Destination) populate(objectMap, "logAnalyticsConfiguration", a.LogAnalyticsConfiguration) return json.Marshal(objectMap) @@ -946,7 +946,7 @@ func (a *AppLogsConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppRegistration. func (a AppRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appId", a.AppID) populate(objectMap, "appSecretSettingName", a.AppSecretSettingName) return json.Marshal(objectMap) @@ -977,7 +977,7 @@ func (a *AppRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Apple. func (a Apple) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", a.Enabled) populate(objectMap, "login", a.Login) populate(objectMap, "registration", a.Registration) @@ -1012,7 +1012,7 @@ func (a *Apple) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppleRegistration. func (a AppleRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", a.ClientID) populate(objectMap, "clientSecretSettingName", a.ClientSecretSettingName) return json.Marshal(objectMap) @@ -1043,7 +1043,7 @@ func (a *AppleRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ApplicationLogsConfig. func (a ApplicationLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureBlobStorage", a.AzureBlobStorage) populate(objectMap, "azureTableStorage", a.AzureTableStorage) populate(objectMap, "fileSystem", a.FileSystem) @@ -1078,7 +1078,7 @@ func (a *ApplicationLogsConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ApplicationStack. func (a ApplicationStack) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependency", a.Dependency) populate(objectMap, "display", a.Display) populate(objectMap, "frameworks", a.Frameworks) @@ -1125,7 +1125,7 @@ func (a *ApplicationStack) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ApplicationStackCollection. func (a ApplicationStackCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -1156,7 +1156,7 @@ func (a *ApplicationStackCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ApplicationStackResource. func (a ApplicationStackResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -1199,7 +1199,7 @@ func (a *ApplicationStackResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ArcConfiguration. func (a ArcConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "artifactStorageAccessMode", a.ArtifactStorageAccessMode) populate(objectMap, "artifactStorageClassName", a.ArtifactStorageClassName) populate(objectMap, "artifactStorageMountPath", a.ArtifactStorageMountPath) @@ -1250,7 +1250,7 @@ func (a *ArcConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ArmIDWrapper. func (a ArmIDWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) return json.Marshal(objectMap) } @@ -1277,7 +1277,7 @@ func (a *ArmIDWrapper) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ArmPlan. func (a ArmPlan) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", a.Name) populate(objectMap, "product", a.Product) populate(objectMap, "promotionCode", a.PromotionCode) @@ -1320,7 +1320,7 @@ func (a *ArmPlan) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AseV3NetworkingConfiguration. func (a AseV3NetworkingConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -1363,7 +1363,7 @@ func (a *AseV3NetworkingConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AseV3NetworkingConfigurationProperties. func (a AseV3NetworkingConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowNewPrivateEndpointConnections", a.AllowNewPrivateEndpointConnections) populate(objectMap, "externalInboundIpAddresses", a.ExternalInboundIPAddresses) populate(objectMap, "ftpEnabled", a.FtpEnabled) @@ -1418,7 +1418,7 @@ func (a *AseV3NetworkingConfigurationProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AuthPlatform. func (a AuthPlatform) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "configFilePath", a.ConfigFilePath) populate(objectMap, "enabled", a.Enabled) populate(objectMap, "runtimeVersion", a.RuntimeVersion) @@ -1453,7 +1453,7 @@ func (a *AuthPlatform) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AutoHealActions. func (a AutoHealActions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionType", a.ActionType) populate(objectMap, "customAction", a.CustomAction) populate(objectMap, "minProcessExecutionTime", a.MinProcessExecutionTime) @@ -1488,7 +1488,7 @@ func (a *AutoHealActions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AutoHealCustomAction. func (a AutoHealCustomAction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exe", a.Exe) populate(objectMap, "parameters", a.Parameters) return json.Marshal(objectMap) @@ -1519,7 +1519,7 @@ func (a *AutoHealCustomAction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AutoHealRules. func (a AutoHealRules) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actions", a.Actions) populate(objectMap, "triggers", a.Triggers) return json.Marshal(objectMap) @@ -1550,7 +1550,7 @@ func (a *AutoHealRules) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AutoHealTriggers. func (a AutoHealTriggers) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privateBytesInKB", a.PrivateBytesInKB) populate(objectMap, "requests", a.Requests) populate(objectMap, "slowRequests", a.SlowRequests) @@ -1597,7 +1597,7 @@ func (a *AutoHealTriggers) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectory. func (a AzureActiveDirectory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", a.Enabled) populate(objectMap, "isAutoProvisioned", a.IsAutoProvisioned) populate(objectMap, "login", a.Login) @@ -1640,7 +1640,7 @@ func (a *AzureActiveDirectory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryLogin. func (a AzureActiveDirectoryLogin) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableWWWAuthenticate", a.DisableWWWAuthenticate) populate(objectMap, "loginParameters", a.LoginParameters) return json.Marshal(objectMap) @@ -1671,7 +1671,7 @@ func (a *AzureActiveDirectoryLogin) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryRegistration. func (a AzureActiveDirectoryRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", a.ClientID) populate(objectMap, "clientSecretCertificateIssuer", a.ClientSecretCertificateIssuer) populate(objectMap, "clientSecretCertificateSubjectAlternativeName", a.ClientSecretCertificateSubjectAlternativeName) @@ -1718,7 +1718,7 @@ func (a *AzureActiveDirectoryRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryValidation. func (a AzureActiveDirectoryValidation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedAudiences", a.AllowedAudiences) populate(objectMap, "defaultAuthorizationPolicy", a.DefaultAuthorizationPolicy) populate(objectMap, "jwtClaimChecks", a.JwtClaimChecks) @@ -1753,7 +1753,7 @@ func (a *AzureActiveDirectoryValidation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageApplicationLogsConfig. func (a AzureBlobStorageApplicationLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "level", a.Level) populate(objectMap, "retentionInDays", a.RetentionInDays) populate(objectMap, "sasUrl", a.SasURL) @@ -1788,7 +1788,7 @@ func (a *AzureBlobStorageApplicationLogsConfig) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageHTTPLogsConfig. func (a AzureBlobStorageHTTPLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", a.Enabled) populate(objectMap, "retentionInDays", a.RetentionInDays) populate(objectMap, "sasUrl", a.SasURL) @@ -1823,7 +1823,7 @@ func (a *AzureBlobStorageHTTPLogsConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureResourceErrorInfo. func (a AzureResourceErrorInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", a.Code) populate(objectMap, "details", a.Details) populate(objectMap, "message", a.Message) @@ -1858,7 +1858,7 @@ func (a *AzureResourceErrorInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureStaticWebApps. func (a AzureStaticWebApps) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", a.Enabled) populate(objectMap, "registration", a.Registration) return json.Marshal(objectMap) @@ -1889,7 +1889,7 @@ func (a *AzureStaticWebApps) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureStaticWebAppsRegistration. func (a AzureStaticWebAppsRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", a.ClientID) return json.Marshal(objectMap) } @@ -1916,7 +1916,7 @@ func (a *AzureStaticWebAppsRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureStorageInfoValue. func (a AzureStorageInfoValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKey", a.AccessKey) populate(objectMap, "accountName", a.AccountName) populate(objectMap, "mountPath", a.MountPath) @@ -1963,7 +1963,7 @@ func (a *AzureStorageInfoValue) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureStoragePropertyDictionaryResource. func (a AzureStoragePropertyDictionaryResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "kind", a.Kind) populate(objectMap, "name", a.Name) @@ -2006,7 +2006,7 @@ func (a *AzureStoragePropertyDictionaryResource) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureTableStorageApplicationLogsConfig. func (a AzureTableStorageApplicationLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "level", a.Level) populate(objectMap, "sasUrl", a.SasURL) return json.Marshal(objectMap) @@ -2037,7 +2037,7 @@ func (a *AzureTableStorageApplicationLogsConfig) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type BackupItem. func (b BackupItem) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", b.ID) populate(objectMap, "kind", b.Kind) populate(objectMap, "name", b.Name) @@ -2080,7 +2080,7 @@ func (b *BackupItem) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupItemCollection. func (b BackupItemCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) @@ -2111,7 +2111,7 @@ func (b *BackupItemCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupItemProperties. func (b BackupItemProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", b.BackupID) populate(objectMap, "blobName", b.BlobName) populate(objectMap, "correlationId", b.CorrelationID) @@ -2190,7 +2190,7 @@ func (b *BackupItemProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupRequest. func (b BackupRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", b.ID) populate(objectMap, "kind", b.Kind) populate(objectMap, "name", b.Name) @@ -2233,7 +2233,7 @@ func (b *BackupRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupRequestProperties. func (b BackupRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupName", b.BackupName) populate(objectMap, "backupSchedule", b.BackupSchedule) populate(objectMap, "databases", b.Databases) @@ -2276,7 +2276,7 @@ func (b *BackupRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupSchedule. func (b BackupSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "frequencyInterval", b.FrequencyInterval) populate(objectMap, "frequencyUnit", b.FrequencyUnit) populate(objectMap, "keepAtLeastOneBackup", b.KeepAtLeastOneBackup) @@ -2323,7 +2323,7 @@ func (b *BackupSchedule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BillingMeter. func (b BillingMeter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", b.ID) populate(objectMap, "kind", b.Kind) populate(objectMap, "name", b.Name) @@ -2366,7 +2366,7 @@ func (b *BillingMeter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BillingMeterCollection. func (b BillingMeterCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) @@ -2397,7 +2397,7 @@ func (b *BillingMeterCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BillingMeterProperties. func (b BillingMeterProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingLocation", b.BillingLocation) populate(objectMap, "friendlyName", b.FriendlyName) populate(objectMap, "meterId", b.MeterID) @@ -2448,7 +2448,7 @@ func (b *BillingMeterProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobStorageTokenStore. func (b BlobStorageTokenStore) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sasUrlSettingName", b.SasURLSettingName) return json.Marshal(objectMap) } @@ -2475,7 +2475,7 @@ func (b *BlobStorageTokenStore) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Capability. func (c Capability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) populate(objectMap, "reason", c.Reason) populate(objectMap, "value", c.Value) @@ -2510,7 +2510,7 @@ func (c *Capability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Certificate. func (c Certificate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyVaultId", c.KeyVaultID) populate(objectMap, "keyVaultSecretName", c.KeyVaultSecretName) populate(objectMap, "provisioningState", c.ProvisioningState) @@ -2545,7 +2545,7 @@ func (c *Certificate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateCollection. func (c CertificateCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -2576,7 +2576,7 @@ func (c *CertificateCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateDetails. func (c CertificateDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "issuer", c.Issuer) populateTimeRFC3339(objectMap, "notAfter", c.NotAfter) populateTimeRFC3339(objectMap, "notBefore", c.NotBefore) @@ -2635,7 +2635,7 @@ func (c *CertificateDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateEmail. func (c CertificateEmail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "emailId", c.EmailID) populateTimeRFC3339(objectMap, "timeStamp", c.TimeStamp) return json.Marshal(objectMap) @@ -2666,7 +2666,7 @@ func (c *CertificateEmail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateOrder. func (c CertificateOrder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "location", c.Location) @@ -2717,7 +2717,7 @@ func (c *CertificateOrder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateOrderAction. func (c CertificateOrderAction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionType", c.ActionType) populateTimeRFC3339(objectMap, "createdAt", c.CreatedAt) return json.Marshal(objectMap) @@ -2748,7 +2748,7 @@ func (c *CertificateOrderAction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateOrderCollection. func (c CertificateOrderCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -2779,7 +2779,7 @@ func (c *CertificateOrderCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateOrderContact. func (c CertificateOrderContact) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "email", c.Email) populate(objectMap, "nameFirst", c.NameFirst) populate(objectMap, "nameLast", c.NameLast) @@ -2818,7 +2818,7 @@ func (c *CertificateOrderContact) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateOrderPatchResource. func (c CertificateOrderPatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -2861,7 +2861,7 @@ func (c *CertificateOrderPatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateOrderPatchResourceProperties. func (c CertificateOrderPatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appServiceCertificateNotRenewableReasons", c.AppServiceCertificateNotRenewableReasons) populate(objectMap, "autoRenew", c.AutoRenew) populate(objectMap, "certificates", c.Certificates) @@ -2964,7 +2964,7 @@ func (c *CertificateOrderPatchResourceProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type CertificateOrderProperties. func (c CertificateOrderProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appServiceCertificateNotRenewableReasons", c.AppServiceCertificateNotRenewableReasons) populate(objectMap, "autoRenew", c.AutoRenew) populate(objectMap, "certificates", c.Certificates) @@ -3067,7 +3067,7 @@ func (c *CertificateOrderProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificatePatchResource. func (c CertificatePatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -3110,7 +3110,7 @@ func (c *CertificatePatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CertificateResource. func (c CertificateResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "location", c.Location) @@ -3161,7 +3161,7 @@ func (c *CertificateResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientRegistration. func (c ClientRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", c.ClientID) populate(objectMap, "clientSecretSettingName", c.ClientSecretSettingName) return json.Marshal(objectMap) @@ -3192,7 +3192,7 @@ func (c *ClientRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CloningInfo. func (c CloningInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appSettingsOverrides", c.AppSettingsOverrides) populate(objectMap, "cloneCustomHostNames", c.CloneCustomHostNames) populate(objectMap, "cloneSourceControl", c.CloneSourceControl) @@ -3259,7 +3259,7 @@ func (c *CloningInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Configuration. func (c Configuration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activeRevisionsMode", c.ActiveRevisionsMode) populate(objectMap, "ingress", c.Ingress) populate(objectMap, "registries", c.Registries) @@ -3298,7 +3298,7 @@ func (c *Configuration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConnStringInfo. func (c ConnStringInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", c.ConnectionString) populate(objectMap, "name", c.Name) populate(objectMap, "type", c.Type) @@ -3333,7 +3333,7 @@ func (c *ConnStringInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConnStringValueTypePair. func (c ConnStringValueTypePair) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", c.Type) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -3364,7 +3364,7 @@ func (c *ConnStringValueTypePair) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConnectionStringDictionary. func (c ConnectionStringDictionary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -3407,7 +3407,7 @@ func (c *ConnectionStringDictionary) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Contact. func (c Contact) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "addressMailing", c.AddressMailing) populate(objectMap, "email", c.Email) populate(objectMap, "fax", c.Fax) @@ -3466,7 +3466,7 @@ func (c *Contact) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Container. func (c Container) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "args", c.Args) populate(objectMap, "command", c.Command) populate(objectMap, "env", c.Env) @@ -3513,7 +3513,7 @@ func (c *Container) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerApp. func (c ContainerApp) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "location", c.Location) @@ -3564,7 +3564,7 @@ func (c *ContainerApp) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerAppCollection. func (c ContainerAppCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -3595,7 +3595,7 @@ func (c *ContainerAppCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerAppProperties. func (c ContainerAppProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "configuration", c.Configuration) populate(objectMap, "kubeEnvironmentId", c.KubeEnvironmentID) populate(objectMap, "latestRevisionFqdn", c.LatestRevisionFqdn) @@ -3642,7 +3642,7 @@ func (c *ContainerAppProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerAppSecret. func (c ContainerAppSecret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -3673,7 +3673,7 @@ func (c *ContainerAppSecret) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerAppsConfiguration. func (c ContainerAppsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appSubnetResourceId", c.AppSubnetResourceID) populate(objectMap, "controlPlaneSubnetResourceId", c.ControlPlaneSubnetResourceID) populate(objectMap, "daprAIInstrumentationKey", c.DaprAIInstrumentationKey) @@ -3720,7 +3720,7 @@ func (c *ContainerAppsConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerCPUStatistics. func (c ContainerCPUStatistics) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cpuUsage", c.CPUUsage) populate(objectMap, "onlineCpuCount", c.OnlineCPUCount) populate(objectMap, "systemCpuUsage", c.SystemCPUUsage) @@ -3759,7 +3759,7 @@ func (c *ContainerCPUStatistics) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerCPUUsage. func (c ContainerCPUUsage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "kernelModeUsage", c.KernelModeUsage) populate(objectMap, "perCpuUsage", c.PerCPUUsage) populate(objectMap, "totalUsage", c.TotalUsage) @@ -3798,7 +3798,7 @@ func (c *ContainerCPUUsage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerInfo. func (c ContainerInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentCpuStats", c.CurrentCPUStats) populateTimeRFC3339(objectMap, "currentTimeStamp", c.CurrentTimeStamp) populate(objectMap, "eth0", c.Eth0) @@ -3853,7 +3853,7 @@ func (c *ContainerInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerMemoryStatistics. func (c ContainerMemoryStatistics) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "limit", c.Limit) populate(objectMap, "maxUsage", c.MaxUsage) populate(objectMap, "usage", c.Usage) @@ -3888,7 +3888,7 @@ func (c *ContainerMemoryStatistics) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerNetworkInterfaceStatistics. func (c ContainerNetworkInterfaceStatistics) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "rxBytes", c.RxBytes) populate(objectMap, "rxDropped", c.RxDropped) populate(objectMap, "rxErrors", c.RxErrors) @@ -3943,7 +3943,7 @@ func (c *ContainerNetworkInterfaceStatistics) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerResources. func (c ContainerResources) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cpu", c.CPU) populate(objectMap, "memory", c.Memory) return json.Marshal(objectMap) @@ -3974,7 +3974,7 @@ func (c *ContainerResources) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContainerThrottlingData. func (c ContainerThrottlingData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "periods", c.Periods) populate(objectMap, "throttledPeriods", c.ThrottledPeriods) populate(objectMap, "throttledTime", c.ThrottledTime) @@ -4009,7 +4009,7 @@ func (c *ContainerThrottlingData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContentHash. func (c ContentHash) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "algorithm", c.Algorithm) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -4040,7 +4040,7 @@ func (c *ContentHash) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContentLink. func (c ContentLink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "contentHash", c.ContentHash) populate(objectMap, "contentSize", c.ContentSize) populate(objectMap, "contentVersion", c.ContentVersion) @@ -4083,7 +4083,7 @@ func (c *ContentLink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContinuousWebJob. func (c ContinuousWebJob) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -4126,7 +4126,7 @@ func (c *ContinuousWebJob) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContinuousWebJobCollection. func (c ContinuousWebJobCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -4157,7 +4157,7 @@ func (c *ContinuousWebJobCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ContinuousWebJobProperties. func (c ContinuousWebJobProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "detailed_status", c.DetailedStatus) populate(objectMap, "error", c.Error) populate(objectMap, "extra_info_url", c.ExtraInfoURL) @@ -4220,7 +4220,7 @@ func (c *ContinuousWebJobProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CookieExpiration. func (c CookieExpiration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "convention", c.Convention) populate(objectMap, "timeToExpiration", c.TimeToExpiration) return json.Marshal(objectMap) @@ -4251,7 +4251,7 @@ func (c *CookieExpiration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Correlation. func (c Correlation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientTrackingId", c.ClientTrackingID) return json.Marshal(objectMap) } @@ -4278,7 +4278,7 @@ func (c *Correlation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CorsSettings. func (c CorsSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedOrigins", c.AllowedOrigins) populate(objectMap, "supportCredentials", c.SupportCredentials) return json.Marshal(objectMap) @@ -4309,7 +4309,7 @@ func (c *CorsSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmDeploymentStatus. func (c CsmDeploymentStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -4352,7 +4352,7 @@ func (c *CsmDeploymentStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmDeploymentStatusCollection. func (c CsmDeploymentStatusCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -4383,7 +4383,7 @@ func (c *CsmDeploymentStatusCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmDeploymentStatusProperties. func (c CsmDeploymentStatusProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deploymentId", c.DeploymentID) populate(objectMap, "errors", c.Errors) populate(objectMap, "failedInstancesLogs", c.FailedInstancesLogs) @@ -4434,7 +4434,7 @@ func (c *CsmDeploymentStatusProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmMoveResourceEnvelope. func (c CsmMoveResourceEnvelope) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resources", c.Resources) populate(objectMap, "targetResourceGroup", c.TargetResourceGroup) return json.Marshal(objectMap) @@ -4465,7 +4465,7 @@ func (c *CsmMoveResourceEnvelope) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmOperationCollection. func (c CsmOperationCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -4496,7 +4496,7 @@ func (c *CsmOperationCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmOperationDescription. func (c CsmOperationDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", c.Display) populate(objectMap, "isDataAction", c.IsDataAction) populate(objectMap, "name", c.Name) @@ -4539,7 +4539,7 @@ func (c *CsmOperationDescription) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmOperationDescriptionProperties. func (c CsmOperationDescriptionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serviceSpecification", c.ServiceSpecification) return json.Marshal(objectMap) } @@ -4566,7 +4566,7 @@ func (c *CsmOperationDescriptionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmOperationDisplay. func (c CsmOperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", c.Description) populate(objectMap, "operation", c.Operation) populate(objectMap, "provider", c.Provider) @@ -4605,7 +4605,7 @@ func (c *CsmOperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmPublishingCredentialsPoliciesEntity. func (c CsmPublishingCredentialsPoliciesEntity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -4648,7 +4648,7 @@ func (c *CsmPublishingCredentialsPoliciesEntity) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type CsmPublishingCredentialsPoliciesEntityProperties. func (c CsmPublishingCredentialsPoliciesEntityProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allow", c.Allow) return json.Marshal(objectMap) } @@ -4675,7 +4675,7 @@ func (c *CsmPublishingCredentialsPoliciesEntityProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type CsmPublishingProfileOptions. func (c CsmPublishingProfileOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "format", c.Format) populate(objectMap, "includeDisasterRecoveryEndpoints", c.IncludeDisasterRecoveryEndpoints) return json.Marshal(objectMap) @@ -4706,7 +4706,7 @@ func (c *CsmPublishingProfileOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmSlotEntity. func (c CsmSlotEntity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "preserveVnet", c.PreserveVnet) populate(objectMap, "targetSlot", c.TargetSlot) return json.Marshal(objectMap) @@ -4737,7 +4737,7 @@ func (c *CsmSlotEntity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmUsageQuota. func (c CsmUsageQuota) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentValue", c.CurrentValue) populate(objectMap, "limit", c.Limit) populate(objectMap, "name", c.Name) @@ -4780,7 +4780,7 @@ func (c *CsmUsageQuota) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CsmUsageQuotaCollection. func (c CsmUsageQuotaCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -4811,7 +4811,7 @@ func (c *CsmUsageQuotaCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomDNSSuffixConfiguration. func (c CustomDNSSuffixConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -4854,7 +4854,7 @@ func (c *CustomDNSSuffixConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomDNSSuffixConfigurationProperties. func (c CustomDNSSuffixConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "certificateUrl", c.CertificateURL) populate(objectMap, "dnsSuffix", c.DNSSuffix) populate(objectMap, "keyVaultReferenceIdentity", c.KeyVaultReferenceIdentity) @@ -4897,7 +4897,7 @@ func (c *CustomDNSSuffixConfigurationProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type CustomHostnameAnalysisResult. func (c CustomHostnameAnalysisResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -4940,7 +4940,7 @@ func (c *CustomHostnameAnalysisResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomHostnameAnalysisResultProperties. func (c CustomHostnameAnalysisResultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aRecords", c.ARecords) populate(objectMap, "alternateCNameRecords", c.AlternateCNameRecords) populate(objectMap, "alternateTxtRecords", c.AlternateTxtRecords) @@ -5007,7 +5007,7 @@ func (c *CustomHostnameAnalysisResultProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type CustomHostnameSites. func (c CustomHostnameSites) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "kind", c.Kind) populate(objectMap, "name", c.Name) @@ -5050,7 +5050,7 @@ func (c *CustomHostnameSites) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomHostnameSitesCollection. func (c CustomHostnameSitesCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -5081,7 +5081,7 @@ func (c *CustomHostnameSitesCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomHostnameSitesProperties. func (c CustomHostnameSitesProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "customHostname", c.CustomHostname) populate(objectMap, "region", c.Region) populate(objectMap, "siteResourceIds", c.SiteResourceIDs) @@ -5116,7 +5116,7 @@ func (c *CustomHostnameSitesProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomOpenIDConnectProvider. func (c CustomOpenIDConnectProvider) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", c.Enabled) populate(objectMap, "login", c.Login) populate(objectMap, "registration", c.Registration) @@ -5151,7 +5151,7 @@ func (c *CustomOpenIDConnectProvider) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomScaleRule. func (c CustomScaleRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "auth", c.Auth) populate(objectMap, "metadata", c.Metadata) populate(objectMap, "type", c.Type) @@ -5186,7 +5186,7 @@ func (c *CustomScaleRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Dapr. func (d Dapr) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appId", d.AppID) populate(objectMap, "appPort", d.AppPort) populate(objectMap, "components", d.Components) @@ -5225,7 +5225,7 @@ func (d *Dapr) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DaprComponent. func (d DaprComponent) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "metadata", d.Metadata) populate(objectMap, "name", d.Name) populate(objectMap, "type", d.Type) @@ -5264,7 +5264,7 @@ func (d *DaprComponent) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DaprMetadata. func (d DaprMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) populate(objectMap, "secretRef", d.SecretRef) populate(objectMap, "value", d.Value) @@ -5299,7 +5299,7 @@ func (d *DaprMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataProviderMetadata. func (d DataProviderMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "propertyBag", d.PropertyBag) populate(objectMap, "providerName", d.ProviderName) return json.Marshal(objectMap) @@ -5330,7 +5330,7 @@ func (d *DataProviderMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataSource. func (d DataSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataSourceUri", d.DataSourceURI) populate(objectMap, "instructions", d.Instructions) return json.Marshal(objectMap) @@ -5361,7 +5361,7 @@ func (d *DataSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataTableResponseColumn. func (d DataTableResponseColumn) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columnName", d.ColumnName) populate(objectMap, "columnType", d.ColumnType) populate(objectMap, "dataType", d.DataType) @@ -5396,7 +5396,7 @@ func (d *DataTableResponseColumn) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataTableResponseObject. func (d DataTableResponseObject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columns", d.Columns) populate(objectMap, "rows", d.Rows) populate(objectMap, "tableName", d.TableName) @@ -5431,7 +5431,7 @@ func (d *DataTableResponseObject) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabaseBackupSetting. func (d DatabaseBackupSetting) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", d.ConnectionString) populate(objectMap, "connectionStringName", d.ConnectionStringName) populate(objectMap, "databaseType", d.DatabaseType) @@ -5468,9 +5468,235 @@ func (d *DatabaseBackupSetting) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DatabaseConnection. +func (d DatabaseConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "kind", d.Kind) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConnection. +func (d *DatabaseConnection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseConnectionCollection. +func (d DatabaseConnectionCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConnectionCollection. +func (d *DatabaseConnectionCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &d.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseConnectionOverview. +func (d DatabaseConnectionOverview) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configurationFiles", d.ConfigurationFiles) + populate(objectMap, "connectionIdentity", d.ConnectionIdentity) + populate(objectMap, "name", d.Name) + populate(objectMap, "region", d.Region) + populate(objectMap, "resourceId", d.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConnectionOverview. +func (d *DatabaseConnectionOverview) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "configurationFiles": + err = unpopulate(val, "ConfigurationFiles", &d.ConfigurationFiles) + delete(rawMsg, key) + case "connectionIdentity": + err = unpopulate(val, "ConnectionIdentity", &d.ConnectionIdentity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "region": + err = unpopulate(val, "Region", &d.Region) + delete(rawMsg, key) + case "resourceId": + err = unpopulate(val, "ResourceID", &d.ResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseConnectionPatchRequest. +func (d DatabaseConnectionPatchRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", d.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConnectionPatchRequest. +func (d *DatabaseConnectionPatchRequest) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseConnectionPatchRequestProperties. +func (d DatabaseConnectionPatchRequestProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionIdentity", d.ConnectionIdentity) + populate(objectMap, "connectionString", d.ConnectionString) + populate(objectMap, "region", d.Region) + populate(objectMap, "resourceId", d.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConnectionPatchRequestProperties. +func (d *DatabaseConnectionPatchRequestProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectionIdentity": + err = unpopulate(val, "ConnectionIdentity", &d.ConnectionIdentity) + delete(rawMsg, key) + case "connectionString": + err = unpopulate(val, "ConnectionString", &d.ConnectionString) + delete(rawMsg, key) + case "region": + err = unpopulate(val, "Region", &d.Region) + delete(rawMsg, key) + case "resourceId": + err = unpopulate(val, "ResourceID", &d.ResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseConnectionProperties. +func (d DatabaseConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configurationFiles", d.ConfigurationFiles) + populate(objectMap, "connectionIdentity", d.ConnectionIdentity) + populate(objectMap, "connectionString", d.ConnectionString) + populate(objectMap, "region", d.Region) + populate(objectMap, "resourceId", d.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseConnectionProperties. +func (d *DatabaseConnectionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "configurationFiles": + err = unpopulate(val, "ConfigurationFiles", &d.ConfigurationFiles) + delete(rawMsg, key) + case "connectionIdentity": + err = unpopulate(val, "ConnectionIdentity", &d.ConnectionIdentity) + delete(rawMsg, key) + case "connectionString": + err = unpopulate(val, "ConnectionString", &d.ConnectionString) + delete(rawMsg, key) + case "region": + err = unpopulate(val, "Region", &d.Region) + delete(rawMsg, key) + case "resourceId": + err = unpopulate(val, "ResourceID", &d.ResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DefaultAuthorizationPolicy. func (d DefaultAuthorizationPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedApplications", d.AllowedApplications) populate(objectMap, "allowedPrincipals", d.AllowedPrincipals) return json.Marshal(objectMap) @@ -5501,7 +5727,7 @@ func (d *DefaultAuthorizationPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DefaultErrorResponse. func (d DefaultErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", d.Error) return json.Marshal(objectMap) } @@ -5528,7 +5754,7 @@ func (d *DefaultErrorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DefaultErrorResponseError. func (d DefaultErrorResponseError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", d.Code) populate(objectMap, "details", d.Details) populate(objectMap, "innererror", d.Innererror) @@ -5571,7 +5797,7 @@ func (d *DefaultErrorResponseError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DefaultErrorResponseErrorDetailsItem. func (d DefaultErrorResponseErrorDetailsItem) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", d.Code) populate(objectMap, "message", d.Message) populate(objectMap, "target", d.Target) @@ -5606,7 +5832,7 @@ func (d *DefaultErrorResponseErrorDetailsItem) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type DeletedAppRestoreRequest. func (d DeletedAppRestoreRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -5649,7 +5875,7 @@ func (d *DeletedAppRestoreRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedAppRestoreRequestProperties. func (d DeletedAppRestoreRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deletedSiteId", d.DeletedSiteID) populate(objectMap, "recoverConfiguration", d.RecoverConfiguration) populate(objectMap, "snapshotTime", d.SnapshotTime) @@ -5688,7 +5914,7 @@ func (d *DeletedAppRestoreRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedSite. func (d DeletedSite) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -5731,7 +5957,7 @@ func (d *DeletedSite) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedSiteProperties. func (d DeletedSiteProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deletedSiteId", d.DeletedSiteID) populate(objectMap, "deletedSiteName", d.DeletedSiteName) populate(objectMap, "deletedTimestamp", d.DeletedTimestamp) @@ -5786,7 +6012,7 @@ func (d *DeletedSiteProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedWebAppCollection. func (d DeletedWebAppCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -5817,7 +6043,7 @@ func (d *DeletedWebAppCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Deployment. func (d Deployment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -5860,7 +6086,7 @@ func (d *Deployment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentCollection. func (d DeploymentCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -5891,7 +6117,7 @@ func (d *DeploymentCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentLocations. func (d DeploymentLocations) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hostingEnvironmentDeploymentInfos", d.HostingEnvironmentDeploymentInfos) populate(objectMap, "hostingEnvironments", d.HostingEnvironments) populate(objectMap, "locations", d.Locations) @@ -5926,7 +6152,7 @@ func (d *DeploymentLocations) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentProperties. func (d DeploymentProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "active", d.Active) populate(objectMap, "author", d.Author) populate(objectMap, "author_email", d.AuthorEmail) @@ -5985,7 +6211,7 @@ func (d *DeploymentProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorAbnormalTimePeriod. func (d DetectorAbnormalTimePeriod) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", d.EndTime) populate(objectMap, "message", d.Message) populate(objectMap, "metaData", d.MetaData) @@ -6040,7 +6266,7 @@ func (d *DetectorAbnormalTimePeriod) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorDefinition. func (d DetectorDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", d.Description) populate(objectMap, "displayName", d.DisplayName) populate(objectMap, "isEnabled", d.IsEnabled) @@ -6079,7 +6305,7 @@ func (d *DetectorDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorDefinitionResource. func (d DetectorDefinitionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -6122,7 +6348,7 @@ func (d *DetectorDefinitionResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorInfo. func (d DetectorInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "analysisType", d.AnalysisType) populate(objectMap, "author", d.Author) populate(objectMap, "category", d.Category) @@ -6181,7 +6407,7 @@ func (d *DetectorInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorResponse. func (d DetectorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -6224,7 +6450,7 @@ func (d *DetectorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorResponseCollection. func (d DetectorResponseCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -6255,7 +6481,7 @@ func (d *DetectorResponseCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DetectorResponseProperties. func (d DetectorResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataProvidersMetadata", d.DataProvidersMetadata) populate(objectMap, "dataset", d.Dataset) populate(objectMap, "metadata", d.Metadata) @@ -6298,7 +6524,7 @@ func (d *DetectorResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticAnalysis. func (d DiagnosticAnalysis) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -6341,7 +6567,7 @@ func (d *DiagnosticAnalysis) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticAnalysisCollection. func (d DiagnosticAnalysisCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -6372,7 +6598,7 @@ func (d *DiagnosticAnalysisCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticAnalysisProperties. func (d DiagnosticAnalysisProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "abnormalTimePeriods", d.AbnormalTimePeriods) populateTimeRFC3339(objectMap, "endTime", d.EndTime) populate(objectMap, "nonCorrelatedDetectors", d.NonCorrelatedDetectors) @@ -6415,7 +6641,7 @@ func (d *DiagnosticAnalysisProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticCategory. func (d DiagnosticCategory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -6458,7 +6684,7 @@ func (d *DiagnosticCategory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticCategoryCollection. func (d DiagnosticCategoryCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -6489,7 +6715,7 @@ func (d *DiagnosticCategoryCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticCategoryProperties. func (d DiagnosticCategoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", d.Description) return json.Marshal(objectMap) } @@ -6516,7 +6742,7 @@ func (d *DiagnosticCategoryProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticData. func (d DiagnosticData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "renderingProperties", d.RenderingProperties) populate(objectMap, "table", d.Table) return json.Marshal(objectMap) @@ -6547,7 +6773,7 @@ func (d *DiagnosticData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticDetectorCollection. func (d DiagnosticDetectorCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -6578,7 +6804,7 @@ func (d *DiagnosticDetectorCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticDetectorResponse. func (d DiagnosticDetectorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -6621,7 +6847,7 @@ func (d *DiagnosticDetectorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticDetectorResponseProperties. func (d DiagnosticDetectorResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "abnormalTimePeriods", d.AbnormalTimePeriods) populate(objectMap, "data", d.Data) populate(objectMap, "detectorDefinition", d.DetectorDefinition) @@ -6676,7 +6902,7 @@ func (d *DiagnosticDetectorResponseProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type DiagnosticMetricSample. func (d DiagnosticMetricSample) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isAggregated", d.IsAggregated) populate(objectMap, "maximum", d.Maximum) populate(objectMap, "minimum", d.Minimum) @@ -6723,7 +6949,7 @@ func (d *DiagnosticMetricSample) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnosticMetricSet. func (d DiagnosticMetricSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", d.EndTime) populate(objectMap, "name", d.Name) populateTimeRFC3339(objectMap, "startTime", d.StartTime) @@ -6770,7 +6996,7 @@ func (d *DiagnosticMetricSet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Dimension. func (d Dimension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", d.DisplayName) populate(objectMap, "internalName", d.InternalName) populate(objectMap, "name", d.Name) @@ -6809,7 +7035,7 @@ func (d *Dimension) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Domain. func (d Domain) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "location", d.Location) @@ -6860,7 +7086,7 @@ func (d *Domain) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainAvailabilityCheckResult. func (d DomainAvailabilityCheckResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "available", d.Available) populate(objectMap, "domainType", d.DomainType) populate(objectMap, "name", d.Name) @@ -6895,7 +7121,7 @@ func (d *DomainAvailabilityCheckResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainCollection. func (d DomainCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -6926,7 +7152,7 @@ func (d *DomainCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainControlCenterSsoRequest. func (d DomainControlCenterSsoRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "postParameterKey", d.PostParameterKey) populate(objectMap, "postParameterValue", d.PostParameterValue) populate(objectMap, "url", d.URL) @@ -6961,7 +7187,7 @@ func (d *DomainControlCenterSsoRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainOwnershipIdentifier. func (d DomainOwnershipIdentifier) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -7004,7 +7230,7 @@ func (d *DomainOwnershipIdentifier) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainOwnershipIdentifierCollection. func (d DomainOwnershipIdentifierCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -7035,7 +7261,7 @@ func (d *DomainOwnershipIdentifierCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainOwnershipIdentifierProperties. func (d DomainOwnershipIdentifierProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ownershipId", d.OwnershipID) return json.Marshal(objectMap) } @@ -7062,7 +7288,7 @@ func (d *DomainOwnershipIdentifierProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainPatchResource. func (d DomainPatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "kind", d.Kind) populate(objectMap, "name", d.Name) @@ -7105,7 +7331,7 @@ func (d *DomainPatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainPatchResourceProperties. func (d DomainPatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authCode", d.AuthCode) populate(objectMap, "autoRenew", d.AutoRenew) populate(objectMap, "consent", d.Consent) @@ -7208,7 +7434,7 @@ func (d *DomainPatchResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainProperties. func (d DomainProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authCode", d.AuthCode) populate(objectMap, "autoRenew", d.AutoRenew) populate(objectMap, "consent", d.Consent) @@ -7311,7 +7537,7 @@ func (d *DomainProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainPurchaseConsent. func (d DomainPurchaseConsent) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "agreedAt", d.AgreedAt) populate(objectMap, "agreedBy", d.AgreedBy) populate(objectMap, "agreementKeys", d.AgreementKeys) @@ -7346,7 +7572,7 @@ func (d *DomainPurchaseConsent) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainRecommendationSearchParameters. func (d DomainRecommendationSearchParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keywords", d.Keywords) populate(objectMap, "maxDomainRecommendations", d.MaxDomainRecommendations) return json.Marshal(objectMap) @@ -7377,7 +7603,7 @@ func (d *DomainRecommendationSearchParameters) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type EnabledConfig. func (e EnabledConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", e.Enabled) return json.Marshal(objectMap) } @@ -7404,7 +7630,7 @@ func (e *EnabledConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EndpointDependency. func (e EndpointDependency) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domainName", e.DomainName) populate(objectMap, "endpointDetails", e.EndpointDetails) return json.Marshal(objectMap) @@ -7435,7 +7661,7 @@ func (e *EndpointDependency) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EndpointDetail. func (e EndpointDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ipAddress", e.IPAddress) populate(objectMap, "isAccessible", e.IsAccessible) populate(objectMap, "latency", e.Latency) @@ -7474,7 +7700,7 @@ func (e *EndpointDetail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Environment. func (e Environment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clusterSettings", e.ClusterSettings) populate(objectMap, "customDnsSuffixConfiguration", e.CustomDNSSuffixConfiguration) populate(objectMap, "dnsSuffix", e.DNSSuffix) @@ -7577,7 +7803,7 @@ func (e *Environment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentCollection. func (e EnvironmentCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", e.NextLink) populate(objectMap, "value", e.Value) return json.Marshal(objectMap) @@ -7608,7 +7834,7 @@ func (e *EnvironmentCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentPatchResource. func (e EnvironmentPatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", e.ID) populate(objectMap, "kind", e.Kind) populate(objectMap, "name", e.Name) @@ -7651,7 +7877,7 @@ func (e *EnvironmentPatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentResource. func (e EnvironmentResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", e.ID) populate(objectMap, "kind", e.Kind) populate(objectMap, "location", e.Location) @@ -7702,7 +7928,7 @@ func (e *EnvironmentResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentVar. func (e EnvironmentVar) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", e.Name) populate(objectMap, "secretRef", e.SecretRef) populate(objectMap, "value", e.Value) @@ -7737,7 +7963,7 @@ func (e *EnvironmentVar) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorEntity. func (e ErrorEntity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) populate(objectMap, "extendedCode", e.ExtendedCode) @@ -7792,7 +8018,7 @@ func (e *ErrorEntity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorInfo. func (e ErrorInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) return json.Marshal(objectMap) } @@ -7819,7 +8045,7 @@ func (e *ErrorInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorProperties. func (e ErrorProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "message", e.Message) return json.Marshal(objectMap) @@ -7850,7 +8076,7 @@ func (e *ErrorProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorResponse. func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) return json.Marshal(objectMap) } @@ -7877,7 +8103,7 @@ func (e *ErrorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Experiments. func (e Experiments) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "rampUpRules", e.RampUpRules) return json.Marshal(objectMap) } @@ -7904,7 +8130,7 @@ func (e *Experiments) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Expression. func (e Expression) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) populate(objectMap, "subexpressions", e.Subexpressions) populate(objectMap, "text", e.Text) @@ -7943,7 +8169,7 @@ func (e *Expression) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExpressionRoot. func (e ExpressionRoot) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) populate(objectMap, "path", e.Path) populate(objectMap, "subexpressions", e.Subexpressions) @@ -7986,7 +8212,7 @@ func (e *ExpressionRoot) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExpressionTraces. func (e ExpressionTraces) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "inputs", e.Inputs) populate(objectMap, "nextLink", e.NextLink) populate(objectMap, "value", &e.Value) @@ -8021,7 +8247,7 @@ func (e *ExpressionTraces) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExtendedLocation. func (e ExtendedLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", e.Name) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -8052,7 +8278,7 @@ func (e *ExtendedLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Facebook. func (f Facebook) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", f.Enabled) populate(objectMap, "graphApiVersion", f.GraphAPIVersion) populate(objectMap, "login", f.Login) @@ -8091,7 +8317,7 @@ func (f *Facebook) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemApplicationLogsConfig. func (f FileSystemApplicationLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "level", f.Level) return json.Marshal(objectMap) } @@ -8118,7 +8344,7 @@ func (f *FileSystemApplicationLogsConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemHTTPLogsConfig. func (f FileSystemHTTPLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", f.Enabled) populate(objectMap, "retentionInDays", f.RetentionInDays) populate(objectMap, "retentionInMb", f.RetentionInMb) @@ -8153,7 +8379,7 @@ func (f *FileSystemHTTPLogsConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemTokenStore. func (f FileSystemTokenStore) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "directory", f.Directory) return json.Marshal(objectMap) } @@ -8180,7 +8406,7 @@ func (f *FileSystemTokenStore) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FlowAccessControlConfiguration. func (f FlowAccessControlConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actions", f.Actions) populate(objectMap, "contents", f.Contents) populate(objectMap, "triggers", f.Triggers) @@ -8219,7 +8445,7 @@ func (f *FlowAccessControlConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FlowAccessControlConfigurationPolicy. func (f FlowAccessControlConfigurationPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedCallerIpAddresses", f.AllowedCallerIPAddresses) populate(objectMap, "openAuthenticationPolicies", f.OpenAuthenticationPolicies) return json.Marshal(objectMap) @@ -8250,7 +8476,7 @@ func (f *FlowAccessControlConfigurationPolicy) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type FlowEndpoints. func (f FlowEndpoints) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessEndpointIpAddresses", f.AccessEndpointIPAddresses) populate(objectMap, "outgoingIpAddresses", f.OutgoingIPAddresses) return json.Marshal(objectMap) @@ -8281,7 +8507,7 @@ func (f *FlowEndpoints) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FlowEndpointsConfiguration. func (f FlowEndpointsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connector", f.Connector) populate(objectMap, "workflow", f.Workflow) return json.Marshal(objectMap) @@ -8312,7 +8538,7 @@ func (f *FlowEndpointsConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ForwardProxy. func (f ForwardProxy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "convention", f.Convention) populate(objectMap, "customHostHeaderName", f.CustomHostHeaderName) populate(objectMap, "customProtoHeaderName", f.CustomProtoHeaderName) @@ -8347,7 +8573,7 @@ func (f *ForwardProxy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FrontEndConfiguration. func (f FrontEndConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "kind", f.Kind) return json.Marshal(objectMap) } @@ -8374,7 +8600,7 @@ func (f *FrontEndConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppMajorVersion. func (f FunctionAppMajorVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayText", f.DisplayText) populate(objectMap, "minorVersions", f.MinorVersions) populate(objectMap, "value", f.Value) @@ -8409,7 +8635,7 @@ func (f *FunctionAppMajorVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppMinorVersion. func (f FunctionAppMinorVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayText", f.DisplayText) populate(objectMap, "stackSettings", f.StackSettings) populate(objectMap, "value", f.Value) @@ -8444,7 +8670,7 @@ func (f *FunctionAppMinorVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppRuntimeSettings. func (f FunctionAppRuntimeSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appInsightsSettings", f.AppInsightsSettings) populate(objectMap, "appSettingsDictionary", f.AppSettingsDictionary) populateTimeRFC3339(objectMap, "endOfLifeDate", f.EndOfLifeDate) @@ -8523,7 +8749,7 @@ func (f *FunctionAppRuntimeSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppRuntimes. func (f FunctionAppRuntimes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linuxRuntimeSettings", f.LinuxRuntimeSettings) populate(objectMap, "windowsRuntimeSettings", f.WindowsRuntimeSettings) return json.Marshal(objectMap) @@ -8554,7 +8780,7 @@ func (f *FunctionAppRuntimes) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppStack. func (f FunctionAppStack) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", f.ID) populate(objectMap, "kind", f.Kind) populate(objectMap, "location", f.Location) @@ -8601,7 +8827,7 @@ func (f *FunctionAppStack) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppStackCollection. func (f FunctionAppStackCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", f.NextLink) populate(objectMap, "value", f.Value) return json.Marshal(objectMap) @@ -8632,7 +8858,7 @@ func (f *FunctionAppStackCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionAppStackProperties. func (f FunctionAppStackProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayText", f.DisplayText) populate(objectMap, "majorVersions", f.MajorVersions) populate(objectMap, "preferredOs", f.PreferredOs) @@ -8671,7 +8897,7 @@ func (f *FunctionAppStackProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionEnvelope. func (f FunctionEnvelope) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", f.ID) populate(objectMap, "kind", f.Kind) populate(objectMap, "name", f.Name) @@ -8714,7 +8940,7 @@ func (f *FunctionEnvelope) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionEnvelopeCollection. func (f FunctionEnvelopeCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", f.NextLink) populate(objectMap, "value", f.Value) return json.Marshal(objectMap) @@ -8745,7 +8971,7 @@ func (f *FunctionEnvelopeCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionEnvelopeProperties. func (f FunctionEnvelopeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "config", &f.Config) populate(objectMap, "config_href", f.ConfigHref) populate(objectMap, "files", f.Files) @@ -8820,7 +9046,7 @@ func (f *FunctionEnvelopeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FunctionSecrets. func (f FunctionSecrets) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "key", f.Key) populate(objectMap, "trigger_url", f.TriggerURL) return json.Marshal(objectMap) @@ -8851,7 +9077,7 @@ func (f *FunctionSecrets) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GeoRegion. func (g GeoRegion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", g.ID) populate(objectMap, "kind", g.Kind) populate(objectMap, "name", g.Name) @@ -8894,7 +9120,7 @@ func (g *GeoRegion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GeoRegionCollection. func (g GeoRegionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", g.NextLink) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) @@ -8925,7 +9151,7 @@ func (g *GeoRegionCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GeoRegionProperties. func (g GeoRegionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", g.Description) populate(objectMap, "displayName", g.DisplayName) populate(objectMap, "orgDomain", g.OrgDomain) @@ -8960,7 +9186,7 @@ func (g *GeoRegionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHub. func (g GitHub) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", g.Enabled) populate(objectMap, "login", g.Login) populate(objectMap, "registration", g.Registration) @@ -8995,7 +9221,7 @@ func (g *GitHub) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubActionCodeConfiguration. func (g GitHubActionCodeConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "runtimeStack", g.RuntimeStack) populate(objectMap, "runtimeVersion", g.RuntimeVersion) return json.Marshal(objectMap) @@ -9026,7 +9252,7 @@ func (g *GitHubActionCodeConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubActionConfiguration. func (g GitHubActionConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "codeConfiguration", g.CodeConfiguration) populate(objectMap, "containerConfiguration", g.ContainerConfiguration) populate(objectMap, "generateWorkflowFile", g.GenerateWorkflowFile) @@ -9065,7 +9291,7 @@ func (g *GitHubActionConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubActionContainerConfiguration. func (g GitHubActionContainerConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "imageName", g.ImageName) populate(objectMap, "password", g.Password) populate(objectMap, "serverUrl", g.ServerURL) @@ -9104,7 +9330,7 @@ func (g *GitHubActionContainerConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubActionWebAppStackSettings. func (g GitHubActionWebAppStackSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isSupported", g.IsSupported) populate(objectMap, "supportedVersion", g.SupportedVersion) return json.Marshal(objectMap) @@ -9135,7 +9361,7 @@ func (g *GitHubActionWebAppStackSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GithubToken. func (g GithubToken) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", g.AccessToken) populate(objectMap, "errorMessage", g.ErrorMessage) populate(objectMap, "gotToken", g.GotToken) @@ -9178,7 +9404,7 @@ func (g *GithubToken) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GithubTokenRequest. func (g GithubTokenRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", g.Code) populate(objectMap, "state", g.State) return json.Marshal(objectMap) @@ -9209,7 +9435,7 @@ func (g *GithubTokenRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalCsmSKUDescription. func (g GlobalCsmSKUDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capabilities", g.Capabilities) populate(objectMap, "capacity", g.Capacity) populate(objectMap, "family", g.Family) @@ -9260,7 +9486,7 @@ func (g *GlobalCsmSKUDescription) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalValidation. func (g GlobalValidation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "excludedPaths", g.ExcludedPaths) populate(objectMap, "redirectToProvider", g.RedirectToProvider) populate(objectMap, "requireAuthentication", g.RequireAuthentication) @@ -9299,7 +9525,7 @@ func (g *GlobalValidation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Google. func (g Google) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", g.Enabled) populate(objectMap, "login", g.Login) populate(objectMap, "registration", g.Registration) @@ -9338,7 +9564,7 @@ func (g *Google) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPLogsConfig. func (h HTTPLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureBlobStorage", h.AzureBlobStorage) populate(objectMap, "fileSystem", h.FileSystem) return json.Marshal(objectMap) @@ -9369,7 +9595,7 @@ func (h *HTTPLogsConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPScaleRule. func (h HTTPScaleRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "auth", h.Auth) populate(objectMap, "metadata", h.Metadata) return json.Marshal(objectMap) @@ -9400,7 +9626,7 @@ func (h *HTTPScaleRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPSettings. func (h HTTPSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "forwardProxy", h.ForwardProxy) populate(objectMap, "requireHttps", h.RequireHTTPS) populate(objectMap, "routes", h.Routes) @@ -9435,7 +9661,7 @@ func (h *HTTPSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPSettingsRoutes. func (h HTTPSettingsRoutes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiPrefix", h.APIPrefix) return json.Marshal(objectMap) } @@ -9462,7 +9688,7 @@ func (h *HTTPSettingsRoutes) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HandlerMapping. func (h HandlerMapping) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "extension", h.Extension) populate(objectMap, "scriptProcessor", h.ScriptProcessor) @@ -9497,7 +9723,7 @@ func (h *HandlerMapping) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostKeys. func (h HostKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "functionKeys", h.FunctionKeys) populate(objectMap, "masterKey", h.MasterKey) populate(objectMap, "systemKeys", h.SystemKeys) @@ -9532,7 +9758,7 @@ func (h *HostKeys) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostName. func (h HostName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureResourceName", h.AzureResourceName) populate(objectMap, "azureResourceType", h.AzureResourceType) populate(objectMap, "customHostNameDnsRecordType", h.CustomHostNameDNSRecordType) @@ -9579,7 +9805,7 @@ func (h *HostName) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostNameBinding. func (h HostNameBinding) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", h.ID) populate(objectMap, "kind", h.Kind) populate(objectMap, "name", h.Name) @@ -9622,7 +9848,7 @@ func (h *HostNameBinding) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostNameBindingCollection. func (h HostNameBindingCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", h.NextLink) populate(objectMap, "value", h.Value) return json.Marshal(objectMap) @@ -9653,7 +9879,7 @@ func (h *HostNameBindingCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostNameBindingProperties. func (h HostNameBindingProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureResourceName", h.AzureResourceName) populate(objectMap, "azureResourceType", h.AzureResourceType) populate(objectMap, "customHostNameDnsRecordType", h.CustomHostNameDNSRecordType) @@ -9712,7 +9938,7 @@ func (h *HostNameBindingProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostNameSSLState. func (h HostNameSSLState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hostType", h.HostType) populate(objectMap, "name", h.Name) populate(objectMap, "sslState", h.SSLState) @@ -9759,7 +9985,7 @@ func (h *HostNameSSLState) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostingEnvironmentDeploymentInfo. func (h HostingEnvironmentDeploymentInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", h.Location) populate(objectMap, "name", h.Name) return json.Marshal(objectMap) @@ -9790,7 +10016,7 @@ func (h *HostingEnvironmentDeploymentInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostingEnvironmentDiagnostics. func (h HostingEnvironmentDiagnostics) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "diagnosticsOutput", h.DiagnosticsOutput) populate(objectMap, "name", h.Name) return json.Marshal(objectMap) @@ -9821,7 +10047,7 @@ func (h *HostingEnvironmentDiagnostics) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HostingEnvironmentProfile. func (h HostingEnvironmentProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", h.ID) populate(objectMap, "name", h.Name) populate(objectMap, "type", h.Type) @@ -9856,7 +10082,7 @@ func (h *HostingEnvironmentProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnection. func (h HybridConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", h.ID) populate(objectMap, "kind", h.Kind) populate(objectMap, "name", h.Name) @@ -9899,7 +10125,7 @@ func (h *HybridConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnectionCollection. func (h HybridConnectionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", h.NextLink) populate(objectMap, "value", h.Value) return json.Marshal(objectMap) @@ -9930,7 +10156,7 @@ func (h *HybridConnectionCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnectionKey. func (h HybridConnectionKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", h.ID) populate(objectMap, "kind", h.Kind) populate(objectMap, "name", h.Name) @@ -9973,7 +10199,7 @@ func (h *HybridConnectionKey) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnectionKeyProperties. func (h HybridConnectionKeyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sendKeyName", h.SendKeyName) populate(objectMap, "sendKeyValue", h.SendKeyValue) return json.Marshal(objectMap) @@ -10004,7 +10230,7 @@ func (h *HybridConnectionKeyProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnectionLimits. func (h HybridConnectionLimits) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", h.ID) populate(objectMap, "kind", h.Kind) populate(objectMap, "name", h.Name) @@ -10047,7 +10273,7 @@ func (h *HybridConnectionLimits) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnectionLimitsProperties. func (h HybridConnectionLimitsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "current", h.Current) populate(objectMap, "maximum", h.Maximum) return json.Marshal(objectMap) @@ -10078,7 +10304,7 @@ func (h *HybridConnectionLimitsProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HybridConnectionProperties. func (h HybridConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hostname", h.Hostname) populate(objectMap, "port", h.Port) populate(objectMap, "relayArmUri", h.RelayArmURI) @@ -10133,7 +10359,7 @@ func (h *HybridConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IPAddress. func (i IPAddress) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "address", i.Address) return json.Marshal(objectMap) } @@ -10160,7 +10386,7 @@ func (i *IPAddress) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IPAddressRange. func (i IPAddressRange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "addressRange", i.AddressRange) return json.Marshal(objectMap) } @@ -10187,7 +10413,7 @@ func (i *IPAddressRange) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IPSecurityRestriction. func (i IPSecurityRestriction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "action", i.Action) populate(objectMap, "description", i.Description) populate(objectMap, "headers", i.Headers) @@ -10254,7 +10480,7 @@ func (i *IPSecurityRestriction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Identifier. func (i Identifier) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", i.ID) populate(objectMap, "kind", i.Kind) populate(objectMap, "name", i.Name) @@ -10297,7 +10523,7 @@ func (i *Identifier) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IdentifierCollection. func (i IdentifierCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", i.NextLink) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) @@ -10328,7 +10554,7 @@ func (i *IdentifierCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IdentifierProperties. func (i IdentifierProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", i.Value) return json.Marshal(objectMap) } @@ -10355,7 +10581,7 @@ func (i *IdentifierProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IdentityProviders. func (i IdentityProviders) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apple", i.Apple) populate(objectMap, "azureActiveDirectory", i.AzureActiveDirectory) populate(objectMap, "azureStaticWebApps", i.AzureStaticWebApps) @@ -10414,7 +10640,7 @@ func (i *IdentityProviders) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InboundEnvironmentEndpoint. func (i InboundEnvironmentEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", i.Description) populate(objectMap, "endpoints", i.Endpoints) populate(objectMap, "ports", i.Ports) @@ -10449,7 +10675,7 @@ func (i *InboundEnvironmentEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InboundEnvironmentEndpointCollection. func (i InboundEnvironmentEndpointCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", i.NextLink) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) @@ -10480,7 +10706,7 @@ func (i *InboundEnvironmentEndpointCollection) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type Ingress. func (i Ingress) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowInsecure", i.AllowInsecure) populate(objectMap, "external", i.External) populate(objectMap, "fqdn", i.Fqdn) @@ -10527,7 +10753,7 @@ func (i *Ingress) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONSchema. func (j JSONSchema) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "content", j.Content) populate(objectMap, "title", j.Title) return json.Marshal(objectMap) @@ -10558,7 +10784,7 @@ func (j *JSONSchema) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JwtClaimChecks. func (j JwtClaimChecks) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedClientApplications", j.AllowedClientApplications) populate(objectMap, "allowedGroups", j.AllowedGroups) return json.Marshal(objectMap) @@ -10589,7 +10815,7 @@ func (j *JwtClaimChecks) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KeyInfo. func (k KeyInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", k.Name) populate(objectMap, "value", k.Value) return json.Marshal(objectMap) @@ -10620,7 +10846,7 @@ func (k *KeyInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KeyValuePairStringObject. func (k KeyValuePairStringObject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "key", k.Key) populate(objectMap, "value", &k.Value) return json.Marshal(objectMap) @@ -10651,7 +10877,7 @@ func (k *KeyValuePairStringObject) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubeEnvironment. func (k KubeEnvironment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "extendedLocation", k.ExtendedLocation) populate(objectMap, "id", k.ID) populate(objectMap, "kind", k.Kind) @@ -10706,7 +10932,7 @@ func (k *KubeEnvironment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubeEnvironmentCollection. func (k KubeEnvironmentCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", k.NextLink) populate(objectMap, "value", k.Value) return json.Marshal(objectMap) @@ -10737,7 +10963,7 @@ func (k *KubeEnvironmentCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubeEnvironmentPatchResource. func (k KubeEnvironmentPatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", k.ID) populate(objectMap, "kind", k.Kind) populate(objectMap, "name", k.Name) @@ -10780,7 +11006,7 @@ func (k *KubeEnvironmentPatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubeEnvironmentPatchResourceProperties. func (k KubeEnvironmentPatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aksResourceID", k.AksResourceID) populate(objectMap, "appLogsConfiguration", k.AppLogsConfiguration) populate(objectMap, "arcConfiguration", k.ArcConfiguration) @@ -10839,7 +11065,7 @@ func (k *KubeEnvironmentPatchResourceProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type KubeEnvironmentProfile. func (k KubeEnvironmentProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", k.ID) populate(objectMap, "name", k.Name) populate(objectMap, "type", k.Type) @@ -10874,7 +11100,7 @@ func (k *KubeEnvironmentProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubeEnvironmentProperties. func (k KubeEnvironmentProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aksResourceID", k.AksResourceID) populate(objectMap, "appLogsConfiguration", k.AppLogsConfiguration) populate(objectMap, "arcConfiguration", k.ArcConfiguration) @@ -10937,7 +11163,7 @@ func (k *KubeEnvironmentProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LegacyMicrosoftAccount. func (l LegacyMicrosoftAccount) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", l.Enabled) populate(objectMap, "login", l.Login) populate(objectMap, "registration", l.Registration) @@ -10976,7 +11202,7 @@ func (l *LegacyMicrosoftAccount) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinuxJavaContainerSettings. func (l LinuxJavaContainerSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endOfLifeDate", l.EndOfLifeDate) populate(objectMap, "isAutoUpdate", l.IsAutoUpdate) populate(objectMap, "isDeprecated", l.IsDeprecated) @@ -11031,7 +11257,7 @@ func (l *LinuxJavaContainerSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LocalizableString. func (l LocalizableString) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localizedValue", l.LocalizedValue) populate(objectMap, "value", l.Value) return json.Marshal(objectMap) @@ -11062,7 +11288,7 @@ func (l *LocalizableString) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogAnalyticsConfiguration. func (l LogAnalyticsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "customerId", l.CustomerID) populate(objectMap, "sharedKey", l.SharedKey) return json.Marshal(objectMap) @@ -11093,7 +11319,7 @@ func (l *LogAnalyticsConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogSpecification. func (l LogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", l.BlobDuration) populate(objectMap, "displayName", l.DisplayName) populate(objectMap, "logFilterPattern", l.LogFilterPattern) @@ -11132,7 +11358,7 @@ func (l *LogSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Login. func (l Login) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedExternalRedirectUrls", l.AllowedExternalRedirectUrls) populate(objectMap, "cookieExpiration", l.CookieExpiration) populate(objectMap, "nonce", l.Nonce) @@ -11179,7 +11405,7 @@ func (l *Login) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LoginRoutes. func (l LoginRoutes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logoutEndpoint", l.LogoutEndpoint) return json.Marshal(objectMap) } @@ -11206,7 +11432,7 @@ func (l *LoginRoutes) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LoginScopes. func (l LoginScopes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "scopes", l.Scopes) return json.Marshal(objectMap) } @@ -11233,7 +11459,7 @@ func (l *LoginScopes) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeploy. func (m MSDeploy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "kind", m.Kind) populate(objectMap, "name", m.Name) @@ -11276,7 +11502,7 @@ func (m *MSDeploy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeployCore. func (m MSDeployCore) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appOffline", m.AppOffline) populate(objectMap, "connectionString", m.ConnectionString) populate(objectMap, "dbType", m.DbType) @@ -11327,7 +11553,7 @@ func (m *MSDeployCore) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeployLog. func (m MSDeployLog) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "kind", m.Kind) populate(objectMap, "name", m.Name) @@ -11370,7 +11596,7 @@ func (m *MSDeployLog) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeployLogEntry. func (m MSDeployLogEntry) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", m.Message) populateTimeRFC3339(objectMap, "time", m.Time) populate(objectMap, "type", m.Type) @@ -11405,7 +11631,7 @@ func (m *MSDeployLogEntry) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeployLogProperties. func (m MSDeployLogProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "entries", m.Entries) return json.Marshal(objectMap) } @@ -11432,7 +11658,7 @@ func (m *MSDeployLogProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeployStatus. func (m MSDeployStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "kind", m.Kind) populate(objectMap, "name", m.Name) @@ -11475,7 +11701,7 @@ func (m *MSDeployStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MSDeployStatusProperties. func (m MSDeployStatusProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "complete", m.Complete) populate(objectMap, "deployer", m.Deployer) populateTimeRFC3339(objectMap, "endTime", m.EndTime) @@ -11518,7 +11744,7 @@ func (m *MSDeployStatusProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity. func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", m.PrincipalID) populate(objectMap, "tenantId", m.TenantID) populate(objectMap, "type", m.Type) @@ -11557,7 +11783,7 @@ func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MetricAvailability. func (m MetricAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", m.BlobDuration) populate(objectMap, "timeGrain", m.TimeGrain) return json.Marshal(objectMap) @@ -11588,7 +11814,7 @@ func (m *MetricAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MetricSpecification. func (m MetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aggregationType", m.AggregationType) populate(objectMap, "availabilities", m.Availabilities) populate(objectMap, "category", m.Category) @@ -11679,7 +11905,7 @@ func (m *MetricSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MigrateMySQLRequest. func (m MigrateMySQLRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "kind", m.Kind) populate(objectMap, "name", m.Name) @@ -11722,7 +11948,7 @@ func (m *MigrateMySQLRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MigrateMySQLRequestProperties. func (m MigrateMySQLRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", m.ConnectionString) populate(objectMap, "migrationType", m.MigrationType) return json.Marshal(objectMap) @@ -11753,7 +11979,7 @@ func (m *MigrateMySQLRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MigrateMySQLStatus. func (m MigrateMySQLStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "kind", m.Kind) populate(objectMap, "name", m.Name) @@ -11796,7 +12022,7 @@ func (m *MigrateMySQLStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MigrateMySQLStatusProperties. func (m MigrateMySQLStatusProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localMySqlEnabled", m.LocalMySQLEnabled) populate(objectMap, "migrationOperationStatus", m.MigrationOperationStatus) populate(objectMap, "operationId", m.OperationID) @@ -11831,7 +12057,7 @@ func (m *MigrateMySQLStatusProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NameIdentifier. func (n NameIdentifier) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", n.Name) return json.Marshal(objectMap) } @@ -11858,7 +12084,7 @@ func (n *NameIdentifier) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NameIdentifierCollection. func (n NameIdentifierCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", n.NextLink) populate(objectMap, "value", n.Value) return json.Marshal(objectMap) @@ -11889,7 +12115,7 @@ func (n *NameIdentifierCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NameValuePair. func (n NameValuePair) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", n.Name) populate(objectMap, "value", n.Value) return json.Marshal(objectMap) @@ -11920,7 +12146,7 @@ func (n *NameValuePair) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetworkFeatures. func (n NetworkFeatures) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", n.ID) populate(objectMap, "kind", n.Kind) populate(objectMap, "name", n.Name) @@ -11963,7 +12189,7 @@ func (n *NetworkFeatures) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetworkFeaturesProperties. func (n NetworkFeaturesProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hybridConnections", n.HybridConnections) populate(objectMap, "hybridConnectionsV2", n.HybridConnectionsV2) populate(objectMap, "virtualNetworkConnection", n.VirtualNetworkConnection) @@ -12002,7 +12228,7 @@ func (n *NetworkFeaturesProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetworkTrace. func (n NetworkTrace) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", n.Message) populate(objectMap, "path", n.Path) populate(objectMap, "status", n.Status) @@ -12037,7 +12263,7 @@ func (n *NetworkTrace) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Nonce. func (n Nonce) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nonceExpirationInterval", n.NonceExpirationInterval) populate(objectMap, "validateNonce", n.ValidateNonce) return json.Marshal(objectMap) @@ -12068,7 +12294,7 @@ func (n *Nonce) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenAuthenticationAccessPolicies. func (o OpenAuthenticationAccessPolicies) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "policies", o.Policies) return json.Marshal(objectMap) } @@ -12095,7 +12321,7 @@ func (o *OpenAuthenticationAccessPolicies) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenAuthenticationAccessPolicy. func (o OpenAuthenticationAccessPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "claims", o.Claims) populate(objectMap, "type", o.Type) return json.Marshal(objectMap) @@ -12126,7 +12352,7 @@ func (o *OpenAuthenticationAccessPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenAuthenticationPolicyClaim. func (o OpenAuthenticationPolicyClaim) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", o.Name) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -12157,7 +12383,7 @@ func (o *OpenAuthenticationPolicyClaim) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenIDConnectClientCredential. func (o OpenIDConnectClientCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientSecretSettingName", o.ClientSecretSettingName) objectMap["method"] = "ClientSecretPost" return json.Marshal(objectMap) @@ -12188,7 +12414,7 @@ func (o *OpenIDConnectClientCredential) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenIDConnectConfig. func (o OpenIDConnectConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authorizationEndpoint", o.AuthorizationEndpoint) populate(objectMap, "certificationUri", o.CertificationURI) populate(objectMap, "issuer", o.Issuer) @@ -12231,7 +12457,7 @@ func (o *OpenIDConnectConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenIDConnectLogin. func (o OpenIDConnectLogin) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nameClaimType", o.NameClaimType) populate(objectMap, "scopes", o.Scopes) return json.Marshal(objectMap) @@ -12262,7 +12488,7 @@ func (o *OpenIDConnectLogin) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OpenIDConnectRegistration. func (o OpenIDConnectRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientCredential", o.ClientCredential) populate(objectMap, "clientId", o.ClientID) populate(objectMap, "openIdConnectConfiguration", o.OpenIDConnectConfiguration) @@ -12297,7 +12523,7 @@ func (o *OpenIDConnectRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdTime", o.CreatedTime) populate(objectMap, "errors", o.Errors) populateTimeRFC3339(objectMap, "expirationTime", o.ExpirationTime) @@ -12352,7 +12578,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResult. func (o OperationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", o.Code) populate(objectMap, "correlation", o.Correlation) populateTimeRFC3339(objectMap, "endTime", o.EndTime) @@ -12431,7 +12657,7 @@ func (o *OperationResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResultProperties. func (o OperationResultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", o.Code) populate(objectMap, "correlation", o.Correlation) populateTimeRFC3339(objectMap, "endTime", o.EndTime) @@ -12478,7 +12704,7 @@ func (o *OperationResultProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OutboundEnvironmentEndpoint. func (o OutboundEnvironmentEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "category", o.Category) populate(objectMap, "endpoints", o.Endpoints) return json.Marshal(objectMap) @@ -12509,7 +12735,7 @@ func (o *OutboundEnvironmentEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OutboundEnvironmentEndpointCollection. func (o OutboundEnvironmentEndpointCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -12540,7 +12766,7 @@ func (o *OutboundEnvironmentEndpointCollection) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PerfMonCounterCollection. func (p PerfMonCounterCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -12571,7 +12797,7 @@ func (p *PerfMonCounterCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PerfMonResponse. func (p PerfMonResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", p.Code) populate(objectMap, "data", p.Data) populate(objectMap, "message", p.Message) @@ -12606,7 +12832,7 @@ func (p *PerfMonResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PerfMonSample. func (p PerfMonSample) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "instanceName", p.InstanceName) populateTimeRFC3339(objectMap, "time", p.Time) populate(objectMap, "value", p.Value) @@ -12641,7 +12867,7 @@ func (p *PerfMonSample) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PerfMonSet. func (p PerfMonSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", p.EndTime) populate(objectMap, "name", p.Name) populateTimeRFC3339(objectMap, "startTime", p.StartTime) @@ -12684,7 +12910,7 @@ func (p *PerfMonSet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Plan. func (p Plan) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "extendedLocation", p.ExtendedLocation) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) @@ -12743,7 +12969,7 @@ func (p *Plan) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PlanCollection. func (p PlanCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -12774,7 +13000,7 @@ func (p *PlanCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PlanPatchResource. func (p PlanPatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -12817,7 +13043,7 @@ func (p *PlanPatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PlanPatchResourceProperties. func (p PlanPatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "elasticScaleEnabled", p.ElasticScaleEnabled) populateTimeRFC3339(objectMap, "freeOfferExpirationTime", p.FreeOfferExpirationTime) populate(objectMap, "geoRegion", p.GeoRegion) @@ -12932,7 +13158,7 @@ func (p *PlanPatchResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PlanProperties. func (p PlanProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "elasticScaleEnabled", p.ElasticScaleEnabled) populateTimeRFC3339(objectMap, "freeOfferExpirationTime", p.FreeOfferExpirationTime) populate(objectMap, "geoRegion", p.GeoRegion) @@ -13047,7 +13273,7 @@ func (p *PlanProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOn. func (p PremierAddOn) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "location", p.Location) @@ -13098,7 +13324,7 @@ func (p *PremierAddOn) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOnOffer. func (p PremierAddOnOffer) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -13141,7 +13367,7 @@ func (p *PremierAddOnOffer) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOnOfferCollection. func (p PremierAddOnOfferCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -13172,7 +13398,7 @@ func (p *PremierAddOnOfferCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOnOfferProperties. func (p PremierAddOnOfferProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "legalTermsUrl", p.LegalTermsURL) populate(objectMap, "marketplaceOffer", p.MarketplaceOffer) populate(objectMap, "marketplacePublisher", p.MarketplacePublisher) @@ -13235,7 +13461,7 @@ func (p *PremierAddOnOfferProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOnPatchResource. func (p PremierAddOnPatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -13278,7 +13504,7 @@ func (p *PremierAddOnPatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOnPatchResourceProperties. func (p PremierAddOnPatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "marketplaceOffer", p.MarketplaceOffer) populate(objectMap, "marketplacePublisher", p.MarketplacePublisher) populate(objectMap, "product", p.Product) @@ -13321,7 +13547,7 @@ func (p *PremierAddOnPatchResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PremierAddOnProperties. func (p PremierAddOnProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "marketplaceOffer", p.MarketplaceOffer) populate(objectMap, "marketplacePublisher", p.MarketplacePublisher) populate(objectMap, "product", p.Product) @@ -13364,7 +13590,7 @@ func (p *PremierAddOnProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateAccess. func (p PrivateAccess) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -13407,7 +13633,7 @@ func (p *PrivateAccess) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateAccessProperties. func (p PrivateAccessProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", p.Enabled) populate(objectMap, "virtualNetworks", p.VirtualNetworks) return json.Marshal(objectMap) @@ -13438,7 +13664,7 @@ func (p *PrivateAccessProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateAccessSubnet. func (p PrivateAccessSubnet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "key", p.Key) populate(objectMap, "name", p.Name) return json.Marshal(objectMap) @@ -13469,7 +13695,7 @@ func (p *PrivateAccessSubnet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateAccessVirtualNetwork. func (p PrivateAccessVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "key", p.Key) populate(objectMap, "name", p.Name) populate(objectMap, "resourceId", p.ResourceID) @@ -13508,7 +13734,7 @@ func (p *PrivateAccessVirtualNetwork) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionCollection. func (p PrivateEndpointConnectionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -13539,7 +13765,7 @@ func (p *PrivateEndpointConnectionCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequest. func (p PrivateLinkConnectionApprovalRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) return json.Marshal(objectMap) } @@ -13566,7 +13792,7 @@ func (p *PrivateLinkConnectionApprovalRequest) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequestResource. func (p PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -13609,7 +13835,7 @@ func (p *PrivateLinkConnectionApprovalRequestResource) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionState. func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -13644,7 +13870,7 @@ func (p *PrivateLinkConnectionState) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -13683,7 +13909,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) @@ -13718,7 +13944,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesWrapper. func (p PrivateLinkResourcesWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -13745,7 +13971,7 @@ func (p *PrivateLinkResourcesWrapper) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessInfo. func (p ProcessInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -13788,7 +14014,7 @@ func (p *ProcessInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessInfoCollection. func (p ProcessInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -13819,7 +14045,7 @@ func (p *ProcessInfoCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessInfoProperties. func (p ProcessInfoProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "children", p.Children) populate(objectMap, "command_line", p.CommandLine) populate(objectMap, "deployment_name", p.DeploymentName) @@ -13986,7 +14212,7 @@ func (p *ProcessInfoProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessModuleInfo. func (p ProcessModuleInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -14029,7 +14255,7 @@ func (p *ProcessModuleInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessModuleInfoCollection. func (p ProcessModuleInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -14060,7 +14286,7 @@ func (p *ProcessModuleInfoCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessModuleInfoProperties. func (p ProcessModuleInfoProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "base_address", p.BaseAddress) populate(objectMap, "file_description", p.FileDescription) populate(objectMap, "file_name", p.FileName) @@ -14127,7 +14353,7 @@ func (p *ProcessModuleInfoProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessThreadInfo. func (p ProcessThreadInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -14170,7 +14396,7 @@ func (p *ProcessThreadInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessThreadInfoCollection. func (p ProcessThreadInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -14201,7 +14427,7 @@ func (p *ProcessThreadInfoCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProcessThreadInfoProperties. func (p ProcessThreadInfoProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "base_priority", p.BasePriority) populate(objectMap, "current_priority", p.CurrentPriority) populate(objectMap, "href", p.Href) @@ -14272,7 +14498,7 @@ func (p *ProcessThreadInfoProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProxyOnlyResource. func (p ProxyOnlyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -14311,7 +14537,7 @@ func (p *ProxyOnlyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PublicCertificate. func (p PublicCertificate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -14354,7 +14580,7 @@ func (p *PublicCertificate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PublicCertificateCollection. func (p PublicCertificateCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -14385,7 +14611,7 @@ func (p *PublicCertificateCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PublicCertificateProperties. func (p PublicCertificateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateByteArray(objectMap, "blob", p.Blob, runtime.Base64StdFormat) populate(objectMap, "publicCertificateLocation", p.PublicCertificateLocation) populate(objectMap, "thumbprint", p.Thumbprint) @@ -14420,7 +14646,7 @@ func (p *PublicCertificateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PublishingCredentialsPoliciesCollection. func (p PublishingCredentialsPoliciesCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -14451,7 +14677,7 @@ func (p *PublishingCredentialsPoliciesCollection) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type PushSettings. func (p PushSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) @@ -14494,7 +14720,7 @@ func (p *PushSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PushSettingsProperties. func (p PushSettingsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dynamicTagsJson", p.DynamicTagsJSON) populate(objectMap, "isPushEnabled", p.IsPushEnabled) populate(objectMap, "tagWhitelistJson", p.TagWhitelistJSON) @@ -14533,7 +14759,7 @@ func (p *PushSettingsProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QueryUtterancesResult. func (q QueryUtterancesResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sampleUtterance", q.SampleUtterance) populate(objectMap, "score", q.Score) return json.Marshal(objectMap) @@ -14564,7 +14790,7 @@ func (q *QueryUtterancesResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QueryUtterancesResults. func (q QueryUtterancesResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "query", q.Query) populate(objectMap, "results", q.Results) return json.Marshal(objectMap) @@ -14595,7 +14821,7 @@ func (q *QueryUtterancesResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QueueScaleRule. func (q QueueScaleRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "auth", q.Auth) populate(objectMap, "queueLength", q.QueueLength) populate(objectMap, "queueName", q.QueueName) @@ -14630,7 +14856,7 @@ func (q *QueueScaleRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RampUpRule. func (r RampUpRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionHostName", r.ActionHostName) populate(objectMap, "changeDecisionCallbackUrl", r.ChangeDecisionCallbackURL) populate(objectMap, "changeIntervalInMinutes", r.ChangeIntervalInMinutes) @@ -14685,7 +14911,7 @@ func (r *RampUpRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Recommendation. func (r Recommendation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -14728,7 +14954,7 @@ func (r *Recommendation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecommendationCollection. func (r RecommendationCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -14759,7 +14985,7 @@ func (r *RecommendationCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecommendationProperties. func (r RecommendationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionName", r.ActionName) populate(objectMap, "bladeName", r.BladeName) populate(objectMap, "categoryTags", r.CategoryTags) @@ -14874,7 +15100,7 @@ func (r *RecommendationProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecommendationRule. func (r RecommendationRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -14917,7 +15143,7 @@ func (r *RecommendationRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecommendationRuleProperties. func (r RecommendationRuleProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionName", r.ActionName) populate(objectMap, "bladeName", r.BladeName) populate(objectMap, "categoryTags", r.CategoryTags) @@ -14992,7 +15218,7 @@ func (r *RecommendationRuleProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecurrenceSchedule. func (r RecurrenceSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hours", r.Hours) populate(objectMap, "minutes", r.Minutes) populate(objectMap, "monthDays", r.MonthDays) @@ -15035,7 +15261,7 @@ func (r *RecurrenceSchedule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecurrenceScheduleOccurrence. func (r RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "day", r.Day) populate(objectMap, "occurrence", r.Occurrence) return json.Marshal(objectMap) @@ -15066,7 +15292,7 @@ func (r *RecurrenceScheduleOccurrence) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RegenerateActionParameter. func (r RegenerateActionParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyType", r.KeyType) return json.Marshal(objectMap) } @@ -15093,7 +15319,7 @@ func (r *RegenerateActionParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RegistryCredentials. func (r RegistryCredentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "passwordSecretRef", r.PasswordSecretRef) populate(objectMap, "server", r.Server) populate(objectMap, "username", r.Username) @@ -15128,7 +15354,7 @@ func (r *RegistryCredentials) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReissueCertificateOrderRequest. func (r ReissueCertificateOrderRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -15171,7 +15397,7 @@ func (r *ReissueCertificateOrderRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReissueCertificateOrderRequestProperties. func (r ReissueCertificateOrderRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "csr", r.Csr) populate(objectMap, "delayExistingRevokeInHours", r.DelayExistingRevokeInHours) populate(objectMap, "isPrivateKeyExternal", r.IsPrivateKeyExternal) @@ -15210,7 +15436,7 @@ func (r *ReissueCertificateOrderRequestProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type RelayServiceConnectionEntity. func (r RelayServiceConnectionEntity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -15253,7 +15479,7 @@ func (r *RelayServiceConnectionEntity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RelayServiceConnectionEntityProperties. func (r RelayServiceConnectionEntityProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "biztalkUri", r.BiztalkURI) populate(objectMap, "entityConnectionString", r.EntityConnectionString) populate(objectMap, "entityName", r.EntityName) @@ -15304,7 +15530,7 @@ func (r *RelayServiceConnectionEntityProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnection. func (r RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -15347,7 +15573,7 @@ func (r *RemotePrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnectionARMResource. func (r RemotePrivateEndpointConnectionARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -15390,7 +15616,7 @@ func (r *RemotePrivateEndpointConnectionARMResource) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnectionARMResourceProperties. func (r RemotePrivateEndpointConnectionARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ipAddresses", r.IPAddresses) populate(objectMap, "privateEndpoint", r.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", r.PrivateLinkServiceConnectionState) @@ -15429,7 +15655,7 @@ func (r *RemotePrivateEndpointConnectionARMResourceProperties) UnmarshalJSON(dat // MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnectionProperties. func (r RemotePrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ipAddresses", r.IPAddresses) populate(objectMap, "privateEndpoint", r.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", r.PrivateLinkServiceConnectionState) @@ -15468,7 +15694,7 @@ func (r *RemotePrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type Rendering. func (r Rendering) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", r.Description) populate(objectMap, "title", r.Title) populate(objectMap, "type", r.Type) @@ -15503,7 +15729,7 @@ func (r *Rendering) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RenewCertificateOrderRequest. func (r RenewCertificateOrderRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -15546,7 +15772,7 @@ func (r *RenewCertificateOrderRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RenewCertificateOrderRequestProperties. func (r RenewCertificateOrderRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "csr", r.Csr) populate(objectMap, "isPrivateKeyExternal", r.IsPrivateKeyExternal) populate(objectMap, "keySize", r.KeySize) @@ -15581,7 +15807,7 @@ func (r *RenewCertificateOrderRequestProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type RepetitionIndex. func (r RepetitionIndex) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "itemIndex", r.ItemIndex) populate(objectMap, "scopeName", r.ScopeName) return json.Marshal(objectMap) @@ -15612,7 +15838,7 @@ func (r *RepetitionIndex) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Request. func (r Request) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "headers", &r.Headers) populate(objectMap, "method", r.Method) populate(objectMap, "uri", r.URI) @@ -15647,7 +15873,7 @@ func (r *Request) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RequestHistory. func (r RequestHistory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "location", r.Location) populate(objectMap, "name", r.Name) @@ -15694,7 +15920,7 @@ func (r *RequestHistory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RequestHistoryListResult. func (r RequestHistoryListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -15725,7 +15951,7 @@ func (r *RequestHistoryListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RequestHistoryProperties. func (r RequestHistoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", r.EndTime) populate(objectMap, "request", r.Request) populate(objectMap, "response", r.Response) @@ -15764,7 +15990,7 @@ func (r *RequestHistoryProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RequestsBasedTrigger. func (r RequestsBasedTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", r.Count) populate(objectMap, "timeInterval", r.TimeInterval) return json.Marshal(objectMap) @@ -15795,7 +16021,7 @@ func (r *RequestsBasedTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Resource. func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "location", r.Location) @@ -15842,7 +16068,7 @@ func (r *Resource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceCollection. func (r ResourceCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -15873,7 +16099,7 @@ func (r *ResourceCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceHealthMetadata. func (r ResourceHealthMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -15916,7 +16142,7 @@ func (r *ResourceHealthMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceHealthMetadataCollection. func (r ResourceHealthMetadataCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -15947,7 +16173,7 @@ func (r *ResourceHealthMetadataCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceHealthMetadataProperties. func (r ResourceHealthMetadataProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "category", r.Category) populate(objectMap, "signalAvailability", r.SignalAvailability) return json.Marshal(objectMap) @@ -15978,7 +16204,7 @@ func (r *ResourceHealthMetadataProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceMetricAvailability. func (r ResourceMetricAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "retention", r.Retention) populate(objectMap, "timeGrain", r.TimeGrain) return json.Marshal(objectMap) @@ -16009,7 +16235,7 @@ func (r *ResourceMetricAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceMetricDefinition. func (r ResourceMetricDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -16052,7 +16278,7 @@ func (r *ResourceMetricDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceMetricDefinitionCollection. func (r ResourceMetricDefinitionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -16083,7 +16309,7 @@ func (r *ResourceMetricDefinitionCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceMetricDefinitionProperties. func (r ResourceMetricDefinitionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "metricAvailabilities", r.MetricAvailabilities) populate(objectMap, "primaryAggregationType", r.PrimaryAggregationType) populate(objectMap, "properties", r.Properties) @@ -16126,7 +16352,7 @@ func (r *ResourceMetricDefinitionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceNameAvailability. func (r ResourceNameAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", r.Message) populate(objectMap, "nameAvailable", r.NameAvailable) populate(objectMap, "reason", r.Reason) @@ -16161,7 +16387,7 @@ func (r *ResourceNameAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceNameAvailabilityRequest. func (r ResourceNameAvailabilityRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isFqdn", r.IsFqdn) populate(objectMap, "name", r.Name) populate(objectMap, "type", r.Type) @@ -16196,7 +16422,7 @@ func (r *ResourceNameAvailabilityRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceReference. func (r ResourceReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "type", r.Type) @@ -16231,7 +16457,7 @@ func (r *ResourceReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Response. func (r Response) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bodyLink", r.BodyLink) populate(objectMap, "headers", &r.Headers) populate(objectMap, "statusCode", r.StatusCode) @@ -16266,7 +16492,7 @@ func (r *Response) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResponseMessageEnvelopeRemotePrivateEndpointConnection. func (r ResponseMessageEnvelopeRemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", r.Error) populate(objectMap, "id", r.ID) populate(objectMap, "identity", r.Identity) @@ -16337,7 +16563,7 @@ func (r *ResponseMessageEnvelopeRemotePrivateEndpointConnection) UnmarshalJSON(d // MarshalJSON implements the json.Marshaller interface for type ResponseMetaData. func (r ResponseMetaData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataSource", r.DataSource) return json.Marshal(objectMap) } @@ -16364,7 +16590,7 @@ func (r *ResponseMetaData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreRequest. func (r RestoreRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "name", r.Name) @@ -16407,7 +16633,7 @@ func (r *RestoreRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreRequestProperties. func (r RestoreRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "adjustConnectionStrings", r.AdjustConnectionStrings) populate(objectMap, "appServicePlan", r.AppServicePlan) populate(objectMap, "blobName", r.BlobName) @@ -16474,7 +16700,7 @@ func (r *RestoreRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RetryHistory. func (r RetryHistory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientRequestId", r.ClientRequestID) populate(objectMap, "code", r.Code) populateTimeRFC3339(objectMap, "endTime", r.EndTime) @@ -16521,7 +16747,7 @@ func (r *RetryHistory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Revision. func (r Revision) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "kind", r.Kind) populate(objectMap, "location", r.Location) @@ -16572,7 +16798,7 @@ func (r *Revision) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RevisionCollection. func (r RevisionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -16603,7 +16829,7 @@ func (r *RevisionCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RevisionProperties. func (r RevisionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "active", r.Active) populateTimeRFC3339(objectMap, "createdTime", r.CreatedTime) populate(objectMap, "fqdn", r.Fqdn) @@ -16662,7 +16888,7 @@ func (r *RevisionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunActionCorrelation. func (r RunActionCorrelation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionTrackingId", r.ActionTrackingID) populate(objectMap, "clientKeywords", r.ClientKeywords) populate(objectMap, "clientTrackingId", r.ClientTrackingID) @@ -16697,7 +16923,7 @@ func (r *RunActionCorrelation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunCorrelation. func (r RunCorrelation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientKeywords", r.ClientKeywords) populate(objectMap, "clientTrackingId", r.ClientTrackingID) return json.Marshal(objectMap) @@ -16728,7 +16954,7 @@ func (r *RunCorrelation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUCapacity. func (s SKUCapacity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "default", s.Default) populate(objectMap, "elasticMaximum", s.ElasticMaximum) populate(objectMap, "maximum", s.Maximum) @@ -16771,7 +16997,7 @@ func (s *SKUCapacity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUDescription. func (s SKUDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capabilities", s.Capabilities) populate(objectMap, "capacity", s.Capacity) populate(objectMap, "family", s.Family) @@ -16826,7 +17052,7 @@ func (s *SKUDescription) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUInfo. func (s SKUInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capacity", s.Capacity) populate(objectMap, "resourceType", s.ResourceType) populate(objectMap, "sku", s.SKU) @@ -16861,7 +17087,7 @@ func (s *SKUInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUInfoCollection. func (s SKUInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -16892,7 +17118,7 @@ func (s *SKUInfoCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUInfos. func (s SKUInfos) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resourceType", s.ResourceType) populate(objectMap, "skus", s.SKUs) return json.Marshal(objectMap) @@ -16923,7 +17149,7 @@ func (s *SKUInfos) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SampleUtterance. func (s SampleUtterance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "links", s.Links) populate(objectMap, "qid", s.Qid) populate(objectMap, "text", s.Text) @@ -16958,7 +17184,7 @@ func (s *SampleUtterance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Scale. func (s Scale) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "maxReplicas", s.MaxReplicas) populate(objectMap, "minReplicas", s.MinReplicas) populate(objectMap, "rules", s.Rules) @@ -16993,7 +17219,7 @@ func (s *Scale) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScaleRule. func (s ScaleRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureQueue", s.AzureQueue) populate(objectMap, "custom", s.Custom) populate(objectMap, "http", s.HTTP) @@ -17032,7 +17258,7 @@ func (s *ScaleRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScaleRuleAuth. func (s ScaleRuleAuth) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "secretRef", s.SecretRef) populate(objectMap, "triggerParameter", s.TriggerParameter) return json.Marshal(objectMap) @@ -17063,7 +17289,7 @@ func (s *ScaleRuleAuth) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Secret. func (s Secret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -17094,7 +17320,7 @@ func (s *Secret) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SecretsCollection. func (s SecretsCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -17121,7 +17347,7 @@ func (s *SecretsCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. func (s ServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSpecifications", s.LogSpecifications) populate(objectMap, "metricSpecifications", s.MetricSpecifications) return json.Marshal(objectMap) @@ -17152,7 +17378,7 @@ func (s *ServiceSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Site. func (s Site) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "extendedLocation", s.ExtendedLocation) populate(objectMap, "id", s.ID) populate(objectMap, "identity", s.Identity) @@ -17211,7 +17437,7 @@ func (s *Site) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteAuthSettings. func (s SiteAuthSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -17254,7 +17480,7 @@ func (s *SiteAuthSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteAuthSettingsProperties. func (s SiteAuthSettingsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadClaimsAuthorization", s.AADClaimsAuthorization) populate(objectMap, "additionalLoginParams", s.AdditionalLoginParams) populate(objectMap, "allowedAudiences", s.AllowedAudiences) @@ -17429,7 +17655,7 @@ func (s *SiteAuthSettingsProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteAuthSettingsV2. func (s SiteAuthSettingsV2) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -17472,7 +17698,7 @@ func (s *SiteAuthSettingsV2) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteAuthSettingsV2Properties. func (s SiteAuthSettingsV2Properties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "globalValidation", s.GlobalValidation) populate(objectMap, "httpSettings", s.HTTPSettings) populate(objectMap, "identityProviders", s.IdentityProviders) @@ -17515,7 +17741,7 @@ func (s *SiteAuthSettingsV2Properties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteCloneability. func (s SiteCloneability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blockingCharacteristics", s.BlockingCharacteristics) populate(objectMap, "blockingFeatures", s.BlockingFeatures) populate(objectMap, "result", s.Result) @@ -17554,7 +17780,7 @@ func (s *SiteCloneability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteCloneabilityCriterion. func (s SiteCloneabilityCriterion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) return json.Marshal(objectMap) @@ -17585,7 +17811,7 @@ func (s *SiteCloneabilityCriterion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteConfig. func (s SiteConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiDefinition", s.APIDefinition) populate(objectMap, "apiManagementConfig", s.APIManagementConfig) populate(objectMap, "acrUseManagedIdentityCreds", s.AcrUseManagedIdentityCreds) @@ -17602,6 +17828,7 @@ func (s SiteConfig) MarshalJSON() ([]byte, error) { populate(objectMap, "defaultDocuments", s.DefaultDocuments) populate(objectMap, "detailedErrorLoggingEnabled", s.DetailedErrorLoggingEnabled) populate(objectMap, "documentRoot", s.DocumentRoot) + populate(objectMap, "elasticWebAppScaleLimit", s.ElasticWebAppScaleLimit) populate(objectMap, "experiments", s.Experiments) populate(objectMap, "ftpsState", s.FtpsState) populate(objectMap, "functionAppScaleLimit", s.FunctionAppScaleLimit) @@ -17611,6 +17838,7 @@ func (s SiteConfig) MarshalJSON() ([]byte, error) { populate(objectMap, "healthCheckPath", s.HealthCheckPath) populate(objectMap, "http20Enabled", s.Http20Enabled) populate(objectMap, "ipSecurityRestrictions", s.IPSecurityRestrictions) + populate(objectMap, "ipSecurityRestrictionsDefaultAction", s.IPSecurityRestrictionsDefaultAction) populate(objectMap, "javaContainer", s.JavaContainer) populate(objectMap, "javaContainerVersion", s.JavaContainerVersion) populate(objectMap, "javaVersion", s.JavaVersion) @@ -17623,6 +17851,7 @@ func (s SiteConfig) MarshalJSON() ([]byte, error) { populate(objectMap, "machineKey", s.MachineKey) populate(objectMap, "managedPipelineMode", s.ManagedPipelineMode) populate(objectMap, "managedServiceIdentityId", s.ManagedServiceIdentityID) + populate(objectMap, "metadata", s.Metadata) populate(objectMap, "minTlsVersion", s.MinTLSVersion) populate(objectMap, "minimumElasticInstanceCount", s.MinimumElasticInstanceCount) populate(objectMap, "netFrameworkVersion", s.NetFrameworkVersion) @@ -17640,6 +17869,7 @@ func (s SiteConfig) MarshalJSON() ([]byte, error) { populate(objectMap, "requestTracingEnabled", s.RequestTracingEnabled) populateTimeRFC3339(objectMap, "requestTracingExpirationTime", s.RequestTracingExpirationTime) populate(objectMap, "scmIpSecurityRestrictions", s.ScmIPSecurityRestrictions) + populate(objectMap, "scmIpSecurityRestrictionsDefaultAction", s.ScmIPSecurityRestrictionsDefaultAction) populate(objectMap, "scmIpSecurityRestrictionsUseMain", s.ScmIPSecurityRestrictionsUseMain) populate(objectMap, "scmMinTlsVersion", s.ScmMinTLSVersion) populate(objectMap, "scmType", s.ScmType) @@ -17713,6 +17943,9 @@ func (s *SiteConfig) UnmarshalJSON(data []byte) error { case "documentRoot": err = unpopulate(val, "DocumentRoot", &s.DocumentRoot) delete(rawMsg, key) + case "elasticWebAppScaleLimit": + err = unpopulate(val, "ElasticWebAppScaleLimit", &s.ElasticWebAppScaleLimit) + delete(rawMsg, key) case "experiments": err = unpopulate(val, "Experiments", &s.Experiments) delete(rawMsg, key) @@ -17740,6 +17973,9 @@ func (s *SiteConfig) UnmarshalJSON(data []byte) error { case "ipSecurityRestrictions": err = unpopulate(val, "IPSecurityRestrictions", &s.IPSecurityRestrictions) delete(rawMsg, key) + case "ipSecurityRestrictionsDefaultAction": + err = unpopulate(val, "IPSecurityRestrictionsDefaultAction", &s.IPSecurityRestrictionsDefaultAction) + delete(rawMsg, key) case "javaContainer": err = unpopulate(val, "JavaContainer", &s.JavaContainer) delete(rawMsg, key) @@ -17776,6 +18012,9 @@ func (s *SiteConfig) UnmarshalJSON(data []byte) error { case "managedServiceIdentityId": err = unpopulate(val, "ManagedServiceIdentityID", &s.ManagedServiceIdentityID) delete(rawMsg, key) + case "metadata": + err = unpopulate(val, "Metadata", &s.Metadata) + delete(rawMsg, key) case "minTlsVersion": err = unpopulate(val, "MinTLSVersion", &s.MinTLSVersion) delete(rawMsg, key) @@ -17827,6 +18066,9 @@ func (s *SiteConfig) UnmarshalJSON(data []byte) error { case "scmIpSecurityRestrictions": err = unpopulate(val, "ScmIPSecurityRestrictions", &s.ScmIPSecurityRestrictions) delete(rawMsg, key) + case "scmIpSecurityRestrictionsDefaultAction": + err = unpopulate(val, "ScmIPSecurityRestrictionsDefaultAction", &s.ScmIPSecurityRestrictionsDefaultAction) + delete(rawMsg, key) case "scmIpSecurityRestrictionsUseMain": err = unpopulate(val, "ScmIPSecurityRestrictionsUseMain", &s.ScmIPSecurityRestrictionsUseMain) delete(rawMsg, key) @@ -17876,7 +18118,7 @@ func (s *SiteConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteConfigPropertiesDictionary. func (s SiteConfigPropertiesDictionary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "javaVersion", s.JavaVersion) populate(objectMap, "linuxFxVersion", s.LinuxFxVersion) populate(objectMap, "powerShellVersion", s.PowerShellVersion) @@ -17915,7 +18157,7 @@ func (s *SiteConfigPropertiesDictionary) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteConfigResource. func (s SiteConfigResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -17958,7 +18200,7 @@ func (s *SiteConfigResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteConfigResourceCollection. func (s SiteConfigResourceCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -17989,7 +18231,7 @@ func (s *SiteConfigResourceCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteConfigurationSnapshotInfo. func (s SiteConfigurationSnapshotInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -18032,7 +18274,7 @@ func (s *SiteConfigurationSnapshotInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteConfigurationSnapshotInfoCollection. func (s SiteConfigurationSnapshotInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -18063,7 +18305,7 @@ func (s *SiteConfigurationSnapshotInfoCollection) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SiteConfigurationSnapshotInfoProperties. func (s SiteConfigurationSnapshotInfoProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "snapshotId", s.SnapshotID) populateTimeRFC3339(objectMap, "time", s.Time) return json.Marshal(objectMap) @@ -18094,7 +18336,7 @@ func (s *SiteConfigurationSnapshotInfoProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SiteExtensionInfo. func (s SiteExtensionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -18137,7 +18379,7 @@ func (s *SiteExtensionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteExtensionInfoCollection. func (s SiteExtensionInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -18168,7 +18410,7 @@ func (s *SiteExtensionInfoCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteExtensionInfoProperties. func (s SiteExtensionInfoProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authors", s.Authors) populate(objectMap, "comment", s.Comment) populate(objectMap, "description", s.Description) @@ -18271,7 +18513,7 @@ func (s *SiteExtensionInfoProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteLimits. func (s SiteLimits) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "maxDiskSizeInMb", s.MaxDiskSizeInMb) populate(objectMap, "maxMemoryInMb", s.MaxMemoryInMb) populate(objectMap, "maxPercentageCpu", s.MaxPercentageCPU) @@ -18306,7 +18548,7 @@ func (s *SiteLimits) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteLogsConfig. func (s SiteLogsConfig) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -18349,7 +18591,7 @@ func (s *SiteLogsConfig) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteLogsConfigProperties. func (s SiteLogsConfigProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "applicationLogs", s.ApplicationLogs) populate(objectMap, "detailedErrorMessages", s.DetailedErrorMessages) populate(objectMap, "failedRequestsTracing", s.FailedRequestsTracing) @@ -18388,7 +18630,7 @@ func (s *SiteLogsConfigProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteMachineKey. func (s SiteMachineKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "decryption", s.Decryption) populate(objectMap, "decryptionKey", s.DecryptionKey) populate(objectMap, "validation", s.Validation) @@ -18427,7 +18669,7 @@ func (s *SiteMachineKey) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SitePatchResource. func (s SitePatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "identity", s.Identity) populate(objectMap, "kind", s.Kind) @@ -18474,7 +18716,7 @@ func (s *SitePatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SitePatchResourceProperties. func (s SitePatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "availabilityState", s.AvailabilityState) populate(objectMap, "clientAffinityEnabled", s.ClientAffinityEnabled) populate(objectMap, "clientCertEnabled", s.ClientCertEnabled) @@ -18661,7 +18903,7 @@ func (s *SitePatchResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SitePhpErrorLogFlag. func (s SitePhpErrorLogFlag) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -18704,7 +18946,7 @@ func (s *SitePhpErrorLogFlag) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SitePhpErrorLogFlagProperties. func (s SitePhpErrorLogFlagProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localLogErrors", s.LocalLogErrors) populate(objectMap, "localLogErrorsMaxLength", s.LocalLogErrorsMaxLength) populate(objectMap, "masterLogErrors", s.MasterLogErrors) @@ -18743,7 +18985,7 @@ func (s *SitePhpErrorLogFlagProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteProperties. func (s SiteProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "availabilityState", s.AvailabilityState) populate(objectMap, "clientAffinityEnabled", s.ClientAffinityEnabled) populate(objectMap, "clientCertEnabled", s.ClientCertEnabled) @@ -18767,6 +19009,7 @@ func (s SiteProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "isXenon", s.IsXenon) populate(objectMap, "keyVaultReferenceIdentity", s.KeyVaultReferenceIdentity) populateTimeRFC3339(objectMap, "lastModifiedTimeUtc", s.LastModifiedTimeUTC) + populate(objectMap, "managedEnvironmentId", s.ManagedEnvironmentID) populate(objectMap, "maxNumberOfWorkers", s.MaxNumberOfWorkers) populate(objectMap, "outboundIpAddresses", s.OutboundIPAddresses) populate(objectMap, "possibleOutboundIpAddresses", s.PossibleOutboundIPAddresses) @@ -18870,6 +19113,9 @@ func (s *SiteProperties) UnmarshalJSON(data []byte) error { case "lastModifiedTimeUtc": err = unpopulateTimeRFC3339(val, "LastModifiedTimeUTC", &s.LastModifiedTimeUTC) delete(rawMsg, key) + case "managedEnvironmentId": + err = unpopulate(val, "ManagedEnvironmentID", &s.ManagedEnvironmentID) + delete(rawMsg, key) case "maxNumberOfWorkers": err = unpopulate(val, "MaxNumberOfWorkers", &s.MaxNumberOfWorkers) delete(rawMsg, key) @@ -18946,7 +19192,7 @@ func (s *SiteProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteSeal. func (s SiteSeal) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "html", s.HTML) return json.Marshal(objectMap) } @@ -18973,7 +19219,7 @@ func (s *SiteSeal) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteSealRequest. func (s SiteSealRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "lightTheme", s.LightTheme) populate(objectMap, "locale", s.Locale) return json.Marshal(objectMap) @@ -19004,7 +19250,7 @@ func (s *SiteSealRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteSourceControl. func (s SiteSourceControl) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -19047,7 +19293,7 @@ func (s *SiteSourceControl) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteSourceControlProperties. func (s SiteSourceControlProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "branch", s.Branch) populate(objectMap, "deploymentRollbackEnabled", s.DeploymentRollbackEnabled) populate(objectMap, "gitHubActionConfiguration", s.GitHubActionConfiguration) @@ -19098,7 +19344,7 @@ func (s *SiteSourceControlProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlotConfigNames. func (s SlotConfigNames) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appSettingNames", s.AppSettingNames) populate(objectMap, "azureStorageConfigNames", s.AzureStorageConfigNames) populate(objectMap, "connectionStringNames", s.ConnectionStringNames) @@ -19133,7 +19379,7 @@ func (s *SlotConfigNames) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlotConfigNamesResource. func (s SlotConfigNamesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -19176,7 +19422,7 @@ func (s *SlotConfigNamesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlotDifference. func (s SlotDifference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -19219,7 +19465,7 @@ func (s *SlotDifference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlotDifferenceCollection. func (s SlotDifferenceCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -19250,7 +19496,7 @@ func (s *SlotDifferenceCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlotDifferenceProperties. func (s SlotDifferenceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "diffRule", s.DiffRule) populate(objectMap, "level", s.Level) @@ -19301,7 +19547,7 @@ func (s *SlotDifferenceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlotSwapStatus. func (s SlotSwapStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "destinationSlotName", s.DestinationSlotName) populate(objectMap, "sourceSlotName", s.SourceSlotName) populateTimeRFC3339(objectMap, "timestampUtc", s.TimestampUTC) @@ -19336,7 +19582,7 @@ func (s *SlotSwapStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SlowRequestsBasedTrigger. func (s SlowRequestsBasedTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", s.Count) populate(objectMap, "path", s.Path) populate(objectMap, "timeInterval", s.TimeInterval) @@ -19375,7 +19621,7 @@ func (s *SlowRequestsBasedTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Snapshot. func (s Snapshot) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -19418,7 +19664,7 @@ func (s *Snapshot) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnapshotCollection. func (s SnapshotCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -19449,7 +19695,7 @@ func (s *SnapshotCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnapshotProperties. func (s SnapshotProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "time", s.Time) return json.Marshal(objectMap) } @@ -19476,7 +19722,7 @@ func (s *SnapshotProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnapshotRecoverySource. func (s SnapshotRecoverySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) return json.Marshal(objectMap) @@ -19507,7 +19753,7 @@ func (s *SnapshotRecoverySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnapshotRestoreRequest. func (s SnapshotRestoreRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -19550,7 +19796,7 @@ func (s *SnapshotRestoreRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnapshotRestoreRequestProperties. func (s SnapshotRestoreRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ignoreConflictingHostNames", s.IgnoreConflictingHostNames) populate(objectMap, "overwrite", s.Overwrite) populate(objectMap, "recoverConfiguration", s.RecoverConfiguration) @@ -19597,7 +19843,7 @@ func (s *SnapshotRestoreRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Solution. func (s Solution) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "data", s.Data) populate(objectMap, "description", s.Description) populate(objectMap, "displayName", s.DisplayName) @@ -19648,7 +19894,7 @@ func (s *Solution) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SourceControl. func (s SourceControl) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -19691,7 +19937,7 @@ func (s *SourceControl) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SourceControlCollection. func (s SourceControlCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -19722,7 +19968,7 @@ func (s *SourceControlCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SourceControlProperties. func (s SourceControlProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "expirationTime", s.ExpirationTime) populate(objectMap, "refreshToken", s.RefreshToken) populate(objectMap, "token", s.Token) @@ -19761,7 +20007,7 @@ func (s *SourceControlProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StackMajorVersion. func (s StackMajorVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appSettingsDictionary", s.AppSettingsDictionary) populate(objectMap, "applicationInsights", s.ApplicationInsights) populate(objectMap, "displayVersion", s.DisplayVersion) @@ -19824,7 +20070,7 @@ func (s *StackMajorVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StackMinorVersion. func (s StackMinorVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayVersion", s.DisplayVersion) populate(objectMap, "isDefault", s.IsDefault) populate(objectMap, "isRemoteDebuggingEnabled", s.IsRemoteDebuggingEnabled) @@ -19863,7 +20109,7 @@ func (s *StackMinorVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StampCapacity. func (s StampCapacity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "availableCapacity", s.AvailableCapacity) populate(objectMap, "computeMode", s.ComputeMode) populate(objectMap, "excludeFromCapacityAllocation", s.ExcludeFromCapacityAllocation) @@ -19930,7 +20176,7 @@ func (s *StampCapacity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StampCapacityCollection. func (s StampCapacityCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -19961,12 +20207,13 @@ func (s *StampCapacityCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSite. func (s StaticSite) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowConfigFileUpdates", s.AllowConfigFileUpdates) populate(objectMap, "branch", s.Branch) populate(objectMap, "buildProperties", s.BuildProperties) populate(objectMap, "contentDistributionEndpoint", s.ContentDistributionEndpoint) populate(objectMap, "customDomains", s.CustomDomains) + populate(objectMap, "databaseConnections", s.DatabaseConnections) populate(objectMap, "defaultHostname", s.DefaultHostname) populate(objectMap, "enterpriseGradeCdnStatus", s.EnterpriseGradeCdnStatus) populate(objectMap, "keyVaultReferenceIdentity", s.KeyVaultReferenceIdentity) @@ -20006,6 +20253,9 @@ func (s *StaticSite) UnmarshalJSON(data []byte) error { case "customDomains": err = unpopulate(val, "CustomDomains", &s.CustomDomains) delete(rawMsg, key) + case "databaseConnections": + err = unpopulate(val, "DatabaseConnections", &s.DatabaseConnections) + delete(rawMsg, key) case "defaultHostname": err = unpopulate(val, "DefaultHostname", &s.DefaultHostname) delete(rawMsg, key) @@ -20052,7 +20302,7 @@ func (s *StaticSite) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteARMResource. func (s StaticSiteARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "identity", s.Identity) populate(objectMap, "kind", s.Kind) @@ -20109,9 +20359,126 @@ func (s *StaticSiteARMResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type StaticSiteBasicAuthPropertiesARMResource. +func (s StaticSiteBasicAuthPropertiesARMResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "kind", s.Kind) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StaticSiteBasicAuthPropertiesARMResource. +func (s *StaticSiteBasicAuthPropertiesARMResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &s.Kind) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StaticSiteBasicAuthPropertiesARMResourceProperties. +func (s StaticSiteBasicAuthPropertiesARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicableEnvironmentsMode", s.ApplicableEnvironmentsMode) + populate(objectMap, "environments", s.Environments) + populate(objectMap, "password", s.Password) + populate(objectMap, "secretState", s.SecretState) + populate(objectMap, "secretUrl", s.SecretURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StaticSiteBasicAuthPropertiesARMResourceProperties. +func (s *StaticSiteBasicAuthPropertiesARMResourceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "applicableEnvironmentsMode": + err = unpopulate(val, "ApplicableEnvironmentsMode", &s.ApplicableEnvironmentsMode) + delete(rawMsg, key) + case "environments": + err = unpopulate(val, "Environments", &s.Environments) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &s.Password) + delete(rawMsg, key) + case "secretState": + err = unpopulate(val, "SecretState", &s.SecretState) + delete(rawMsg, key) + case "secretUrl": + err = unpopulate(val, "SecretURL", &s.SecretURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StaticSiteBasicAuthPropertiesCollection. +func (s StaticSiteBasicAuthPropertiesCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StaticSiteBasicAuthPropertiesCollection. +func (s *StaticSiteBasicAuthPropertiesCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type StaticSiteBuildARMResource. func (s StaticSiteBuildARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20154,9 +20521,10 @@ func (s *StaticSiteBuildARMResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteBuildARMResourceProperties. func (s StaticSiteBuildARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "buildId", s.BuildID) populateTimeRFC3339(objectMap, "createdTimeUtc", s.CreatedTimeUTC) + populate(objectMap, "databaseConnections", s.DatabaseConnections) populate(objectMap, "hostname", s.Hostname) populateTimeRFC3339(objectMap, "lastUpdatedOn", s.LastUpdatedOn) populate(objectMap, "linkedBackends", s.LinkedBackends) @@ -20182,6 +20550,9 @@ func (s *StaticSiteBuildARMResourceProperties) UnmarshalJSON(data []byte) error case "createdTimeUtc": err = unpopulateTimeRFC3339(val, "CreatedTimeUTC", &s.CreatedTimeUTC) delete(rawMsg, key) + case "databaseConnections": + err = unpopulate(val, "DatabaseConnections", &s.DatabaseConnections) + delete(rawMsg, key) case "hostname": err = unpopulate(val, "Hostname", &s.Hostname) delete(rawMsg, key) @@ -20213,7 +20584,7 @@ func (s *StaticSiteBuildARMResourceProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type StaticSiteBuildCollection. func (s StaticSiteBuildCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -20244,7 +20615,7 @@ func (s *StaticSiteBuildCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteBuildProperties. func (s StaticSiteBuildProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiBuildCommand", s.APIBuildCommand) populate(objectMap, "apiLocation", s.APILocation) populate(objectMap, "appArtifactLocation", s.AppArtifactLocation) @@ -20299,7 +20670,7 @@ func (s *StaticSiteBuildProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteCollection. func (s StaticSiteCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -20330,7 +20701,7 @@ func (s *StaticSiteCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteCustomDomainOverviewARMResource. func (s StaticSiteCustomDomainOverviewARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20373,7 +20744,7 @@ func (s *StaticSiteCustomDomainOverviewARMResource) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type StaticSiteCustomDomainOverviewARMResourceProperties. func (s StaticSiteCustomDomainOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdOn", s.CreatedOn) populate(objectMap, "domainName", s.DomainName) populate(objectMap, "errorMessage", s.ErrorMessage) @@ -20416,7 +20787,7 @@ func (s *StaticSiteCustomDomainOverviewARMResourceProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type StaticSiteCustomDomainOverviewCollection. func (s StaticSiteCustomDomainOverviewCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -20447,7 +20818,7 @@ func (s *StaticSiteCustomDomainOverviewCollection) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type StaticSiteCustomDomainRequestPropertiesARMResource. func (s StaticSiteCustomDomainRequestPropertiesARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20490,7 +20861,7 @@ func (s *StaticSiteCustomDomainRequestPropertiesARMResource) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type StaticSiteCustomDomainRequestPropertiesARMResourceProperties. func (s StaticSiteCustomDomainRequestPropertiesARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "validationMethod", s.ValidationMethod) return json.Marshal(objectMap) } @@ -20515,9 +20886,44 @@ func (s *StaticSiteCustomDomainRequestPropertiesARMResourceProperties) Unmarshal return nil } +// MarshalJSON implements the json.Marshaller interface for type StaticSiteDatabaseConnectionConfigurationFileOverview. +func (s StaticSiteDatabaseConnectionConfigurationFileOverview) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contents", s.Contents) + populate(objectMap, "fileName", s.FileName) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StaticSiteDatabaseConnectionConfigurationFileOverview. +func (s *StaticSiteDatabaseConnectionConfigurationFileOverview) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "contents": + err = unpopulate(val, "Contents", &s.Contents) + delete(rawMsg, key) + case "fileName": + err = unpopulate(val, "FileName", &s.FileName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type StaticSiteFunctionOverviewARMResource. func (s StaticSiteFunctionOverviewARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20560,7 +20966,7 @@ func (s *StaticSiteFunctionOverviewARMResource) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type StaticSiteFunctionOverviewARMResourceProperties. func (s StaticSiteFunctionOverviewARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "functionName", s.FunctionName) populate(objectMap, "triggerType", s.TriggerType) return json.Marshal(objectMap) @@ -20591,7 +20997,7 @@ func (s *StaticSiteFunctionOverviewARMResourceProperties) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type StaticSiteFunctionOverviewCollection. func (s StaticSiteFunctionOverviewCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -20622,7 +21028,7 @@ func (s *StaticSiteFunctionOverviewCollection) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type StaticSiteLinkedBackend. func (s StaticSiteLinkedBackend) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backendResourceId", s.BackendResourceID) populateTimeRFC3339(objectMap, "createdOn", s.CreatedOn) populate(objectMap, "provisioningState", s.ProvisioningState) @@ -20661,7 +21067,7 @@ func (s *StaticSiteLinkedBackend) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteLinkedBackendARMResource. func (s StaticSiteLinkedBackendARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20704,7 +21110,7 @@ func (s *StaticSiteLinkedBackendARMResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteLinkedBackendARMResourceProperties. func (s StaticSiteLinkedBackendARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backendResourceId", s.BackendResourceID) populateTimeRFC3339(objectMap, "createdOn", s.CreatedOn) populate(objectMap, "provisioningState", s.ProvisioningState) @@ -20743,7 +21149,7 @@ func (s *StaticSiteLinkedBackendARMResourceProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type StaticSiteLinkedBackendsCollection. func (s StaticSiteLinkedBackendsCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -20774,7 +21180,7 @@ func (s *StaticSiteLinkedBackendsCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSitePatchResource. func (s StaticSitePatchResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20817,7 +21223,7 @@ func (s *StaticSitePatchResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteResetPropertiesARMResource. func (s StaticSiteResetPropertiesARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20860,7 +21266,7 @@ func (s *StaticSiteResetPropertiesARMResource) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type StaticSiteResetPropertiesARMResourceProperties. func (s StaticSiteResetPropertiesARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "repositoryToken", s.RepositoryToken) populate(objectMap, "shouldUpdateRepository", s.ShouldUpdateRepository) return json.Marshal(objectMap) @@ -20891,7 +21297,7 @@ func (s *StaticSiteResetPropertiesARMResourceProperties) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type StaticSiteTemplateOptions. func (s StaticSiteTemplateOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "isPrivate", s.IsPrivate) populate(objectMap, "owner", s.Owner) @@ -20934,7 +21340,7 @@ func (s *StaticSiteTemplateOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserARMResource. func (s StaticSiteUserARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -20977,7 +21383,7 @@ func (s *StaticSiteUserARMResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserARMResourceProperties. func (s StaticSiteUserARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", s.DisplayName) populate(objectMap, "provider", s.Provider) populate(objectMap, "roles", s.Roles) @@ -21016,7 +21422,7 @@ func (s *StaticSiteUserARMResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserCollection. func (s StaticSiteUserCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -21047,7 +21453,7 @@ func (s *StaticSiteUserCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserInvitationRequestResource. func (s StaticSiteUserInvitationRequestResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21090,7 +21496,7 @@ func (s *StaticSiteUserInvitationRequestResource) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserInvitationRequestResourceProperties. func (s StaticSiteUserInvitationRequestResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domain", s.Domain) populate(objectMap, "numHoursToExpiration", s.NumHoursToExpiration) populate(objectMap, "provider", s.Provider) @@ -21133,7 +21539,7 @@ func (s *StaticSiteUserInvitationRequestResourceProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserInvitationResponseResource. func (s StaticSiteUserInvitationResponseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21176,7 +21582,7 @@ func (s *StaticSiteUserInvitationResponseResource) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserInvitationResponseResourceProperties. func (s StaticSiteUserInvitationResponseResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "expiresOn", s.ExpiresOn) populate(objectMap, "invitationUrl", s.InvitationURL) return json.Marshal(objectMap) @@ -21207,7 +21613,7 @@ func (s *StaticSiteUserInvitationResponseResourceProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserProvidedFunctionApp. func (s StaticSiteUserProvidedFunctionApp) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21250,7 +21656,7 @@ func (s *StaticSiteUserProvidedFunctionApp) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserProvidedFunctionAppARMResource. func (s StaticSiteUserProvidedFunctionAppARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21293,7 +21699,7 @@ func (s *StaticSiteUserProvidedFunctionAppARMResource) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserProvidedFunctionAppARMResourceProperties. func (s StaticSiteUserProvidedFunctionAppARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdOn", s.CreatedOn) populate(objectMap, "functionAppRegion", s.FunctionAppRegion) populate(objectMap, "functionAppResourceId", s.FunctionAppResourceID) @@ -21328,7 +21734,7 @@ func (s *StaticSiteUserProvidedFunctionAppARMResourceProperties) UnmarshalJSON(d // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserProvidedFunctionAppProperties. func (s StaticSiteUserProvidedFunctionAppProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdOn", s.CreatedOn) populate(objectMap, "functionAppRegion", s.FunctionAppRegion) populate(objectMap, "functionAppResourceId", s.FunctionAppResourceID) @@ -21363,7 +21769,7 @@ func (s *StaticSiteUserProvidedFunctionAppProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type StaticSiteUserProvidedFunctionAppsCollection. func (s StaticSiteUserProvidedFunctionAppsCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -21394,7 +21800,7 @@ func (s *StaticSiteUserProvidedFunctionAppsCollection) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type StaticSiteZipDeployment. func (s StaticSiteZipDeployment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiZipUrl", s.APIZipURL) populate(objectMap, "appZipUrl", s.AppZipURL) populate(objectMap, "deploymentTitle", s.DeploymentTitle) @@ -21437,7 +21843,7 @@ func (s *StaticSiteZipDeployment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSiteZipDeploymentARMResource. func (s StaticSiteZipDeploymentARMResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21480,7 +21886,7 @@ func (s *StaticSiteZipDeploymentARMResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSitesWorkflowPreview. func (s StaticSitesWorkflowPreview) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21523,7 +21929,7 @@ func (s *StaticSitesWorkflowPreview) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSitesWorkflowPreviewProperties. func (s StaticSitesWorkflowPreviewProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "contents", s.Contents) populate(objectMap, "path", s.Path) return json.Marshal(objectMap) @@ -21554,7 +21960,7 @@ func (s *StaticSitesWorkflowPreviewProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type StaticSitesWorkflowPreviewRequest. func (s StaticSitesWorkflowPreviewRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21597,7 +22003,7 @@ func (s *StaticSitesWorkflowPreviewRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StaticSitesWorkflowPreviewRequestProperties. func (s StaticSitesWorkflowPreviewRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "branch", s.Branch) populate(objectMap, "buildProperties", s.BuildProperties) populate(objectMap, "repositoryUrl", s.RepositoryURL) @@ -21632,7 +22038,7 @@ func (s *StaticSitesWorkflowPreviewRequestProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type Status. func (s Status) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", s.Message) populate(objectMap, "statusId", s.StatusID) return json.Marshal(objectMap) @@ -21663,7 +22069,7 @@ func (s *Status) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StatusCodesBasedTrigger. func (s StatusCodesBasedTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", s.Count) populate(objectMap, "path", s.Path) populate(objectMap, "status", s.Status) @@ -21710,7 +22116,7 @@ func (s *StatusCodesBasedTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StatusCodesRangeBasedTrigger. func (s StatusCodesRangeBasedTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", s.Count) populate(objectMap, "path", s.Path) populate(objectMap, "statusCodes", s.StatusCodes) @@ -21749,7 +22155,7 @@ func (s *StatusCodesRangeBasedTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageMigrationOptions. func (s StorageMigrationOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21792,7 +22198,7 @@ func (s *StorageMigrationOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageMigrationOptionsProperties. func (s StorageMigrationOptionsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azurefilesConnectionString", s.AzurefilesConnectionString) populate(objectMap, "azurefilesShare", s.AzurefilesShare) populate(objectMap, "blockWriteAccessToSite", s.BlockWriteAccessToSite) @@ -21831,7 +22237,7 @@ func (s *StorageMigrationOptionsProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageMigrationResponse. func (s StorageMigrationResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21874,7 +22280,7 @@ func (s *StorageMigrationResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageMigrationResponseProperties. func (s StorageMigrationResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "operationId", s.OperationID) return json.Marshal(objectMap) } @@ -21901,7 +22307,7 @@ func (s *StorageMigrationResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StringDictionary. func (s StringDictionary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21944,7 +22350,7 @@ func (s *StringDictionary) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StringList. func (s StringList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -21987,7 +22393,7 @@ func (s *StringList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SubResource. func (s SubResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) return json.Marshal(objectMap) } @@ -22014,7 +22420,7 @@ func (s *SubResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SupportTopic. func (s SupportTopic) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "pesId", s.PesID) return json.Marshal(objectMap) @@ -22045,7 +22451,7 @@ func (s *SupportTopic) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwiftVirtualNetwork. func (s SwiftVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "kind", s.Kind) populate(objectMap, "name", s.Name) @@ -22088,7 +22494,7 @@ func (s *SwiftVirtualNetwork) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwiftVirtualNetworkProperties. func (s SwiftVirtualNetworkProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "subnetResourceId", s.SubnetResourceID) populate(objectMap, "swiftSupported", s.SwiftSupported) return json.Marshal(objectMap) @@ -22119,7 +22525,7 @@ func (s *SwiftVirtualNetworkProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Template. func (t Template) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "containers", t.Containers) populate(objectMap, "dapr", t.Dapr) populate(objectMap, "revisionSuffix", t.RevisionSuffix) @@ -22158,7 +22564,7 @@ func (t *Template) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TldLegalAgreement. func (t TldLegalAgreement) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "agreementKey", t.AgreementKey) populate(objectMap, "content", t.Content) populate(objectMap, "title", t.Title) @@ -22197,7 +22603,7 @@ func (t *TldLegalAgreement) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TldLegalAgreementCollection. func (t TldLegalAgreementCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", t.NextLink) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -22228,7 +22634,7 @@ func (t *TldLegalAgreementCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TokenStore. func (t TokenStore) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureBlobStorage", t.AzureBlobStorage) populate(objectMap, "enabled", t.Enabled) populate(objectMap, "fileSystem", t.FileSystem) @@ -22267,7 +22673,7 @@ func (t *TokenStore) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TopLevelDomain. func (t TopLevelDomain) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) populate(objectMap, "kind", t.Kind) populate(objectMap, "name", t.Name) @@ -22310,7 +22716,7 @@ func (t *TopLevelDomain) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TopLevelDomainAgreementOption. func (t TopLevelDomainAgreementOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "forTransfer", t.ForTransfer) populate(objectMap, "includePrivacy", t.IncludePrivacy) return json.Marshal(objectMap) @@ -22341,7 +22747,7 @@ func (t *TopLevelDomainAgreementOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TopLevelDomainCollection. func (t TopLevelDomainCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", t.NextLink) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -22372,7 +22778,7 @@ func (t *TopLevelDomainCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TopLevelDomainProperties. func (t TopLevelDomainProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privacy", t.Privacy) return json.Marshal(objectMap) } @@ -22399,7 +22805,7 @@ func (t *TopLevelDomainProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TrafficWeight. func (t TrafficWeight) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "latestRevision", t.LatestRevision) populate(objectMap, "revisionName", t.RevisionName) populate(objectMap, "weight", t.Weight) @@ -22434,7 +22840,7 @@ func (t *TrafficWeight) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredJobHistory. func (t TriggeredJobHistory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) populate(objectMap, "kind", t.Kind) populate(objectMap, "name", t.Name) @@ -22477,7 +22883,7 @@ func (t *TriggeredJobHistory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredJobHistoryCollection. func (t TriggeredJobHistoryCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", t.NextLink) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -22508,7 +22914,7 @@ func (t *TriggeredJobHistoryCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredJobHistoryProperties. func (t TriggeredJobHistoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "runs", t.Runs) return json.Marshal(objectMap) } @@ -22535,7 +22941,7 @@ func (t *TriggeredJobHistoryProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredJobRun. func (t TriggeredJobRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "duration", t.Duration) populateTimeRFC3339(objectMap, "end_time", t.EndTime) populate(objectMap, "error_url", t.ErrorURL) @@ -22602,7 +23008,7 @@ func (t *TriggeredJobRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredWebJob. func (t TriggeredWebJob) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) populate(objectMap, "kind", t.Kind) populate(objectMap, "name", t.Name) @@ -22645,7 +23051,7 @@ func (t *TriggeredWebJob) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredWebJobCollection. func (t TriggeredWebJobCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", t.NextLink) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -22676,7 +23082,7 @@ func (t *TriggeredWebJobCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggeredWebJobProperties. func (t TriggeredWebJobProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", t.Error) populate(objectMap, "extra_info_url", t.ExtraInfoURL) populate(objectMap, "history_url", t.HistoryURL) @@ -22747,7 +23153,7 @@ func (t *TriggeredWebJobProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Twitter. func (t Twitter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enabled", t.Enabled) populate(objectMap, "registration", t.Registration) return json.Marshal(objectMap) @@ -22778,7 +23184,7 @@ func (t *Twitter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TwitterRegistration. func (t TwitterRegistration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "consumerKey", t.ConsumerKey) populate(objectMap, "consumerSecretSettingName", t.ConsumerSecretSettingName) return json.Marshal(objectMap) @@ -22809,7 +23215,7 @@ func (t *TwitterRegistration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Usage. func (u Usage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", u.ID) populate(objectMap, "kind", u.Kind) populate(objectMap, "name", u.Name) @@ -22852,7 +23258,7 @@ func (u *Usage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsageCollection. func (u UsageCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", u.NextLink) populate(objectMap, "value", u.Value) return json.Marshal(objectMap) @@ -22883,7 +23289,7 @@ func (u *UsageCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsageProperties. func (u UsageProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeMode", u.ComputeMode) populate(objectMap, "currentValue", u.CurrentValue) populate(objectMap, "displayName", u.DisplayName) @@ -22938,7 +23344,7 @@ func (u *UsageProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type User. func (u User) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", u.ID) populate(objectMap, "kind", u.Kind) populate(objectMap, "name", u.Name) @@ -22981,7 +23387,7 @@ func (u *User) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", u.ClientID) populate(objectMap, "principalId", u.PrincipalID) return json.Marshal(objectMap) @@ -23012,7 +23418,7 @@ func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserProperties. func (u UserProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "publishingPassword", u.PublishingPassword) populate(objectMap, "publishingPasswordHash", u.PublishingPasswordHash) populate(objectMap, "publishingPasswordHashSalt", u.PublishingPasswordHashSalt) @@ -23055,7 +23461,7 @@ func (u *UserProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidateProperties. func (v ValidateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appServiceEnvironment", v.AppServiceEnvironment) populate(objectMap, "capacity", v.Capacity) populate(objectMap, "containerImagePlatform", v.ContainerImagePlatform) @@ -23134,7 +23540,7 @@ func (v *ValidateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidateRequest. func (v ValidateRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", v.Location) populate(objectMap, "name", v.Name) populate(objectMap, "properties", v.Properties) @@ -23173,7 +23579,7 @@ func (v *ValidateRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidateResponse. func (v ValidateResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", v.Error) populate(objectMap, "status", v.Status) return json.Marshal(objectMap) @@ -23204,7 +23610,7 @@ func (v *ValidateResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidateResponseError. func (v ValidateResponseError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", v.Code) populate(objectMap, "message", v.Message) return json.Marshal(objectMap) @@ -23235,7 +23641,7 @@ func (v *ValidateResponseError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualApplication. func (v VirtualApplication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "physicalPath", v.PhysicalPath) populate(objectMap, "preloadEnabled", v.PreloadEnabled) populate(objectMap, "virtualDirectories", v.VirtualDirectories) @@ -23274,7 +23680,7 @@ func (v *VirtualApplication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualDirectory. func (v VirtualDirectory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "physicalPath", v.PhysicalPath) populate(objectMap, "virtualPath", v.VirtualPath) return json.Marshal(objectMap) @@ -23305,7 +23711,7 @@ func (v *VirtualDirectory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualIPMapping. func (v VirtualIPMapping) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "inUse", v.InUse) populate(objectMap, "internalHttpPort", v.InternalHTTPPort) populate(objectMap, "internalHttpsPort", v.InternalHTTPSPort) @@ -23348,7 +23754,7 @@ func (v *VirtualIPMapping) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualNetworkProfile. func (v VirtualNetworkProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "name", v.Name) populate(objectMap, "subnet", v.Subnet) @@ -23387,7 +23793,7 @@ func (v *VirtualNetworkProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetGateway. func (v VnetGateway) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "kind", v.Kind) populate(objectMap, "name", v.Name) @@ -23430,7 +23836,7 @@ func (v *VnetGateway) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetGatewayProperties. func (v VnetGatewayProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "vpnPackageUri", v.VPNPackageURI) populate(objectMap, "vnetName", v.VnetName) return json.Marshal(objectMap) @@ -23461,7 +23867,7 @@ func (v *VnetGatewayProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetInfo. func (v VnetInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "certBlob", v.CertBlob) populate(objectMap, "certThumbprint", v.CertThumbprint) populate(objectMap, "dnsServers", v.DNSServers) @@ -23512,7 +23918,7 @@ func (v *VnetInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetInfoResource. func (v VnetInfoResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "kind", v.Kind) populate(objectMap, "name", v.Name) @@ -23555,7 +23961,7 @@ func (v *VnetInfoResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetParameters. func (v VnetParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "kind", v.Kind) populate(objectMap, "name", v.Name) @@ -23598,7 +24004,7 @@ func (v *VnetParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetParametersProperties. func (v VnetParametersProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "subnetResourceId", v.SubnetResourceID) populate(objectMap, "vnetName", v.VnetName) populate(objectMap, "vnetResourceGroup", v.VnetResourceGroup) @@ -23637,7 +24043,7 @@ func (v *VnetParametersProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetRoute. func (v VnetRoute) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "kind", v.Kind) populate(objectMap, "name", v.Name) @@ -23680,7 +24086,7 @@ func (v *VnetRoute) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetRouteProperties. func (v VnetRouteProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "endAddress", v.EndAddress) populate(objectMap, "routeType", v.RouteType) populate(objectMap, "startAddress", v.StartAddress) @@ -23715,7 +24121,7 @@ func (v *VnetRouteProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetValidationFailureDetails. func (v VnetValidationFailureDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "kind", v.Kind) populate(objectMap, "name", v.Name) @@ -23758,7 +24164,7 @@ func (v *VnetValidationFailureDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetValidationFailureDetailsProperties. func (v VnetValidationFailureDetailsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "failed", v.Failed) populate(objectMap, "failedTests", v.FailedTests) populate(objectMap, "message", v.Message) @@ -23797,7 +24203,7 @@ func (v *VnetValidationFailureDetailsProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type VnetValidationTestFailure. func (v VnetValidationTestFailure) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "kind", v.Kind) populate(objectMap, "name", v.Name) @@ -23840,7 +24246,7 @@ func (v *VnetValidationTestFailure) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VnetValidationTestFailureProperties. func (v VnetValidationTestFailureProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "details", v.Details) populate(objectMap, "testName", v.TestName) return json.Marshal(objectMap) @@ -23871,7 +24277,7 @@ func (v *VnetValidationTestFailureProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppCollection. func (w WebAppCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -23902,7 +24308,7 @@ func (w *WebAppCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppInstanceStatusCollection. func (w WebAppInstanceStatusCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -23933,7 +24339,7 @@ func (w *WebAppInstanceStatusCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppMajorVersion. func (w WebAppMajorVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayText", w.DisplayText) populate(objectMap, "minorVersions", w.MinorVersions) populate(objectMap, "value", w.Value) @@ -23968,7 +24374,7 @@ func (w *WebAppMajorVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppMinorVersion. func (w WebAppMinorVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayText", w.DisplayText) populate(objectMap, "stackSettings", w.StackSettings) populate(objectMap, "value", w.Value) @@ -24003,7 +24409,7 @@ func (w *WebAppMinorVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppRuntimeSettings. func (w WebAppRuntimeSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appInsightsSettings", w.AppInsightsSettings) populateTimeRFC3339(objectMap, "endOfLifeDate", w.EndOfLifeDate) populate(objectMap, "gitHubActionSettings", w.GitHubActionSettings) @@ -24066,7 +24472,7 @@ func (w *WebAppRuntimeSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppRuntimes. func (w WebAppRuntimes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linuxContainerSettings", w.LinuxContainerSettings) populate(objectMap, "linuxRuntimeSettings", w.LinuxRuntimeSettings) populate(objectMap, "windowsContainerSettings", w.WindowsContainerSettings) @@ -24105,7 +24511,7 @@ func (w *WebAppRuntimes) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppStack. func (w WebAppStack) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "kind", w.Kind) populate(objectMap, "location", w.Location) @@ -24152,7 +24558,7 @@ func (w *WebAppStack) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppStackCollection. func (w WebAppStackCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -24183,7 +24589,7 @@ func (w *WebAppStackCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAppStackProperties. func (w WebAppStackProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayText", w.DisplayText) populate(objectMap, "majorVersions", w.MajorVersions) populate(objectMap, "preferredOs", w.PreferredOs) @@ -24222,7 +24628,7 @@ func (w *WebAppStackProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebJob. func (w WebJob) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "kind", w.Kind) populate(objectMap, "name", w.Name) @@ -24265,7 +24671,7 @@ func (w *WebJob) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebJobCollection. func (w WebJobCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -24296,7 +24702,7 @@ func (w *WebJobCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebJobProperties. func (w WebJobProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", w.Error) populate(objectMap, "extra_info_url", w.ExtraInfoURL) populate(objectMap, "run_command", w.RunCommand) @@ -24347,7 +24753,7 @@ func (w *WebJobProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebSiteInstanceStatus. func (w WebSiteInstanceStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "kind", w.Kind) populate(objectMap, "name", w.Name) @@ -24390,7 +24796,7 @@ func (w *WebSiteInstanceStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebSiteInstanceStatusProperties. func (w WebSiteInstanceStatusProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "consoleUrl", w.ConsoleURL) populate(objectMap, "containers", w.Containers) populate(objectMap, "detectorUrl", w.DetectorURL) @@ -24437,7 +24843,7 @@ func (w *WebSiteInstanceStatusProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WindowsJavaContainerSettings. func (w WindowsJavaContainerSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endOfLifeDate", w.EndOfLifeDate) populate(objectMap, "isAutoUpdate", w.IsAutoUpdate) populate(objectMap, "isDeprecated", w.IsDeprecated) @@ -24492,7 +24898,7 @@ func (w *WindowsJavaContainerSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkerPool. func (w WorkerPool) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeMode", w.ComputeMode) populate(objectMap, "instanceNames", w.InstanceNames) populate(objectMap, "workerCount", w.WorkerCount) @@ -24535,7 +24941,7 @@ func (w *WorkerPool) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkerPoolCollection. func (w WorkerPoolCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -24566,7 +24972,7 @@ func (w *WorkerPoolCollection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkerPoolResource. func (w WorkerPoolResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "kind", w.Kind) populate(objectMap, "name", w.Name) @@ -24613,7 +25019,7 @@ func (w *WorkerPoolResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Workflow. func (w Workflow) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "identity", w.Identity) populate(objectMap, "location", w.Location) @@ -24662,9 +25068,157 @@ func (w *Workflow) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WorkflowArtifacts. +func (w WorkflowArtifacts) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "appSettings", &w.AppSettings) + populate(objectMap, "files", w.Files) + populate(objectMap, "filesToDelete", w.FilesToDelete) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowArtifacts. +func (w *WorkflowArtifacts) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "appSettings": + err = unpopulate(val, "AppSettings", &w.AppSettings) + delete(rawMsg, key) + case "files": + err = unpopulate(val, "Files", &w.Files) + delete(rawMsg, key) + case "filesToDelete": + err = unpopulate(val, "FilesToDelete", &w.FilesToDelete) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkflowEnvelope. +func (w WorkflowEnvelope) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "kind", w.Kind) + populate(objectMap, "location", w.Location) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowEnvelope. +func (w *WorkflowEnvelope) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &w.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &w.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkflowEnvelopeCollection. +func (w WorkflowEnvelopeCollection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", w.NextLink) + populate(objectMap, "value", w.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowEnvelopeCollection. +func (w *WorkflowEnvelopeCollection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &w.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &w.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkflowEnvelopeProperties. +func (w WorkflowEnvelopeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "files", w.Files) + populate(objectMap, "flowState", w.FlowState) + populate(objectMap, "health", w.Health) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowEnvelopeProperties. +func (w *WorkflowEnvelopeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "files": + err = unpopulate(val, "Files", &w.Files) + delete(rawMsg, key) + case "flowState": + err = unpopulate(val, "FlowState", &w.FlowState) + delete(rawMsg, key) + case "health": + err = unpopulate(val, "Health", &w.Health) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WorkflowFilter. func (w WorkflowFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "state", w.State) return json.Marshal(objectMap) } @@ -24689,9 +25243,40 @@ func (w *WorkflowFilter) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type WorkflowHealth. +func (w WorkflowHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", w.Error) + populate(objectMap, "state", w.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowHealth. +func (w *WorkflowHealth) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "error": + err = unpopulate(val, "Error", &w.Error) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &w.State) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type WorkflowListResult. func (w WorkflowListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -24722,7 +25307,7 @@ func (w *WorkflowListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowOutputParameter. func (w WorkflowOutputParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", w.Description) populate(objectMap, "error", &w.Error) populate(objectMap, "metadata", &w.Metadata) @@ -24765,7 +25350,7 @@ func (w *WorkflowOutputParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowParameter. func (w WorkflowParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", w.Description) populate(objectMap, "metadata", &w.Metadata) populate(objectMap, "type", w.Type) @@ -24804,7 +25389,7 @@ func (w *WorkflowParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowProperties. func (w WorkflowProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessControl", w.AccessControl) populate(objectMap, "accessEndpoint", w.AccessEndpoint) populateTimeRFC3339(objectMap, "changedTime", w.ChangedTime) @@ -24883,7 +25468,7 @@ func (w *WorkflowProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowResource. func (w WorkflowResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "location", w.Location) populate(objectMap, "name", w.Name) @@ -24926,7 +25511,7 @@ func (w *WorkflowResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRun. func (w WorkflowRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "name", w.Name) populate(objectMap, "properties", w.Properties) @@ -24965,7 +25550,7 @@ func (w *WorkflowRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunAction. func (w WorkflowRunAction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "name", w.Name) populate(objectMap, "properties", w.Properties) @@ -25004,7 +25589,7 @@ func (w *WorkflowRunAction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunActionFilter. func (w WorkflowRunActionFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "status", w.Status) return json.Marshal(objectMap) } @@ -25031,7 +25616,7 @@ func (w *WorkflowRunActionFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunActionListResult. func (w WorkflowRunActionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -25062,7 +25647,7 @@ func (w *WorkflowRunActionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunActionProperties. func (w WorkflowRunActionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", w.Code) populate(objectMap, "correlation", w.Correlation) populateTimeRFC3339(objectMap, "endTime", w.EndTime) @@ -25129,7 +25714,7 @@ func (w *WorkflowRunActionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunActionRepetitionDefinition. func (w WorkflowRunActionRepetitionDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "location", w.Location) populate(objectMap, "name", w.Name) @@ -25176,7 +25761,7 @@ func (w *WorkflowRunActionRepetitionDefinition) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type WorkflowRunActionRepetitionDefinitionCollection. func (w WorkflowRunActionRepetitionDefinitionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -25207,7 +25792,7 @@ func (w *WorkflowRunActionRepetitionDefinitionCollection) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type WorkflowRunActionRepetitionProperties. func (w WorkflowRunActionRepetitionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", w.Code) populate(objectMap, "correlation", w.Correlation) populateTimeRFC3339(objectMap, "endTime", w.EndTime) @@ -25290,7 +25875,7 @@ func (w *WorkflowRunActionRepetitionProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type WorkflowRunFilter. func (w WorkflowRunFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "status", w.Status) return json.Marshal(objectMap) } @@ -25317,7 +25902,7 @@ func (w *WorkflowRunFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunListResult. func (w WorkflowRunListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -25348,7 +25933,7 @@ func (w *WorkflowRunListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunProperties. func (w WorkflowRunProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", w.Code) populate(objectMap, "correlation", w.Correlation) populate(objectMap, "correlationId", w.CorrelationID) @@ -25419,7 +26004,7 @@ func (w *WorkflowRunProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowRunTrigger. func (w WorkflowRunTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", w.Code) populate(objectMap, "correlation", w.Correlation) populateTimeRFC3339(objectMap, "endTime", w.EndTime) @@ -25498,7 +26083,7 @@ func (w *WorkflowRunTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowSKU. func (w WorkflowSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", w.Name) populate(objectMap, "plan", w.Plan) return json.Marshal(objectMap) @@ -25529,7 +26114,7 @@ func (w *WorkflowSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTrigger. func (w WorkflowTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "name", w.Name) populate(objectMap, "properties", w.Properties) @@ -25568,7 +26153,7 @@ func (w *WorkflowTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerCallbackURL. func (w WorkflowTriggerCallbackURL) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "basePath", w.BasePath) populate(objectMap, "method", w.Method) populate(objectMap, "queries", w.Queries) @@ -25615,7 +26200,7 @@ func (w *WorkflowTriggerCallbackURL) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerFilter. func (w WorkflowTriggerFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "state", w.State) return json.Marshal(objectMap) } @@ -25642,7 +26227,7 @@ func (w *WorkflowTriggerFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerHistory. func (w WorkflowTriggerHistory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "name", w.Name) populate(objectMap, "properties", w.Properties) @@ -25681,7 +26266,7 @@ func (w *WorkflowTriggerHistory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerHistoryFilter. func (w WorkflowTriggerHistoryFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "status", w.Status) return json.Marshal(objectMap) } @@ -25708,7 +26293,7 @@ func (w *WorkflowTriggerHistoryFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerHistoryListResult. func (w WorkflowTriggerHistoryListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -25739,7 +26324,7 @@ func (w *WorkflowTriggerHistoryListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerHistoryProperties. func (w WorkflowTriggerHistoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", w.Code) populate(objectMap, "correlation", w.Correlation) populateTimeRFC3339(objectMap, "endTime", w.EndTime) @@ -25810,7 +26395,7 @@ func (w *WorkflowTriggerHistoryProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerListCallbackURLQueries. func (w WorkflowTriggerListCallbackURLQueries) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "api-version", w.APIVersion) populate(objectMap, "se", w.Se) populate(objectMap, "sig", w.Sig) @@ -25853,7 +26438,7 @@ func (w *WorkflowTriggerListCallbackURLQueries) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerListResult. func (w WorkflowTriggerListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -25884,7 +26469,7 @@ func (w *WorkflowTriggerListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerProperties. func (w WorkflowTriggerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "changedTime", w.ChangedTime) populateTimeRFC3339(objectMap, "createdTime", w.CreatedTime) populateTimeRFC3339(objectMap, "lastExecutionTime", w.LastExecutionTime) @@ -25943,7 +26528,7 @@ func (w *WorkflowTriggerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowTriggerRecurrence. func (w WorkflowTriggerRecurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "endTime", w.EndTime) populate(objectMap, "frequency", w.Frequency) populate(objectMap, "interval", w.Interval) @@ -25990,7 +26575,7 @@ func (w *WorkflowTriggerRecurrence) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowVersion. func (w WorkflowVersion) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", w.ID) populate(objectMap, "location", w.Location) populate(objectMap, "name", w.Name) @@ -26037,7 +26622,7 @@ func (w *WorkflowVersion) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowVersionListResult. func (w WorkflowVersionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", w.NextLink) populate(objectMap, "value", w.Value) return json.Marshal(objectMap) @@ -26068,7 +26653,7 @@ func (w *WorkflowVersionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WorkflowVersionProperties. func (w WorkflowVersionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessControl", w.AccessControl) populate(objectMap, "accessEndpoint", w.AccessEndpoint) populateTimeRFC3339(objectMap, "changedTime", w.ChangedTime) @@ -26137,7 +26722,7 @@ func (w *WorkflowVersionProperties) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -26147,7 +26732,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.Base64Encoding) { +func populateByteArray(m map[string]any, k string, b []byte, f runtime.Base64Encoding) { if azcore.IsNullValue(b) { m[k] = nil } else if len(b) == 0 { @@ -26157,7 +26742,7 @@ func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.B } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client.go b/sdk/resourcemanager/appservice/armappservice/plans_client.go index b95b8e8a8375..0f705a225c27 100644 --- a/sdk/resourcemanager/appservice/armappservice/plans_client.go +++ b/sdk/resourcemanager/appservice/armappservice/plans_client.go @@ -33,9 +33,9 @@ type PlansClient struct { } // NewPlansClient creates a new instance of PlansClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPlansClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PlansClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewPlansClient(subscriptionID string, credential azcore.TokenCredential, op // BeginCreateOrUpdate - Description for Creates or updates an App Service Plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// appServicePlan - Details of the App Service plan. -// options - PlansClientBeginCreateOrUpdateOptions contains the optional parameters for the PlansClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - appServicePlan - Details of the App Service plan. +// - options - PlansClientBeginCreateOrUpdateOptions contains the optional parameters for the PlansClient.BeginCreateOrUpdate +// method. func (client *PlansClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, appServicePlan Plan, options *PlansClientBeginCreateOrUpdateOptions) (*runtime.Poller[PlansClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, name, appServicePlan, options) @@ -78,7 +79,8 @@ func (client *PlansClient) BeginCreateOrUpdate(ctx context.Context, resourceGrou // CreateOrUpdate - Description for Creates or updates an App Service Plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *PlansClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, appServicePlan Plan, options *PlansClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, appServicePlan, options) if err != nil { @@ -114,7 +116,7 @@ func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appServicePlan) @@ -122,14 +124,15 @@ func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, reso // CreateOrUpdateVnetRoute - Description for Create or update a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// routeName - Name of the Virtual Network route. -// route - Definition of the Virtual Network route. -// options - PlansClientCreateOrUpdateVnetRouteOptions contains the optional parameters for the PlansClient.CreateOrUpdateVnetRoute -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - routeName - Name of the Virtual Network route. +// - route - Definition of the Virtual Network route. +// - options - PlansClientCreateOrUpdateVnetRouteOptions contains the optional parameters for the PlansClient.CreateOrUpdateVnetRoute +// method. func (client *PlansClient) CreateOrUpdateVnetRoute(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute, options *PlansClientCreateOrUpdateVnetRouteOptions) (PlansClientCreateOrUpdateVnetRouteResponse, error) { req, err := client.createOrUpdateVnetRouteCreateRequest(ctx, resourceGroupName, name, vnetName, routeName, route, options) if err != nil { @@ -173,7 +176,7 @@ func (client *PlansClient) createOrUpdateVnetRouteCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, route) @@ -190,10 +193,11 @@ func (client *PlansClient) createOrUpdateVnetRouteHandleResponse(resp *http.Resp // Delete - Description for Delete an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientDeleteOptions contains the optional parameters for the PlansClient.Delete method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientDeleteOptions contains the optional parameters for the PlansClient.Delete method. func (client *PlansClient) Delete(ctx context.Context, resourceGroupName string, name string, options *PlansClientDeleteOptions) (PlansClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -229,7 +233,7 @@ func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -237,13 +241,14 @@ func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGrou // DeleteHybridConnection - Description for Delete a Hybrid Connection in use in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// namespaceName - Name of the Service Bus namespace. -// relayName - Name of the Service Bus relay. -// options - PlansClientDeleteHybridConnectionOptions contains the optional parameters for the PlansClient.DeleteHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - namespaceName - Name of the Service Bus namespace. +// - relayName - Name of the Service Bus relay. +// - options - PlansClientDeleteHybridConnectionOptions contains the optional parameters for the PlansClient.DeleteHybridConnection +// method. func (client *PlansClient) DeleteHybridConnection(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientDeleteHybridConnectionOptions) (PlansClientDeleteHybridConnectionResponse, error) { req, err := client.deleteHybridConnectionCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, options) if err != nil { @@ -287,7 +292,7 @@ func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -295,12 +300,13 @@ func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Conte // DeleteVnetRoute - Description for Delete a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// routeName - Name of the Virtual Network route. -// options - PlansClientDeleteVnetRouteOptions contains the optional parameters for the PlansClient.DeleteVnetRoute method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - routeName - Name of the Virtual Network route. +// - options - PlansClientDeleteVnetRouteOptions contains the optional parameters for the PlansClient.DeleteVnetRoute method. func (client *PlansClient) DeleteVnetRoute(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, options *PlansClientDeleteVnetRouteOptions) (PlansClientDeleteVnetRouteResponse, error) { req, err := client.deleteVnetRouteCreateRequest(ctx, resourceGroupName, name, vnetName, routeName, options) if err != nil { @@ -344,7 +350,7 @@ func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -352,10 +358,11 @@ func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, res // Get - Description for Get an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientGetOptions contains the optional parameters for the PlansClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientGetOptions contains the optional parameters for the PlansClient.Get method. func (client *PlansClient) Get(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetOptions) (PlansClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -391,7 +398,7 @@ func (client *PlansClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -408,13 +415,14 @@ func (client *PlansClient) getHandleResponse(resp *http.Response) (PlansClientGe // GetHybridConnection - Description for Retrieve a Hybrid Connection in use in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// namespaceName - Name of the Service Bus namespace. -// relayName - Name of the Service Bus relay. -// options - PlansClientGetHybridConnectionOptions contains the optional parameters for the PlansClient.GetHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - namespaceName - Name of the Service Bus namespace. +// - relayName - Name of the Service Bus relay. +// - options - PlansClientGetHybridConnectionOptions contains the optional parameters for the PlansClient.GetHybridConnection +// method. func (client *PlansClient) GetHybridConnection(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientGetHybridConnectionOptions) (PlansClientGetHybridConnectionResponse, error) { req, err := client.getHybridConnectionCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, options) if err != nil { @@ -458,7 +466,7 @@ func (client *PlansClient) getHybridConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -475,11 +483,12 @@ func (client *PlansClient) getHybridConnectionHandleResponse(resp *http.Response // GetHybridConnectionPlanLimit - Description for Get the maximum number of Hybrid Connections allowed in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientGetHybridConnectionPlanLimitOptions contains the optional parameters for the PlansClient.GetHybridConnectionPlanLimit -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientGetHybridConnectionPlanLimitOptions contains the optional parameters for the PlansClient.GetHybridConnectionPlanLimit +// method. func (client *PlansClient) GetHybridConnectionPlanLimit(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetHybridConnectionPlanLimitOptions) (PlansClientGetHybridConnectionPlanLimitResponse, error) { req, err := client.getHybridConnectionPlanLimitCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -515,7 +524,7 @@ func (client *PlansClient) getHybridConnectionPlanLimitCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -532,12 +541,13 @@ func (client *PlansClient) getHybridConnectionPlanLimitHandleResponse(resp *http // GetRouteForVnet - Description for Get a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// routeName - Name of the Virtual Network route. -// options - PlansClientGetRouteForVnetOptions contains the optional parameters for the PlansClient.GetRouteForVnet method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - routeName - Name of the Virtual Network route. +// - options - PlansClientGetRouteForVnetOptions contains the optional parameters for the PlansClient.GetRouteForVnet method. func (client *PlansClient) GetRouteForVnet(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, options *PlansClientGetRouteForVnetOptions) (PlansClientGetRouteForVnetResponse, error) { req, err := client.getRouteForVnetCreateRequest(ctx, resourceGroupName, name, vnetName, routeName, options) if err != nil { @@ -581,7 +591,7 @@ func (client *PlansClient) getRouteForVnetCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -598,10 +608,11 @@ func (client *PlansClient) getRouteForVnetHandleResponse(resp *http.Response) (P // GetServerFarmSKUs - Description for Gets all selectable SKUs for a given App Service Plan // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of App Service Plan -// options - PlansClientGetServerFarmSKUsOptions contains the optional parameters for the PlansClient.GetServerFarmSKUs method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of App Service Plan +// - options - PlansClientGetServerFarmSKUsOptions contains the optional parameters for the PlansClient.GetServerFarmSKUs method. func (client *PlansClient) GetServerFarmSKUs(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetServerFarmSKUsOptions) (PlansClientGetServerFarmSKUsResponse, error) { req, err := client.getServerFarmSKUsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -637,7 +648,7 @@ func (client *PlansClient) getServerFarmSKUsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -654,12 +665,13 @@ func (client *PlansClient) getServerFarmSKUsHandleResponse(resp *http.Response) // GetVnetFromServerFarm - Description for Get a Virtual Network associated with an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// options - PlansClientGetVnetFromServerFarmOptions contains the optional parameters for the PlansClient.GetVnetFromServerFarm -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - options - PlansClientGetVnetFromServerFarmOptions contains the optional parameters for the PlansClient.GetVnetFromServerFarm +// method. func (client *PlansClient) GetVnetFromServerFarm(ctx context.Context, resourceGroupName string, name string, vnetName string, options *PlansClientGetVnetFromServerFarmOptions) (PlansClientGetVnetFromServerFarmResponse, error) { req, err := client.getVnetFromServerFarmCreateRequest(ctx, resourceGroupName, name, vnetName, options) if err != nil { @@ -699,7 +711,7 @@ func (client *PlansClient) getVnetFromServerFarmCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -716,12 +728,13 @@ func (client *PlansClient) getVnetFromServerFarmHandleResponse(resp *http.Respon // GetVnetGateway - Description for Get a Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Only the 'primary' gateway is supported. -// options - PlansClientGetVnetGatewayOptions contains the optional parameters for the PlansClient.GetVnetGateway method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Only the 'primary' gateway is supported. +// - options - PlansClientGetVnetGatewayOptions contains the optional parameters for the PlansClient.GetVnetGateway method. func (client *PlansClient) GetVnetGateway(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, options *PlansClientGetVnetGatewayOptions) (PlansClientGetVnetGatewayResponse, error) { req, err := client.getVnetGatewayCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, options) if err != nil { @@ -765,7 +778,7 @@ func (client *PlansClient) getVnetGatewayCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -781,9 +794,9 @@ func (client *PlansClient) getVnetGatewayHandleResponse(resp *http.Response) (Pl } // NewListPager - Description for Get all App Service plans for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - PlansClientListOptions contains the optional parameters for the PlansClient.List method. +// +// Generated from API version 2022-09-01 +// - options - PlansClientListOptions contains the optional parameters for the PlansClient.NewListPager method. func (client *PlansClient) NewListPager(options *PlansClientListOptions) *runtime.Pager[PlansClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PlansClientListResponse]{ More: func(page PlansClientListResponse) bool { @@ -827,7 +840,7 @@ func (client *PlansClient) listCreateRequest(ctx context.Context, options *Plans if options != nil && options.Detailed != nil { reqQP.Set("detailed", strconv.FormatBool(*options.Detailed)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -843,11 +856,11 @@ func (client *PlansClient) listHandleResponse(resp *http.Response) (PlansClientL } // NewListByResourceGroupPager - Description for Get all App Service plans in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - PlansClientListByResourceGroupOptions contains the optional parameters for the PlansClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - PlansClientListByResourceGroupOptions contains the optional parameters for the PlansClient.NewListByResourceGroupPager +// method. func (client *PlansClient) NewListByResourceGroupPager(resourceGroupName string, options *PlansClientListByResourceGroupOptions) *runtime.Pager[PlansClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[PlansClientListByResourceGroupResponse]{ More: func(page PlansClientListByResourceGroupResponse) bool { @@ -892,7 +905,7 @@ func (client *PlansClient) listByResourceGroupCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -909,10 +922,11 @@ func (client *PlansClient) listByResourceGroupHandleResponse(resp *http.Response // ListCapabilities - Description for List all capabilities of an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientListCapabilitiesOptions contains the optional parameters for the PlansClient.ListCapabilities method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientListCapabilitiesOptions contains the optional parameters for the PlansClient.ListCapabilities method. func (client *PlansClient) ListCapabilities(ctx context.Context, resourceGroupName string, name string, options *PlansClientListCapabilitiesOptions) (PlansClientListCapabilitiesResponse, error) { req, err := client.listCapabilitiesCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -948,7 +962,7 @@ func (client *PlansClient) listCapabilitiesCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -965,13 +979,14 @@ func (client *PlansClient) listCapabilitiesHandleResponse(resp *http.Response) ( // ListHybridConnectionKeys - Description for Get the send key name and value of a Hybrid Connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// namespaceName - The name of the Service Bus namespace. -// relayName - The name of the Service Bus relay. -// options - PlansClientListHybridConnectionKeysOptions contains the optional parameters for the PlansClient.ListHybridConnectionKeys -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - namespaceName - The name of the Service Bus namespace. +// - relayName - The name of the Service Bus relay. +// - options - PlansClientListHybridConnectionKeysOptions contains the optional parameters for the PlansClient.ListHybridConnectionKeys +// method. func (client *PlansClient) ListHybridConnectionKeys(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientListHybridConnectionKeysOptions) (PlansClientListHybridConnectionKeysResponse, error) { req, err := client.listHybridConnectionKeysCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, options) if err != nil { @@ -1015,7 +1030,7 @@ func (client *PlansClient) listHybridConnectionKeysCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1031,12 +1046,12 @@ func (client *PlansClient) listHybridConnectionKeysHandleResponse(resp *http.Res } // NewListHybridConnectionsPager - Description for Retrieve all Hybrid Connections in use in an App Service plan. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientListHybridConnectionsOptions contains the optional parameters for the PlansClient.ListHybridConnections -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientListHybridConnectionsOptions contains the optional parameters for the PlansClient.NewListHybridConnectionsPager +// method. func (client *PlansClient) NewListHybridConnectionsPager(resourceGroupName string, name string, options *PlansClientListHybridConnectionsOptions) *runtime.Pager[PlansClientListHybridConnectionsResponse] { return runtime.NewPager(runtime.PagingHandler[PlansClientListHybridConnectionsResponse]{ More: func(page PlansClientListHybridConnectionsResponse) bool { @@ -1085,7 +1100,7 @@ func (client *PlansClient) listHybridConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1102,11 +1117,12 @@ func (client *PlansClient) listHybridConnectionsHandleResponse(resp *http.Respon // ListRoutesForVnet - Description for Get all routes that are associated with a Virtual Network in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// options - PlansClientListRoutesForVnetOptions contains the optional parameters for the PlansClient.ListRoutesForVnet method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - options - PlansClientListRoutesForVnetOptions contains the optional parameters for the PlansClient.ListRoutesForVnet method. func (client *PlansClient) ListRoutesForVnet(ctx context.Context, resourceGroupName string, name string, vnetName string, options *PlansClientListRoutesForVnetOptions) (PlansClientListRoutesForVnetResponse, error) { req, err := client.listRoutesForVnetCreateRequest(ctx, resourceGroupName, name, vnetName, options) if err != nil { @@ -1146,7 +1162,7 @@ func (client *PlansClient) listRoutesForVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1162,11 +1178,11 @@ func (client *PlansClient) listRoutesForVnetHandleResponse(resp *http.Response) } // NewListUsagesPager - Description for Gets server farm usage information -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of App Service Plan -// options - PlansClientListUsagesOptions contains the optional parameters for the PlansClient.ListUsages method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of App Service Plan +// - options - PlansClientListUsagesOptions contains the optional parameters for the PlansClient.NewListUsagesPager method. func (client *PlansClient) NewListUsagesPager(resourceGroupName string, name string, options *PlansClientListUsagesOptions) *runtime.Pager[PlansClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[PlansClientListUsagesResponse]{ More: func(page PlansClientListUsagesResponse) bool { @@ -1215,7 +1231,7 @@ func (client *PlansClient) listUsagesCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -1237,10 +1253,11 @@ func (client *PlansClient) listUsagesHandleResponse(resp *http.Response) (PlansC // ListVnets - Description for Get all Virtual Networks associated with an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientListVnetsOptions contains the optional parameters for the PlansClient.ListVnets method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientListVnetsOptions contains the optional parameters for the PlansClient.ListVnets method. func (client *PlansClient) ListVnets(ctx context.Context, resourceGroupName string, name string, options *PlansClientListVnetsOptions) (PlansClientListVnetsResponse, error) { req, err := client.listVnetsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1276,7 +1293,7 @@ func (client *PlansClient) listVnetsCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1292,11 +1309,11 @@ func (client *PlansClient) listVnetsHandleResponse(resp *http.Response) (PlansCl } // NewListWebAppsPager - Description for Get all apps associated with an App Service plan. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientListWebAppsOptions contains the optional parameters for the PlansClient.ListWebApps method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientListWebAppsOptions contains the optional parameters for the PlansClient.NewListWebAppsPager method. func (client *PlansClient) NewListWebAppsPager(resourceGroupName string, name string, options *PlansClientListWebAppsOptions) *runtime.Pager[PlansClientListWebAppsResponse] { return runtime.NewPager(runtime.PagingHandler[PlansClientListWebAppsResponse]{ More: func(page PlansClientListWebAppsResponse) bool { @@ -1345,7 +1362,7 @@ func (client *PlansClient) listWebAppsCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") if options != nil && options.SkipToken != nil { reqQP.Set("$skipToken", *options.SkipToken) } @@ -1372,14 +1389,14 @@ func (client *PlansClient) listWebAppsHandleResponse(resp *http.Response) (Plans } // NewListWebAppsByHybridConnectionPager - Description for Get all apps that use a Hybrid Connection in an App Service Plan. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// namespaceName - Name of the Hybrid Connection namespace. -// relayName - Name of the Hybrid Connection relay. -// options - PlansClientListWebAppsByHybridConnectionOptions contains the optional parameters for the PlansClient.ListWebAppsByHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - namespaceName - Name of the Hybrid Connection namespace. +// - relayName - Name of the Hybrid Connection relay. +// - options - PlansClientListWebAppsByHybridConnectionOptions contains the optional parameters for the PlansClient.NewListWebAppsByHybridConnectionPager +// method. func (client *PlansClient) NewListWebAppsByHybridConnectionPager(resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientListWebAppsByHybridConnectionOptions) *runtime.Pager[PlansClientListWebAppsByHybridConnectionResponse] { return runtime.NewPager(runtime.PagingHandler[PlansClientListWebAppsByHybridConnectionResponse]{ More: func(page PlansClientListWebAppsByHybridConnectionResponse) bool { @@ -1436,7 +1453,7 @@ func (client *PlansClient) listWebAppsByHybridConnectionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1453,11 +1470,12 @@ func (client *PlansClient) listWebAppsByHybridConnectionHandleResponse(resp *htt // RebootWorker - Description for Reboot a worker machine in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// workerName - Name of worker machine, which typically starts with RD. -// options - PlansClientRebootWorkerOptions contains the optional parameters for the PlansClient.RebootWorker method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - workerName - Name of worker machine, which typically starts with RD. +// - options - PlansClientRebootWorkerOptions contains the optional parameters for the PlansClient.RebootWorker method. func (client *PlansClient) RebootWorker(ctx context.Context, resourceGroupName string, name string, workerName string, options *PlansClientRebootWorkerOptions) (PlansClientRebootWorkerResponse, error) { req, err := client.rebootWorkerCreateRequest(ctx, resourceGroupName, name, workerName, options) if err != nil { @@ -1497,7 +1515,7 @@ func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1505,10 +1523,11 @@ func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resour // RestartWebApps - Description for Restart all apps in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// options - PlansClientRestartWebAppsOptions contains the optional parameters for the PlansClient.RestartWebApps method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientRestartWebAppsOptions contains the optional parameters for the PlansClient.RestartWebApps method. func (client *PlansClient) RestartWebApps(ctx context.Context, resourceGroupName string, name string, options *PlansClientRestartWebAppsOptions) (PlansClientRestartWebAppsResponse, error) { req, err := client.restartWebAppsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1547,7 +1566,7 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1555,11 +1574,12 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso // Update - Description for Creates or updates an App Service Plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// appServicePlan - Details of the App Service plan. -// options - PlansClientUpdateOptions contains the optional parameters for the PlansClient.Update method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - appServicePlan - Details of the App Service plan. +// - options - PlansClientUpdateOptions contains the optional parameters for the PlansClient.Update method. func (client *PlansClient) Update(ctx context.Context, resourceGroupName string, name string, appServicePlan PlanPatchResource, options *PlansClientUpdateOptions) (PlansClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, name, appServicePlan, options) if err != nil { @@ -1595,7 +1615,7 @@ func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appServicePlan) @@ -1612,13 +1632,14 @@ func (client *PlansClient) updateHandleResponse(resp *http.Response) (PlansClien // UpdateVnetGateway - Description for Update a Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Only the 'primary' gateway is supported. -// connectionEnvelope - Definition of the gateway. -// options - PlansClientUpdateVnetGatewayOptions contains the optional parameters for the PlansClient.UpdateVnetGateway method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Only the 'primary' gateway is supported. +// - connectionEnvelope - Definition of the gateway. +// - options - PlansClientUpdateVnetGatewayOptions contains the optional parameters for the PlansClient.UpdateVnetGateway method. func (client *PlansClient) UpdateVnetGateway(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, options *PlansClientUpdateVnetGatewayOptions) (PlansClientUpdateVnetGatewayResponse, error) { req, err := client.updateVnetGatewayCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, connectionEnvelope, options) if err != nil { @@ -1662,7 +1683,7 @@ func (client *PlansClient) updateVnetGatewayCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -1679,13 +1700,14 @@ func (client *PlansClient) updateVnetGatewayHandleResponse(resp *http.Response) // UpdateVnetRoute - Description for Create or update a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the App Service plan. -// vnetName - Name of the Virtual Network. -// routeName - Name of the Virtual Network route. -// route - Definition of the Virtual Network route. -// options - PlansClientUpdateVnetRouteOptions contains the optional parameters for the PlansClient.UpdateVnetRoute method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - vnetName - Name of the Virtual Network. +// - routeName - Name of the Virtual Network route. +// - route - Definition of the Virtual Network route. +// - options - PlansClientUpdateVnetRouteOptions contains the optional parameters for the PlansClient.UpdateVnetRoute method. func (client *PlansClient) UpdateVnetRoute(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute, options *PlansClientUpdateVnetRouteOptions) (PlansClientUpdateVnetRouteResponse, error) { req, err := client.updateVnetRouteCreateRequest(ctx, resourceGroupName, name, vnetName, routeName, route, options) if err != nil { @@ -1729,7 +1751,7 @@ func (client *PlansClient) updateVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, route) diff --git a/sdk/resourcemanager/appservice/armappservice/provider_client.go b/sdk/resourcemanager/appservice/armappservice/provider_client.go index 39ef53d7e04e..df816115c09c 100644 --- a/sdk/resourcemanager/appservice/armappservice/provider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/provider_client.go @@ -32,9 +32,9 @@ type ProviderClient struct { } // NewProviderClient creates a new instance of ProviderClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewProviderClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProviderClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,10 +56,10 @@ func NewProviderClient(subscriptionID string, credential azcore.TokenCredential, } // NewGetAvailableStacksPager - Description for Get available application frameworks and their versions -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ProviderClientGetAvailableStacksOptions contains the optional parameters for the ProviderClient.GetAvailableStacks -// method. +// +// Generated from API version 2022-09-01 +// - options - ProviderClientGetAvailableStacksOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksPager +// method. func (client *ProviderClient) NewGetAvailableStacksPager(options *ProviderClientGetAvailableStacksOptions) *runtime.Pager[ProviderClientGetAvailableStacksResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientGetAvailableStacksResponse]{ More: func(page ProviderClientGetAvailableStacksResponse) bool { @@ -99,7 +99,7 @@ func (client *ProviderClient) getAvailableStacksCreateRequest(ctx context.Contex if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,10 +115,10 @@ func (client *ProviderClient) getAvailableStacksHandleResponse(resp *http.Respon } // NewGetAvailableStacksOnPremPager - Description for Get available application frameworks and their versions -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ProviderClientGetAvailableStacksOnPremOptions contains the optional parameters for the ProviderClient.GetAvailableStacksOnPrem -// method. +// +// Generated from API version 2022-09-01 +// - options - ProviderClientGetAvailableStacksOnPremOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksOnPremPager +// method. func (client *ProviderClient) NewGetAvailableStacksOnPremPager(options *ProviderClientGetAvailableStacksOnPremOptions) *runtime.Pager[ProviderClientGetAvailableStacksOnPremResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientGetAvailableStacksOnPremResponse]{ More: func(page ProviderClientGetAvailableStacksOnPremResponse) bool { @@ -162,7 +162,7 @@ func (client *ProviderClient) getAvailableStacksOnPremCreateRequest(ctx context. if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -178,10 +178,10 @@ func (client *ProviderClient) getAvailableStacksOnPremHandleResponse(resp *http. } // NewGetFunctionAppStacksPager - Description for Get available Function app frameworks and their versions -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ProviderClientGetFunctionAppStacksOptions contains the optional parameters for the ProviderClient.GetFunctionAppStacks -// method. +// +// Generated from API version 2022-09-01 +// - options - ProviderClientGetFunctionAppStacksOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksPager +// method. func (client *ProviderClient) NewGetFunctionAppStacksPager(options *ProviderClientGetFunctionAppStacksOptions) *runtime.Pager[ProviderClientGetFunctionAppStacksResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientGetFunctionAppStacksResponse]{ More: func(page ProviderClientGetFunctionAppStacksResponse) bool { @@ -221,7 +221,7 @@ func (client *ProviderClient) getFunctionAppStacksCreateRequest(ctx context.Cont if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -238,11 +238,11 @@ func (client *ProviderClient) getFunctionAppStacksHandleResponse(resp *http.Resp // NewGetFunctionAppStacksForLocationPager - Description for Get available Function app frameworks and their versions for // location -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - Function App stack location. -// options - ProviderClientGetFunctionAppStacksForLocationOptions contains the optional parameters for the ProviderClient.GetFunctionAppStacksForLocation -// method. +// +// Generated from API version 2022-09-01 +// - location - Function App stack location. +// - options - ProviderClientGetFunctionAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksForLocationPager +// method. func (client *ProviderClient) NewGetFunctionAppStacksForLocationPager(location string, options *ProviderClientGetFunctionAppStacksForLocationOptions) *runtime.Pager[ProviderClientGetFunctionAppStacksForLocationResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientGetFunctionAppStacksForLocationResponse]{ More: func(page ProviderClientGetFunctionAppStacksForLocationResponse) bool { @@ -286,7 +286,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationCreateRequest(ctx c if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -302,10 +302,10 @@ func (client *ProviderClient) getFunctionAppStacksForLocationHandleResponse(resp } // NewGetWebAppStacksPager - Description for Get available Web app frameworks and their versions -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ProviderClientGetWebAppStacksOptions contains the optional parameters for the ProviderClient.GetWebAppStacks -// method. +// +// Generated from API version 2022-09-01 +// - options - ProviderClientGetWebAppStacksOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksPager +// method. func (client *ProviderClient) NewGetWebAppStacksPager(options *ProviderClientGetWebAppStacksOptions) *runtime.Pager[ProviderClientGetWebAppStacksResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientGetWebAppStacksResponse]{ More: func(page ProviderClientGetWebAppStacksResponse) bool { @@ -345,7 +345,7 @@ func (client *ProviderClient) getWebAppStacksCreateRequest(ctx context.Context, if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -361,11 +361,11 @@ func (client *ProviderClient) getWebAppStacksHandleResponse(resp *http.Response) } // NewGetWebAppStacksForLocationPager - Description for Get available Web app frameworks and their versions for location -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - Web App stack location. -// options - ProviderClientGetWebAppStacksForLocationOptions contains the optional parameters for the ProviderClient.GetWebAppStacksForLocation -// method. +// +// Generated from API version 2022-09-01 +// - location - Web App stack location. +// - options - ProviderClientGetWebAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksForLocationPager +// method. func (client *ProviderClient) NewGetWebAppStacksForLocationPager(location string, options *ProviderClientGetWebAppStacksForLocationOptions) *runtime.Pager[ProviderClientGetWebAppStacksForLocationResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientGetWebAppStacksForLocationResponse]{ More: func(page ProviderClientGetWebAppStacksForLocationResponse) bool { @@ -409,7 +409,7 @@ func (client *ProviderClient) getWebAppStacksForLocationCreateRequest(ctx contex if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -426,9 +426,10 @@ func (client *ProviderClient) getWebAppStacksForLocationHandleResponse(resp *htt // NewListOperationsPager - Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes // resource metric definitions -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ProviderClientListOperationsOptions contains the optional parameters for the ProviderClient.ListOperations method. +// +// Generated from API version 2022-09-01 +// - options - ProviderClientListOperationsOptions contains the optional parameters for the ProviderClient.NewListOperationsPager +// method. func (client *ProviderClient) NewListOperationsPager(options *ProviderClientListOperationsOptions) *runtime.Pager[ProviderClientListOperationsResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderClientListOperationsResponse]{ More: func(page ProviderClientListOperationsResponse) bool { @@ -465,7 +466,7 @@ func (client *ProviderClient) listOperationsCreateRequest(ctx context.Context, o return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go deleted file mode 100644 index e5c58d2c5508..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go +++ /dev/null @@ -1,139 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetFunctionAppStacks.json -func ExampleProviderClient_NewGetFunctionAppStacksPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewProviderClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetFunctionAppStacksPager(&armappservice.ProviderClientGetFunctionAppStacksOptions{StackOsType: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetFunctionAppStacksForLocation.json -func ExampleProviderClient_NewGetFunctionAppStacksForLocationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewProviderClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetFunctionAppStacksForLocationPager("westus", - &armappservice.ProviderClientGetFunctionAppStacksForLocationOptions{StackOsType: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebAppStacksForLocation.json -func ExampleProviderClient_NewGetWebAppStacksForLocationPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewProviderClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetWebAppStacksForLocationPager("westus", - &armappservice.ProviderClientGetWebAppStacksForLocationOptions{StackOsType: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListOperations.json -func ExampleProviderClient_NewListOperationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewProviderClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListOperationsPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebAppStacks.json -func ExampleProviderClient_NewGetWebAppStacksPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewProviderClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetWebAppStacksPager(&armappservice.ProviderClientGetWebAppStacksOptions{StackOsType: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go index 38438c57b16b..ff48babf8be3 100644 --- a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go +++ b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go @@ -33,9 +33,9 @@ type RecommendationsClient struct { } // NewRecommendationsClient creates a new instance of RecommendationsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRecommendationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RecommendationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRecommendationsClient(subscriptionID string, credential azcore.TokenCred // DisableAllForHostingEnvironment - Description for Disable all recommendations for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// environmentName - Name of the app. -// options - RecommendationsClientDisableAllForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.DisableAllForHostingEnvironment -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - environmentName - Name of the app. +// - options - RecommendationsClientDisableAllForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.DisableAllForHostingEnvironment +// method. func (client *RecommendationsClient) DisableAllForHostingEnvironment(ctx context.Context, resourceGroupName string, environmentName string, hostingEnvironmentName string, options *RecommendationsClientDisableAllForHostingEnvironmentOptions) (RecommendationsClientDisableAllForHostingEnvironmentResponse, error) { req, err := client.disableAllForHostingEnvironmentCreateRequest(ctx, resourceGroupName, environmentName, hostingEnvironmentName, options) if err != nil { @@ -99,7 +100,7 @@ func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateReques } reqQP := req.Raw().URL.Query() reqQP.Set("environmentName", environmentName) - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -107,11 +108,12 @@ func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateReques // DisableAllForWebApp - Description for Disable all recommendations for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Name of the app. -// options - RecommendationsClientDisableAllForWebAppOptions contains the optional parameters for the RecommendationsClient.DisableAllForWebApp -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Name of the app. +// - options - RecommendationsClientDisableAllForWebAppOptions contains the optional parameters for the RecommendationsClient.DisableAllForWebApp +// method. func (client *RecommendationsClient) DisableAllForWebApp(ctx context.Context, resourceGroupName string, siteName string, options *RecommendationsClientDisableAllForWebAppOptions) (RecommendationsClientDisableAllForWebAppResponse, error) { req, err := client.disableAllForWebAppCreateRequest(ctx, resourceGroupName, siteName, options) if err != nil { @@ -147,7 +149,7 @@ func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -155,12 +157,13 @@ func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx contex // DisableRecommendationForHostingEnvironment - Description for Disables the specific rule for a web site permanently. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// environmentName - Site name -// name - Rule name -// options - RecommendationsClientDisableRecommendationForHostingEnvironmentOptions contains the optional parameters for the -// RecommendationsClient.DisableRecommendationForHostingEnvironment method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - environmentName - Site name +// - name - Rule name +// - options - RecommendationsClientDisableRecommendationForHostingEnvironmentOptions contains the optional parameters for the +// RecommendationsClient.DisableRecommendationForHostingEnvironment method. func (client *RecommendationsClient) DisableRecommendationForHostingEnvironment(ctx context.Context, resourceGroupName string, environmentName string, name string, hostingEnvironmentName string, options *RecommendationsClientDisableRecommendationForHostingEnvironmentOptions) (RecommendationsClientDisableRecommendationForHostingEnvironmentResponse, error) { req, err := client.disableRecommendationForHostingEnvironmentCreateRequest(ctx, resourceGroupName, environmentName, name, hostingEnvironmentName, options) if err != nil { @@ -201,7 +204,7 @@ func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentC } reqQP := req.Raw().URL.Query() reqQP.Set("environmentName", environmentName) - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -209,12 +212,13 @@ func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentC // DisableRecommendationForSite - Description for Disables the specific rule for a web site permanently. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Site name -// name - Rule name -// options - RecommendationsClientDisableRecommendationForSiteOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Site name +// - name - Rule name +// - options - RecommendationsClientDisableRecommendationForSiteOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSite +// method. func (client *RecommendationsClient) DisableRecommendationForSite(ctx context.Context, resourceGroupName string, siteName string, name string, options *RecommendationsClientDisableRecommendationForSiteOptions) (RecommendationsClientDisableRecommendationForSiteResponse, error) { req, err := client.disableRecommendationForSiteCreateRequest(ctx, resourceGroupName, siteName, name, options) if err != nil { @@ -254,7 +258,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -263,10 +267,11 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c // DisableRecommendationForSubscription - Description for Disables the specified rule so it will not apply to a subscription // in the future. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// name - Rule name -// options - RecommendationsClientDisableRecommendationForSubscriptionOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSubscription -// method. +// +// Generated from API version 2022-09-01 +// - name - Rule name +// - options - RecommendationsClientDisableRecommendationForSubscriptionOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSubscription +// method. func (client *RecommendationsClient) DisableRecommendationForSubscription(ctx context.Context, name string, options *RecommendationsClientDisableRecommendationForSubscriptionOptions) (RecommendationsClientDisableRecommendationForSubscriptionResponse, error) { req, err := client.disableRecommendationForSubscriptionCreateRequest(ctx, name, options) if err != nil { @@ -298,7 +303,7 @@ func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -306,12 +311,13 @@ func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateR // GetRuleDetailsByHostingEnvironment - Description for Get a recommendation rule for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// hostingEnvironmentName - Name of the hosting environment. -// name - Name of the recommendation. -// options - RecommendationsClientGetRuleDetailsByHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.GetRuleDetailsByHostingEnvironment -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - hostingEnvironmentName - Name of the hosting environment. +// - name - Name of the recommendation. +// - options - RecommendationsClientGetRuleDetailsByHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.GetRuleDetailsByHostingEnvironment +// method. func (client *RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx context.Context, resourceGroupName string, hostingEnvironmentName string, name string, options *RecommendationsClientGetRuleDetailsByHostingEnvironmentOptions) (RecommendationsClientGetRuleDetailsByHostingEnvironmentResponse, error) { req, err := client.getRuleDetailsByHostingEnvironmentCreateRequest(ctx, resourceGroupName, hostingEnvironmentName, name, options) if err != nil { @@ -357,7 +363,7 @@ func (client *RecommendationsClient) getRuleDetailsByHostingEnvironmentCreateReq if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -374,12 +380,13 @@ func (client *RecommendationsClient) getRuleDetailsByHostingEnvironmentHandleRes // GetRuleDetailsByWebApp - Description for Get a recommendation rule for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Name of the app. -// name - Name of the recommendation. -// options - RecommendationsClientGetRuleDetailsByWebAppOptions contains the optional parameters for the RecommendationsClient.GetRuleDetailsByWebApp -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Name of the app. +// - name - Name of the recommendation. +// - options - RecommendationsClientGetRuleDetailsByWebAppOptions contains the optional parameters for the RecommendationsClient.GetRuleDetailsByWebApp +// method. func (client *RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, resourceGroupName string, siteName string, name string, options *RecommendationsClientGetRuleDetailsByWebAppOptions) (RecommendationsClientGetRuleDetailsByWebAppResponse, error) { req, err := client.getRuleDetailsByWebAppCreateRequest(ctx, resourceGroupName, siteName, name, options) if err != nil { @@ -425,7 +432,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppCreateRequest(ctx con if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -441,9 +448,10 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppHandleResponse(resp * } // NewListPager - Description for List all recommendations for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - RecommendationsClientListOptions contains the optional parameters for the RecommendationsClient.List method. +// +// Generated from API version 2022-09-01 +// - options - RecommendationsClientListOptions contains the optional parameters for the RecommendationsClient.NewListPager +// method. func (client *RecommendationsClient) NewListPager(options *RecommendationsClientListOptions) *runtime.Pager[RecommendationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RecommendationsClientListResponse]{ More: func(page RecommendationsClientListResponse) bool { @@ -487,7 +495,7 @@ func (client *RecommendationsClient) listCreateRequest(ctx context.Context, opti if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -509,12 +517,12 @@ func (client *RecommendationsClient) listHandleResponse(resp *http.Response) (Re // NewListHistoryForHostingEnvironmentPager - Description for Get past recommendations for an app, optionally specified by // the time range. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// hostingEnvironmentName - Name of the hosting environment. -// options - RecommendationsClientListHistoryForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.ListHistoryForHostingEnvironment -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - hostingEnvironmentName - Name of the hosting environment. +// - options - RecommendationsClientListHistoryForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.NewListHistoryForHostingEnvironmentPager +// method. func (client *RecommendationsClient) NewListHistoryForHostingEnvironmentPager(resourceGroupName string, hostingEnvironmentName string, options *RecommendationsClientListHistoryForHostingEnvironmentOptions) *runtime.Pager[RecommendationsClientListHistoryForHostingEnvironmentResponse] { return runtime.NewPager(runtime.PagingHandler[RecommendationsClientListHistoryForHostingEnvironmentResponse]{ More: func(page RecommendationsClientListHistoryForHostingEnvironmentResponse) bool { @@ -566,7 +574,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentCreateReque if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -587,12 +595,12 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentHandleRespo } // NewListHistoryForWebAppPager - Description for Get past recommendations for an app, optionally specified by the time range. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Name of the app. -// options - RecommendationsClientListHistoryForWebAppOptions contains the optional parameters for the RecommendationsClient.ListHistoryForWebApp -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Name of the app. +// - options - RecommendationsClientListHistoryForWebAppOptions contains the optional parameters for the RecommendationsClient.NewListHistoryForWebAppPager +// method. func (client *RecommendationsClient) NewListHistoryForWebAppPager(resourceGroupName string, siteName string, options *RecommendationsClientListHistoryForWebAppOptions) *runtime.Pager[RecommendationsClientListHistoryForWebAppResponse] { return runtime.NewPager(runtime.PagingHandler[RecommendationsClientListHistoryForWebAppResponse]{ More: func(page RecommendationsClientListHistoryForWebAppResponse) bool { @@ -644,7 +652,7 @@ func (client *RecommendationsClient) listHistoryForWebAppCreateRequest(ctx conte if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -665,12 +673,12 @@ func (client *RecommendationsClient) listHistoryForWebAppHandleResponse(resp *ht } // NewListRecommendedRulesForHostingEnvironmentPager - Description for Get all recommendations for a hosting environment. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// hostingEnvironmentName - Name of the app. -// options - RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions contains the optional parameters for the -// RecommendationsClient.ListRecommendedRulesForHostingEnvironment method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - hostingEnvironmentName - Name of the app. +// - options - RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions contains the optional parameters for the +// RecommendationsClient.NewListRecommendedRulesForHostingEnvironmentPager method. func (client *RecommendationsClient) NewListRecommendedRulesForHostingEnvironmentPager(resourceGroupName string, hostingEnvironmentName string, options *RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions) *runtime.Pager[RecommendationsClientListRecommendedRulesForHostingEnvironmentResponse] { return runtime.NewPager(runtime.PagingHandler[RecommendationsClientListRecommendedRulesForHostingEnvironmentResponse]{ More: func(page RecommendationsClientListRecommendedRulesForHostingEnvironmentResponse) bool { @@ -722,7 +730,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentCr if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -743,12 +751,12 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentHa } // NewListRecommendedRulesForWebAppPager - Description for Get all recommendations for an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Name of the app. -// options - RecommendationsClientListRecommendedRulesForWebAppOptions contains the optional parameters for the RecommendationsClient.ListRecommendedRulesForWebApp -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Name of the app. +// - options - RecommendationsClientListRecommendedRulesForWebAppOptions contains the optional parameters for the RecommendationsClient.NewListRecommendedRulesForWebAppPager +// method. func (client *RecommendationsClient) NewListRecommendedRulesForWebAppPager(resourceGroupName string, siteName string, options *RecommendationsClientListRecommendedRulesForWebAppOptions) *runtime.Pager[RecommendationsClientListRecommendedRulesForWebAppResponse] { return runtime.NewPager(runtime.PagingHandler[RecommendationsClientListRecommendedRulesForWebAppResponse]{ More: func(page RecommendationsClientListRecommendedRulesForWebAppResponse) bool { @@ -800,7 +808,7 @@ func (client *RecommendationsClient) listRecommendedRulesForWebAppCreateRequest( if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -822,9 +830,10 @@ func (client *RecommendationsClient) listRecommendedRulesForWebAppHandleResponse // ResetAllFilters - Description for Reset all recommendation opt-out settings for a subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - RecommendationsClientResetAllFiltersOptions contains the optional parameters for the RecommendationsClient.ResetAllFilters -// method. +// +// Generated from API version 2022-09-01 +// - options - RecommendationsClientResetAllFiltersOptions contains the optional parameters for the RecommendationsClient.ResetAllFilters +// method. func (client *RecommendationsClient) ResetAllFilters(ctx context.Context, options *RecommendationsClientResetAllFiltersOptions) (RecommendationsClientResetAllFiltersResponse, error) { req, err := client.resetAllFiltersCreateRequest(ctx, options) if err != nil { @@ -852,7 +861,7 @@ func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -860,11 +869,12 @@ func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Co // ResetAllFiltersForHostingEnvironment - Description for Reset all recommendation opt-out settings for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// environmentName - Name of the app. -// options - RecommendationsClientResetAllFiltersForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.ResetAllFiltersForHostingEnvironment -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - environmentName - Name of the app. +// - options - RecommendationsClientResetAllFiltersForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.ResetAllFiltersForHostingEnvironment +// method. func (client *RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx context.Context, resourceGroupName string, environmentName string, hostingEnvironmentName string, options *RecommendationsClientResetAllFiltersForHostingEnvironmentOptions) (RecommendationsClientResetAllFiltersForHostingEnvironmentResponse, error) { req, err := client.resetAllFiltersForHostingEnvironmentCreateRequest(ctx, resourceGroupName, environmentName, hostingEnvironmentName, options) if err != nil { @@ -901,7 +911,7 @@ func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateR } reqQP := req.Raw().URL.Query() reqQP.Set("environmentName", environmentName) - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -909,11 +919,12 @@ func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateR // ResetAllFiltersForWebApp - Description for Reset all recommendation opt-out settings for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// siteName - Name of the app. -// options - RecommendationsClientResetAllFiltersForWebAppOptions contains the optional parameters for the RecommendationsClient.ResetAllFiltersForWebApp -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - siteName - Name of the app. +// - options - RecommendationsClientResetAllFiltersForWebAppOptions contains the optional parameters for the RecommendationsClient.ResetAllFiltersForWebApp +// method. func (client *RecommendationsClient) ResetAllFiltersForWebApp(ctx context.Context, resourceGroupName string, siteName string, options *RecommendationsClientResetAllFiltersForWebAppOptions) (RecommendationsClientResetAllFiltersForWebAppResponse, error) { req, err := client.resetAllFiltersForWebAppCreateRequest(ctx, resourceGroupName, siteName, options) if err != nil { @@ -949,7 +960,7 @@ func (client *RecommendationsClient) resetAllFiltersForWebAppCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go index 8b1c1753cd55..ed34487702be 100644 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go +++ b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go @@ -32,9 +32,9 @@ type ResourceHealthMetadataClient struct { } // NewResourceHealthMetadataClient creates a new instance of ResourceHealthMetadataClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewResourceHealthMetadataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceHealthMetadataClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewResourceHealthMetadataClient(subscriptionID string, credential azcore.To // GetBySite - Description for Gets the category of ResourceHealthMetadata to use for the given site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app -// options - ResourceHealthMetadataClientGetBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.GetBySite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app +// - options - ResourceHealthMetadataClientGetBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.GetBySite +// method. func (client *ResourceHealthMetadataClient) GetBySite(ctx context.Context, resourceGroupName string, name string, options *ResourceHealthMetadataClientGetBySiteOptions) (ResourceHealthMetadataClientGetBySiteResponse, error) { req, err := client.getBySiteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -97,7 +98,7 @@ func (client *ResourceHealthMetadataClient) getBySiteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -114,12 +115,13 @@ func (client *ResourceHealthMetadataClient) getBySiteHandleResponse(resp *http.R // GetBySiteSlot - Description for Gets the category of ResourceHealthMetadata to use for the given site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app -// slot - Name of web app slot. If not specified then will default to production slot. -// options - ResourceHealthMetadataClientGetBySiteSlotOptions contains the optional parameters for the ResourceHealthMetadataClient.GetBySiteSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - ResourceHealthMetadataClientGetBySiteSlotOptions contains the optional parameters for the ResourceHealthMetadataClient.GetBySiteSlot +// method. func (client *ResourceHealthMetadataClient) GetBySiteSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *ResourceHealthMetadataClientGetBySiteSlotOptions) (ResourceHealthMetadataClientGetBySiteSlotResponse, error) { req, err := client.getBySiteSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -159,7 +161,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -175,10 +177,10 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotHandleResponse(resp *ht } // NewListPager - Description for List all ResourceHealthMetadata for all sites in the subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - ResourceHealthMetadataClientListOptions contains the optional parameters for the ResourceHealthMetadataClient.List -// method. +// +// Generated from API version 2022-09-01 +// - options - ResourceHealthMetadataClientListOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListPager +// method. func (client *ResourceHealthMetadataClient) NewListPager(options *ResourceHealthMetadataClientListOptions) *runtime.Pager[ResourceHealthMetadataClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceHealthMetadataClientListResponse]{ More: func(page ResourceHealthMetadataClientListResponse) bool { @@ -219,7 +221,7 @@ func (client *ResourceHealthMetadataClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -236,11 +238,11 @@ func (client *ResourceHealthMetadataClient) listHandleResponse(resp *http.Respon // NewListByResourceGroupPager - Description for List all ResourceHealthMetadata for all sites in the resource group in the // subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - ResourceHealthMetadataClientListByResourceGroupOptions contains the optional parameters for the ResourceHealthMetadataClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - ResourceHealthMetadataClientListByResourceGroupOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListByResourceGroupPager +// method. func (client *ResourceHealthMetadataClient) NewListByResourceGroupPager(resourceGroupName string, options *ResourceHealthMetadataClientListByResourceGroupOptions) *runtime.Pager[ResourceHealthMetadataClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceHealthMetadataClientListByResourceGroupResponse]{ More: func(page ResourceHealthMetadataClientListByResourceGroupResponse) bool { @@ -285,7 +287,7 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -301,12 +303,12 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupHandleResponse(re } // NewListBySitePager - Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - ResourceHealthMetadataClientListBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.ListBySite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - ResourceHealthMetadataClientListBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListBySitePager +// method. func (client *ResourceHealthMetadataClient) NewListBySitePager(resourceGroupName string, name string, options *ResourceHealthMetadataClientListBySiteOptions) *runtime.Pager[ResourceHealthMetadataClientListBySiteResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceHealthMetadataClientListBySiteResponse]{ More: func(page ResourceHealthMetadataClientListBySiteResponse) bool { @@ -355,7 +357,7 @@ func (client *ResourceHealthMetadataClient) listBySiteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -371,13 +373,13 @@ func (client *ResourceHealthMetadataClient) listBySiteHandleResponse(resp *http. } // NewListBySiteSlotPager - Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - ResourceHealthMetadataClientListBySiteSlotOptions contains the optional parameters for the ResourceHealthMetadataClient.ListBySiteSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - ResourceHealthMetadataClientListBySiteSlotOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListBySiteSlotPager +// method. func (client *ResourceHealthMetadataClient) NewListBySiteSlotPager(resourceGroupName string, name string, slot string, options *ResourceHealthMetadataClientListBySiteSlotOptions) *runtime.Pager[ResourceHealthMetadataClientListBySiteSlotResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceHealthMetadataClientListBySiteSlotResponse]{ More: func(page ResourceHealthMetadataClientListBySiteSlotResponse) bool { @@ -430,7 +432,7 @@ func (client *ResourceHealthMetadataClient) listBySiteSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go deleted file mode 100644 index 8dfef2125aa9..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go +++ /dev/null @@ -1,164 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListResourceHealthMetadataBySubscription.json -func ExampleResourceHealthMetadataClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewResourceHealthMetadataClient("4adb32ad-8327-4cbb-b775-b84b4465bb38", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListResourceHealthMetadataByResourceGroup.json -func ExampleResourceHealthMetadataClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewResourceHealthMetadataClient("4adb32ad-8327-4cbb-b775-b84b4465bb38", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("Default-Web-NorthCentralUS", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListResourceHealthMetadataBySite.json -func ExampleResourceHealthMetadataClient_NewListBySitePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewResourceHealthMetadataClient("4adb32ad-8327-4cbb-b775-b84b4465bb38", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySitePager("Default-Web-NorthCentralUS", - "newsiteinnewASE-NCUS", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetResourceHealthMetadataBySite.json -func ExampleResourceHealthMetadataClient_GetBySite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewResourceHealthMetadataClient("4adb32ad-8327-4cbb-b775-b84b4465bb38", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetBySite(ctx, - "Default-Web-NorthCentralUS", - "newsiteinnewASE-NCUS", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListResourceHealthMetadataBySite.json -func ExampleResourceHealthMetadataClient_NewListBySiteSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewResourceHealthMetadataClient("4adb32ad-8327-4cbb-b775-b84b4465bb38", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySiteSlotPager("Default-Web-NorthCentralUS", - "newsiteinnewASE-NCUS", - "Production", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetResourceHealthMetadataBySite.json -func ExampleResourceHealthMetadataClient_GetBySiteSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewResourceHealthMetadataClient("4adb32ad-8327-4cbb-b775-b84b4465bb38", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetBySiteSlot(ctx, - "Default-Web-NorthCentralUS", - "newsiteinnewASE-NCUS", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/response_types.go b/sdk/resourcemanager/appservice/armappservice/response_types.go index 7f36f56a1a6e..fa12c50aeb71 100644 --- a/sdk/resourcemanager/appservice/armappservice/response_types.go +++ b/sdk/resourcemanager/appservice/armappservice/response_types.go @@ -14,12 +14,12 @@ import ( "io" ) -// CertificateOrdersClientCreateOrUpdateCertificateResponse contains the response from method CertificateOrdersClient.CreateOrUpdateCertificate. +// CertificateOrdersClientCreateOrUpdateCertificateResponse contains the response from method CertificateOrdersClient.BeginCreateOrUpdateCertificate. type CertificateOrdersClientCreateOrUpdateCertificateResponse struct { CertificateResource } -// CertificateOrdersClientCreateOrUpdateResponse contains the response from method CertificateOrdersClient.CreateOrUpdate. +// CertificateOrdersClientCreateOrUpdateResponse contains the response from method CertificateOrdersClient.BeginCreateOrUpdate. type CertificateOrdersClientCreateOrUpdateResponse struct { CertificateOrder } @@ -44,17 +44,17 @@ type CertificateOrdersClientGetResponse struct { CertificateOrder } -// CertificateOrdersClientListByResourceGroupResponse contains the response from method CertificateOrdersClient.ListByResourceGroup. +// CertificateOrdersClientListByResourceGroupResponse contains the response from method CertificateOrdersClient.NewListByResourceGroupPager. type CertificateOrdersClientListByResourceGroupResponse struct { CertificateOrderCollection } -// CertificateOrdersClientListCertificatesResponse contains the response from method CertificateOrdersClient.ListCertificates. +// CertificateOrdersClientListCertificatesResponse contains the response from method CertificateOrdersClient.NewListCertificatesPager. type CertificateOrdersClientListCertificatesResponse struct { CertificateCollection } -// CertificateOrdersClientListResponse contains the response from method CertificateOrdersClient.List. +// CertificateOrdersClientListResponse contains the response from method CertificateOrdersClient.NewListPager. type CertificateOrdersClientListResponse struct { CertificateOrderCollection } @@ -123,12 +123,12 @@ type CertificateOrdersDiagnosticsClientGetAppServiceCertificateOrderDetectorResp } // CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseResponse contains the response from method -// CertificateOrdersDiagnosticsClient.ListAppServiceCertificateOrderDetectorResponse. +// CertificateOrdersDiagnosticsClient.NewListAppServiceCertificateOrderDetectorResponsePager. type CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseResponse struct { DetectorResponseCollection } -// CertificateRegistrationProviderClientListOperationsResponse contains the response from method CertificateRegistrationProviderClient.ListOperations. +// CertificateRegistrationProviderClientListOperationsResponse contains the response from method CertificateRegistrationProviderClient.NewListOperationsPager. type CertificateRegistrationProviderClientListOperationsResponse struct { CsmOperationCollection } @@ -148,12 +148,12 @@ type CertificatesClientGetResponse struct { AppCertificate } -// CertificatesClientListByResourceGroupResponse contains the response from method CertificatesClient.ListByResourceGroup. +// CertificatesClientListByResourceGroupResponse contains the response from method CertificatesClient.NewListByResourceGroupPager. type CertificatesClientListByResourceGroupResponse struct { AppCertificateCollection } -// CertificatesClientListResponse contains the response from method CertificatesClient.List. +// CertificatesClientListResponse contains the response from method CertificatesClient.NewListPager. type CertificatesClientListResponse struct { AppCertificateCollection } @@ -163,12 +163,12 @@ type CertificatesClientUpdateResponse struct { AppCertificate } -// ContainerAppsClientCreateOrUpdateResponse contains the response from method ContainerAppsClient.CreateOrUpdate. +// ContainerAppsClientCreateOrUpdateResponse contains the response from method ContainerAppsClient.BeginCreateOrUpdate. type ContainerAppsClientCreateOrUpdateResponse struct { ContainerApp } -// ContainerAppsClientDeleteResponse contains the response from method ContainerAppsClient.Delete. +// ContainerAppsClientDeleteResponse contains the response from method ContainerAppsClient.BeginDelete. type ContainerAppsClientDeleteResponse struct { // placeholder for future response values } @@ -178,12 +178,12 @@ type ContainerAppsClientGetResponse struct { ContainerApp } -// ContainerAppsClientListByResourceGroupResponse contains the response from method ContainerAppsClient.ListByResourceGroup. +// ContainerAppsClientListByResourceGroupResponse contains the response from method ContainerAppsClient.NewListByResourceGroupPager. type ContainerAppsClientListByResourceGroupResponse struct { ContainerAppCollection } -// ContainerAppsClientListBySubscriptionResponse contains the response from method ContainerAppsClient.ListBySubscription. +// ContainerAppsClientListBySubscriptionResponse contains the response from method ContainerAppsClient.NewListBySubscriptionPager. type ContainerAppsClientListBySubscriptionResponse struct { ContainerAppCollection } @@ -208,7 +208,7 @@ type ContainerAppsRevisionsClientGetRevisionResponse struct { Revision } -// ContainerAppsRevisionsClientListRevisionsResponse contains the response from method ContainerAppsRevisionsClient.ListRevisions. +// ContainerAppsRevisionsClientListRevisionsResponse contains the response from method ContainerAppsRevisionsClient.NewListRevisionsPager. type ContainerAppsRevisionsClientListRevisionsResponse struct { RevisionCollection } @@ -223,12 +223,12 @@ type DeletedWebAppsClientGetDeletedWebAppByLocationResponse struct { DeletedSite } -// DeletedWebAppsClientListByLocationResponse contains the response from method DeletedWebAppsClient.ListByLocation. +// DeletedWebAppsClientListByLocationResponse contains the response from method DeletedWebAppsClient.NewListByLocationPager. type DeletedWebAppsClientListByLocationResponse struct { DeletedWebAppCollection } -// DeletedWebAppsClientListResponse contains the response from method DeletedWebAppsClient.List. +// DeletedWebAppsClientListResponse contains the response from method DeletedWebAppsClient.NewListPager. type DeletedWebAppsClientListResponse struct { DeletedWebAppCollection } @@ -298,52 +298,52 @@ type DiagnosticsClientGetSiteDiagnosticCategorySlotResponse struct { DiagnosticCategory } -// DiagnosticsClientListHostingEnvironmentDetectorResponsesResponse contains the response from method DiagnosticsClient.ListHostingEnvironmentDetectorResponses. +// DiagnosticsClientListHostingEnvironmentDetectorResponsesResponse contains the response from method DiagnosticsClient.NewListHostingEnvironmentDetectorResponsesPager. type DiagnosticsClientListHostingEnvironmentDetectorResponsesResponse struct { DetectorResponseCollection } -// DiagnosticsClientListSiteAnalysesResponse contains the response from method DiagnosticsClient.ListSiteAnalyses. +// DiagnosticsClientListSiteAnalysesResponse contains the response from method DiagnosticsClient.NewListSiteAnalysesPager. type DiagnosticsClientListSiteAnalysesResponse struct { DiagnosticAnalysisCollection } -// DiagnosticsClientListSiteAnalysesSlotResponse contains the response from method DiagnosticsClient.ListSiteAnalysesSlot. +// DiagnosticsClientListSiteAnalysesSlotResponse contains the response from method DiagnosticsClient.NewListSiteAnalysesSlotPager. type DiagnosticsClientListSiteAnalysesSlotResponse struct { DiagnosticAnalysisCollection } -// DiagnosticsClientListSiteDetectorResponsesResponse contains the response from method DiagnosticsClient.ListSiteDetectorResponses. +// DiagnosticsClientListSiteDetectorResponsesResponse contains the response from method DiagnosticsClient.NewListSiteDetectorResponsesPager. type DiagnosticsClientListSiteDetectorResponsesResponse struct { DetectorResponseCollection } -// DiagnosticsClientListSiteDetectorResponsesSlotResponse contains the response from method DiagnosticsClient.ListSiteDetectorResponsesSlot. +// DiagnosticsClientListSiteDetectorResponsesSlotResponse contains the response from method DiagnosticsClient.NewListSiteDetectorResponsesSlotPager. type DiagnosticsClientListSiteDetectorResponsesSlotResponse struct { DetectorResponseCollection } -// DiagnosticsClientListSiteDetectorsResponse contains the response from method DiagnosticsClient.ListSiteDetectors. +// DiagnosticsClientListSiteDetectorsResponse contains the response from method DiagnosticsClient.NewListSiteDetectorsPager. type DiagnosticsClientListSiteDetectorsResponse struct { DiagnosticDetectorCollection } -// DiagnosticsClientListSiteDetectorsSlotResponse contains the response from method DiagnosticsClient.ListSiteDetectorsSlot. +// DiagnosticsClientListSiteDetectorsSlotResponse contains the response from method DiagnosticsClient.NewListSiteDetectorsSlotPager. type DiagnosticsClientListSiteDetectorsSlotResponse struct { DiagnosticDetectorCollection } -// DiagnosticsClientListSiteDiagnosticCategoriesResponse contains the response from method DiagnosticsClient.ListSiteDiagnosticCategories. +// DiagnosticsClientListSiteDiagnosticCategoriesResponse contains the response from method DiagnosticsClient.NewListSiteDiagnosticCategoriesPager. type DiagnosticsClientListSiteDiagnosticCategoriesResponse struct { DiagnosticCategoryCollection } -// DiagnosticsClientListSiteDiagnosticCategoriesSlotResponse contains the response from method DiagnosticsClient.ListSiteDiagnosticCategoriesSlot. +// DiagnosticsClientListSiteDiagnosticCategoriesSlotResponse contains the response from method DiagnosticsClient.NewListSiteDiagnosticCategoriesSlotPager. type DiagnosticsClientListSiteDiagnosticCategoriesSlotResponse struct { DiagnosticCategoryCollection } -// DomainRegistrationProviderClientListOperationsResponse contains the response from method DomainRegistrationProviderClient.ListOperations. +// DomainRegistrationProviderClientListOperationsResponse contains the response from method DomainRegistrationProviderClient.NewListOperationsPager. type DomainRegistrationProviderClientListOperationsResponse struct { CsmOperationCollection } @@ -358,7 +358,7 @@ type DomainsClientCreateOrUpdateOwnershipIdentifierResponse struct { DomainOwnershipIdentifier } -// DomainsClientCreateOrUpdateResponse contains the response from method DomainsClient.CreateOrUpdate. +// DomainsClientCreateOrUpdateResponse contains the response from method DomainsClient.BeginCreateOrUpdate. type DomainsClientCreateOrUpdateResponse struct { Domain } @@ -388,22 +388,22 @@ type DomainsClientGetResponse struct { Domain } -// DomainsClientListByResourceGroupResponse contains the response from method DomainsClient.ListByResourceGroup. +// DomainsClientListByResourceGroupResponse contains the response from method DomainsClient.NewListByResourceGroupPager. type DomainsClientListByResourceGroupResponse struct { DomainCollection } -// DomainsClientListOwnershipIdentifiersResponse contains the response from method DomainsClient.ListOwnershipIdentifiers. +// DomainsClientListOwnershipIdentifiersResponse contains the response from method DomainsClient.NewListOwnershipIdentifiersPager. type DomainsClientListOwnershipIdentifiersResponse struct { DomainOwnershipIdentifierCollection } -// DomainsClientListRecommendationsResponse contains the response from method DomainsClient.ListRecommendations. +// DomainsClientListRecommendationsResponse contains the response from method DomainsClient.NewListRecommendationsPager. type DomainsClientListRecommendationsResponse struct { NameIdentifierCollection } -// DomainsClientListResponse contains the response from method DomainsClient.List. +// DomainsClientListResponse contains the response from method DomainsClient.NewListPager. type DomainsClientListResponse struct { DomainCollection } @@ -428,27 +428,27 @@ type DomainsClientUpdateResponse struct { Domain } -// EnvironmentsClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method EnvironmentsClient.ApproveOrRejectPrivateEndpointConnection. +// EnvironmentsClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection. type EnvironmentsClientApproveOrRejectPrivateEndpointConnectionResponse struct { RemotePrivateEndpointConnectionARMResource } -// EnvironmentsClientChangeVnetResponse contains the response from method EnvironmentsClient.ChangeVnet. +// EnvironmentsClientChangeVnetResponse contains the response from method EnvironmentsClient.BeginChangeVnet. type EnvironmentsClientChangeVnetResponse struct { WebAppCollection } -// EnvironmentsClientCreateOrUpdateMultiRolePoolResponse contains the response from method EnvironmentsClient.CreateOrUpdateMultiRolePool. +// EnvironmentsClientCreateOrUpdateMultiRolePoolResponse contains the response from method EnvironmentsClient.BeginCreateOrUpdateMultiRolePool. type EnvironmentsClientCreateOrUpdateMultiRolePoolResponse struct { WorkerPoolResource } -// EnvironmentsClientCreateOrUpdateResponse contains the response from method EnvironmentsClient.CreateOrUpdate. +// EnvironmentsClientCreateOrUpdateResponse contains the response from method EnvironmentsClient.BeginCreateOrUpdate. type EnvironmentsClientCreateOrUpdateResponse struct { EnvironmentResource } -// EnvironmentsClientCreateOrUpdateWorkerPoolResponse contains the response from method EnvironmentsClient.CreateOrUpdateWorkerPool. +// EnvironmentsClientCreateOrUpdateWorkerPoolResponse contains the response from method EnvironmentsClient.BeginCreateOrUpdateWorkerPool. type EnvironmentsClientCreateOrUpdateWorkerPoolResponse struct { WorkerPoolResource } @@ -456,13 +456,13 @@ type EnvironmentsClientCreateOrUpdateWorkerPoolResponse struct { // EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationResponse contains the response from method EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration. type EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationResponse struct { // Anything - Interface interface{} + Interface any } -// EnvironmentsClientDeletePrivateEndpointConnectionResponse contains the response from method EnvironmentsClient.DeletePrivateEndpointConnection. +// EnvironmentsClientDeletePrivateEndpointConnectionResponse contains the response from method EnvironmentsClient.BeginDeletePrivateEndpointConnection. type EnvironmentsClientDeletePrivateEndpointConnectionResponse struct { // Anything - Interface interface{} + Interface any } // UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentsClientDeletePrivateEndpointConnectionResponse. @@ -470,7 +470,7 @@ func (e *EnvironmentsClientDeletePrivateEndpointConnectionResponse) UnmarshalJSO return json.Unmarshal(data, &e.Interface) } -// EnvironmentsClientDeleteResponse contains the response from method EnvironmentsClient.Delete. +// EnvironmentsClientDeleteResponse contains the response from method EnvironmentsClient.BeginDelete. type EnvironmentsClientDeleteResponse struct { // placeholder for future response values } @@ -490,7 +490,7 @@ type EnvironmentsClientGetDiagnosticsItemResponse struct { HostingEnvironmentDiagnostics } -// EnvironmentsClientGetInboundNetworkDependenciesEndpointsResponse contains the response from method EnvironmentsClient.GetInboundNetworkDependenciesEndpoints. +// EnvironmentsClientGetInboundNetworkDependenciesEndpointsResponse contains the response from method EnvironmentsClient.NewGetInboundNetworkDependenciesEndpointsPager. type EnvironmentsClientGetInboundNetworkDependenciesEndpointsResponse struct { InboundEnvironmentEndpointCollection } @@ -500,12 +500,12 @@ type EnvironmentsClientGetMultiRolePoolResponse struct { WorkerPoolResource } -// EnvironmentsClientGetOutboundNetworkDependenciesEndpointsResponse contains the response from method EnvironmentsClient.GetOutboundNetworkDependenciesEndpoints. +// EnvironmentsClientGetOutboundNetworkDependenciesEndpointsResponse contains the response from method EnvironmentsClient.NewGetOutboundNetworkDependenciesEndpointsPager. type EnvironmentsClientGetOutboundNetworkDependenciesEndpointsResponse struct { OutboundEnvironmentEndpointCollection } -// EnvironmentsClientGetPrivateEndpointConnectionListResponse contains the response from method EnvironmentsClient.GetPrivateEndpointConnectionList. +// EnvironmentsClientGetPrivateEndpointConnectionListResponse contains the response from method EnvironmentsClient.NewGetPrivateEndpointConnectionListPager. type EnvironmentsClientGetPrivateEndpointConnectionListResponse struct { PrivateEndpointConnectionCollection } @@ -535,17 +535,17 @@ type EnvironmentsClientGetWorkerPoolResponse struct { WorkerPoolResource } -// EnvironmentsClientListAppServicePlansResponse contains the response from method EnvironmentsClient.ListAppServicePlans. +// EnvironmentsClientListAppServicePlansResponse contains the response from method EnvironmentsClient.NewListAppServicePlansPager. type EnvironmentsClientListAppServicePlansResponse struct { PlanCollection } -// EnvironmentsClientListByResourceGroupResponse contains the response from method EnvironmentsClient.ListByResourceGroup. +// EnvironmentsClientListByResourceGroupResponse contains the response from method EnvironmentsClient.NewListByResourceGroupPager. type EnvironmentsClientListByResourceGroupResponse struct { EnvironmentCollection } -// EnvironmentsClientListCapacitiesResponse contains the response from method EnvironmentsClient.ListCapacities. +// EnvironmentsClientListCapacitiesResponse contains the response from method EnvironmentsClient.NewListCapacitiesPager. type EnvironmentsClientListCapacitiesResponse struct { StampCapacityCollection } @@ -556,27 +556,27 @@ type EnvironmentsClientListDiagnosticsResponse struct { HostingEnvironmentDiagnosticsArray []*HostingEnvironmentDiagnostics } -// EnvironmentsClientListMultiRoleMetricDefinitionsResponse contains the response from method EnvironmentsClient.ListMultiRoleMetricDefinitions. +// EnvironmentsClientListMultiRoleMetricDefinitionsResponse contains the response from method EnvironmentsClient.NewListMultiRoleMetricDefinitionsPager. type EnvironmentsClientListMultiRoleMetricDefinitionsResponse struct { ResourceMetricDefinitionCollection } -// EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsResponse contains the response from method EnvironmentsClient.ListMultiRolePoolInstanceMetricDefinitions. +// EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsResponse contains the response from method EnvironmentsClient.NewListMultiRolePoolInstanceMetricDefinitionsPager. type EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsResponse struct { ResourceMetricDefinitionCollection } -// EnvironmentsClientListMultiRolePoolSKUsResponse contains the response from method EnvironmentsClient.ListMultiRolePoolSKUs. +// EnvironmentsClientListMultiRolePoolSKUsResponse contains the response from method EnvironmentsClient.NewListMultiRolePoolSKUsPager. type EnvironmentsClientListMultiRolePoolSKUsResponse struct { SKUInfoCollection } -// EnvironmentsClientListMultiRolePoolsResponse contains the response from method EnvironmentsClient.ListMultiRolePools. +// EnvironmentsClientListMultiRolePoolsResponse contains the response from method EnvironmentsClient.NewListMultiRolePoolsPager. type EnvironmentsClientListMultiRolePoolsResponse struct { WorkerPoolCollection } -// EnvironmentsClientListMultiRoleUsagesResponse contains the response from method EnvironmentsClient.ListMultiRoleUsages. +// EnvironmentsClientListMultiRoleUsagesResponse contains the response from method EnvironmentsClient.NewListMultiRoleUsagesPager. type EnvironmentsClientListMultiRoleUsagesResponse struct { UsageCollection } @@ -587,42 +587,42 @@ type EnvironmentsClientListOperationsResponse struct { OperationArray []*Operation } -// EnvironmentsClientListResponse contains the response from method EnvironmentsClient.List. +// EnvironmentsClientListResponse contains the response from method EnvironmentsClient.NewListPager. type EnvironmentsClientListResponse struct { EnvironmentCollection } -// EnvironmentsClientListUsagesResponse contains the response from method EnvironmentsClient.ListUsages. +// EnvironmentsClientListUsagesResponse contains the response from method EnvironmentsClient.NewListUsagesPager. type EnvironmentsClientListUsagesResponse struct { CsmUsageQuotaCollection } -// EnvironmentsClientListWebAppsResponse contains the response from method EnvironmentsClient.ListWebApps. +// EnvironmentsClientListWebAppsResponse contains the response from method EnvironmentsClient.NewListWebAppsPager. type EnvironmentsClientListWebAppsResponse struct { WebAppCollection } -// EnvironmentsClientListWebWorkerMetricDefinitionsResponse contains the response from method EnvironmentsClient.ListWebWorkerMetricDefinitions. +// EnvironmentsClientListWebWorkerMetricDefinitionsResponse contains the response from method EnvironmentsClient.NewListWebWorkerMetricDefinitionsPager. type EnvironmentsClientListWebWorkerMetricDefinitionsResponse struct { ResourceMetricDefinitionCollection } -// EnvironmentsClientListWebWorkerUsagesResponse contains the response from method EnvironmentsClient.ListWebWorkerUsages. +// EnvironmentsClientListWebWorkerUsagesResponse contains the response from method EnvironmentsClient.NewListWebWorkerUsagesPager. type EnvironmentsClientListWebWorkerUsagesResponse struct { UsageCollection } -// EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsResponse contains the response from method EnvironmentsClient.ListWorkerPoolInstanceMetricDefinitions. +// EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsResponse contains the response from method EnvironmentsClient.NewListWorkerPoolInstanceMetricDefinitionsPager. type EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsResponse struct { ResourceMetricDefinitionCollection } -// EnvironmentsClientListWorkerPoolSKUsResponse contains the response from method EnvironmentsClient.ListWorkerPoolSKUs. +// EnvironmentsClientListWorkerPoolSKUsResponse contains the response from method EnvironmentsClient.NewListWorkerPoolSKUsPager. type EnvironmentsClientListWorkerPoolSKUsResponse struct { SKUInfoCollection } -// EnvironmentsClientListWorkerPoolsResponse contains the response from method EnvironmentsClient.ListWorkerPools. +// EnvironmentsClientListWorkerPoolsResponse contains the response from method EnvironmentsClient.NewListWorkerPoolsPager. type EnvironmentsClientListWorkerPoolsResponse struct { WorkerPoolCollection } @@ -632,12 +632,12 @@ type EnvironmentsClientRebootResponse struct { // placeholder for future response values } -// EnvironmentsClientResumeResponse contains the response from method EnvironmentsClient.Resume. +// EnvironmentsClientResumeResponse contains the response from method EnvironmentsClient.BeginResume. type EnvironmentsClientResumeResponse struct { WebAppCollection } -// EnvironmentsClientSuspendResponse contains the response from method EnvironmentsClient.Suspend. +// EnvironmentsClientSuspendResponse contains the response from method EnvironmentsClient.BeginSuspend. type EnvironmentsClientSuspendResponse struct { WebAppCollection } @@ -672,7 +672,7 @@ type EnvironmentsClientUpdateWorkerPoolResponse struct { WorkerPoolResource } -// EnvironmentsClientUpgradeResponse contains the response from method EnvironmentsClient.Upgrade. +// EnvironmentsClientUpgradeResponse contains the response from method EnvironmentsClient.BeginUpgrade. type EnvironmentsClientUpgradeResponse struct { // placeholder for future response values } @@ -693,12 +693,12 @@ type GlobalClientGetSubscriptionOperationWithAsyncResponseResponse struct { // placeholder for future response values } -// KubeEnvironmentsClientCreateOrUpdateResponse contains the response from method KubeEnvironmentsClient.CreateOrUpdate. +// KubeEnvironmentsClientCreateOrUpdateResponse contains the response from method KubeEnvironmentsClient.BeginCreateOrUpdate. type KubeEnvironmentsClientCreateOrUpdateResponse struct { KubeEnvironment } -// KubeEnvironmentsClientDeleteResponse contains the response from method KubeEnvironmentsClient.Delete. +// KubeEnvironmentsClientDeleteResponse contains the response from method KubeEnvironmentsClient.BeginDelete. type KubeEnvironmentsClientDeleteResponse struct { // placeholder for future response values } @@ -708,12 +708,12 @@ type KubeEnvironmentsClientGetResponse struct { KubeEnvironment } -// KubeEnvironmentsClientListByResourceGroupResponse contains the response from method KubeEnvironmentsClient.ListByResourceGroup. +// KubeEnvironmentsClientListByResourceGroupResponse contains the response from method KubeEnvironmentsClient.NewListByResourceGroupPager. type KubeEnvironmentsClientListByResourceGroupResponse struct { KubeEnvironmentCollection } -// KubeEnvironmentsClientListBySubscriptionResponse contains the response from method KubeEnvironmentsClient.ListBySubscription. +// KubeEnvironmentsClientListBySubscriptionResponse contains the response from method KubeEnvironmentsClient.NewListBySubscriptionPager. type KubeEnvironmentsClientListBySubscriptionResponse struct { KubeEnvironmentCollection } @@ -723,7 +723,7 @@ type KubeEnvironmentsClientUpdateResponse struct { KubeEnvironment } -// PlansClientCreateOrUpdateResponse contains the response from method PlansClient.CreateOrUpdate. +// PlansClientCreateOrUpdateResponse contains the response from method PlansClient.BeginCreateOrUpdate. type PlansClientCreateOrUpdateResponse struct { Plan } @@ -772,7 +772,7 @@ type PlansClientGetRouteForVnetResponse struct { // PlansClientGetServerFarmSKUsResponse contains the response from method PlansClient.GetServerFarmSKUs. type PlansClientGetServerFarmSKUsResponse struct { // Anything - Interface interface{} + Interface any } // PlansClientGetVnetFromServerFarmResponse contains the response from method PlansClient.GetVnetFromServerFarm. @@ -785,7 +785,7 @@ type PlansClientGetVnetGatewayResponse struct { VnetGateway } -// PlansClientListByResourceGroupResponse contains the response from method PlansClient.ListByResourceGroup. +// PlansClientListByResourceGroupResponse contains the response from method PlansClient.NewListByResourceGroupPager. type PlansClientListByResourceGroupResponse struct { PlanCollection } @@ -801,12 +801,12 @@ type PlansClientListHybridConnectionKeysResponse struct { HybridConnectionKey } -// PlansClientListHybridConnectionsResponse contains the response from method PlansClient.ListHybridConnections. +// PlansClientListHybridConnectionsResponse contains the response from method PlansClient.NewListHybridConnectionsPager. type PlansClientListHybridConnectionsResponse struct { HybridConnectionCollection } -// PlansClientListResponse contains the response from method PlansClient.List. +// PlansClientListResponse contains the response from method PlansClient.NewListPager. type PlansClientListResponse struct { PlanCollection } @@ -817,7 +817,7 @@ type PlansClientListRoutesForVnetResponse struct { VnetRouteArray []*VnetRoute } -// PlansClientListUsagesResponse contains the response from method PlansClient.ListUsages. +// PlansClientListUsagesResponse contains the response from method PlansClient.NewListUsagesPager. type PlansClientListUsagesResponse struct { CsmUsageQuotaCollection } @@ -828,12 +828,12 @@ type PlansClientListVnetsResponse struct { VnetInfoResourceArray []*VnetInfoResource } -// PlansClientListWebAppsByHybridConnectionResponse contains the response from method PlansClient.ListWebAppsByHybridConnection. +// PlansClientListWebAppsByHybridConnectionResponse contains the response from method PlansClient.NewListWebAppsByHybridConnectionPager. type PlansClientListWebAppsByHybridConnectionResponse struct { ResourceCollection } -// PlansClientListWebAppsResponse contains the response from method PlansClient.ListWebApps. +// PlansClientListWebAppsResponse contains the response from method PlansClient.NewListWebAppsPager. type PlansClientListWebAppsResponse struct { WebAppCollection } @@ -863,37 +863,37 @@ type PlansClientUpdateVnetRouteResponse struct { VnetRoute } -// ProviderClientGetAvailableStacksOnPremResponse contains the response from method ProviderClient.GetAvailableStacksOnPrem. +// ProviderClientGetAvailableStacksOnPremResponse contains the response from method ProviderClient.NewGetAvailableStacksOnPremPager. type ProviderClientGetAvailableStacksOnPremResponse struct { ApplicationStackCollection } -// ProviderClientGetAvailableStacksResponse contains the response from method ProviderClient.GetAvailableStacks. +// ProviderClientGetAvailableStacksResponse contains the response from method ProviderClient.NewGetAvailableStacksPager. type ProviderClientGetAvailableStacksResponse struct { ApplicationStackCollection } -// ProviderClientGetFunctionAppStacksForLocationResponse contains the response from method ProviderClient.GetFunctionAppStacksForLocation. +// ProviderClientGetFunctionAppStacksForLocationResponse contains the response from method ProviderClient.NewGetFunctionAppStacksForLocationPager. type ProviderClientGetFunctionAppStacksForLocationResponse struct { FunctionAppStackCollection } -// ProviderClientGetFunctionAppStacksResponse contains the response from method ProviderClient.GetFunctionAppStacks. +// ProviderClientGetFunctionAppStacksResponse contains the response from method ProviderClient.NewGetFunctionAppStacksPager. type ProviderClientGetFunctionAppStacksResponse struct { FunctionAppStackCollection } -// ProviderClientGetWebAppStacksForLocationResponse contains the response from method ProviderClient.GetWebAppStacksForLocation. +// ProviderClientGetWebAppStacksForLocationResponse contains the response from method ProviderClient.NewGetWebAppStacksForLocationPager. type ProviderClientGetWebAppStacksForLocationResponse struct { WebAppStackCollection } -// ProviderClientGetWebAppStacksResponse contains the response from method ProviderClient.GetWebAppStacks. +// ProviderClientGetWebAppStacksResponse contains the response from method ProviderClient.NewGetWebAppStacksPager. type ProviderClientGetWebAppStacksResponse struct { WebAppStackCollection } -// ProviderClientListOperationsResponse contains the response from method ProviderClient.ListOperations. +// ProviderClientListOperationsResponse contains the response from method ProviderClient.NewListOperationsPager. type ProviderClientListOperationsResponse struct { CsmOperationCollection } @@ -933,27 +933,27 @@ type RecommendationsClientGetRuleDetailsByWebAppResponse struct { RecommendationRule } -// RecommendationsClientListHistoryForHostingEnvironmentResponse contains the response from method RecommendationsClient.ListHistoryForHostingEnvironment. +// RecommendationsClientListHistoryForHostingEnvironmentResponse contains the response from method RecommendationsClient.NewListHistoryForHostingEnvironmentPager. type RecommendationsClientListHistoryForHostingEnvironmentResponse struct { RecommendationCollection } -// RecommendationsClientListHistoryForWebAppResponse contains the response from method RecommendationsClient.ListHistoryForWebApp. +// RecommendationsClientListHistoryForWebAppResponse contains the response from method RecommendationsClient.NewListHistoryForWebAppPager. type RecommendationsClientListHistoryForWebAppResponse struct { RecommendationCollection } -// RecommendationsClientListRecommendedRulesForHostingEnvironmentResponse contains the response from method RecommendationsClient.ListRecommendedRulesForHostingEnvironment. +// RecommendationsClientListRecommendedRulesForHostingEnvironmentResponse contains the response from method RecommendationsClient.NewListRecommendedRulesForHostingEnvironmentPager. type RecommendationsClientListRecommendedRulesForHostingEnvironmentResponse struct { RecommendationCollection } -// RecommendationsClientListRecommendedRulesForWebAppResponse contains the response from method RecommendationsClient.ListRecommendedRulesForWebApp. +// RecommendationsClientListRecommendedRulesForWebAppResponse contains the response from method RecommendationsClient.NewListRecommendedRulesForWebAppPager. type RecommendationsClientListRecommendedRulesForWebAppResponse struct { RecommendationCollection } -// RecommendationsClientListResponse contains the response from method RecommendationsClient.List. +// RecommendationsClientListResponse contains the response from method RecommendationsClient.NewListPager. type RecommendationsClientListResponse struct { RecommendationCollection } @@ -983,31 +983,46 @@ type ResourceHealthMetadataClientGetBySiteSlotResponse struct { ResourceHealthMetadata } -// ResourceHealthMetadataClientListByResourceGroupResponse contains the response from method ResourceHealthMetadataClient.ListByResourceGroup. +// ResourceHealthMetadataClientListByResourceGroupResponse contains the response from method ResourceHealthMetadataClient.NewListByResourceGroupPager. type ResourceHealthMetadataClientListByResourceGroupResponse struct { ResourceHealthMetadataCollection } -// ResourceHealthMetadataClientListBySiteResponse contains the response from method ResourceHealthMetadataClient.ListBySite. +// ResourceHealthMetadataClientListBySiteResponse contains the response from method ResourceHealthMetadataClient.NewListBySitePager. type ResourceHealthMetadataClientListBySiteResponse struct { ResourceHealthMetadataCollection } -// ResourceHealthMetadataClientListBySiteSlotResponse contains the response from method ResourceHealthMetadataClient.ListBySiteSlot. +// ResourceHealthMetadataClientListBySiteSlotResponse contains the response from method ResourceHealthMetadataClient.NewListBySiteSlotPager. type ResourceHealthMetadataClientListBySiteSlotResponse struct { ResourceHealthMetadataCollection } -// ResourceHealthMetadataClientListResponse contains the response from method ResourceHealthMetadataClient.List. +// ResourceHealthMetadataClientListResponse contains the response from method ResourceHealthMetadataClient.NewListPager. type ResourceHealthMetadataClientListResponse struct { ResourceHealthMetadataCollection } -// StaticSitesClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method StaticSitesClient.ApproveOrRejectPrivateEndpointConnection. +// StaticSitesClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection. type StaticSitesClientApproveOrRejectPrivateEndpointConnectionResponse struct { RemotePrivateEndpointConnectionARMResource } +// StaticSitesClientCreateOrUpdateBasicAuthResponse contains the response from method StaticSitesClient.CreateOrUpdateBasicAuth. +type StaticSitesClientCreateOrUpdateBasicAuthResponse struct { + StaticSiteBasicAuthPropertiesARMResource +} + +// StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse contains the response from method StaticSitesClient.CreateOrUpdateBuildDatabaseConnection. +type StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse struct { + DatabaseConnection +} + +// StaticSitesClientCreateOrUpdateDatabaseConnectionResponse contains the response from method StaticSitesClient.CreateOrUpdateDatabaseConnection. +type StaticSitesClientCreateOrUpdateDatabaseConnectionResponse struct { + DatabaseConnection +} + // StaticSitesClientCreateOrUpdateStaticSiteAppSettingsResponse contains the response from method StaticSitesClient.CreateOrUpdateStaticSiteAppSettings. type StaticSitesClientCreateOrUpdateStaticSiteAppSettingsResponse struct { StringDictionary @@ -1023,7 +1038,7 @@ type StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsResponse s StringDictionary } -// StaticSitesClientCreateOrUpdateStaticSiteCustomDomainResponse contains the response from method StaticSitesClient.CreateOrUpdateStaticSiteCustomDomain. +// StaticSitesClientCreateOrUpdateStaticSiteCustomDomainResponse contains the response from method StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain. type StaticSitesClientCreateOrUpdateStaticSiteCustomDomainResponse struct { StaticSiteCustomDomainOverviewARMResource } @@ -1033,7 +1048,7 @@ type StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsResponse struct StringDictionary } -// StaticSitesClientCreateOrUpdateStaticSiteResponse contains the response from method StaticSitesClient.CreateOrUpdateStaticSite. +// StaticSitesClientCreateOrUpdateStaticSiteResponse contains the response from method StaticSitesClient.BeginCreateOrUpdateStaticSite. type StaticSitesClientCreateOrUpdateStaticSiteResponse struct { StaticSiteARMResource } @@ -1043,20 +1058,30 @@ type StaticSitesClientCreateUserRolesInvitationLinkResponse struct { StaticSiteUserInvitationResponseResource } -// StaticSitesClientCreateZipDeploymentForStaticSiteBuildResponse contains the response from method StaticSitesClient.CreateZipDeploymentForStaticSiteBuild. +// StaticSitesClientCreateZipDeploymentForStaticSiteBuildResponse contains the response from method StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild. type StaticSitesClientCreateZipDeploymentForStaticSiteBuildResponse struct { // placeholder for future response values } -// StaticSitesClientCreateZipDeploymentForStaticSiteResponse contains the response from method StaticSitesClient.CreateZipDeploymentForStaticSite. +// StaticSitesClientCreateZipDeploymentForStaticSiteResponse contains the response from method StaticSitesClient.BeginCreateZipDeploymentForStaticSite. type StaticSitesClientCreateZipDeploymentForStaticSiteResponse struct { // placeholder for future response values } -// StaticSitesClientDeletePrivateEndpointConnectionResponse contains the response from method StaticSitesClient.DeletePrivateEndpointConnection. +// StaticSitesClientDeleteBuildDatabaseConnectionResponse contains the response from method StaticSitesClient.DeleteBuildDatabaseConnection. +type StaticSitesClientDeleteBuildDatabaseConnectionResponse struct { + // placeholder for future response values +} + +// StaticSitesClientDeleteDatabaseConnectionResponse contains the response from method StaticSitesClient.DeleteDatabaseConnection. +type StaticSitesClientDeleteDatabaseConnectionResponse struct { + // placeholder for future response values +} + +// StaticSitesClientDeletePrivateEndpointConnectionResponse contains the response from method StaticSitesClient.BeginDeletePrivateEndpointConnection. type StaticSitesClientDeletePrivateEndpointConnectionResponse struct { // Anything - Interface interface{} + Interface any } // UnmarshalJSON implements the json.Unmarshaller interface for type StaticSitesClientDeletePrivateEndpointConnectionResponse. @@ -1064,17 +1089,17 @@ func (s *StaticSitesClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON return json.Unmarshal(data, &s.Interface) } -// StaticSitesClientDeleteStaticSiteBuildResponse contains the response from method StaticSitesClient.DeleteStaticSiteBuild. +// StaticSitesClientDeleteStaticSiteBuildResponse contains the response from method StaticSitesClient.BeginDeleteStaticSiteBuild. type StaticSitesClientDeleteStaticSiteBuildResponse struct { // placeholder for future response values } -// StaticSitesClientDeleteStaticSiteCustomDomainResponse contains the response from method StaticSitesClient.DeleteStaticSiteCustomDomain. +// StaticSitesClientDeleteStaticSiteCustomDomainResponse contains the response from method StaticSitesClient.BeginDeleteStaticSiteCustomDomain. type StaticSitesClientDeleteStaticSiteCustomDomainResponse struct { // placeholder for future response values } -// StaticSitesClientDeleteStaticSiteResponse contains the response from method StaticSitesClient.DeleteStaticSite. +// StaticSitesClientDeleteStaticSiteResponse contains the response from method StaticSitesClient.BeginDeleteStaticSite. type StaticSitesClientDeleteStaticSiteResponse struct { // placeholder for future response values } @@ -1084,7 +1109,7 @@ type StaticSitesClientDeleteStaticSiteUserResponse struct { // placeholder for future response values } -// StaticSitesClientDetachStaticSiteResponse contains the response from method StaticSitesClient.DetachStaticSite. +// StaticSitesClientDetachStaticSiteResponse contains the response from method StaticSitesClient.BeginDetachStaticSite. type StaticSitesClientDetachStaticSiteResponse struct { // placeholder for future response values } @@ -1099,6 +1124,51 @@ type StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse struct // placeholder for future response values } +// StaticSitesClientGetBasicAuthResponse contains the response from method StaticSitesClient.GetBasicAuth. +type StaticSitesClientGetBasicAuthResponse struct { + StaticSiteBasicAuthPropertiesARMResource +} + +// StaticSitesClientGetBuildDatabaseConnectionResponse contains the response from method StaticSitesClient.GetBuildDatabaseConnection. +type StaticSitesClientGetBuildDatabaseConnectionResponse struct { + DatabaseConnection +} + +// StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse contains the response from method StaticSitesClient.GetBuildDatabaseConnectionWithDetails. +type StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse struct { + DatabaseConnection +} + +// StaticSitesClientGetBuildDatabaseConnectionsResponse contains the response from method StaticSitesClient.NewGetBuildDatabaseConnectionsPager. +type StaticSitesClientGetBuildDatabaseConnectionsResponse struct { + DatabaseConnectionCollection +} + +// StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse contains the response from method StaticSitesClient.NewGetBuildDatabaseConnectionsWithDetailsPager. +type StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse struct { + DatabaseConnectionCollection +} + +// StaticSitesClientGetDatabaseConnectionResponse contains the response from method StaticSitesClient.GetDatabaseConnection. +type StaticSitesClientGetDatabaseConnectionResponse struct { + DatabaseConnection +} + +// StaticSitesClientGetDatabaseConnectionWithDetailsResponse contains the response from method StaticSitesClient.GetDatabaseConnectionWithDetails. +type StaticSitesClientGetDatabaseConnectionWithDetailsResponse struct { + DatabaseConnection +} + +// StaticSitesClientGetDatabaseConnectionsResponse contains the response from method StaticSitesClient.NewGetDatabaseConnectionsPager. +type StaticSitesClientGetDatabaseConnectionsResponse struct { + DatabaseConnectionCollection +} + +// StaticSitesClientGetDatabaseConnectionsWithDetailsResponse contains the response from method StaticSitesClient.NewGetDatabaseConnectionsWithDetailsPager. +type StaticSitesClientGetDatabaseConnectionsWithDetailsResponse struct { + DatabaseConnectionCollection +} + // StaticSitesClientGetLinkedBackendForBuildResponse contains the response from method StaticSitesClient.GetLinkedBackendForBuild. type StaticSitesClientGetLinkedBackendForBuildResponse struct { StaticSiteLinkedBackendARMResource @@ -1109,17 +1179,17 @@ type StaticSitesClientGetLinkedBackendResponse struct { StaticSiteLinkedBackendARMResource } -// StaticSitesClientGetLinkedBackendsForBuildResponse contains the response from method StaticSitesClient.GetLinkedBackendsForBuild. +// StaticSitesClientGetLinkedBackendsForBuildResponse contains the response from method StaticSitesClient.NewGetLinkedBackendsForBuildPager. type StaticSitesClientGetLinkedBackendsForBuildResponse struct { StaticSiteLinkedBackendsCollection } -// StaticSitesClientGetLinkedBackendsResponse contains the response from method StaticSitesClient.GetLinkedBackends. +// StaticSitesClientGetLinkedBackendsResponse contains the response from method StaticSitesClient.NewGetLinkedBackendsPager. type StaticSitesClientGetLinkedBackendsResponse struct { StaticSiteLinkedBackendsCollection } -// StaticSitesClientGetPrivateEndpointConnectionListResponse contains the response from method StaticSitesClient.GetPrivateEndpointConnectionList. +// StaticSitesClientGetPrivateEndpointConnectionListResponse contains the response from method StaticSitesClient.NewGetPrivateEndpointConnectionListPager. type StaticSitesClientGetPrivateEndpointConnectionListResponse struct { PrivateEndpointConnectionCollection } @@ -1139,7 +1209,7 @@ type StaticSitesClientGetStaticSiteBuildResponse struct { StaticSiteBuildARMResource } -// StaticSitesClientGetStaticSiteBuildsResponse contains the response from method StaticSitesClient.GetStaticSiteBuilds. +// StaticSitesClientGetStaticSiteBuildsResponse contains the response from method StaticSitesClient.NewGetStaticSiteBuildsPager. type StaticSitesClientGetStaticSiteBuildsResponse struct { StaticSiteBuildCollection } @@ -1154,7 +1224,7 @@ type StaticSitesClientGetStaticSiteResponse struct { StaticSiteARMResource } -// StaticSitesClientGetStaticSitesByResourceGroupResponse contains the response from method StaticSitesClient.GetStaticSitesByResourceGroup. +// StaticSitesClientGetStaticSitesByResourceGroupResponse contains the response from method StaticSitesClient.NewGetStaticSitesByResourceGroupPager. type StaticSitesClientGetStaticSitesByResourceGroupResponse struct { StaticSiteCollection } @@ -1169,27 +1239,32 @@ type StaticSitesClientGetUserProvidedFunctionAppForStaticSiteResponse struct { StaticSiteUserProvidedFunctionAppARMResource } -// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildResponse contains the response from method StaticSitesClient.GetUserProvidedFunctionAppsForStaticSiteBuild. +// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildResponse contains the response from method StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSiteBuildPager. type StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildResponse struct { StaticSiteUserProvidedFunctionAppsCollection } -// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteResponse contains the response from method StaticSitesClient.GetUserProvidedFunctionAppsForStaticSite. +// StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteResponse contains the response from method StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSitePager. type StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteResponse struct { StaticSiteUserProvidedFunctionAppsCollection } -// StaticSitesClientLinkBackendResponse contains the response from method StaticSitesClient.LinkBackend. +// StaticSitesClientLinkBackendResponse contains the response from method StaticSitesClient.BeginLinkBackend. type StaticSitesClientLinkBackendResponse struct { StaticSiteLinkedBackendARMResource } -// StaticSitesClientLinkBackendToBuildResponse contains the response from method StaticSitesClient.LinkBackendToBuild. +// StaticSitesClientLinkBackendToBuildResponse contains the response from method StaticSitesClient.BeginLinkBackendToBuild. type StaticSitesClientLinkBackendToBuildResponse struct { StaticSiteLinkedBackendARMResource } -// StaticSitesClientListResponse contains the response from method StaticSitesClient.List. +// StaticSitesClientListBasicAuthResponse contains the response from method StaticSitesClient.NewListBasicAuthPager. +type StaticSitesClientListBasicAuthResponse struct { + StaticSiteBasicAuthPropertiesCollection +} + +// StaticSitesClientListResponse contains the response from method StaticSitesClient.NewListPager. type StaticSitesClientListResponse struct { StaticSiteCollection } @@ -1209,7 +1284,7 @@ type StaticSitesClientListStaticSiteBuildFunctionAppSettingsResponse struct { StringDictionary } -// StaticSitesClientListStaticSiteBuildFunctionsResponse contains the response from method StaticSitesClient.ListStaticSiteBuildFunctions. +// StaticSitesClientListStaticSiteBuildFunctionsResponse contains the response from method StaticSitesClient.NewListStaticSiteBuildFunctionsPager. type StaticSitesClientListStaticSiteBuildFunctionsResponse struct { StaticSiteFunctionOverviewCollection } @@ -1219,7 +1294,7 @@ type StaticSitesClientListStaticSiteConfiguredRolesResponse struct { StringList } -// StaticSitesClientListStaticSiteCustomDomainsResponse contains the response from method StaticSitesClient.ListStaticSiteCustomDomains. +// StaticSitesClientListStaticSiteCustomDomainsResponse contains the response from method StaticSitesClient.NewListStaticSiteCustomDomainsPager. type StaticSitesClientListStaticSiteCustomDomainsResponse struct { StaticSiteCustomDomainOverviewCollection } @@ -1229,7 +1304,7 @@ type StaticSitesClientListStaticSiteFunctionAppSettingsResponse struct { StringDictionary } -// StaticSitesClientListStaticSiteFunctionsResponse contains the response from method StaticSitesClient.ListStaticSiteFunctions. +// StaticSitesClientListStaticSiteFunctionsResponse contains the response from method StaticSitesClient.NewListStaticSiteFunctionsPager. type StaticSitesClientListStaticSiteFunctionsResponse struct { StaticSiteFunctionOverviewCollection } @@ -1239,7 +1314,7 @@ type StaticSitesClientListStaticSiteSecretsResponse struct { StringDictionary } -// StaticSitesClientListStaticSiteUsersResponse contains the response from method StaticSitesClient.ListStaticSiteUsers. +// StaticSitesClientListStaticSiteUsersResponse contains the response from method StaticSitesClient.NewListStaticSiteUsersPager. type StaticSitesClientListStaticSiteUsersResponse struct { StaticSiteUserCollection } @@ -1249,12 +1324,12 @@ type StaticSitesClientPreviewWorkflowResponse struct { StaticSitesWorkflowPreview } -// StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse contains the response from method StaticSitesClient.RegisterUserProvidedFunctionAppWithStaticSiteBuild. +// StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse contains the response from method StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild. type StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse struct { StaticSiteUserProvidedFunctionAppARMResource } -// StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteResponse contains the response from method StaticSitesClient.RegisterUserProvidedFunctionAppWithStaticSite. +// StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteResponse contains the response from method StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSite. type StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteResponse struct { StaticSiteUserProvidedFunctionAppARMResource } @@ -1274,6 +1349,16 @@ type StaticSitesClientUnlinkBackendResponse struct { // placeholder for future response values } +// StaticSitesClientUpdateBuildDatabaseConnectionResponse contains the response from method StaticSitesClient.UpdateBuildDatabaseConnection. +type StaticSitesClientUpdateBuildDatabaseConnectionResponse struct { + DatabaseConnection +} + +// StaticSitesClientUpdateDatabaseConnectionResponse contains the response from method StaticSitesClient.UpdateDatabaseConnection. +type StaticSitesClientUpdateDatabaseConnectionResponse struct { + DatabaseConnection +} + // StaticSitesClientUpdateStaticSiteResponse contains the response from method StaticSitesClient.UpdateStaticSite. type StaticSitesClientUpdateStaticSiteResponse struct { StaticSiteARMResource @@ -1284,17 +1369,17 @@ type StaticSitesClientUpdateStaticSiteUserResponse struct { StaticSiteUserARMResource } -// StaticSitesClientValidateBackendForBuildResponse contains the response from method StaticSitesClient.ValidateBackendForBuild. +// StaticSitesClientValidateBackendForBuildResponse contains the response from method StaticSitesClient.BeginValidateBackendForBuild. type StaticSitesClientValidateBackendForBuildResponse struct { // placeholder for future response values } -// StaticSitesClientValidateBackendResponse contains the response from method StaticSitesClient.ValidateBackend. +// StaticSitesClientValidateBackendResponse contains the response from method StaticSitesClient.BeginValidateBackend. type StaticSitesClientValidateBackendResponse struct { // placeholder for future response values } -// StaticSitesClientValidateCustomDomainCanBeAddedToStaticSiteResponse contains the response from method StaticSitesClient.ValidateCustomDomainCanBeAddedToStaticSite. +// StaticSitesClientValidateCustomDomainCanBeAddedToStaticSiteResponse contains the response from method StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite. type StaticSitesClientValidateCustomDomainCanBeAddedToStaticSiteResponse struct { // placeholder for future response values } @@ -1304,12 +1389,12 @@ type TopLevelDomainsClientGetResponse struct { TopLevelDomain } -// TopLevelDomainsClientListAgreementsResponse contains the response from method TopLevelDomainsClient.ListAgreements. +// TopLevelDomainsClientListAgreementsResponse contains the response from method TopLevelDomainsClient.NewListAgreementsPager. type TopLevelDomainsClientListAgreementsResponse struct { TldLegalAgreementCollection } -// TopLevelDomainsClientListResponse contains the response from method TopLevelDomainsClient.List. +// TopLevelDomainsClientListResponse contains the response from method TopLevelDomainsClient.NewListPager. type TopLevelDomainsClientListResponse struct { TopLevelDomainCollection } @@ -1344,12 +1429,12 @@ type WebAppsClientApplySlotConfigurationSlotResponse struct { // placeholder for future response values } -// WebAppsClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method WebAppsClient.ApproveOrRejectPrivateEndpointConnection. +// WebAppsClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection. type WebAppsClientApproveOrRejectPrivateEndpointConnectionResponse struct { RemotePrivateEndpointConnectionARMResource } -// WebAppsClientApproveOrRejectPrivateEndpointConnectionSlotResponse contains the response from method WebAppsClient.ApproveOrRejectPrivateEndpointConnectionSlot. +// WebAppsClientApproveOrRejectPrivateEndpointConnectionSlotResponse contains the response from method WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot. type WebAppsClientApproveOrRejectPrivateEndpointConnectionSlotResponse struct { RemotePrivateEndpointConnectionARMResource } @@ -1374,32 +1459,32 @@ type WebAppsClientCreateDeploymentSlotResponse struct { Deployment } -// WebAppsClientCreateFunctionResponse contains the response from method WebAppsClient.CreateFunction. +// WebAppsClientCreateFunctionResponse contains the response from method WebAppsClient.BeginCreateFunction. type WebAppsClientCreateFunctionResponse struct { FunctionEnvelope } -// WebAppsClientCreateInstanceFunctionSlotResponse contains the response from method WebAppsClient.CreateInstanceFunctionSlot. +// WebAppsClientCreateInstanceFunctionSlotResponse contains the response from method WebAppsClient.BeginCreateInstanceFunctionSlot. type WebAppsClientCreateInstanceFunctionSlotResponse struct { FunctionEnvelope } -// WebAppsClientCreateInstanceMSDeployOperationResponse contains the response from method WebAppsClient.CreateInstanceMSDeployOperation. +// WebAppsClientCreateInstanceMSDeployOperationResponse contains the response from method WebAppsClient.BeginCreateInstanceMSDeployOperation. type WebAppsClientCreateInstanceMSDeployOperationResponse struct { MSDeployStatus } -// WebAppsClientCreateInstanceMSDeployOperationSlotResponse contains the response from method WebAppsClient.CreateInstanceMSDeployOperationSlot. +// WebAppsClientCreateInstanceMSDeployOperationSlotResponse contains the response from method WebAppsClient.BeginCreateInstanceMSDeployOperationSlot. type WebAppsClientCreateInstanceMSDeployOperationSlotResponse struct { MSDeployStatus } -// WebAppsClientCreateMSDeployOperationResponse contains the response from method WebAppsClient.CreateMSDeployOperation. +// WebAppsClientCreateMSDeployOperationResponse contains the response from method WebAppsClient.BeginCreateMSDeployOperation. type WebAppsClientCreateMSDeployOperationResponse struct { MSDeployStatus } -// WebAppsClientCreateMSDeployOperationSlotResponse contains the response from method WebAppsClient.CreateMSDeployOperationSlot. +// WebAppsClientCreateMSDeployOperationSlotResponse contains the response from method WebAppsClient.BeginCreateMSDeployOperationSlot. type WebAppsClientCreateMSDeployOperationSlotResponse struct { MSDeployStatus } @@ -1407,7 +1492,7 @@ type WebAppsClientCreateMSDeployOperationSlotResponse struct { // WebAppsClientCreateOneDeployOperationResponse contains the response from method WebAppsClient.CreateOneDeployOperation. type WebAppsClientCreateOneDeployOperationResponse struct { // Anything - Interface interface{} + Interface any } // WebAppsClientCreateOrUpdateConfigurationResponse contains the response from method WebAppsClient.CreateOrUpdateConfiguration. @@ -1490,22 +1575,22 @@ type WebAppsClientCreateOrUpdateRelayServiceConnectionSlotResponse struct { RelayServiceConnectionEntity } -// WebAppsClientCreateOrUpdateResponse contains the response from method WebAppsClient.CreateOrUpdate. +// WebAppsClientCreateOrUpdateResponse contains the response from method WebAppsClient.BeginCreateOrUpdate. type WebAppsClientCreateOrUpdateResponse struct { Site } -// WebAppsClientCreateOrUpdateSlotResponse contains the response from method WebAppsClient.CreateOrUpdateSlot. +// WebAppsClientCreateOrUpdateSlotResponse contains the response from method WebAppsClient.BeginCreateOrUpdateSlot. type WebAppsClientCreateOrUpdateSlotResponse struct { Site } -// WebAppsClientCreateOrUpdateSourceControlResponse contains the response from method WebAppsClient.CreateOrUpdateSourceControl. +// WebAppsClientCreateOrUpdateSourceControlResponse contains the response from method WebAppsClient.BeginCreateOrUpdateSourceControl. type WebAppsClientCreateOrUpdateSourceControlResponse struct { SiteSourceControl } -// WebAppsClientCreateOrUpdateSourceControlSlotResponse contains the response from method WebAppsClient.CreateOrUpdateSourceControlSlot. +// WebAppsClientCreateOrUpdateSourceControlSlotResponse contains the response from method WebAppsClient.BeginCreateOrUpdateSourceControlSlot. type WebAppsClientCreateOrUpdateSourceControlSlotResponse struct { SiteSourceControl } @@ -1660,10 +1745,10 @@ type WebAppsClientDeletePremierAddOnSlotResponse struct { // placeholder for future response values } -// WebAppsClientDeletePrivateEndpointConnectionResponse contains the response from method WebAppsClient.DeletePrivateEndpointConnection. +// WebAppsClientDeletePrivateEndpointConnectionResponse contains the response from method WebAppsClient.BeginDeletePrivateEndpointConnection. type WebAppsClientDeletePrivateEndpointConnectionResponse struct { // Anything - Interface interface{} + Interface any } // UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientDeletePrivateEndpointConnectionResponse. @@ -1671,10 +1756,10 @@ func (w *WebAppsClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(dat return json.Unmarshal(data, &w.Interface) } -// WebAppsClientDeletePrivateEndpointConnectionSlotResponse contains the response from method WebAppsClient.DeletePrivateEndpointConnectionSlot. +// WebAppsClientDeletePrivateEndpointConnectionSlotResponse contains the response from method WebAppsClient.BeginDeletePrivateEndpointConnectionSlot. type WebAppsClientDeletePrivateEndpointConnectionSlotResponse struct { // Anything - Interface interface{} + Interface any } // UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientDeletePrivateEndpointConnectionSlotResponse. @@ -1772,6 +1857,16 @@ type WebAppsClientDeleteVnetConnectionSlotResponse struct { // placeholder for future response values } +// WebAppsClientDeployWorkflowArtifactsResponse contains the response from method WebAppsClient.DeployWorkflowArtifacts. +type WebAppsClientDeployWorkflowArtifactsResponse struct { + // placeholder for future response values +} + +// WebAppsClientDeployWorkflowArtifactsSlotResponse contains the response from method WebAppsClient.DeployWorkflowArtifactsSlot. +type WebAppsClientDeployWorkflowArtifactsSlotResponse struct { + // placeholder for future response values +} + // WebAppsClientDiscoverBackupResponse contains the response from method WebAppsClient.DiscoverBackup. type WebAppsClientDiscoverBackupResponse struct { RestoreRequest @@ -1802,12 +1897,12 @@ type WebAppsClientGetAppSettingKeyVaultReferenceSlotResponse struct { APIKVReference } -// WebAppsClientGetAppSettingsKeyVaultReferencesResponse contains the response from method WebAppsClient.GetAppSettingsKeyVaultReferences. +// WebAppsClientGetAppSettingsKeyVaultReferencesResponse contains the response from method WebAppsClient.NewGetAppSettingsKeyVaultReferencesPager. type WebAppsClientGetAppSettingsKeyVaultReferencesResponse struct { APIKVReferenceCollection } -// WebAppsClientGetAppSettingsKeyVaultReferencesSlotResponse contains the response from method WebAppsClient.GetAppSettingsKeyVaultReferencesSlot. +// WebAppsClientGetAppSettingsKeyVaultReferencesSlotResponse contains the response from method WebAppsClient.NewGetAppSettingsKeyVaultReferencesSlotPager. type WebAppsClientGetAppSettingsKeyVaultReferencesSlotResponse struct { APIKVReferenceCollection } @@ -2046,6 +2141,11 @@ type WebAppsClientGetInstanceProcessSlotResponse struct { ProcessInfo } +// WebAppsClientGetInstanceWorkflowSlotResponse contains the response from method WebAppsClient.GetInstanceWorkflowSlot. +type WebAppsClientGetInstanceWorkflowSlotResponse struct { + WorkflowEnvelope +} + // WebAppsClientGetMSDeployLogResponse contains the response from method WebAppsClient.GetMSDeployLog. type WebAppsClientGetMSDeployLogResponse struct { MSDeployLog @@ -2127,7 +2227,7 @@ type WebAppsClientGetNetworkTracesV2Response struct { // WebAppsClientGetOneDeployStatusResponse contains the response from method WebAppsClient.GetOneDeployStatus. type WebAppsClientGetOneDeployStatusResponse struct { // Anything - Interface interface{} + Interface any } // WebAppsClientGetPremierAddOnResponse contains the response from method WebAppsClient.GetPremierAddOn. @@ -2150,12 +2250,12 @@ type WebAppsClientGetPrivateAccessSlotResponse struct { PrivateAccess } -// WebAppsClientGetPrivateEndpointConnectionListResponse contains the response from method WebAppsClient.GetPrivateEndpointConnectionList. +// WebAppsClientGetPrivateEndpointConnectionListResponse contains the response from method WebAppsClient.NewGetPrivateEndpointConnectionListPager. type WebAppsClientGetPrivateEndpointConnectionListResponse struct { PrivateEndpointConnectionCollection } -// WebAppsClientGetPrivateEndpointConnectionListSlotResponse contains the response from method WebAppsClient.GetPrivateEndpointConnectionListSlot. +// WebAppsClientGetPrivateEndpointConnectionListSlotResponse contains the response from method WebAppsClient.NewGetPrivateEndpointConnectionListSlotPager. type WebAppsClientGetPrivateEndpointConnectionListSlotResponse struct { PrivateEndpointConnectionCollection } @@ -2212,7 +2312,7 @@ type WebAppsClientGetProcessSlotResponse struct { ProcessInfo } -// WebAppsClientGetProductionSiteDeploymentStatusResponse contains the response from method WebAppsClient.GetProductionSiteDeploymentStatus. +// WebAppsClientGetProductionSiteDeploymentStatusResponse contains the response from method WebAppsClient.BeginGetProductionSiteDeploymentStatus. type WebAppsClientGetProductionSiteDeploymentStatusResponse struct { CsmDeploymentStatus } @@ -2262,12 +2362,12 @@ type WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotResponse struct { APIKVReference } -// WebAppsClientGetSiteConnectionStringKeyVaultReferencesResponse contains the response from method WebAppsClient.GetSiteConnectionStringKeyVaultReferences. +// WebAppsClientGetSiteConnectionStringKeyVaultReferencesResponse contains the response from method WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesPager. type WebAppsClientGetSiteConnectionStringKeyVaultReferencesResponse struct { APIKVReferenceCollection } -// WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotResponse contains the response from method WebAppsClient.GetSiteConnectionStringKeyVaultReferencesSlot. +// WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotResponse contains the response from method WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesSlotPager. type WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotResponse struct { APIKVReferenceCollection } @@ -2297,7 +2397,7 @@ type WebAppsClientGetSlotResponse struct { Site } -// WebAppsClientGetSlotSiteDeploymentStatusSlotResponse contains the response from method WebAppsClient.GetSlotSiteDeploymentStatusSlot. +// WebAppsClientGetSlotSiteDeploymentStatusSlotResponse contains the response from method WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot. type WebAppsClientGetSlotSiteDeploymentStatusSlotResponse struct { CsmDeploymentStatus } @@ -2384,12 +2484,17 @@ type WebAppsClientGetWebSiteContainerLogsSlotResponse struct { Body io.ReadCloser } -// WebAppsClientInstallSiteExtensionResponse contains the response from method WebAppsClient.InstallSiteExtension. +// WebAppsClientGetWorkflowResponse contains the response from method WebAppsClient.GetWorkflow. +type WebAppsClientGetWorkflowResponse struct { + WorkflowEnvelope +} + +// WebAppsClientInstallSiteExtensionResponse contains the response from method WebAppsClient.BeginInstallSiteExtension. type WebAppsClientInstallSiteExtensionResponse struct { SiteExtensionInfo } -// WebAppsClientInstallSiteExtensionSlotResponse contains the response from method WebAppsClient.InstallSiteExtensionSlot. +// WebAppsClientInstallSiteExtensionSlotResponse contains the response from method WebAppsClient.BeginInstallSiteExtensionSlot. type WebAppsClientInstallSiteExtensionSlotResponse struct { SiteExtensionInfo } @@ -2434,47 +2539,47 @@ type WebAppsClientListBackupStatusSecretsSlotResponse struct { BackupItem } -// WebAppsClientListBackupsResponse contains the response from method WebAppsClient.ListBackups. +// WebAppsClientListBackupsResponse contains the response from method WebAppsClient.NewListBackupsPager. type WebAppsClientListBackupsResponse struct { BackupItemCollection } -// WebAppsClientListBackupsSlotResponse contains the response from method WebAppsClient.ListBackupsSlot. +// WebAppsClientListBackupsSlotResponse contains the response from method WebAppsClient.NewListBackupsSlotPager. type WebAppsClientListBackupsSlotResponse struct { BackupItemCollection } -// WebAppsClientListBasicPublishingCredentialsPoliciesResponse contains the response from method WebAppsClient.ListBasicPublishingCredentialsPolicies. +// WebAppsClientListBasicPublishingCredentialsPoliciesResponse contains the response from method WebAppsClient.NewListBasicPublishingCredentialsPoliciesPager. type WebAppsClientListBasicPublishingCredentialsPoliciesResponse struct { PublishingCredentialsPoliciesCollection } -// WebAppsClientListBasicPublishingCredentialsPoliciesSlotResponse contains the response from method WebAppsClient.ListBasicPublishingCredentialsPoliciesSlot. +// WebAppsClientListBasicPublishingCredentialsPoliciesSlotResponse contains the response from method WebAppsClient.NewListBasicPublishingCredentialsPoliciesSlotPager. type WebAppsClientListBasicPublishingCredentialsPoliciesSlotResponse struct { PublishingCredentialsPoliciesCollection } -// WebAppsClientListByResourceGroupResponse contains the response from method WebAppsClient.ListByResourceGroup. +// WebAppsClientListByResourceGroupResponse contains the response from method WebAppsClient.NewListByResourceGroupPager. type WebAppsClientListByResourceGroupResponse struct { WebAppCollection } -// WebAppsClientListConfigurationSnapshotInfoResponse contains the response from method WebAppsClient.ListConfigurationSnapshotInfo. +// WebAppsClientListConfigurationSnapshotInfoResponse contains the response from method WebAppsClient.NewListConfigurationSnapshotInfoPager. type WebAppsClientListConfigurationSnapshotInfoResponse struct { SiteConfigurationSnapshotInfoCollection } -// WebAppsClientListConfigurationSnapshotInfoSlotResponse contains the response from method WebAppsClient.ListConfigurationSnapshotInfoSlot. +// WebAppsClientListConfigurationSnapshotInfoSlotResponse contains the response from method WebAppsClient.NewListConfigurationSnapshotInfoSlotPager. type WebAppsClientListConfigurationSnapshotInfoSlotResponse struct { SiteConfigurationSnapshotInfoCollection } -// WebAppsClientListConfigurationsResponse contains the response from method WebAppsClient.ListConfigurations. +// WebAppsClientListConfigurationsResponse contains the response from method WebAppsClient.NewListConfigurationsPager. type WebAppsClientListConfigurationsResponse struct { SiteConfigResourceCollection } -// WebAppsClientListConfigurationsSlotResponse contains the response from method WebAppsClient.ListConfigurationsSlot. +// WebAppsClientListConfigurationsSlotResponse contains the response from method WebAppsClient.NewListConfigurationsSlotPager. type WebAppsClientListConfigurationsSlotResponse struct { SiteConfigResourceCollection } @@ -2489,12 +2594,12 @@ type WebAppsClientListConnectionStringsSlotResponse struct { ConnectionStringDictionary } -// WebAppsClientListContinuousWebJobsResponse contains the response from method WebAppsClient.ListContinuousWebJobs. +// WebAppsClientListContinuousWebJobsResponse contains the response from method WebAppsClient.NewListContinuousWebJobsPager. type WebAppsClientListContinuousWebJobsResponse struct { ContinuousWebJobCollection } -// WebAppsClientListContinuousWebJobsSlotResponse contains the response from method WebAppsClient.ListContinuousWebJobsSlot. +// WebAppsClientListContinuousWebJobsSlotResponse contains the response from method WebAppsClient.NewListContinuousWebJobsSlotPager. type WebAppsClientListContinuousWebJobsSlotResponse struct { ContinuousWebJobCollection } @@ -2509,22 +2614,22 @@ type WebAppsClientListDeploymentLogSlotResponse struct { Deployment } -// WebAppsClientListDeploymentsResponse contains the response from method WebAppsClient.ListDeployments. +// WebAppsClientListDeploymentsResponse contains the response from method WebAppsClient.NewListDeploymentsPager. type WebAppsClientListDeploymentsResponse struct { DeploymentCollection } -// WebAppsClientListDeploymentsSlotResponse contains the response from method WebAppsClient.ListDeploymentsSlot. +// WebAppsClientListDeploymentsSlotResponse contains the response from method WebAppsClient.NewListDeploymentsSlotPager. type WebAppsClientListDeploymentsSlotResponse struct { DeploymentCollection } -// WebAppsClientListDomainOwnershipIdentifiersResponse contains the response from method WebAppsClient.ListDomainOwnershipIdentifiers. +// WebAppsClientListDomainOwnershipIdentifiersResponse contains the response from method WebAppsClient.NewListDomainOwnershipIdentifiersPager. type WebAppsClientListDomainOwnershipIdentifiersResponse struct { IdentifierCollection } -// WebAppsClientListDomainOwnershipIdentifiersSlotResponse contains the response from method WebAppsClient.ListDomainOwnershipIdentifiersSlot. +// WebAppsClientListDomainOwnershipIdentifiersSlotResponse contains the response from method WebAppsClient.NewListDomainOwnershipIdentifiersSlotPager. type WebAppsClientListDomainOwnershipIdentifiersSlotResponse struct { IdentifierCollection } @@ -2549,7 +2654,7 @@ type WebAppsClientListFunctionSecretsSlotResponse struct { FunctionSecrets } -// WebAppsClientListFunctionsResponse contains the response from method WebAppsClient.ListFunctions. +// WebAppsClientListFunctionsResponse contains the response from method WebAppsClient.NewListFunctionsPager. type WebAppsClientListFunctionsResponse struct { FunctionEnvelopeCollection } @@ -2564,12 +2669,12 @@ type WebAppsClientListHostKeysSlotResponse struct { HostKeys } -// WebAppsClientListHostNameBindingsResponse contains the response from method WebAppsClient.ListHostNameBindings. +// WebAppsClientListHostNameBindingsResponse contains the response from method WebAppsClient.NewListHostNameBindingsPager. type WebAppsClientListHostNameBindingsResponse struct { HostNameBindingCollection } -// WebAppsClientListHostNameBindingsSlotResponse contains the response from method WebAppsClient.ListHostNameBindingsSlot. +// WebAppsClientListHostNameBindingsSlotResponse contains the response from method WebAppsClient.NewListHostNameBindingsSlotPager. type WebAppsClientListHostNameBindingsSlotResponse struct { HostNameBindingCollection } @@ -2584,51 +2689,56 @@ type WebAppsClientListHybridConnectionsSlotResponse struct { HybridConnection } -// WebAppsClientListInstanceFunctionsSlotResponse contains the response from method WebAppsClient.ListInstanceFunctionsSlot. +// WebAppsClientListInstanceFunctionsSlotResponse contains the response from method WebAppsClient.NewListInstanceFunctionsSlotPager. type WebAppsClientListInstanceFunctionsSlotResponse struct { FunctionEnvelopeCollection } -// WebAppsClientListInstanceIdentifiersResponse contains the response from method WebAppsClient.ListInstanceIdentifiers. +// WebAppsClientListInstanceIdentifiersResponse contains the response from method WebAppsClient.NewListInstanceIdentifiersPager. type WebAppsClientListInstanceIdentifiersResponse struct { WebAppInstanceStatusCollection } -// WebAppsClientListInstanceIdentifiersSlotResponse contains the response from method WebAppsClient.ListInstanceIdentifiersSlot. +// WebAppsClientListInstanceIdentifiersSlotResponse contains the response from method WebAppsClient.NewListInstanceIdentifiersSlotPager. type WebAppsClientListInstanceIdentifiersSlotResponse struct { WebAppInstanceStatusCollection } -// WebAppsClientListInstanceProcessModulesResponse contains the response from method WebAppsClient.ListInstanceProcessModules. +// WebAppsClientListInstanceProcessModulesResponse contains the response from method WebAppsClient.NewListInstanceProcessModulesPager. type WebAppsClientListInstanceProcessModulesResponse struct { ProcessModuleInfoCollection } -// WebAppsClientListInstanceProcessModulesSlotResponse contains the response from method WebAppsClient.ListInstanceProcessModulesSlot. +// WebAppsClientListInstanceProcessModulesSlotResponse contains the response from method WebAppsClient.NewListInstanceProcessModulesSlotPager. type WebAppsClientListInstanceProcessModulesSlotResponse struct { ProcessModuleInfoCollection } -// WebAppsClientListInstanceProcessThreadsResponse contains the response from method WebAppsClient.ListInstanceProcessThreads. +// WebAppsClientListInstanceProcessThreadsResponse contains the response from method WebAppsClient.NewListInstanceProcessThreadsPager. type WebAppsClientListInstanceProcessThreadsResponse struct { ProcessThreadInfoCollection } -// WebAppsClientListInstanceProcessThreadsSlotResponse contains the response from method WebAppsClient.ListInstanceProcessThreadsSlot. +// WebAppsClientListInstanceProcessThreadsSlotResponse contains the response from method WebAppsClient.NewListInstanceProcessThreadsSlotPager. type WebAppsClientListInstanceProcessThreadsSlotResponse struct { ProcessThreadInfoCollection } -// WebAppsClientListInstanceProcessesResponse contains the response from method WebAppsClient.ListInstanceProcesses. +// WebAppsClientListInstanceProcessesResponse contains the response from method WebAppsClient.NewListInstanceProcessesPager. type WebAppsClientListInstanceProcessesResponse struct { ProcessInfoCollection } -// WebAppsClientListInstanceProcessesSlotResponse contains the response from method WebAppsClient.ListInstanceProcessesSlot. +// WebAppsClientListInstanceProcessesSlotResponse contains the response from method WebAppsClient.NewListInstanceProcessesSlotPager. type WebAppsClientListInstanceProcessesSlotResponse struct { ProcessInfoCollection } +// WebAppsClientListInstanceWorkflowsSlotResponse contains the response from method WebAppsClient.NewListInstanceWorkflowsSlotPager. +type WebAppsClientListInstanceWorkflowsSlotResponse struct { + WorkflowEnvelopeCollection +} + // WebAppsClientListMetadataResponse contains the response from method WebAppsClient.ListMetadata. type WebAppsClientListMetadataResponse struct { StringDictionary @@ -2649,12 +2759,12 @@ type WebAppsClientListNetworkFeaturesSlotResponse struct { NetworkFeatures } -// WebAppsClientListPerfMonCountersResponse contains the response from method WebAppsClient.ListPerfMonCounters. +// WebAppsClientListPerfMonCountersResponse contains the response from method WebAppsClient.NewListPerfMonCountersPager. type WebAppsClientListPerfMonCountersResponse struct { PerfMonCounterCollection } -// WebAppsClientListPerfMonCountersSlotResponse contains the response from method WebAppsClient.ListPerfMonCountersSlot. +// WebAppsClientListPerfMonCountersSlotResponse contains the response from method WebAppsClient.NewListPerfMonCountersSlotPager. type WebAppsClientListPerfMonCountersSlotResponse struct { PerfMonCounterCollection } @@ -2669,57 +2779,57 @@ type WebAppsClientListPremierAddOnsSlotResponse struct { PremierAddOn } -// WebAppsClientListProcessModulesResponse contains the response from method WebAppsClient.ListProcessModules. +// WebAppsClientListProcessModulesResponse contains the response from method WebAppsClient.NewListProcessModulesPager. type WebAppsClientListProcessModulesResponse struct { ProcessModuleInfoCollection } -// WebAppsClientListProcessModulesSlotResponse contains the response from method WebAppsClient.ListProcessModulesSlot. +// WebAppsClientListProcessModulesSlotResponse contains the response from method WebAppsClient.NewListProcessModulesSlotPager. type WebAppsClientListProcessModulesSlotResponse struct { ProcessModuleInfoCollection } -// WebAppsClientListProcessThreadsResponse contains the response from method WebAppsClient.ListProcessThreads. +// WebAppsClientListProcessThreadsResponse contains the response from method WebAppsClient.NewListProcessThreadsPager. type WebAppsClientListProcessThreadsResponse struct { ProcessThreadInfoCollection } -// WebAppsClientListProcessThreadsSlotResponse contains the response from method WebAppsClient.ListProcessThreadsSlot. +// WebAppsClientListProcessThreadsSlotResponse contains the response from method WebAppsClient.NewListProcessThreadsSlotPager. type WebAppsClientListProcessThreadsSlotResponse struct { ProcessThreadInfoCollection } -// WebAppsClientListProcessesResponse contains the response from method WebAppsClient.ListProcesses. +// WebAppsClientListProcessesResponse contains the response from method WebAppsClient.NewListProcessesPager. type WebAppsClientListProcessesResponse struct { ProcessInfoCollection } -// WebAppsClientListProcessesSlotResponse contains the response from method WebAppsClient.ListProcessesSlot. +// WebAppsClientListProcessesSlotResponse contains the response from method WebAppsClient.NewListProcessesSlotPager. type WebAppsClientListProcessesSlotResponse struct { ProcessInfoCollection } -// WebAppsClientListProductionSiteDeploymentStatusesResponse contains the response from method WebAppsClient.ListProductionSiteDeploymentStatuses. +// WebAppsClientListProductionSiteDeploymentStatusesResponse contains the response from method WebAppsClient.NewListProductionSiteDeploymentStatusesPager. type WebAppsClientListProductionSiteDeploymentStatusesResponse struct { CsmDeploymentStatusCollection } -// WebAppsClientListPublicCertificatesResponse contains the response from method WebAppsClient.ListPublicCertificates. +// WebAppsClientListPublicCertificatesResponse contains the response from method WebAppsClient.NewListPublicCertificatesPager. type WebAppsClientListPublicCertificatesResponse struct { PublicCertificateCollection } -// WebAppsClientListPublicCertificatesSlotResponse contains the response from method WebAppsClient.ListPublicCertificatesSlot. +// WebAppsClientListPublicCertificatesSlotResponse contains the response from method WebAppsClient.NewListPublicCertificatesSlotPager. type WebAppsClientListPublicCertificatesSlotResponse struct { PublicCertificateCollection } -// WebAppsClientListPublishingCredentialsResponse contains the response from method WebAppsClient.ListPublishingCredentials. +// WebAppsClientListPublishingCredentialsResponse contains the response from method WebAppsClient.BeginListPublishingCredentials. type WebAppsClientListPublishingCredentialsResponse struct { User } -// WebAppsClientListPublishingCredentialsSlotResponse contains the response from method WebAppsClient.ListPublishingCredentialsSlot. +// WebAppsClientListPublishingCredentialsSlotResponse contains the response from method WebAppsClient.BeginListPublishingCredentialsSlot. type WebAppsClientListPublishingCredentialsSlotResponse struct { User } @@ -2746,27 +2856,27 @@ type WebAppsClientListRelayServiceConnectionsSlotResponse struct { RelayServiceConnectionEntity } -// WebAppsClientListResponse contains the response from method WebAppsClient.List. +// WebAppsClientListResponse contains the response from method WebAppsClient.NewListPager. type WebAppsClientListResponse struct { WebAppCollection } -// WebAppsClientListSiteBackupsResponse contains the response from method WebAppsClient.ListSiteBackups. +// WebAppsClientListSiteBackupsResponse contains the response from method WebAppsClient.NewListSiteBackupsPager. type WebAppsClientListSiteBackupsResponse struct { BackupItemCollection } -// WebAppsClientListSiteBackupsSlotResponse contains the response from method WebAppsClient.ListSiteBackupsSlot. +// WebAppsClientListSiteBackupsSlotResponse contains the response from method WebAppsClient.NewListSiteBackupsSlotPager. type WebAppsClientListSiteBackupsSlotResponse struct { BackupItemCollection } -// WebAppsClientListSiteExtensionsResponse contains the response from method WebAppsClient.ListSiteExtensions. +// WebAppsClientListSiteExtensionsResponse contains the response from method WebAppsClient.NewListSiteExtensionsPager. type WebAppsClientListSiteExtensionsResponse struct { SiteExtensionInfoCollection } -// WebAppsClientListSiteExtensionsSlotResponse contains the response from method WebAppsClient.ListSiteExtensionsSlot. +// WebAppsClientListSiteExtensionsSlotResponse contains the response from method WebAppsClient.NewListSiteExtensionsSlotPager. type WebAppsClientListSiteExtensionsSlotResponse struct { SiteExtensionInfoCollection } @@ -2786,42 +2896,42 @@ type WebAppsClientListSlotConfigurationNamesResponse struct { SlotConfigNamesResource } -// WebAppsClientListSlotDifferencesFromProductionResponse contains the response from method WebAppsClient.ListSlotDifferencesFromProduction. +// WebAppsClientListSlotDifferencesFromProductionResponse contains the response from method WebAppsClient.NewListSlotDifferencesFromProductionPager. type WebAppsClientListSlotDifferencesFromProductionResponse struct { SlotDifferenceCollection } -// WebAppsClientListSlotDifferencesSlotResponse contains the response from method WebAppsClient.ListSlotDifferencesSlot. +// WebAppsClientListSlotDifferencesSlotResponse contains the response from method WebAppsClient.NewListSlotDifferencesSlotPager. type WebAppsClientListSlotDifferencesSlotResponse struct { SlotDifferenceCollection } -// WebAppsClientListSlotSiteDeploymentStatusesSlotResponse contains the response from method WebAppsClient.ListSlotSiteDeploymentStatusesSlot. +// WebAppsClientListSlotSiteDeploymentStatusesSlotResponse contains the response from method WebAppsClient.NewListSlotSiteDeploymentStatusesSlotPager. type WebAppsClientListSlotSiteDeploymentStatusesSlotResponse struct { CsmDeploymentStatusCollection } -// WebAppsClientListSlotsResponse contains the response from method WebAppsClient.ListSlots. +// WebAppsClientListSlotsResponse contains the response from method WebAppsClient.NewListSlotsPager. type WebAppsClientListSlotsResponse struct { WebAppCollection } -// WebAppsClientListSnapshotsFromDRSecondaryResponse contains the response from method WebAppsClient.ListSnapshotsFromDRSecondary. +// WebAppsClientListSnapshotsFromDRSecondaryResponse contains the response from method WebAppsClient.NewListSnapshotsFromDRSecondaryPager. type WebAppsClientListSnapshotsFromDRSecondaryResponse struct { SnapshotCollection } -// WebAppsClientListSnapshotsFromDRSecondarySlotResponse contains the response from method WebAppsClient.ListSnapshotsFromDRSecondarySlot. +// WebAppsClientListSnapshotsFromDRSecondarySlotResponse contains the response from method WebAppsClient.NewListSnapshotsFromDRSecondarySlotPager. type WebAppsClientListSnapshotsFromDRSecondarySlotResponse struct { SnapshotCollection } -// WebAppsClientListSnapshotsResponse contains the response from method WebAppsClient.ListSnapshots. +// WebAppsClientListSnapshotsResponse contains the response from method WebAppsClient.NewListSnapshotsPager. type WebAppsClientListSnapshotsResponse struct { SnapshotCollection } -// WebAppsClientListSnapshotsSlotResponse contains the response from method WebAppsClient.ListSnapshotsSlot. +// WebAppsClientListSnapshotsSlotResponse contains the response from method WebAppsClient.NewListSnapshotsSlotPager. type WebAppsClientListSnapshotsSlotResponse struct { SnapshotCollection } @@ -2846,32 +2956,32 @@ type WebAppsClientListSyncStatusSlotResponse struct { // placeholder for future response values } -// WebAppsClientListTriggeredWebJobHistoryResponse contains the response from method WebAppsClient.ListTriggeredWebJobHistory. +// WebAppsClientListTriggeredWebJobHistoryResponse contains the response from method WebAppsClient.NewListTriggeredWebJobHistoryPager. type WebAppsClientListTriggeredWebJobHistoryResponse struct { TriggeredJobHistoryCollection } -// WebAppsClientListTriggeredWebJobHistorySlotResponse contains the response from method WebAppsClient.ListTriggeredWebJobHistorySlot. +// WebAppsClientListTriggeredWebJobHistorySlotResponse contains the response from method WebAppsClient.NewListTriggeredWebJobHistorySlotPager. type WebAppsClientListTriggeredWebJobHistorySlotResponse struct { TriggeredJobHistoryCollection } -// WebAppsClientListTriggeredWebJobsResponse contains the response from method WebAppsClient.ListTriggeredWebJobs. +// WebAppsClientListTriggeredWebJobsResponse contains the response from method WebAppsClient.NewListTriggeredWebJobsPager. type WebAppsClientListTriggeredWebJobsResponse struct { TriggeredWebJobCollection } -// WebAppsClientListTriggeredWebJobsSlotResponse contains the response from method WebAppsClient.ListTriggeredWebJobsSlot. +// WebAppsClientListTriggeredWebJobsSlotResponse contains the response from method WebAppsClient.NewListTriggeredWebJobsSlotPager. type WebAppsClientListTriggeredWebJobsSlotResponse struct { TriggeredWebJobCollection } -// WebAppsClientListUsagesResponse contains the response from method WebAppsClient.ListUsages. +// WebAppsClientListUsagesResponse contains the response from method WebAppsClient.NewListUsagesPager. type WebAppsClientListUsagesResponse struct { CsmUsageQuotaCollection } -// WebAppsClientListUsagesSlotResponse contains the response from method WebAppsClient.ListUsagesSlot. +// WebAppsClientListUsagesSlotResponse contains the response from method WebAppsClient.NewListUsagesSlotPager. type WebAppsClientListUsagesSlotResponse struct { CsmUsageQuotaCollection } @@ -2888,22 +2998,37 @@ type WebAppsClientListVnetConnectionsSlotResponse struct { VnetInfoResourceArray []*VnetInfoResource } -// WebAppsClientListWebJobsResponse contains the response from method WebAppsClient.ListWebJobs. +// WebAppsClientListWebJobsResponse contains the response from method WebAppsClient.NewListWebJobsPager. type WebAppsClientListWebJobsResponse struct { WebJobCollection } -// WebAppsClientListWebJobsSlotResponse contains the response from method WebAppsClient.ListWebJobsSlot. +// WebAppsClientListWebJobsSlotResponse contains the response from method WebAppsClient.NewListWebJobsSlotPager. type WebAppsClientListWebJobsSlotResponse struct { WebJobCollection } -// WebAppsClientMigrateMySQLResponse contains the response from method WebAppsClient.MigrateMySQL. +// WebAppsClientListWorkflowsConnectionsResponse contains the response from method WebAppsClient.ListWorkflowsConnections. +type WebAppsClientListWorkflowsConnectionsResponse struct { + WorkflowEnvelope +} + +// WebAppsClientListWorkflowsConnectionsSlotResponse contains the response from method WebAppsClient.ListWorkflowsConnectionsSlot. +type WebAppsClientListWorkflowsConnectionsSlotResponse struct { + WorkflowEnvelope +} + +// WebAppsClientListWorkflowsResponse contains the response from method WebAppsClient.NewListWorkflowsPager. +type WebAppsClientListWorkflowsResponse struct { + WorkflowEnvelopeCollection +} + +// WebAppsClientMigrateMySQLResponse contains the response from method WebAppsClient.BeginMigrateMySQL. type WebAppsClientMigrateMySQLResponse struct { Operation } -// WebAppsClientMigrateStorageResponse contains the response from method WebAppsClient.MigrateStorage. +// WebAppsClientMigrateStorageResponse contains the response from method WebAppsClient.BeginMigrateStorage. type WebAppsClientMigrateStorageResponse struct { StorageMigrationResponse } @@ -2948,42 +3073,42 @@ type WebAppsClientRestartSlotResponse struct { // placeholder for future response values } -// WebAppsClientRestoreFromBackupBlobResponse contains the response from method WebAppsClient.RestoreFromBackupBlob. +// WebAppsClientRestoreFromBackupBlobResponse contains the response from method WebAppsClient.BeginRestoreFromBackupBlob. type WebAppsClientRestoreFromBackupBlobResponse struct { // placeholder for future response values } -// WebAppsClientRestoreFromBackupBlobSlotResponse contains the response from method WebAppsClient.RestoreFromBackupBlobSlot. +// WebAppsClientRestoreFromBackupBlobSlotResponse contains the response from method WebAppsClient.BeginRestoreFromBackupBlobSlot. type WebAppsClientRestoreFromBackupBlobSlotResponse struct { // placeholder for future response values } -// WebAppsClientRestoreFromDeletedAppResponse contains the response from method WebAppsClient.RestoreFromDeletedApp. +// WebAppsClientRestoreFromDeletedAppResponse contains the response from method WebAppsClient.BeginRestoreFromDeletedApp. type WebAppsClientRestoreFromDeletedAppResponse struct { // placeholder for future response values } -// WebAppsClientRestoreFromDeletedAppSlotResponse contains the response from method WebAppsClient.RestoreFromDeletedAppSlot. +// WebAppsClientRestoreFromDeletedAppSlotResponse contains the response from method WebAppsClient.BeginRestoreFromDeletedAppSlot. type WebAppsClientRestoreFromDeletedAppSlotResponse struct { // placeholder for future response values } -// WebAppsClientRestoreResponse contains the response from method WebAppsClient.Restore. +// WebAppsClientRestoreResponse contains the response from method WebAppsClient.BeginRestore. type WebAppsClientRestoreResponse struct { // placeholder for future response values } -// WebAppsClientRestoreSlotResponse contains the response from method WebAppsClient.RestoreSlot. +// WebAppsClientRestoreSlotResponse contains the response from method WebAppsClient.BeginRestoreSlot. type WebAppsClientRestoreSlotResponse struct { // placeholder for future response values } -// WebAppsClientRestoreSnapshotResponse contains the response from method WebAppsClient.RestoreSnapshot. +// WebAppsClientRestoreSnapshotResponse contains the response from method WebAppsClient.BeginRestoreSnapshot. type WebAppsClientRestoreSnapshotResponse struct { // placeholder for future response values } -// WebAppsClientRestoreSnapshotSlotResponse contains the response from method WebAppsClient.RestoreSnapshotSlot. +// WebAppsClientRestoreSnapshotSlotResponse contains the response from method WebAppsClient.BeginRestoreSnapshotSlot. type WebAppsClientRestoreSnapshotSlotResponse struct { // placeholder for future response values } @@ -3008,7 +3133,7 @@ type WebAppsClientStartContinuousWebJobSlotResponse struct { // placeholder for future response values } -// WebAppsClientStartNetworkTraceResponse contains the response from method WebAppsClient.StartNetworkTrace. +// WebAppsClientStartNetworkTraceResponse contains the response from method WebAppsClient.BeginStartNetworkTrace. type WebAppsClientStartNetworkTraceResponse struct { // Array of NetworkTrace NetworkTraceArray []*NetworkTrace @@ -3019,7 +3144,7 @@ func (w *WebAppsClientStartNetworkTraceResponse) UnmarshalJSON(data []byte) erro return json.Unmarshal(data, &w.NetworkTraceArray) } -// WebAppsClientStartNetworkTraceSlotResponse contains the response from method WebAppsClient.StartNetworkTraceSlot. +// WebAppsClientStartNetworkTraceSlotResponse contains the response from method WebAppsClient.BeginStartNetworkTraceSlot. type WebAppsClientStartNetworkTraceSlotResponse struct { // Array of NetworkTrace NetworkTraceArray []*NetworkTrace @@ -3040,7 +3165,7 @@ type WebAppsClientStartSlotResponse struct { // placeholder for future response values } -// WebAppsClientStartWebSiteNetworkTraceOperationResponse contains the response from method WebAppsClient.StartWebSiteNetworkTraceOperation. +// WebAppsClientStartWebSiteNetworkTraceOperationResponse contains the response from method WebAppsClient.BeginStartWebSiteNetworkTraceOperation. type WebAppsClientStartWebSiteNetworkTraceOperationResponse struct { // Array of NetworkTrace NetworkTraceArray []*NetworkTrace @@ -3051,7 +3176,7 @@ func (w *WebAppsClientStartWebSiteNetworkTraceOperationResponse) UnmarshalJSON(d return json.Unmarshal(data, &w.NetworkTraceArray) } -// WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse contains the response from method WebAppsClient.StartWebSiteNetworkTraceOperationSlot. +// WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse contains the response from method WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot. type WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse struct { // Array of NetworkTrace NetworkTraceArray []*NetworkTrace @@ -3112,12 +3237,12 @@ type WebAppsClientStopWebSiteNetworkTraceSlotResponse struct { // placeholder for future response values } -// WebAppsClientSwapSlotResponse contains the response from method WebAppsClient.SwapSlot. +// WebAppsClientSwapSlotResponse contains the response from method WebAppsClient.BeginSwapSlot. type WebAppsClientSwapSlotResponse struct { // placeholder for future response values } -// WebAppsClientSwapSlotWithProductionResponse contains the response from method WebAppsClient.SwapSlotWithProduction. +// WebAppsClientSwapSlotWithProductionResponse contains the response from method WebAppsClient.BeginSwapSlotWithProduction. type WebAppsClientSwapSlotWithProductionResponse struct { // placeholder for future response values } @@ -3387,22 +3512,22 @@ type WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse struct { DeploymentLocations } -// WebSiteManagementClientListBillingMetersResponse contains the response from method WebSiteManagementClient.ListBillingMeters. +// WebSiteManagementClientListBillingMetersResponse contains the response from method WebSiteManagementClient.NewListBillingMetersPager. type WebSiteManagementClientListBillingMetersResponse struct { BillingMeterCollection } -// WebSiteManagementClientListCustomHostNameSitesResponse contains the response from method WebSiteManagementClient.ListCustomHostNameSites. +// WebSiteManagementClientListCustomHostNameSitesResponse contains the response from method WebSiteManagementClient.NewListCustomHostNameSitesPager. type WebSiteManagementClientListCustomHostNameSitesResponse struct { CustomHostnameSitesCollection } -// WebSiteManagementClientListGeoRegionsResponse contains the response from method WebSiteManagementClient.ListGeoRegions. +// WebSiteManagementClientListGeoRegionsResponse contains the response from method WebSiteManagementClient.NewListGeoRegionsPager. type WebSiteManagementClientListGeoRegionsResponse struct { GeoRegionCollection } -// WebSiteManagementClientListPremierAddOnOffersResponse contains the response from method WebSiteManagementClient.ListPremierAddOnOffers. +// WebSiteManagementClientListPremierAddOnOffersResponse contains the response from method WebSiteManagementClient.NewListPremierAddOnOffersPager. type WebSiteManagementClientListPremierAddOnOffersResponse struct { PremierAddOnOfferCollection } @@ -3412,12 +3537,12 @@ type WebSiteManagementClientListSKUsResponse struct { SKUInfos } -// WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse contains the response from method WebSiteManagementClient.ListSiteIdentifiersAssignedToHostName. +// WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse contains the response from method WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager. type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse struct { IdentifierCollection } -// WebSiteManagementClientListSourceControlsResponse contains the response from method WebSiteManagementClient.ListSourceControls. +// WebSiteManagementClientListSourceControlsResponse contains the response from method WebSiteManagementClient.NewListSourceControlsPager. type WebSiteManagementClientListSourceControlsResponse struct { SourceControlCollection } @@ -3457,12 +3582,12 @@ type WorkflowRunActionRepetitionsClientGetResponse struct { WorkflowRunActionRepetitionDefinition } -// WorkflowRunActionRepetitionsClientListExpressionTracesResponse contains the response from method WorkflowRunActionRepetitionsClient.ListExpressionTraces. +// WorkflowRunActionRepetitionsClientListExpressionTracesResponse contains the response from method WorkflowRunActionRepetitionsClient.NewListExpressionTracesPager. type WorkflowRunActionRepetitionsClientListExpressionTracesResponse struct { ExpressionTraces } -// WorkflowRunActionRepetitionsClientListResponse contains the response from method WorkflowRunActionRepetitionsClient.List. +// WorkflowRunActionRepetitionsClientListResponse contains the response from method WorkflowRunActionRepetitionsClient.NewListPager. type WorkflowRunActionRepetitionsClientListResponse struct { WorkflowRunActionRepetitionDefinitionCollection } @@ -3472,7 +3597,7 @@ type WorkflowRunActionRepetitionsRequestHistoriesClientGetResponse struct { RequestHistory } -// WorkflowRunActionRepetitionsRequestHistoriesClientListResponse contains the response from method WorkflowRunActionRepetitionsRequestHistoriesClient.List. +// WorkflowRunActionRepetitionsRequestHistoriesClientListResponse contains the response from method WorkflowRunActionRepetitionsRequestHistoriesClient.NewListPager. type WorkflowRunActionRepetitionsRequestHistoriesClientListResponse struct { RequestHistoryListResult } @@ -3482,7 +3607,7 @@ type WorkflowRunActionScopeRepetitionsClientGetResponse struct { WorkflowRunActionRepetitionDefinition } -// WorkflowRunActionScopeRepetitionsClientListResponse contains the response from method WorkflowRunActionScopeRepetitionsClient.List. +// WorkflowRunActionScopeRepetitionsClientListResponse contains the response from method WorkflowRunActionScopeRepetitionsClient.NewListPager. type WorkflowRunActionScopeRepetitionsClientListResponse struct { WorkflowRunActionRepetitionDefinitionCollection } @@ -3492,12 +3617,12 @@ type WorkflowRunActionsClientGetResponse struct { WorkflowRunAction } -// WorkflowRunActionsClientListExpressionTracesResponse contains the response from method WorkflowRunActionsClient.ListExpressionTraces. +// WorkflowRunActionsClientListExpressionTracesResponse contains the response from method WorkflowRunActionsClient.NewListExpressionTracesPager. type WorkflowRunActionsClientListExpressionTracesResponse struct { ExpressionTraces } -// WorkflowRunActionsClientListResponse contains the response from method WorkflowRunActionsClient.List. +// WorkflowRunActionsClientListResponse contains the response from method WorkflowRunActionsClient.NewListPager. type WorkflowRunActionsClientListResponse struct { WorkflowRunActionListResult } @@ -3512,7 +3637,7 @@ type WorkflowRunsClientGetResponse struct { WorkflowRun } -// WorkflowRunsClientListResponse contains the response from method WorkflowRunsClient.List. +// WorkflowRunsClientListResponse contains the response from method WorkflowRunsClient.NewListPager. type WorkflowRunsClientListResponse struct { WorkflowRunListResult } @@ -3522,12 +3647,12 @@ type WorkflowTriggerHistoriesClientGetResponse struct { WorkflowTriggerHistory } -// WorkflowTriggerHistoriesClientListResponse contains the response from method WorkflowTriggerHistoriesClient.List. +// WorkflowTriggerHistoriesClientListResponse contains the response from method WorkflowTriggerHistoriesClient.NewListPager. type WorkflowTriggerHistoriesClientListResponse struct { WorkflowTriggerHistoryListResult } -// WorkflowTriggerHistoriesClientResubmitResponse contains the response from method WorkflowTriggerHistoriesClient.Resubmit. +// WorkflowTriggerHistoriesClientResubmitResponse contains the response from method WorkflowTriggerHistoriesClient.BeginResubmit. type WorkflowTriggerHistoriesClientResubmitResponse struct { // placeholder for future response values } @@ -3547,12 +3672,12 @@ type WorkflowTriggersClientListCallbackURLResponse struct { WorkflowTriggerCallbackURL } -// WorkflowTriggersClientListResponse contains the response from method WorkflowTriggersClient.List. +// WorkflowTriggersClientListResponse contains the response from method WorkflowTriggersClient.NewListPager. type WorkflowTriggersClientListResponse struct { WorkflowTriggerListResult } -// WorkflowTriggersClientRunResponse contains the response from method WorkflowTriggersClient.Run. +// WorkflowTriggersClientRunResponse contains the response from method WorkflowTriggersClient.BeginRun. type WorkflowTriggersClientRunResponse struct { // placeholder for future response values } @@ -3562,7 +3687,7 @@ type WorkflowVersionsClientGetResponse struct { WorkflowVersion } -// WorkflowVersionsClientListResponse contains the response from method WorkflowVersionsClient.List. +// WorkflowVersionsClientListResponse contains the response from method WorkflowVersionsClient.NewListPager. type WorkflowVersionsClientListResponse struct { WorkflowVersionListResult } diff --git a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go index d1d19b32f4b6..6016133c81a1 100644 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go +++ b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go @@ -33,9 +33,9 @@ type StaticSitesClient struct { } // NewStaticSitesClient creates a new instance of StaticSitesClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewStaticSitesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StaticSitesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewStaticSitesClient(subscriptionID string, credential azcore.TokenCredenti // BeginApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// privateEndpointConnectionName - Name of the private endpoint connection. -// privateEndpointWrapper - Request body. -// options - StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the -// StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - privateEndpointConnectionName - Name of the private endpoint connection. +// - privateEndpointWrapper - Request body. +// - options - StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the +// StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection method. func (client *StaticSitesClient) BeginApproveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*runtime.Poller[StaticSitesClientApproveOrRejectPrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.approveOrRejectPrivateEndpointConnection(ctx, resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) @@ -79,7 +80,8 @@ func (client *StaticSitesClient) BeginApproveOrRejectPrivateEndpointConnection(c // ApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.approveOrRejectPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) if err != nil { @@ -119,21 +121,219 @@ func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, privateEndpointWrapper) } +// CreateOrUpdateBasicAuth - Description for Adds or updates basic auth for a static site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - basicAuthName - name of the basic auth entry. +// - basicAuthEnvelope - A JSON representation of the basic auth properties. +// - options - StaticSitesClientCreateOrUpdateBasicAuthOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateBasicAuth +// method. +func (client *StaticSitesClient) CreateOrUpdateBasicAuth(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, basicAuthEnvelope StaticSiteBasicAuthPropertiesARMResource, options *StaticSitesClientCreateOrUpdateBasicAuthOptions) (StaticSitesClientCreateOrUpdateBasicAuthResponse, error) { + req, err := client.createOrUpdateBasicAuthCreateRequest(ctx, resourceGroupName, name, basicAuthName, basicAuthEnvelope, options) + if err != nil { + return StaticSitesClientCreateOrUpdateBasicAuthResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientCreateOrUpdateBasicAuthResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientCreateOrUpdateBasicAuthResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateBasicAuthHandleResponse(resp) +} + +// createOrUpdateBasicAuthCreateRequest creates the CreateOrUpdateBasicAuth request. +func (client *StaticSitesClient) createOrUpdateBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, basicAuthEnvelope StaticSiteBasicAuthPropertiesARMResource, options *StaticSitesClientCreateOrUpdateBasicAuthOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/basicAuth/{basicAuthName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if basicAuthName == "" { + return nil, errors.New("parameter basicAuthName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{basicAuthName}", url.PathEscape(string(basicAuthName))) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, basicAuthEnvelope) +} + +// createOrUpdateBasicAuthHandleResponse handles the CreateOrUpdateBasicAuth response. +func (client *StaticSitesClient) createOrUpdateBasicAuthHandleResponse(resp *http.Response) (StaticSitesClientCreateOrUpdateBasicAuthResponse, error) { + result := StaticSitesClientCreateOrUpdateBasicAuthResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.StaticSiteBasicAuthPropertiesARMResource); err != nil { + return StaticSitesClientCreateOrUpdateBasicAuthResponse{}, err + } + return result, nil +} + +// CreateOrUpdateBuildDatabaseConnection - Description for Create or update a database connection for a static site build +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - databaseConnectionName - Name of the database connection. +// - databaseConnectionRequestEnvelope - A JSON representation of the database connection request properties +// - options - StaticSitesClientCreateOrUpdateBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateBuildDatabaseConnection +// method. +func (client *StaticSitesClient) CreateOrUpdateBuildDatabaseConnection(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnection, options *StaticSitesClientCreateOrUpdateBuildDatabaseConnectionOptions) (StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse, error) { + req, err := client.createOrUpdateBuildDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, environmentName, databaseConnectionName, databaseConnectionRequestEnvelope, options) + if err != nil { + return StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateBuildDatabaseConnectionHandleResponse(resp) +} + +// createOrUpdateBuildDatabaseConnectionCreateRequest creates the CreateOrUpdateBuildDatabaseConnection request. +func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnection, options *StaticSitesClientCreateOrUpdateBuildDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope) +} + +// createOrUpdateBuildDatabaseConnectionHandleResponse handles the CreateOrUpdateBuildDatabaseConnection response. +func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionHandleResponse(resp *http.Response) (StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse, error) { + result := StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientCreateOrUpdateBuildDatabaseConnectionResponse{}, err + } + return result, nil +} + +// CreateOrUpdateDatabaseConnection - Description for Create or update a database connection for a static site +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - databaseConnectionName - Name of the database connection. +// - databaseConnectionRequestEnvelope - A JSON representation of the database connection request properties +// - options - StaticSitesClientCreateOrUpdateDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateDatabaseConnection +// method. +func (client *StaticSitesClient) CreateOrUpdateDatabaseConnection(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnection, options *StaticSitesClientCreateOrUpdateDatabaseConnectionOptions) (StaticSitesClientCreateOrUpdateDatabaseConnectionResponse, error) { + req, err := client.createOrUpdateDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, databaseConnectionName, databaseConnectionRequestEnvelope, options) + if err != nil { + return StaticSitesClientCreateOrUpdateDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientCreateOrUpdateDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientCreateOrUpdateDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateDatabaseConnectionHandleResponse(resp) +} + +// createOrUpdateDatabaseConnectionCreateRequest creates the CreateOrUpdateDatabaseConnection request. +func (client *StaticSitesClient) createOrUpdateDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnection, options *StaticSitesClientCreateOrUpdateDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope) +} + +// createOrUpdateDatabaseConnectionHandleResponse handles the CreateOrUpdateDatabaseConnection response. +func (client *StaticSitesClient) createOrUpdateDatabaseConnectionHandleResponse(resp *http.Response) (StaticSitesClientCreateOrUpdateDatabaseConnectionResponse, error) { + result := StaticSitesClientCreateOrUpdateDatabaseConnectionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientCreateOrUpdateDatabaseConnectionResponse{}, err + } + return result, nil +} + // BeginCreateOrUpdateStaticSite - Description for Creates a new static site in an existing resource group, or updates an // existing static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site to create or update. -// staticSiteEnvelope - A JSON representation of the staticsite properties. See example. -// options - StaticSitesClientBeginCreateOrUpdateStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginCreateOrUpdateStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site to create or update. +// - staticSiteEnvelope - A JSON representation of the staticsite properties. See example. +// - options - StaticSitesClientBeginCreateOrUpdateStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginCreateOrUpdateStaticSite +// method. func (client *StaticSitesClient) BeginCreateOrUpdateStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSiteARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteOptions) (*runtime.Poller[StaticSitesClientCreateOrUpdateStaticSiteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateStaticSite(ctx, resourceGroupName, name, staticSiteEnvelope, options) @@ -149,7 +349,8 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSite(ctx context.Conte // CreateOrUpdateStaticSite - Description for Creates a new static site in an existing resource group, or updates an existing // static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) createOrUpdateStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSiteARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteOptions) (*http.Response, error) { req, err := client.createOrUpdateStaticSiteCreateRequest(ctx, resourceGroupName, name, staticSiteEnvelope, options) if err != nil { @@ -185,7 +386,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteEnvelope) @@ -193,12 +394,13 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx conte // CreateOrUpdateStaticSiteAppSettings - Description for Creates or updates the app settings of a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// appSettings - The dictionary containing the static site app settings to update. -// options - StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateStaticSiteAppSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - appSettings - The dictionary containing the static site app settings to update. +// - options - StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateStaticSiteAppSettings +// method. func (client *StaticSitesClient) CreateOrUpdateStaticSiteAppSettings(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions) (StaticSitesClientCreateOrUpdateStaticSiteAppSettingsResponse, error) { req, err := client.createOrUpdateStaticSiteAppSettingsCreateRequest(ctx, resourceGroupName, name, appSettings, options) if err != nil { @@ -234,7 +436,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appSettings) @@ -251,13 +453,14 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsHandleRespon // CreateOrUpdateStaticSiteBuildAppSettings - Description for Creates or updates the app settings of a static site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// appSettings - The dictionary containing the static site app settings to update. -// options - StaticSitesClientCreateOrUpdateStaticSiteBuildAppSettingsOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateStaticSiteBuildAppSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - appSettings - The dictionary containing the static site app settings to update. +// - options - StaticSitesClientCreateOrUpdateStaticSiteBuildAppSettingsOptions contains the optional parameters for the StaticSitesClient.CreateOrUpdateStaticSiteBuildAppSettings +// method. func (client *StaticSitesClient) CreateOrUpdateStaticSiteBuildAppSettings(ctx context.Context, resourceGroupName string, name string, environmentName string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteBuildAppSettingsOptions) (StaticSitesClientCreateOrUpdateStaticSiteBuildAppSettingsResponse, error) { req, err := client.createOrUpdateStaticSiteBuildAppSettingsCreateRequest(ctx, resourceGroupName, name, environmentName, appSettings, options) if err != nil { @@ -297,7 +500,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appSettings) @@ -315,13 +518,14 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsHandleR // CreateOrUpdateStaticSiteBuildFunctionAppSettings - Description for Creates or updates the function app settings of a static // site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// appSettings - The dictionary containing the static site function app settings to update. -// options - StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptions contains the optional parameters for -// the StaticSitesClient.CreateOrUpdateStaticSiteBuildFunctionAppSettings method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - appSettings - The dictionary containing the static site function app settings to update. +// - options - StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptions contains the optional parameters for +// the StaticSitesClient.CreateOrUpdateStaticSiteBuildFunctionAppSettings method. func (client *StaticSitesClient) CreateOrUpdateStaticSiteBuildFunctionAppSettings(ctx context.Context, resourceGroupName string, name string, environmentName string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptions) (StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsResponse, error) { req, err := client.createOrUpdateStaticSiteBuildFunctionAppSettingsCreateRequest(ctx, resourceGroupName, name, environmentName, appSettings, options) if err != nil { @@ -361,7 +565,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appSettings) @@ -379,14 +583,15 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting // BeginCreateOrUpdateStaticSiteCustomDomain - Description for Creates a new static site custom domain in an existing resource // group and static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// domainName - The custom domain to create. -// staticSiteCustomDomainRequestPropertiesEnvelope - A JSON representation of the static site custom domain request properties. -// See example. -// options - StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - domainName - The custom domain to create. +// - staticSiteCustomDomainRequestPropertiesEnvelope - A JSON representation of the static site custom domain request properties. +// See example. +// - options - StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain +// method. func (client *StaticSitesClient) BeginCreateOrUpdateStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions) (*runtime.Poller[StaticSitesClientCreateOrUpdateStaticSiteCustomDomainResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateStaticSiteCustomDomain(ctx, resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) @@ -402,7 +607,8 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSiteCustomDomain(ctx c // CreateOrUpdateStaticSiteCustomDomain - Description for Creates a new static site custom domain in an existing resource // group and static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions) (*http.Response, error) { req, err := client.createOrUpdateStaticSiteCustomDomainCreateRequest(ctx, resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) if err != nil { @@ -442,7 +648,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteCustomDomainRequestPropertiesEnvelope) @@ -451,12 +657,13 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque // CreateOrUpdateStaticSiteFunctionAppSettings - Description for Creates or updates the function app settings of a static // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// appSettings - The dictionary containing the static site function app settings to update. -// options - StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsOptions contains the optional parameters for the -// StaticSitesClient.CreateOrUpdateStaticSiteFunctionAppSettings method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - appSettings - The dictionary containing the static site function app settings to update. +// - options - StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsOptions contains the optional parameters for the +// StaticSitesClient.CreateOrUpdateStaticSiteFunctionAppSettings method. func (client *StaticSitesClient) CreateOrUpdateStaticSiteFunctionAppSettings(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsOptions) (StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsResponse, error) { req, err := client.createOrUpdateStaticSiteFunctionAppSettingsCreateRequest(ctx, resourceGroupName, name, appSettings, options) if err != nil { @@ -492,7 +699,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appSettings) @@ -509,11 +716,12 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsHand // CreateUserRolesInvitationLink - Description for Creates an invitation link for a user with the role // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientCreateUserRolesInvitationLinkOptions contains the optional parameters for the StaticSitesClient.CreateUserRolesInvitationLink -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientCreateUserRolesInvitationLinkOptions contains the optional parameters for the StaticSitesClient.CreateUserRolesInvitationLink +// method. func (client *StaticSitesClient) CreateUserRolesInvitationLink(ctx context.Context, resourceGroupName string, name string, staticSiteUserRolesInvitationEnvelope StaticSiteUserInvitationRequestResource, options *StaticSitesClientCreateUserRolesInvitationLinkOptions) (StaticSitesClientCreateUserRolesInvitationLinkResponse, error) { req, err := client.createUserRolesInvitationLinkCreateRequest(ctx, resourceGroupName, name, staticSiteUserRolesInvitationEnvelope, options) if err != nil { @@ -549,7 +757,7 @@ func (client *StaticSitesClient) createUserRolesInvitationLinkCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteUserRolesInvitationEnvelope) @@ -566,12 +774,13 @@ func (client *StaticSitesClient) createUserRolesInvitationLinkHandleResponse(res // BeginCreateZipDeploymentForStaticSite - Description for Deploys zipped content to a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// staticSiteZipDeploymentEnvelope - A JSON representation of the StaticSiteZipDeployment properties. See example. -// options - StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginCreateZipDeploymentForStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - staticSiteZipDeploymentEnvelope - A JSON representation of the StaticSiteZipDeployment properties. See example. +// - options - StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginCreateZipDeploymentForStaticSite +// method. func (client *StaticSitesClient) BeginCreateZipDeploymentForStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions) (*runtime.Poller[StaticSitesClientCreateZipDeploymentForStaticSiteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createZipDeploymentForStaticSite(ctx, resourceGroupName, name, staticSiteZipDeploymentEnvelope, options) @@ -586,7 +795,8 @@ func (client *StaticSitesClient) BeginCreateZipDeploymentForStaticSite(ctx conte // CreateZipDeploymentForStaticSite - Description for Deploys zipped content to a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) createZipDeploymentForStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions) (*http.Response, error) { req, err := client.createZipDeploymentForStaticSiteCreateRequest(ctx, resourceGroupName, name, staticSiteZipDeploymentEnvelope, options) if err != nil { @@ -622,7 +832,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteZipDeploymentEnvelope) @@ -631,13 +841,14 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c // BeginCreateZipDeploymentForStaticSiteBuild - Description for Deploys zipped content to a specific environment of a static // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - Name of the environment. -// staticSiteZipDeploymentEnvelope - A JSON representation of the StaticSiteZipDeployment properties. See example. -// options - StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - Name of the environment. +// - staticSiteZipDeploymentEnvelope - A JSON representation of the StaticSiteZipDeployment properties. See example. +// - options - StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild +// method. func (client *StaticSitesClient) BeginCreateZipDeploymentForStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions) (*runtime.Poller[StaticSitesClientCreateZipDeploymentForStaticSiteBuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createZipDeploymentForStaticSiteBuild(ctx, resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, options) @@ -652,7 +863,8 @@ func (client *StaticSitesClient) BeginCreateZipDeploymentForStaticSiteBuild(ctx // CreateZipDeploymentForStaticSiteBuild - Description for Deploys zipped content to a specific environment of a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions) (*http.Response, error) { req, err := client.createZipDeploymentForStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, options) if err != nil { @@ -692,20 +904,134 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteZipDeploymentEnvelope) } +// DeleteBuildDatabaseConnection - Delete a database connection for a static site build +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - databaseConnectionName - Name of the database connection. +// - options - StaticSitesClientDeleteBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.DeleteBuildDatabaseConnection +// method. +func (client *StaticSitesClient) DeleteBuildDatabaseConnection(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, options *StaticSitesClientDeleteBuildDatabaseConnectionOptions) (StaticSitesClientDeleteBuildDatabaseConnectionResponse, error) { + req, err := client.deleteBuildDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, environmentName, databaseConnectionName, options) + if err != nil { + return StaticSitesClientDeleteBuildDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientDeleteBuildDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { + return StaticSitesClientDeleteBuildDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return StaticSitesClientDeleteBuildDatabaseConnectionResponse{}, nil +} + +// deleteBuildDatabaseConnectionCreateRequest creates the DeleteBuildDatabaseConnection request. +func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, options *StaticSitesClientDeleteBuildDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// DeleteDatabaseConnection - Delete a database connection for a static site +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - databaseConnectionName - Name of the database connection. +// - options - StaticSitesClientDeleteDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.DeleteDatabaseConnection +// method. +func (client *StaticSitesClient) DeleteDatabaseConnection(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientDeleteDatabaseConnectionOptions) (StaticSitesClientDeleteDatabaseConnectionResponse, error) { + req, err := client.deleteDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, databaseConnectionName, options) + if err != nil { + return StaticSitesClientDeleteDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientDeleteDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { + return StaticSitesClientDeleteDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return StaticSitesClientDeleteDatabaseConnectionResponse{}, nil +} + +// deleteDatabaseConnectionCreateRequest creates the DeleteDatabaseConnection request. +func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientDeleteDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// privateEndpointConnectionName - Name of the private endpoint connection. -// options - StaticSitesClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the StaticSitesClient.BeginDeletePrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - privateEndpointConnectionName - Name of the private endpoint connection. +// - options - StaticSitesClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the StaticSitesClient.BeginDeletePrivateEndpointConnection +// method. func (client *StaticSitesClient) BeginDeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *StaticSitesClientBeginDeletePrivateEndpointConnectionOptions) (*runtime.Poller[StaticSitesClientDeletePrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deletePrivateEndpointConnection(ctx, resourceGroupName, name, privateEndpointConnectionName, options) @@ -720,7 +1046,8 @@ func (client *StaticSitesClient) BeginDeletePrivateEndpointConnection(ctx contex // DeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *StaticSitesClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.deletePrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, options) if err != nil { @@ -760,7 +1087,7 @@ func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -768,11 +1095,12 @@ func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ct // BeginDeleteStaticSite - Description for Deletes a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site to delete. -// options - StaticSitesClientBeginDeleteStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site to delete. +// - options - StaticSitesClientBeginDeleteStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSite +// method. func (client *StaticSitesClient) BeginDeleteStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDeleteStaticSiteOptions) (*runtime.Poller[StaticSitesClientDeleteStaticSiteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteStaticSite(ctx, resourceGroupName, name, options) @@ -787,7 +1115,8 @@ func (client *StaticSitesClient) BeginDeleteStaticSite(ctx context.Context, reso // DeleteStaticSite - Description for Deletes a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) deleteStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDeleteStaticSiteOptions) (*http.Response, error) { req, err := client.deleteStaticSiteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -823,7 +1152,7 @@ func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -831,12 +1160,13 @@ func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Conte // BeginDeleteStaticSiteBuild - Description for Deletes a static site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// options - StaticSitesClientBeginDeleteStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSiteBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - options - StaticSitesClientBeginDeleteStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSiteBuild +// method. func (client *StaticSitesClient) BeginDeleteStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientBeginDeleteStaticSiteBuildOptions) (*runtime.Poller[StaticSitesClientDeleteStaticSiteBuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteStaticSiteBuild(ctx, resourceGroupName, name, environmentName, options) @@ -851,7 +1181,8 @@ func (client *StaticSitesClient) BeginDeleteStaticSiteBuild(ctx context.Context, // DeleteStaticSiteBuild - Description for Deletes a static site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) deleteStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientBeginDeleteStaticSiteBuildOptions) (*http.Response, error) { req, err := client.deleteStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, options) if err != nil { @@ -891,7 +1222,7 @@ func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -899,12 +1230,13 @@ func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context. // BeginDeleteStaticSiteCustomDomain - Description for Deletes a custom domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// domainName - The custom domain to delete. -// options - StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSiteCustomDomain -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - domainName - The custom domain to delete. +// - options - StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSiteCustomDomain +// method. func (client *StaticSitesClient) BeginDeleteStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, options *StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions) (*runtime.Poller[StaticSitesClientDeleteStaticSiteCustomDomainResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteStaticSiteCustomDomain(ctx, resourceGroupName, name, domainName, options) @@ -919,7 +1251,8 @@ func (client *StaticSitesClient) BeginDeleteStaticSiteCustomDomain(ctx context.C // DeleteStaticSiteCustomDomain - Description for Deletes a custom domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) deleteStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, options *StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions) (*http.Response, error) { req, err := client.deleteStaticSiteCustomDomainCreateRequest(ctx, resourceGroupName, name, domainName, options) if err != nil { @@ -959,7 +1292,7 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -967,13 +1300,14 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx c // DeleteStaticSiteUser - Description for Deletes the user entry from the static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the staticsite. -// authprovider - The auth provider for this user. -// userid - The user id of the user. -// options - StaticSitesClientDeleteStaticSiteUserOptions contains the optional parameters for the StaticSitesClient.DeleteStaticSiteUser -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the staticsite. +// - authprovider - The auth provider for this user. +// - userid - The user id of the user. +// - options - StaticSitesClientDeleteStaticSiteUserOptions contains the optional parameters for the StaticSitesClient.DeleteStaticSiteUser +// method. func (client *StaticSitesClient) DeleteStaticSiteUser(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, options *StaticSitesClientDeleteStaticSiteUserOptions) (StaticSitesClientDeleteStaticSiteUserResponse, error) { req, err := client.deleteStaticSiteUserCreateRequest(ctx, resourceGroupName, name, authprovider, userid, options) if err != nil { @@ -1007,62 +1341,640 @@ func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.C if userid == "" { return nil, errors.New("parameter userid cannot be empty") } - urlPath = strings.ReplaceAll(urlPath, "{userid}", url.PathEscape(userid)) + urlPath = strings.ReplaceAll(urlPath, "{userid}", url.PathEscape(userid)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginDetachStaticSite - Description for Detaches a static site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site to detach. +// - options - StaticSitesClientBeginDetachStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDetachStaticSite +// method. +func (client *StaticSitesClient) BeginDetachStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*runtime.Poller[StaticSitesClientDetachStaticSiteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.detachStaticSite(ctx, resourceGroupName, name, options) + if err != nil { + return nil, err + } + return runtime.NewPoller[StaticSitesClientDetachStaticSiteResponse](resp, client.pl, nil) + } else { + return runtime.NewPollerFromResumeToken[StaticSitesClientDetachStaticSiteResponse](options.ResumeToken, client.pl, nil) + } +} + +// DetachStaticSite - Description for Detaches a static site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +func (client *StaticSitesClient) detachStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*http.Response, error) { + req, err := client.detachStaticSiteCreateRequest(ctx, resourceGroupName, name, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// detachStaticSiteCreateRequest creates the DetachStaticSite request. +func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// DetachUserProvidedFunctionAppFromStaticSite - Description for Detach the user provided function app from the static site +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - functionAppName - Name of the function app registered with the static site. +// - options - StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions contains the optional parameters for the +// StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSite method. +func (client *StaticSitesClient) DetachUserProvidedFunctionAppFromStaticSite(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions) (StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse, error) { + req, err := client.detachUserProvidedFunctionAppFromStaticSiteCreateRequest(ctx, resourceGroupName, name, functionAppName, options) + if err != nil { + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, runtime.NewResponseError(resp) + } + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, nil +} + +// detachUserProvidedFunctionAppFromStaticSiteCreateRequest creates the DetachUserProvidedFunctionAppFromStaticSite request. +func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if functionAppName == "" { + return nil, errors.New("parameter functionAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{functionAppName}", url.PathEscape(functionAppName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// DetachUserProvidedFunctionAppFromStaticSiteBuild - Description for Detach the user provided function app from the static +// site build +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - functionAppName - Name of the function app registered with the static site build. +// - options - StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildOptions contains the optional parameters for +// the StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSiteBuild method. +func (client *StaticSitesClient) DetachUserProvidedFunctionAppFromStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildOptions) (StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse, error) { + req, err := client.detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, functionAppName, options) + if err != nil { + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, runtime.NewResponseError(resp) + } + return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, nil +} + +// detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest creates the DetachUserProvidedFunctionAppFromStaticSiteBuild request. +func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if functionAppName == "" { + return nil, errors.New("parameter functionAppName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{functionAppName}", url.PathEscape(functionAppName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// GetBasicAuth - Description for Gets the basic auth properties for a static site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - basicAuthName - name of the basic auth entry. +// - options - StaticSitesClientGetBasicAuthOptions contains the optional parameters for the StaticSitesClient.GetBasicAuth +// method. +func (client *StaticSitesClient) GetBasicAuth(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, options *StaticSitesClientGetBasicAuthOptions) (StaticSitesClientGetBasicAuthResponse, error) { + req, err := client.getBasicAuthCreateRequest(ctx, resourceGroupName, name, basicAuthName, options) + if err != nil { + return StaticSitesClientGetBasicAuthResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetBasicAuthResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetBasicAuthResponse{}, runtime.NewResponseError(resp) + } + return client.getBasicAuthHandleResponse(resp) +} + +// getBasicAuthCreateRequest creates the GetBasicAuth request. +func (client *StaticSitesClient) getBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, options *StaticSitesClientGetBasicAuthOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/basicAuth/{basicAuthName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if basicAuthName == "" { + return nil, errors.New("parameter basicAuthName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{basicAuthName}", url.PathEscape(string(basicAuthName))) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getBasicAuthHandleResponse handles the GetBasicAuth response. +func (client *StaticSitesClient) getBasicAuthHandleResponse(resp *http.Response) (StaticSitesClientGetBasicAuthResponse, error) { + result := StaticSitesClientGetBasicAuthResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.StaticSiteBasicAuthPropertiesARMResource); err != nil { + return StaticSitesClientGetBasicAuthResponse{}, err + } + return result, nil +} + +// GetBuildDatabaseConnection - Returns overview of a database connection for a static site build by name +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - databaseConnectionName - Name of the database connection. +// - options - StaticSitesClientGetBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.GetBuildDatabaseConnection +// method. +func (client *StaticSitesClient) GetBuildDatabaseConnection(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, options *StaticSitesClientGetBuildDatabaseConnectionOptions) (StaticSitesClientGetBuildDatabaseConnectionResponse, error) { + req, err := client.getBuildDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, environmentName, databaseConnectionName, options) + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetBuildDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return client.getBuildDatabaseConnectionHandleResponse(resp) +} + +// getBuildDatabaseConnectionCreateRequest creates the GetBuildDatabaseConnection request. +func (client *StaticSitesClient) getBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, options *StaticSitesClientGetBuildDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getBuildDatabaseConnectionHandleResponse handles the GetBuildDatabaseConnection response. +func (client *StaticSitesClient) getBuildDatabaseConnectionHandleResponse(resp *http.Response) (StaticSitesClientGetBuildDatabaseConnectionResponse, error) { + result := StaticSitesClientGetBuildDatabaseConnectionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientGetBuildDatabaseConnectionResponse{}, err + } + return result, nil +} + +// GetBuildDatabaseConnectionWithDetails - Returns details of a database connection for a static site build by name +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - databaseConnectionName - Name of the database connection. +// - options - StaticSitesClientGetBuildDatabaseConnectionWithDetailsOptions contains the optional parameters for the StaticSitesClient.GetBuildDatabaseConnectionWithDetails +// method. +func (client *StaticSitesClient) GetBuildDatabaseConnectionWithDetails(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, options *StaticSitesClientGetBuildDatabaseConnectionWithDetailsOptions) (StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse, error) { + req, err := client.getBuildDatabaseConnectionWithDetailsCreateRequest(ctx, resourceGroupName, name, environmentName, databaseConnectionName, options) + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse{}, runtime.NewResponseError(resp) + } + return client.getBuildDatabaseConnectionWithDetailsHandleResponse(resp) +} + +// getBuildDatabaseConnectionWithDetailsCreateRequest creates the GetBuildDatabaseConnectionWithDetails request. +func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, options *StaticSitesClientGetBuildDatabaseConnectionWithDetailsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}/show" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getBuildDatabaseConnectionWithDetailsHandleResponse handles the GetBuildDatabaseConnectionWithDetails response. +func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsHandleResponse(resp *http.Response) (StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse, error) { + result := StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientGetBuildDatabaseConnectionWithDetailsResponse{}, err + } + return result, nil +} + +// NewGetBuildDatabaseConnectionsPager - Returns overviews of database connections for a static site build +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - options - StaticSitesClientGetBuildDatabaseConnectionsOptions contains the optional parameters for the StaticSitesClient.NewGetBuildDatabaseConnectionsPager +// method. +func (client *StaticSitesClient) NewGetBuildDatabaseConnectionsPager(resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetBuildDatabaseConnectionsOptions) *runtime.Pager[StaticSitesClientGetBuildDatabaseConnectionsResponse] { + return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetBuildDatabaseConnectionsResponse]{ + More: func(page StaticSitesClientGetBuildDatabaseConnectionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StaticSitesClientGetBuildDatabaseConnectionsResponse) (StaticSitesClientGetBuildDatabaseConnectionsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.getBuildDatabaseConnectionsCreateRequest(ctx, resourceGroupName, name, environmentName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetBuildDatabaseConnectionsResponse{}, runtime.NewResponseError(resp) + } + return client.getBuildDatabaseConnectionsHandleResponse(resp) + }, + }) +} + +// getBuildDatabaseConnectionsCreateRequest creates the GetBuildDatabaseConnections request. +func (client *StaticSitesClient) getBuildDatabaseConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetBuildDatabaseConnectionsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getBuildDatabaseConnectionsHandleResponse handles the GetBuildDatabaseConnections response. +func (client *StaticSitesClient) getBuildDatabaseConnectionsHandleResponse(resp *http.Response) (StaticSitesClientGetBuildDatabaseConnectionsResponse, error) { + result := StaticSitesClientGetBuildDatabaseConnectionsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnectionCollection); err != nil { + return StaticSitesClientGetBuildDatabaseConnectionsResponse{}, err + } + return result, nil +} + +// NewGetBuildDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site build +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - options - StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions contains the optional parameters for the StaticSitesClient.NewGetBuildDatabaseConnectionsWithDetailsPager +// method. +func (client *StaticSitesClient) NewGetBuildDatabaseConnectionsWithDetailsPager(resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions) *runtime.Pager[StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse] { + return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse]{ + More: func(page StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse) (StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.getBuildDatabaseConnectionsWithDetailsCreateRequest(ctx, resourceGroupName, name, environmentName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse{}, runtime.NewResponseError(resp) + } + return client.getBuildDatabaseConnectionsWithDetailsHandleResponse(resp) + }, + }) +} + +// getBuildDatabaseConnectionsWithDetailsCreateRequest creates the GetBuildDatabaseConnectionsWithDetails request. +func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/showDatabaseConnections" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getBuildDatabaseConnectionsWithDetailsHandleResponse handles the GetBuildDatabaseConnectionsWithDetails response. +func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsHandleResponse(resp *http.Response) (StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse, error) { + result := StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnectionCollection); err != nil { + return StaticSitesClientGetBuildDatabaseConnectionsWithDetailsResponse{}, err + } + return result, nil +} + +// GetDatabaseConnection - Returns overview of a database connection for a static site by name +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - databaseConnectionName - Name of the database connection. +// - options - StaticSitesClientGetDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.GetDatabaseConnection +// method. +func (client *StaticSitesClient) GetDatabaseConnection(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientGetDatabaseConnectionOptions) (StaticSitesClientGetDatabaseConnectionResponse, error) { + req, err := client.getDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, databaseConnectionName, options) + if err != nil { + return StaticSitesClientGetDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return client.getDatabaseConnectionHandleResponse(resp) +} + +// getDatabaseConnectionCreateRequest creates the GetDatabaseConnection request. +func (client *StaticSitesClient) getDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientGetDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginDetachStaticSite - Description for Detaches a static site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site to detach. -// options - StaticSitesClientBeginDetachStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDetachStaticSite -// method. -func (client *StaticSitesClient) BeginDetachStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*runtime.Poller[StaticSitesClientDetachStaticSiteResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.detachStaticSite(ctx, resourceGroupName, name, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[StaticSitesClientDetachStaticSiteResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[StaticSitesClientDetachStaticSiteResponse](options.ResumeToken, client.pl, nil) +// getDatabaseConnectionHandleResponse handles the GetDatabaseConnection response. +func (client *StaticSitesClient) getDatabaseConnectionHandleResponse(resp *http.Response) (StaticSitesClientGetDatabaseConnectionResponse, error) { + result := StaticSitesClientGetDatabaseConnectionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientGetDatabaseConnectionResponse{}, err } + return result, nil } -// DetachStaticSite - Description for Detaches a static site. +// GetDatabaseConnectionWithDetails - Returns details of a database connection for a static site by name // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -func (client *StaticSitesClient) detachStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*http.Response, error) { - req, err := client.detachStaticSiteCreateRequest(ctx, resourceGroupName, name, options) - if err != nil { - return nil, err +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - databaseConnectionName - Name of the database connection. +// - options - StaticSitesClientGetDatabaseConnectionWithDetailsOptions contains the optional parameters for the StaticSitesClient.GetDatabaseConnectionWithDetails +// method. +func (client *StaticSitesClient) GetDatabaseConnectionWithDetails(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientGetDatabaseConnectionWithDetailsOptions) (StaticSitesClientGetDatabaseConnectionWithDetailsResponse, error) { + req, err := client.getDatabaseConnectionWithDetailsCreateRequest(ctx, resourceGroupName, name, databaseConnectionName, options) + if err != nil { + return StaticSitesClientGetDatabaseConnectionWithDetailsResponse{}, err } resp, err := client.pl.Do(req) if err != nil { - return nil, err + return StaticSitesClientGetDatabaseConnectionWithDetailsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetDatabaseConnectionWithDetailsResponse{}, runtime.NewResponseError(resp) } - return resp, nil + return client.getDatabaseConnectionWithDetailsHandleResponse(resp) } -// detachStaticSiteCreateRequest creates the DetachStaticSite request. -func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/detach" +// getDatabaseConnectionWithDetailsCreateRequest creates the GetDatabaseConnectionWithDetails request. +func (client *StaticSitesClient) getDatabaseConnectionWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientGetDatabaseConnectionWithDetailsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections/{databaseConnectionName}/show" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") } @@ -1071,6 +1983,10 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte return nil, errors.New("parameter name cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -1080,38 +1996,59 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// DetachUserProvidedFunctionAppFromStaticSite - Description for Detach the user provided function app from the static site -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// functionAppName - Name of the function app registered with the static site. -// options - StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions contains the optional parameters for the -// StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSite method. -func (client *StaticSitesClient) DetachUserProvidedFunctionAppFromStaticSite(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions) (StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse, error) { - req, err := client.detachUserProvidedFunctionAppFromStaticSiteCreateRequest(ctx, resourceGroupName, name, functionAppName, options) - if err != nil { - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, err +// getDatabaseConnectionWithDetailsHandleResponse handles the GetDatabaseConnectionWithDetails response. +func (client *StaticSitesClient) getDatabaseConnectionWithDetailsHandleResponse(resp *http.Response) (StaticSitesClientGetDatabaseConnectionWithDetailsResponse, error) { + result := StaticSitesClientGetDatabaseConnectionWithDetailsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientGetDatabaseConnectionWithDetailsResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, runtime.NewResponseError(resp) - } - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteResponse{}, nil + return result, nil } -// detachUserProvidedFunctionAppFromStaticSiteCreateRequest creates the DetachUserProvidedFunctionAppFromStaticSite request. -func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}" +// NewGetDatabaseConnectionsPager - Returns overviews of database connections for a static site +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - options - StaticSitesClientGetDatabaseConnectionsOptions contains the optional parameters for the StaticSitesClient.NewGetDatabaseConnectionsPager +// method. +func (client *StaticSitesClient) NewGetDatabaseConnectionsPager(resourceGroupName string, name string, options *StaticSitesClientGetDatabaseConnectionsOptions) *runtime.Pager[StaticSitesClientGetDatabaseConnectionsResponse] { + return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetDatabaseConnectionsResponse]{ + More: func(page StaticSitesClientGetDatabaseConnectionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StaticSitesClientGetDatabaseConnectionsResponse) (StaticSitesClientGetDatabaseConnectionsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.getDatabaseConnectionsCreateRequest(ctx, resourceGroupName, name, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StaticSitesClientGetDatabaseConnectionsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetDatabaseConnectionsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetDatabaseConnectionsResponse{}, runtime.NewResponseError(resp) + } + return client.getDatabaseConnectionsHandleResponse(resp) + }, + }) +} + +// getDatabaseConnectionsCreateRequest creates the GetDatabaseConnections request. +func (client *StaticSitesClient) getDatabaseConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetDatabaseConnectionsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") } @@ -1120,53 +2057,68 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea return nil, errors.New("parameter name cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) - if functionAppName == "" { - return nil, errors.New("parameter functionAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{functionAppName}", url.PathEscape(functionAppName)) if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// DetachUserProvidedFunctionAppFromStaticSiteBuild - Description for Detach the user provided function app from the static -// site build -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// functionAppName - Name of the function app registered with the static site build. -// options - StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildOptions contains the optional parameters for -// the StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSiteBuild method. -func (client *StaticSitesClient) DetachUserProvidedFunctionAppFromStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildOptions) (StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse, error) { - req, err := client.detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, functionAppName, options) - if err != nil { - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, err +// getDatabaseConnectionsHandleResponse handles the GetDatabaseConnections response. +func (client *StaticSitesClient) getDatabaseConnectionsHandleResponse(resp *http.Response) (StaticSitesClientGetDatabaseConnectionsResponse, error) { + result := StaticSitesClientGetDatabaseConnectionsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnectionCollection); err != nil { + return StaticSitesClientGetDatabaseConnectionsResponse{}, err } - resp, err := client.pl.Do(req) - if err != nil { - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, runtime.NewResponseError(resp) - } - return StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildResponse{}, nil + return result, nil } -// detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest creates the DetachUserProvidedFunctionAppFromStaticSiteBuild request. -func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteBuildOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}" +// NewGetDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - options - StaticSitesClientGetDatabaseConnectionsWithDetailsOptions contains the optional parameters for the StaticSitesClient.NewGetDatabaseConnectionsWithDetailsPager +// method. +func (client *StaticSitesClient) NewGetDatabaseConnectionsWithDetailsPager(resourceGroupName string, name string, options *StaticSitesClientGetDatabaseConnectionsWithDetailsOptions) *runtime.Pager[StaticSitesClientGetDatabaseConnectionsWithDetailsResponse] { + return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetDatabaseConnectionsWithDetailsResponse]{ + More: func(page StaticSitesClientGetDatabaseConnectionsWithDetailsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StaticSitesClientGetDatabaseConnectionsWithDetailsResponse) (StaticSitesClientGetDatabaseConnectionsWithDetailsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.getDatabaseConnectionsWithDetailsCreateRequest(ctx, resourceGroupName, name, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StaticSitesClientGetDatabaseConnectionsWithDetailsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientGetDatabaseConnectionsWithDetailsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientGetDatabaseConnectionsWithDetailsResponse{}, runtime.NewResponseError(resp) + } + return client.getDatabaseConnectionsWithDetailsHandleResponse(resp) + }, + }) +} + +// getDatabaseConnectionsWithDetailsCreateRequest creates the GetDatabaseConnectionsWithDetails request. +func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetDatabaseConnectionsWithDetailsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/showDatabaseConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") } @@ -1175,37 +2127,39 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuil return nil, errors.New("parameter name cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) - if environmentName == "" { - return nil, errors.New("parameter environmentName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) - if functionAppName == "" { - return nil, errors.New("parameter functionAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{functionAppName}", url.PathEscape(functionAppName)) if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } +// getDatabaseConnectionsWithDetailsHandleResponse handles the GetDatabaseConnectionsWithDetails response. +func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsHandleResponse(resp *http.Response) (StaticSitesClientGetDatabaseConnectionsWithDetailsResponse, error) { + result := StaticSitesClientGetDatabaseConnectionsWithDetailsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnectionCollection); err != nil { + return StaticSitesClientGetDatabaseConnectionsWithDetailsResponse{}, err + } + return result, nil +} + // GetLinkedBackend - Returns the details of a linked backend linked to a static site by name // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// linkedBackendName - Name of the linked backend that should be retrieved -// options - StaticSitesClientGetLinkedBackendOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackend -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - linkedBackendName - Name of the linked backend that should be retrieved +// - options - StaticSitesClientGetLinkedBackendOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackend +// method. func (client *StaticSitesClient) GetLinkedBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, options *StaticSitesClientGetLinkedBackendOptions) (StaticSitesClientGetLinkedBackendResponse, error) { req, err := client.getLinkedBackendCreateRequest(ctx, resourceGroupName, name, linkedBackendName, options) if err != nil { @@ -1245,7 +2199,7 @@ func (client *StaticSitesClient) getLinkedBackendCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1262,13 +2216,14 @@ func (client *StaticSitesClient) getLinkedBackendHandleResponse(resp *http.Respo // GetLinkedBackendForBuild - Returns the details of a linked backend linked to a static site build by name // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// environmentName - The stage site identifier -// linkedBackendName - Name of the linked backend that should be retrieved -// options - StaticSitesClientGetLinkedBackendForBuildOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackendForBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier +// - linkedBackendName - Name of the linked backend that should be retrieved +// - options - StaticSitesClientGetLinkedBackendForBuildOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackendForBuild +// method. func (client *StaticSitesClient) GetLinkedBackendForBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, options *StaticSitesClientGetLinkedBackendForBuildOptions) (StaticSitesClientGetLinkedBackendForBuildResponse, error) { req, err := client.getLinkedBackendForBuildCreateRequest(ctx, resourceGroupName, name, environmentName, linkedBackendName, options) if err != nil { @@ -1312,7 +2267,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1328,12 +2283,12 @@ func (client *StaticSitesClient) getLinkedBackendForBuildHandleResponse(resp *ht } // NewGetLinkedBackendsPager - Returns details of all backends linked to a static site -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// options - StaticSitesClientGetLinkedBackendsOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackends -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - options - StaticSitesClientGetLinkedBackendsOptions contains the optional parameters for the StaticSitesClient.NewGetLinkedBackendsPager +// method. func (client *StaticSitesClient) NewGetLinkedBackendsPager(resourceGroupName string, name string, options *StaticSitesClientGetLinkedBackendsOptions) *runtime.Pager[StaticSitesClientGetLinkedBackendsResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetLinkedBackendsResponse]{ More: func(page StaticSitesClientGetLinkedBackendsResponse) bool { @@ -1382,7 +2337,7 @@ func (client *StaticSitesClient) getLinkedBackendsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1398,13 +2353,13 @@ func (client *StaticSitesClient) getLinkedBackendsHandleResponse(resp *http.Resp } // NewGetLinkedBackendsForBuildPager - Returns details of all backends linked to a static site build -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// environmentName - The stage site identifier -// options - StaticSitesClientGetLinkedBackendsForBuildOptions contains the optional parameters for the StaticSitesClient.GetLinkedBackendsForBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier +// - options - StaticSitesClientGetLinkedBackendsForBuildOptions contains the optional parameters for the StaticSitesClient.NewGetLinkedBackendsForBuildPager +// method. func (client *StaticSitesClient) NewGetLinkedBackendsForBuildPager(resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetLinkedBackendsForBuildOptions) *runtime.Pager[StaticSitesClientGetLinkedBackendsForBuildResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetLinkedBackendsForBuildResponse]{ More: func(page StaticSitesClientGetLinkedBackendsForBuildResponse) bool { @@ -1457,7 +2412,7 @@ func (client *StaticSitesClient) getLinkedBackendsForBuildCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1474,12 +2429,13 @@ func (client *StaticSitesClient) getLinkedBackendsForBuildHandleResponse(resp *h // GetPrivateEndpointConnection - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// privateEndpointConnectionName - Name of the private endpoint connection. -// options - StaticSitesClientGetPrivateEndpointConnectionOptions contains the optional parameters for the StaticSitesClient.GetPrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - privateEndpointConnectionName - Name of the private endpoint connection. +// - options - StaticSitesClientGetPrivateEndpointConnectionOptions contains the optional parameters for the StaticSitesClient.GetPrivateEndpointConnection +// method. func (client *StaticSitesClient) GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *StaticSitesClientGetPrivateEndpointConnectionOptions) (StaticSitesClientGetPrivateEndpointConnectionResponse, error) { req, err := client.getPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, options) if err != nil { @@ -1519,7 +2475,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1536,12 +2492,12 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionHandleResponse(resp // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoint connections associated with // a static site -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the StaticSitesClient.GetPrivateEndpointConnectionList -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the StaticSitesClient.NewGetPrivateEndpointConnectionListPager +// method. func (client *StaticSitesClient) NewGetPrivateEndpointConnectionListPager(resourceGroupName string, name string, options *StaticSitesClientGetPrivateEndpointConnectionListOptions) *runtime.Pager[StaticSitesClientGetPrivateEndpointConnectionListResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetPrivateEndpointConnectionListResponse]{ More: func(page StaticSitesClientGetPrivateEndpointConnectionListResponse) bool { @@ -1590,7 +2546,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionListCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1607,11 +2563,12 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionListHandleResponse( // GetPrivateLinkResources - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - StaticSitesClientGetPrivateLinkResourcesOptions contains the optional parameters for the StaticSitesClient.GetPrivateLinkResources -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - StaticSitesClientGetPrivateLinkResourcesOptions contains the optional parameters for the StaticSitesClient.GetPrivateLinkResources +// method. func (client *StaticSitesClient) GetPrivateLinkResources(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetPrivateLinkResourcesOptions) (StaticSitesClientGetPrivateLinkResourcesResponse, error) { req, err := client.getPrivateLinkResourcesCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1647,7 +2604,7 @@ func (client *StaticSitesClient) getPrivateLinkResourcesCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1664,11 +2621,12 @@ func (client *StaticSitesClient) getPrivateLinkResourcesHandleResponse(resp *htt // GetStaticSite - Description for Gets the details of a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientGetStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientGetStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetStaticSite +// method. func (client *StaticSitesClient) GetStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetStaticSiteOptions) (StaticSitesClientGetStaticSiteResponse, error) { req, err := client.getStaticSiteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1704,7 +2662,7 @@ func (client *StaticSitesClient) getStaticSiteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1721,12 +2679,13 @@ func (client *StaticSitesClient) getStaticSiteHandleResponse(resp *http.Response // GetStaticSiteBuild - Description for Gets the details of a static site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// options - StaticSitesClientGetStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.GetStaticSiteBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - options - StaticSitesClientGetStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.GetStaticSiteBuild +// method. func (client *StaticSitesClient) GetStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetStaticSiteBuildOptions) (StaticSitesClientGetStaticSiteBuildResponse, error) { req, err := client.getStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, options) if err != nil { @@ -1766,7 +2725,7 @@ func (client *StaticSitesClient) getStaticSiteBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1782,12 +2741,12 @@ func (client *StaticSitesClient) getStaticSiteBuildHandleResponse(resp *http.Res } // NewGetStaticSiteBuildsPager - Description for Gets all static site builds for a particular static site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientGetStaticSiteBuildsOptions contains the optional parameters for the StaticSitesClient.GetStaticSiteBuilds -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientGetStaticSiteBuildsOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSiteBuildsPager +// method. func (client *StaticSitesClient) NewGetStaticSiteBuildsPager(resourceGroupName string, name string, options *StaticSitesClientGetStaticSiteBuildsOptions) *runtime.Pager[StaticSitesClientGetStaticSiteBuildsResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetStaticSiteBuildsResponse]{ More: func(page StaticSitesClientGetStaticSiteBuildsResponse) bool { @@ -1836,7 +2795,7 @@ func (client *StaticSitesClient) getStaticSiteBuildsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1853,12 +2812,13 @@ func (client *StaticSitesClient) getStaticSiteBuildsHandleResponse(resp *http.Re // GetStaticSiteCustomDomain - Description for Gets an existing custom domain for a particular static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site resource to search in. -// domainName - The custom domain name. -// options - StaticSitesClientGetStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.GetStaticSiteCustomDomain -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site resource to search in. +// - domainName - The custom domain name. +// - options - StaticSitesClientGetStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.GetStaticSiteCustomDomain +// method. func (client *StaticSitesClient) GetStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, options *StaticSitesClientGetStaticSiteCustomDomainOptions) (StaticSitesClientGetStaticSiteCustomDomainResponse, error) { req, err := client.getStaticSiteCustomDomainCreateRequest(ctx, resourceGroupName, name, domainName, options) if err != nil { @@ -1898,7 +2858,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1914,11 +2874,11 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainHandleResponse(resp *h } // NewGetStaticSitesByResourceGroupPager - Description for Gets all static sites in the specified resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - StaticSitesClientGetStaticSitesByResourceGroupOptions contains the optional parameters for the StaticSitesClient.GetStaticSitesByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - StaticSitesClientGetStaticSitesByResourceGroupOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSitesByResourceGroupPager +// method. func (client *StaticSitesClient) NewGetStaticSitesByResourceGroupPager(resourceGroupName string, options *StaticSitesClientGetStaticSitesByResourceGroupOptions) *runtime.Pager[StaticSitesClientGetStaticSitesByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetStaticSitesByResourceGroupResponse]{ More: func(page StaticSitesClientGetStaticSitesByResourceGroupResponse) bool { @@ -1963,7 +2923,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1981,12 +2941,13 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupHandleResponse(res // GetUserProvidedFunctionAppForStaticSite - Description for Gets the details of the user provided function app registered // with a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// functionAppName - Name of the function app registered with the static site. -// options - StaticSitesClientGetUserProvidedFunctionAppForStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetUserProvidedFunctionAppForStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - functionAppName - Name of the function app registered with the static site. +// - options - StaticSitesClientGetUserProvidedFunctionAppForStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetUserProvidedFunctionAppForStaticSite +// method. func (client *StaticSitesClient) GetUserProvidedFunctionAppForStaticSite(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientGetUserProvidedFunctionAppForStaticSiteOptions) (StaticSitesClientGetUserProvidedFunctionAppForStaticSiteResponse, error) { req, err := client.getUserProvidedFunctionAppForStaticSiteCreateRequest(ctx, resourceGroupName, name, functionAppName, options) if err != nil { @@ -2026,7 +2987,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2044,13 +3005,14 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteHandleRe // GetUserProvidedFunctionAppForStaticSiteBuild - Description for Gets the details of the user provided function app registered // with a static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// functionAppName - Name of the function app registered with the static site build. -// options - StaticSitesClientGetUserProvidedFunctionAppForStaticSiteBuildOptions contains the optional parameters for the -// StaticSitesClient.GetUserProvidedFunctionAppForStaticSiteBuild method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - functionAppName - Name of the function app registered with the static site build. +// - options - StaticSitesClientGetUserProvidedFunctionAppForStaticSiteBuildOptions contains the optional parameters for the +// StaticSitesClient.GetUserProvidedFunctionAppForStaticSiteBuild method. func (client *StaticSitesClient) GetUserProvidedFunctionAppForStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, options *StaticSitesClientGetUserProvidedFunctionAppForStaticSiteBuildOptions) (StaticSitesClientGetUserProvidedFunctionAppForStaticSiteBuildResponse, error) { req, err := client.getUserProvidedFunctionAppForStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, functionAppName, options) if err != nil { @@ -2094,7 +3056,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2111,12 +3073,12 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildHan // NewGetUserProvidedFunctionAppsForStaticSitePager - Description for Gets the details of the user provided function apps // registered with a static site -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetUserProvidedFunctionAppsForStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions contains the optional parameters for the StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSitePager +// method. func (client *StaticSitesClient) NewGetUserProvidedFunctionAppsForStaticSitePager(resourceGroupName string, name string, options *StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions) *runtime.Pager[StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteResponse]{ More: func(page StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteResponse) bool { @@ -2165,7 +3127,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2182,13 +3144,13 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteHandleR // NewGetUserProvidedFunctionAppsForStaticSiteBuildPager - Description for Gets the details of the user provided function // apps registered with a static site build -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// options - StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions contains the optional parameters for the -// StaticSitesClient.GetUserProvidedFunctionAppsForStaticSiteBuild method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - options - StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions contains the optional parameters for the +// StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSiteBuildPager method. func (client *StaticSitesClient) NewGetUserProvidedFunctionAppsForStaticSiteBuildPager(resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions) *runtime.Pager[StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildResponse]{ More: func(page StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildResponse) bool { @@ -2241,7 +3203,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2258,13 +3220,14 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildHa // BeginLinkBackend - Link backend to a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// linkedBackendName - Name of the backend to link to the static site -// staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties -// options - StaticSitesClientBeginLinkBackendOptions contains the optional parameters for the StaticSitesClient.BeginLinkBackend -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - linkedBackendName - Name of the backend to link to the static site +// - staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties +// - options - StaticSitesClientBeginLinkBackendOptions contains the optional parameters for the StaticSitesClient.BeginLinkBackend +// method. func (client *StaticSitesClient) BeginLinkBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendOptions) (*runtime.Poller[StaticSitesClientLinkBackendResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.linkBackend(ctx, resourceGroupName, name, linkedBackendName, staticSiteLinkedBackendEnvelope, options) @@ -2279,7 +3242,8 @@ func (client *StaticSitesClient) BeginLinkBackend(ctx context.Context, resourceG // LinkBackend - Link backend to a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) linkBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendOptions) (*http.Response, error) { req, err := client.linkBackendCreateRequest(ctx, resourceGroupName, name, linkedBackendName, staticSiteLinkedBackendEnvelope, options) if err != nil { @@ -2319,7 +3283,7 @@ func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope) @@ -2327,14 +3291,15 @@ func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, r // BeginLinkBackendToBuild - Link backend to a static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// environmentName - The stage site identifier -// linkedBackendName - Name of the backend to link to the static site -// staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties -// options - StaticSitesClientBeginLinkBackendToBuildOptions contains the optional parameters for the StaticSitesClient.BeginLinkBackendToBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier +// - linkedBackendName - Name of the backend to link to the static site +// - staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties +// - options - StaticSitesClientBeginLinkBackendToBuildOptions contains the optional parameters for the StaticSitesClient.BeginLinkBackendToBuild +// method. func (client *StaticSitesClient) BeginLinkBackendToBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendToBuildOptions) (*runtime.Poller[StaticSitesClientLinkBackendToBuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.linkBackendToBuild(ctx, resourceGroupName, name, environmentName, linkedBackendName, staticSiteLinkedBackendEnvelope, options) @@ -2349,7 +3314,8 @@ func (client *StaticSitesClient) BeginLinkBackendToBuild(ctx context.Context, re // LinkBackendToBuild - Link backend to a static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) linkBackendToBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendToBuildOptions) (*http.Response, error) { req, err := client.linkBackendToBuildCreateRequest(ctx, resourceGroupName, name, environmentName, linkedBackendName, staticSiteLinkedBackendEnvelope, options) if err != nil { @@ -2393,16 +3359,16 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope) } // NewListPager - Description for Get all Static Sites for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - StaticSitesClientListOptions contains the optional parameters for the StaticSitesClient.List method. +// +// Generated from API version 2022-09-01 +// - options - StaticSitesClientListOptions contains the optional parameters for the StaticSitesClient.NewListPager method. func (client *StaticSitesClient) NewListPager(options *StaticSitesClientListOptions) *runtime.Pager[StaticSitesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientListResponse]{ More: func(page StaticSitesClientListResponse) bool { @@ -2443,7 +3409,7 @@ func (client *StaticSitesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2458,13 +3424,84 @@ func (client *StaticSitesClient) listHandleResponse(resp *http.Response) (Static return result, nil } +// NewListBasicAuthPager - Description for Gets the basic auth properties for a static site as a collection. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientListBasicAuthOptions contains the optional parameters for the StaticSitesClient.NewListBasicAuthPager +// method. +func (client *StaticSitesClient) NewListBasicAuthPager(resourceGroupName string, name string, options *StaticSitesClientListBasicAuthOptions) *runtime.Pager[StaticSitesClientListBasicAuthResponse] { + return runtime.NewPager(runtime.PagingHandler[StaticSitesClientListBasicAuthResponse]{ + More: func(page StaticSitesClientListBasicAuthResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StaticSitesClientListBasicAuthResponse) (StaticSitesClientListBasicAuthResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBasicAuthCreateRequest(ctx, resourceGroupName, name, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StaticSitesClientListBasicAuthResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientListBasicAuthResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientListBasicAuthResponse{}, runtime.NewResponseError(resp) + } + return client.listBasicAuthHandleResponse(resp) + }, + }) +} + +// listBasicAuthCreateRequest creates the ListBasicAuth request. +func (client *StaticSitesClient) listBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListBasicAuthOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/basicAuth" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBasicAuthHandleResponse handles the ListBasicAuth response. +func (client *StaticSitesClient) listBasicAuthHandleResponse(resp *http.Response) (StaticSitesClientListBasicAuthResponse, error) { + result := StaticSitesClientListBasicAuthResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.StaticSiteBasicAuthPropertiesCollection); err != nil { + return StaticSitesClientListBasicAuthResponse{}, err + } + return result, nil +} + // ListStaticSiteAppSettings - Description for Gets the application settings of a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientListStaticSiteAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteAppSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientListStaticSiteAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteAppSettings +// method. func (client *StaticSitesClient) ListStaticSiteAppSettings(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteAppSettingsOptions) (StaticSitesClientListStaticSiteAppSettingsResponse, error) { req, err := client.listStaticSiteAppSettingsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2500,7 +3537,7 @@ func (client *StaticSitesClient) listStaticSiteAppSettingsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2517,12 +3554,13 @@ func (client *StaticSitesClient) listStaticSiteAppSettingsHandleResponse(resp *h // ListStaticSiteBuildAppSettings - Description for Gets the application settings of a static site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// options - StaticSitesClientListStaticSiteBuildAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteBuildAppSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - options - StaticSitesClientListStaticSiteBuildAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteBuildAppSettings +// method. func (client *StaticSitesClient) ListStaticSiteBuildAppSettings(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientListStaticSiteBuildAppSettingsOptions) (StaticSitesClientListStaticSiteBuildAppSettingsResponse, error) { req, err := client.listStaticSiteBuildAppSettingsCreateRequest(ctx, resourceGroupName, name, environmentName, options) if err != nil { @@ -2562,7 +3600,7 @@ func (client *StaticSitesClient) listStaticSiteBuildAppSettingsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2579,12 +3617,13 @@ func (client *StaticSitesClient) listStaticSiteBuildAppSettingsHandleResponse(re // ListStaticSiteBuildFunctionAppSettings - Description for Gets the application settings of a static site build. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// options - StaticSitesClientListStaticSiteBuildFunctionAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteBuildFunctionAppSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - options - StaticSitesClientListStaticSiteBuildFunctionAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteBuildFunctionAppSettings +// method. func (client *StaticSitesClient) ListStaticSiteBuildFunctionAppSettings(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientListStaticSiteBuildFunctionAppSettingsOptions) (StaticSitesClientListStaticSiteBuildFunctionAppSettingsResponse, error) { req, err := client.listStaticSiteBuildFunctionAppSettingsCreateRequest(ctx, resourceGroupName, name, environmentName, options) if err != nil { @@ -2624,7 +3663,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2640,13 +3679,13 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsHandleRes } // NewListStaticSiteBuildFunctionsPager - Description for Gets the functions of a particular static site build. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// options - StaticSitesClientListStaticSiteBuildFunctionsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteBuildFunctions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - options - StaticSitesClientListStaticSiteBuildFunctionsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteBuildFunctionsPager +// method. func (client *StaticSitesClient) NewListStaticSiteBuildFunctionsPager(resourceGroupName string, name string, environmentName string, options *StaticSitesClientListStaticSiteBuildFunctionsOptions) *runtime.Pager[StaticSitesClientListStaticSiteBuildFunctionsResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientListStaticSiteBuildFunctionsResponse]{ More: func(page StaticSitesClientListStaticSiteBuildFunctionsResponse) bool { @@ -2699,7 +3738,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionsCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2716,11 +3755,12 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionsHandleResponse(resp // ListStaticSiteConfiguredRoles - Description for Lists the roles configured for the static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientListStaticSiteConfiguredRolesOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteConfiguredRoles -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientListStaticSiteConfiguredRolesOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteConfiguredRoles +// method. func (client *StaticSitesClient) ListStaticSiteConfiguredRoles(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteConfiguredRolesOptions) (StaticSitesClientListStaticSiteConfiguredRolesResponse, error) { req, err := client.listStaticSiteConfiguredRolesCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2756,7 +3796,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2772,12 +3812,12 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesHandleResponse(res } // NewListStaticSiteCustomDomainsPager - Description for Gets all static site custom domains for a particular static site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site resource to search in. -// options - StaticSitesClientListStaticSiteCustomDomainsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteCustomDomains -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site resource to search in. +// - options - StaticSitesClientListStaticSiteCustomDomainsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteCustomDomainsPager +// method. func (client *StaticSitesClient) NewListStaticSiteCustomDomainsPager(resourceGroupName string, name string, options *StaticSitesClientListStaticSiteCustomDomainsOptions) *runtime.Pager[StaticSitesClientListStaticSiteCustomDomainsResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientListStaticSiteCustomDomainsResponse]{ More: func(page StaticSitesClientListStaticSiteCustomDomainsResponse) bool { @@ -2826,7 +3866,7 @@ func (client *StaticSitesClient) listStaticSiteCustomDomainsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2843,11 +3883,12 @@ func (client *StaticSitesClient) listStaticSiteCustomDomainsHandleResponse(resp // ListStaticSiteFunctionAppSettings - Description for Gets the application settings of a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientListStaticSiteFunctionAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteFunctionAppSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientListStaticSiteFunctionAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteFunctionAppSettings +// method. func (client *StaticSitesClient) ListStaticSiteFunctionAppSettings(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteFunctionAppSettingsOptions) (StaticSitesClientListStaticSiteFunctionAppSettingsResponse, error) { req, err := client.listStaticSiteFunctionAppSettingsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -2883,7 +3924,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2899,12 +3940,12 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsHandleResponse } // NewListStaticSiteFunctionsPager - Description for Gets the functions of a static site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientListStaticSiteFunctionsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteFunctions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientListStaticSiteFunctionsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteFunctionsPager +// method. func (client *StaticSitesClient) NewListStaticSiteFunctionsPager(resourceGroupName string, name string, options *StaticSitesClientListStaticSiteFunctionsOptions) *runtime.Pager[StaticSitesClientListStaticSiteFunctionsResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientListStaticSiteFunctionsResponse]{ More: func(page StaticSitesClientListStaticSiteFunctionsResponse) bool { @@ -2953,7 +3994,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2970,11 +4011,12 @@ func (client *StaticSitesClient) listStaticSiteFunctionsHandleResponse(resp *htt // ListStaticSiteSecrets - Description for Lists the secrets for an existing static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientListStaticSiteSecretsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteSecrets -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientListStaticSiteSecretsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteSecrets +// method. func (client *StaticSitesClient) ListStaticSiteSecrets(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteSecretsOptions) (StaticSitesClientListStaticSiteSecretsResponse, error) { req, err := client.listStaticSiteSecretsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -3010,7 +4052,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3026,13 +4068,13 @@ func (client *StaticSitesClient) listStaticSiteSecretsHandleResponse(resp *http. } // NewListStaticSiteUsersPager - Description for Gets the list of users of a static site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// authprovider - The auth provider for the users. -// options - StaticSitesClientListStaticSiteUsersOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteUsers -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - authprovider - The auth provider for the users. +// - options - StaticSitesClientListStaticSiteUsersOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteUsersPager +// method. func (client *StaticSitesClient) NewListStaticSiteUsersPager(resourceGroupName string, name string, authprovider string, options *StaticSitesClientListStaticSiteUsersOptions) *runtime.Pager[StaticSitesClientListStaticSiteUsersResponse] { return runtime.NewPager(runtime.PagingHandler[StaticSitesClientListStaticSiteUsersResponse]{ More: func(page StaticSitesClientListStaticSiteUsersResponse) bool { @@ -3085,7 +4127,7 @@ func (client *StaticSitesClient) listStaticSiteUsersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3102,11 +4144,12 @@ func (client *StaticSitesClient) listStaticSiteUsersHandleResponse(resp *http.Re // PreviewWorkflow - Description for Generates a preview workflow file for the static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// location - Location where you plan to create the static site. -// staticSitesWorkflowPreviewRequest - A JSON representation of the StaticSitesWorkflowPreviewRequest properties. See example. -// options - StaticSitesClientPreviewWorkflowOptions contains the optional parameters for the StaticSitesClient.PreviewWorkflow -// method. +// +// Generated from API version 2022-09-01 +// - location - Location where you plan to create the static site. +// - staticSitesWorkflowPreviewRequest - A JSON representation of the StaticSitesWorkflowPreviewRequest properties. See example. +// - options - StaticSitesClientPreviewWorkflowOptions contains the optional parameters for the StaticSitesClient.PreviewWorkflow +// method. func (client *StaticSitesClient) PreviewWorkflow(ctx context.Context, location string, staticSitesWorkflowPreviewRequest StaticSitesWorkflowPreviewRequest, options *StaticSitesClientPreviewWorkflowOptions) (StaticSitesClientPreviewWorkflowResponse, error) { req, err := client.previewWorkflowCreateRequest(ctx, location, staticSitesWorkflowPreviewRequest, options) if err != nil { @@ -3138,7 +4181,7 @@ func (client *StaticSitesClient) previewWorkflowCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSitesWorkflowPreviewRequest) @@ -3156,13 +4199,14 @@ func (client *StaticSitesClient) previewWorkflowHandleResponse(resp *http.Respon // BeginRegisterUserProvidedFunctionAppWithStaticSite - Description for Register a user provided function app with a static // site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// functionAppName - Name of the function app to register with the static site. -// staticSiteUserProvidedFunctionEnvelope - A JSON representation of the user provided function app properties. See example. -// options - StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions contains the optional parameters for -// the StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSite method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - functionAppName - Name of the function app to register with the static site. +// - staticSiteUserProvidedFunctionEnvelope - A JSON representation of the user provided function app properties. See example. +// - options - StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions contains the optional parameters for +// the StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSite method. func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticSite(ctx context.Context, resourceGroupName string, name string, functionAppName string, staticSiteUserProvidedFunctionEnvelope StaticSiteUserProvidedFunctionAppARMResource, options *StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions) (*runtime.Poller[StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.registerUserProvidedFunctionAppWithStaticSite(ctx, resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) @@ -3177,7 +4221,8 @@ func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticS // RegisterUserProvidedFunctionAppWithStaticSite - Description for Register a user provided function app with a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSite(ctx context.Context, resourceGroupName string, name string, functionAppName string, staticSiteUserProvidedFunctionEnvelope StaticSiteUserProvidedFunctionAppARMResource, options *StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions) (*http.Response, error) { req, err := client.registerUserProvidedFunctionAppWithStaticSiteCreateRequest(ctx, resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) if err != nil { @@ -3220,7 +4265,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteUserProvidedFunctionEnvelope) @@ -3229,14 +4274,15 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr // BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild - Description for Register a user provided function app with a // static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// environmentName - The stage site identifier. -// functionAppName - Name of the function app to register with the static site build. -// staticSiteUserProvidedFunctionEnvelope - A JSON representation of the user provided function app properties. See example. -// options - StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions contains the optional parameters -// for the StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - environmentName - The stage site identifier. +// - functionAppName - Name of the function app to register with the static site build. +// - staticSiteUserProvidedFunctionEnvelope - A JSON representation of the user provided function app properties. See example. +// - options - StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions contains the optional parameters +// for the StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild method. func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, staticSiteUserProvidedFunctionEnvelope StaticSiteUserProvidedFunctionAppARMResource, options *StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions) (*runtime.Poller[StaticSitesClientRegisterUserProvidedFunctionAppWithStaticSiteBuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.registerUserProvidedFunctionAppWithStaticSiteBuild(ctx, resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) @@ -3252,7 +4298,8 @@ func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticS // RegisterUserProvidedFunctionAppWithStaticSiteBuild - Description for Register a user provided function app with a static // site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, staticSiteUserProvidedFunctionEnvelope StaticSiteUserProvidedFunctionAppARMResource, options *StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions) (*http.Response, error) { req, err := client.registerUserProvidedFunctionAppWithStaticSiteBuildCreateRequest(ctx, resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, options) if err != nil { @@ -3299,7 +4346,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBu if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteUserProvidedFunctionEnvelope) @@ -3307,11 +4354,12 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBu // ResetStaticSiteAPIKey - Description for Resets the api key for an existing static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// options - StaticSitesClientResetStaticSiteAPIKeyOptions contains the optional parameters for the StaticSitesClient.ResetStaticSiteAPIKey -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - options - StaticSitesClientResetStaticSiteAPIKeyOptions contains the optional parameters for the StaticSitesClient.ResetStaticSiteAPIKey +// method. func (client *StaticSitesClient) ResetStaticSiteAPIKey(ctx context.Context, resourceGroupName string, name string, resetPropertiesEnvelope StaticSiteResetPropertiesARMResource, options *StaticSitesClientResetStaticSiteAPIKeyOptions) (StaticSitesClientResetStaticSiteAPIKeyResponse, error) { req, err := client.resetStaticSiteAPIKeyCreateRequest(ctx, resourceGroupName, name, resetPropertiesEnvelope, options) if err != nil { @@ -3347,7 +4395,7 @@ func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resetPropertiesEnvelope) @@ -3355,12 +4403,13 @@ func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context. // UnlinkBackend - Unlink a backend from a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// linkedBackendName - Name of the backend linked to the static site -// options - StaticSitesClientUnlinkBackendOptions contains the optional parameters for the StaticSitesClient.UnlinkBackend -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - linkedBackendName - Name of the backend linked to the static site +// - options - StaticSitesClientUnlinkBackendOptions contains the optional parameters for the StaticSitesClient.UnlinkBackend +// method. func (client *StaticSitesClient) UnlinkBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, options *StaticSitesClientUnlinkBackendOptions) (StaticSitesClientUnlinkBackendResponse, error) { req, err := client.unlinkBackendCreateRequest(ctx, resourceGroupName, name, linkedBackendName, options) if err != nil { @@ -3403,7 +4452,7 @@ func (client *StaticSitesClient) unlinkBackendCreateRequest(ctx context.Context, if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3411,13 +4460,14 @@ func (client *StaticSitesClient) unlinkBackendCreateRequest(ctx context.Context, // UnlinkBackendFromBuild - Unlink a backend from a static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// environmentName - The stage site identifier -// linkedBackendName - Name of the backend linked to the static site -// options - StaticSitesClientUnlinkBackendFromBuildOptions contains the optional parameters for the StaticSitesClient.UnlinkBackendFromBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier +// - linkedBackendName - Name of the backend linked to the static site +// - options - StaticSitesClientUnlinkBackendFromBuildOptions contains the optional parameters for the StaticSitesClient.UnlinkBackendFromBuild +// method. func (client *StaticSitesClient) UnlinkBackendFromBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, options *StaticSitesClientUnlinkBackendFromBuildOptions) (StaticSitesClientUnlinkBackendFromBuildResponse, error) { req, err := client.unlinkBackendFromBuildCreateRequest(ctx, resourceGroupName, name, environmentName, linkedBackendName, options) if err != nil { @@ -3464,21 +4514,155 @@ func (client *StaticSitesClient) unlinkBackendFromBuildCreateRequest(ctx context if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } +// UpdateBuildDatabaseConnection - Description for Create or update a database connection for a static site build +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier. +// - databaseConnectionName - Name of the database connection. +// - databaseConnectionRequestEnvelope - A JSON representation of the database connection request properties +// - options - StaticSitesClientUpdateBuildDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.UpdateBuildDatabaseConnection +// method. +func (client *StaticSitesClient) UpdateBuildDatabaseConnection(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnectionPatchRequest, options *StaticSitesClientUpdateBuildDatabaseConnectionOptions) (StaticSitesClientUpdateBuildDatabaseConnectionResponse, error) { + req, err := client.updateBuildDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, environmentName, databaseConnectionName, databaseConnectionRequestEnvelope, options) + if err != nil { + return StaticSitesClientUpdateBuildDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientUpdateBuildDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientUpdateBuildDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return client.updateBuildDatabaseConnectionHandleResponse(resp) +} + +// updateBuildDatabaseConnectionCreateRequest creates the UpdateBuildDatabaseConnection request. +func (client *StaticSitesClient) updateBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnectionPatchRequest, options *StaticSitesClientUpdateBuildDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if environmentName == "" { + return nil, errors.New("parameter environmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{environmentName}", url.PathEscape(environmentName)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope) +} + +// updateBuildDatabaseConnectionHandleResponse handles the UpdateBuildDatabaseConnection response. +func (client *StaticSitesClient) updateBuildDatabaseConnectionHandleResponse(resp *http.Response) (StaticSitesClientUpdateBuildDatabaseConnectionResponse, error) { + result := StaticSitesClientUpdateBuildDatabaseConnectionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientUpdateBuildDatabaseConnectionResponse{}, err + } + return result, nil +} + +// UpdateDatabaseConnection - Description for Create or update a database connection for a static site +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - databaseConnectionName - Name of the database connection. +// - databaseConnectionRequestEnvelope - A JSON representation of the database connection request properties +// - options - StaticSitesClientUpdateDatabaseConnectionOptions contains the optional parameters for the StaticSitesClient.UpdateDatabaseConnection +// method. +func (client *StaticSitesClient) UpdateDatabaseConnection(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnectionPatchRequest, options *StaticSitesClientUpdateDatabaseConnectionOptions) (StaticSitesClientUpdateDatabaseConnectionResponse, error) { + req, err := client.updateDatabaseConnectionCreateRequest(ctx, resourceGroupName, name, databaseConnectionName, databaseConnectionRequestEnvelope, options) + if err != nil { + return StaticSitesClientUpdateDatabaseConnectionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StaticSitesClientUpdateDatabaseConnectionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StaticSitesClientUpdateDatabaseConnectionResponse{}, runtime.NewResponseError(resp) + } + return client.updateDatabaseConnectionHandleResponse(resp) +} + +// updateDatabaseConnectionCreateRequest creates the UpdateDatabaseConnection request. +func (client *StaticSitesClient) updateDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnectionPatchRequest, options *StaticSitesClientUpdateDatabaseConnectionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/databaseConnections/{databaseConnectionName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if databaseConnectionName == "" { + return nil, errors.New("parameter databaseConnectionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseConnectionName}", url.PathEscape(databaseConnectionName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope) +} + +// updateDatabaseConnectionHandleResponse handles the UpdateDatabaseConnection response. +func (client *StaticSitesClient) updateDatabaseConnectionHandleResponse(resp *http.Response) (StaticSitesClientUpdateDatabaseConnectionResponse, error) { + result := StaticSitesClientUpdateDatabaseConnectionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.DatabaseConnection); err != nil { + return StaticSitesClientUpdateDatabaseConnectionResponse{}, err + } + return result, nil +} + // UpdateStaticSite - Description for Creates a new static site in an existing resource group, or updates an existing static // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site to create or update. -// staticSiteEnvelope - A JSON representation of the staticsite properties. See example. -// options - StaticSitesClientUpdateStaticSiteOptions contains the optional parameters for the StaticSitesClient.UpdateStaticSite -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site to create or update. +// - staticSiteEnvelope - A JSON representation of the staticsite properties. See example. +// - options - StaticSitesClientUpdateStaticSiteOptions contains the optional parameters for the StaticSitesClient.UpdateStaticSite +// method. func (client *StaticSitesClient) UpdateStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSitePatchResource, options *StaticSitesClientUpdateStaticSiteOptions) (StaticSitesClientUpdateStaticSiteResponse, error) { req, err := client.updateStaticSiteCreateRequest(ctx, resourceGroupName, name, staticSiteEnvelope, options) if err != nil { @@ -3514,7 +4698,7 @@ func (client *StaticSitesClient) updateStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteEnvelope) @@ -3531,14 +4715,15 @@ func (client *StaticSitesClient) updateStaticSiteHandleResponse(resp *http.Respo // UpdateStaticSiteUser - Description for Updates a user entry with the listed roles // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// authprovider - The auth provider for this user. -// userid - The user id of the user. -// staticSiteUserEnvelope - A JSON representation of the StaticSiteUser properties. See example. -// options - StaticSitesClientUpdateStaticSiteUserOptions contains the optional parameters for the StaticSitesClient.UpdateStaticSiteUser -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - authprovider - The auth provider for this user. +// - userid - The user id of the user. +// - staticSiteUserEnvelope - A JSON representation of the StaticSiteUser properties. See example. +// - options - StaticSitesClientUpdateStaticSiteUserOptions contains the optional parameters for the StaticSitesClient.UpdateStaticSiteUser +// method. func (client *StaticSitesClient) UpdateStaticSiteUser(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, staticSiteUserEnvelope StaticSiteUserARMResource, options *StaticSitesClientUpdateStaticSiteUserOptions) (StaticSitesClientUpdateStaticSiteUserResponse, error) { req, err := client.updateStaticSiteUserCreateRequest(ctx, resourceGroupName, name, authprovider, userid, staticSiteUserEnvelope, options) if err != nil { @@ -3582,7 +4767,7 @@ func (client *StaticSitesClient) updateStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteUserEnvelope) @@ -3599,13 +4784,14 @@ func (client *StaticSitesClient) updateStaticSiteUserHandleResponse(resp *http.R // BeginValidateBackend - Validates that a backend can be linked to a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// linkedBackendName - Name of the linked backend that should be retrieved -// staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties -// options - StaticSitesClientBeginValidateBackendOptions contains the optional parameters for the StaticSitesClient.BeginValidateBackend -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - linkedBackendName - Name of the linked backend that should be retrieved +// - staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties +// - options - StaticSitesClientBeginValidateBackendOptions contains the optional parameters for the StaticSitesClient.BeginValidateBackend +// method. func (client *StaticSitesClient) BeginValidateBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendOptions) (*runtime.Poller[StaticSitesClientValidateBackendResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.validateBackend(ctx, resourceGroupName, name, linkedBackendName, staticSiteLinkedBackendEnvelope, options) @@ -3620,7 +4806,8 @@ func (client *StaticSitesClient) BeginValidateBackend(ctx context.Context, resou // ValidateBackend - Validates that a backend can be linked to a static site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) validateBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendOptions) (*http.Response, error) { req, err := client.validateBackendCreateRequest(ctx, resourceGroupName, name, linkedBackendName, staticSiteLinkedBackendEnvelope, options) if err != nil { @@ -3660,7 +4847,7 @@ func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope) @@ -3668,14 +4855,15 @@ func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Contex // BeginValidateBackendForBuild - Validates that a backend can be linked to a static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site -// environmentName - The stage site identifier -// linkedBackendName - Name of the linked backend that should be retrieved -// staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties -// options - StaticSitesClientBeginValidateBackendForBuildOptions contains the optional parameters for the StaticSitesClient.BeginValidateBackendForBuild -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site +// - environmentName - The stage site identifier +// - linkedBackendName - Name of the linked backend that should be retrieved +// - staticSiteLinkedBackendEnvelope - A JSON representation of the linked backend request properties +// - options - StaticSitesClientBeginValidateBackendForBuildOptions contains the optional parameters for the StaticSitesClient.BeginValidateBackendForBuild +// method. func (client *StaticSitesClient) BeginValidateBackendForBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendForBuildOptions) (*runtime.Poller[StaticSitesClientValidateBackendForBuildResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.validateBackendForBuild(ctx, resourceGroupName, name, environmentName, linkedBackendName, staticSiteLinkedBackendEnvelope, options) @@ -3690,7 +4878,8 @@ func (client *StaticSitesClient) BeginValidateBackendForBuild(ctx context.Contex // ValidateBackendForBuild - Validates that a backend can be linked to a static site build // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) validateBackendForBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendForBuildOptions) (*http.Response, error) { req, err := client.validateBackendForBuildCreateRequest(ctx, resourceGroupName, name, environmentName, linkedBackendName, staticSiteLinkedBackendEnvelope, options) if err != nil { @@ -3734,7 +4923,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope) @@ -3743,14 +4932,15 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex // BeginValidateCustomDomainCanBeAddedToStaticSite - Description for Validates a particular custom domain can be added to // a static site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the static site. -// domainName - The custom domain to validate. -// staticSiteCustomDomainRequestPropertiesEnvelope - A JSON representation of the static site custom domain request properties. -// See example. -// options - StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions contains the optional parameters for -// the StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the static site. +// - domainName - The custom domain to validate. +// - staticSiteCustomDomainRequestPropertiesEnvelope - A JSON representation of the static site custom domain request properties. +// See example. +// - options - StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions contains the optional parameters for +// the StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite method. func (client *StaticSitesClient) BeginValidateCustomDomainCanBeAddedToStaticSite(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions) (*runtime.Poller[StaticSitesClientValidateCustomDomainCanBeAddedToStaticSiteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.validateCustomDomainCanBeAddedToStaticSite(ctx, resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) @@ -3766,7 +4956,8 @@ func (client *StaticSitesClient) BeginValidateCustomDomainCanBeAddedToStaticSite // ValidateCustomDomainCanBeAddedToStaticSite - Description for Validates a particular custom domain can be added to a static // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSite(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions) (*http.Response, error) { req, err := client.validateCustomDomainCanBeAddedToStaticSiteCreateRequest(ctx, resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, options) if err != nil { @@ -3806,7 +4997,7 @@ func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSiteCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, staticSiteCustomDomainRequestPropertiesEnvelope) diff --git a/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go deleted file mode 100644 index a77ade3585ca..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go +++ /dev/null @@ -1,1537 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GenerateStaticSiteWorkflowPreview.json -func ExampleStaticSitesClient_PreviewWorkflow() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.PreviewWorkflow(ctx, - "West US 2", - armappservice.StaticSitesWorkflowPreviewRequest{ - Properties: &armappservice.StaticSitesWorkflowPreviewRequestProperties{ - Branch: to.Ptr("master"), - BuildProperties: &armappservice.StaticSiteBuildProperties{ - APILocation: to.Ptr("api"), - AppArtifactLocation: to.Ptr("build"), - AppLocation: to.Ptr("app"), - }, - RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetAllStaticSites.json -func ExampleStaticSitesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSites.json -func ExampleStaticSitesClient_NewGetStaticSitesByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetStaticSitesByResourceGroupPager("rg", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSite.json -func ExampleStaticSitesClient_GetStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetStaticSite(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSite.json -func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdateStaticSite(ctx, - "rg", - "testStaticSite0", - armappservice.StaticSiteARMResource{ - Location: to.Ptr("West US 2"), - Properties: &armappservice.StaticSite{ - Branch: to.Ptr("master"), - BuildProperties: &armappservice.StaticSiteBuildProperties{ - APILocation: to.Ptr("api"), - AppArtifactLocation: to.Ptr("build"), - AppLocation: to.Ptr("app"), - }, - RepositoryToken: to.Ptr("repoToken123"), - RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - }, - SKU: &armappservice.SKUDescription{ - Name: to.Ptr("Basic"), - Tier: to.Ptr("Basic"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteStaticSite.json -func ExampleStaticSitesClient_BeginDeleteStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeleteStaticSite(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/PatchStaticSite.json -func ExampleStaticSitesClient_UpdateStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateStaticSite(ctx, - "rg", - "testStaticSite0", - armappservice.StaticSitePatchResource{ - Properties: &armappservice.StaticSite{}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteUsers.json -func ExampleStaticSitesClient_NewListStaticSiteUsersPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListStaticSiteUsersPager("rg", - "testStaticSite0", - "all", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteStaticSiteUser.json -func ExampleStaticSitesClient_DeleteStaticSiteUser() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeleteStaticSiteUser(ctx, - "rg", - "testStaticSite0", - "aad", - "1234", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UpdateStaticSiteUser.json -func ExampleStaticSitesClient_UpdateStaticSiteUser() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateStaticSiteUser(ctx, - "rg", - "testStaticSite0", - "aad", - "1234", - armappservice.StaticSiteUserARMResource{ - Properties: &armappservice.StaticSiteUserARMResourceProperties{ - Roles: to.Ptr("contributor"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuilds.json -func ExampleStaticSitesClient_NewGetStaticSiteBuildsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetStaticSiteBuildsPager("rg", - "testStaticSite0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteBuild.json -func ExampleStaticSitesClient_GetStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetStaticSiteBuild(ctx, - "rg", - "testStaticSite0", - "12", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteStaticSiteBuild.json -func ExampleStaticSitesClient_BeginDeleteStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeleteStaticSiteBuild(ctx, - "rg", - "testStaticSite0", - "12", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateStaticSiteBuildAppSettings(ctx, - "rg", - "testStaticSite0", - "12", - armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateStaticSiteBuildFunctionAppSettings(ctx, - "rg", - "testStaticSite0", - "12", - armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteBuildFunctions.json -func ExampleStaticSitesClient_NewListStaticSiteBuildFunctionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListStaticSiteBuildFunctionsPager("rg", - "testStaticSite0", - "default", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteBuildAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteBuildAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListStaticSiteBuildAppSettings(ctx, - "rg", - "testStaticSite0", - "12", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteBuildFunctionAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteBuildFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListStaticSiteBuildFunctionAppSettings(ctx, - "rg", - "testStaticSite0", - "12", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json -func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSiteBuildPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetUserProvidedFunctionAppsForStaticSiteBuildPager("rg", - "testStaticSite0", - "default", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json -func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetUserProvidedFunctionAppForStaticSiteBuild(ctx, - "rg", - "testStaticSite0", - "default", - "testFunctionApp", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json -func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild(ctx, - "rg", - "testStaticSite0", - "default", - "testFunctionApp", - armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - FunctionAppRegion: to.Ptr("West US 2"), - FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - }, - }, - &armappservice.StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions{IsForced: to.Ptr(true)}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json -func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DetachUserProvidedFunctionAppFromStaticSiteBuild(ctx, - "rg", - "testStaticSite0", - "12", - "testFunctionApp", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StaticSiteBuildZipDeploy.json -func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSiteBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateZipDeploymentForStaticSiteBuild(ctx, - "rg", - "testStaticSite0", - "12", - armappservice.StaticSiteZipDeploymentARMResource{ - Properties: &armappservice.StaticSiteZipDeployment{ - APIZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip"), - AppZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip"), - DeploymentTitle: to.Ptr("Update index.html"), - FunctionLanguage: to.Ptr("testFunctionLanguage"), - Provider: to.Ptr("testProvider"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSiteAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateStaticSiteAppSettings(ctx, - "rg", - "testStaticSite0", - armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json -func ExampleStaticSitesClient_CreateOrUpdateStaticSiteFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateStaticSiteFunctionAppSettings(ctx, - "rg", - "testStaticSite0", - armappservice.StringDictionary{ - Properties: map[string]*string{ - "setting1": to.Ptr("someval"), - "setting2": to.Ptr("someval2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateUserRolesInvitationLink.json -func ExampleStaticSitesClient_CreateUserRolesInvitationLink() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateUserRolesInvitationLink(ctx, - "rg", - "testStaticSite0", - armappservice.StaticSiteUserInvitationRequestResource{ - Properties: &armappservice.StaticSiteUserInvitationRequestResourceProperties{ - Domain: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - NumHoursToExpiration: to.Ptr[int32](1), - Provider: to.Ptr("aad"), - Roles: to.Ptr("admin,contributor"), - UserDetails: to.Ptr("username"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteCustomDomains.json -func ExampleStaticSitesClient_NewListStaticSiteCustomDomainsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListStaticSiteCustomDomainsPager("rg", - "testStaticSite0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetStaticSiteCustomDomain.json -func ExampleStaticSitesClient_GetStaticSiteCustomDomain() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetStaticSiteCustomDomain(ctx, - "rg", - "testStaticSite0", - "custom.domain.net", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/CreateOrUpdateStaticSiteCustomDomain.json -func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSiteCustomDomain() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdateStaticSiteCustomDomain(ctx, - "rg", - "testStaticSite0", - "custom.domain.net", - armappservice.StaticSiteCustomDomainRequestPropertiesARMResource{ - Properties: &armappservice.StaticSiteCustomDomainRequestPropertiesARMResourceProperties{}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteStaticSiteCustomDomain.json -func ExampleStaticSitesClient_BeginDeleteStaticSiteCustomDomain() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeleteStaticSiteCustomDomain(ctx, - "rg", - "testStaticSite0", - "custom.domain.net", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateStaticSiteCustomDomain.json -func ExampleStaticSitesClient_BeginValidateCustomDomainCanBeAddedToStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginValidateCustomDomainCanBeAddedToStaticSite(ctx, - "rg", - "testStaticSite0", - "custom.domain.net", - armappservice.StaticSiteCustomDomainRequestPropertiesARMResource{ - Properties: &armappservice.StaticSiteCustomDomainRequestPropertiesARMResourceProperties{}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DetachStaticSite.json -func ExampleStaticSitesClient_BeginDetachStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDetachStaticSite(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteFunctions.json -func ExampleStaticSitesClient_NewListStaticSiteFunctionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListStaticSiteFunctionsPager("rg", - "testStaticSite0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListStaticSiteAppSettings(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteConfiguredRoles.json -func ExampleStaticSitesClient_ListStaticSiteConfiguredRoles() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListStaticSiteConfiguredRoles(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteFunctionAppSettings.json -func ExampleStaticSitesClient_ListStaticSiteFunctionAppSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListStaticSiteFunctionAppSettings(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListStaticSiteSecrets.json -func ExampleStaticSitesClient_ListStaticSiteSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListStaticSiteSecrets(ctx, - "rg", - "testStaticSite0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateEndpointConnectionList.json -func ExampleStaticSitesClient_NewGetPrivateEndpointConnectionListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetPrivateEndpointConnectionListPager("rg", - "testStaticSite0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateEndpointConnection.json -func ExampleStaticSitesClient_GetPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateEndpointConnection(ctx, - "rg", - "testSite", - "connection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json -func ExampleStaticSitesClient_BeginApproveOrRejectPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginApproveOrRejectPrivateEndpointConnection(ctx, - "rg", - "testSite", - "connection", - armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteSitePrivateEndpointConnection.json -func ExampleStaticSitesClient_BeginDeletePrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeletePrivateEndpointConnection(ctx, - "rg", - "testSite", - "connection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateLinkResources.json -func ExampleStaticSitesClient_GetPrivateLinkResources() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateLinkResources(ctx, - "rg", - "testSite", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetUserProvidedFunctionAppsForStaticSite.json -func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSitePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetUserProvidedFunctionAppsForStaticSitePager("rg", - "testStaticSite0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetUserProvidedFunctionAppForStaticSite.json -func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetUserProvidedFunctionAppForStaticSite(ctx, - "rg", - "testStaticSite0", - "testFunctionApp", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json -func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginRegisterUserProvidedFunctionAppWithStaticSite(ctx, - "rg", - "testStaticSite0", - "testFunctionApp", - armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - FunctionAppRegion: to.Ptr("West US 2"), - FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - }, - }, - &armappservice.StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions{IsForced: to.Ptr(true)}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json -func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DetachUserProvidedFunctionAppFromStaticSite(ctx, - "rg", - "testStaticSite0", - "testFunctionApp", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StaticSiteZipDeploy.json -func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSite() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateZipDeploymentForStaticSite(ctx, - "rg", - "testStaticSite0", - armappservice.StaticSiteZipDeploymentARMResource{ - Properties: &armappservice.StaticSiteZipDeployment{ - APIZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip"), - AppZipURL: to.Ptr("https://teststorageaccount.net/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip"), - DeploymentTitle: to.Ptr("Update index.html"), - FunctionLanguage: to.Ptr("testFunctionLanguage"), - Provider: to.Ptr("testProvider"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSite.json -func ExampleStaticSitesClient_BeginValidateBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginValidateBackend(ctx, - "rg", - "testStaticSite0", - "testBackend", - armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json -func ExampleStaticSitesClient_BeginValidateBackendForBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginValidateBackendForBuild(ctx, - "rg", - "testStaticSite0", - "default", - "testBackend", - armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSite.json -func ExampleStaticSitesClient_NewGetLinkedBackendsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetLinkedBackendsPager("rg", - "testStaticSite0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json -func ExampleStaticSitesClient_NewGetLinkedBackendsForBuildPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetLinkedBackendsForBuildPager("rg", - "testStaticSite0", - "default", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSite.json -func ExampleStaticSitesClient_GetLinkedBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetLinkedBackend(ctx, - "rg", - "testStaticSite0", - "testBackend", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSite.json -func ExampleStaticSitesClient_BeginLinkBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginLinkBackend(ctx, - "rg", - "testStaticSite0", - "testBackend", - armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSite.json -func ExampleStaticSitesClient_UnlinkBackend() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.UnlinkBackend(ctx, - "rg", - "testStaticSite0", - "testBackend", - &armappservice.StaticSitesClientUnlinkBackendOptions{IsCleaningAuthConfig: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetLinkedBackendForStaticSiteBuild.json -func ExampleStaticSitesClient_GetLinkedBackendForBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetLinkedBackendForBuild(ctx, - "rg", - "testStaticSite0", - "default", - "testBackend", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/LinkBackendToStaticSiteBuild.json -func ExampleStaticSitesClient_BeginLinkBackendToBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginLinkBackendToBuild(ctx, - "rg", - "testStaticSite0", - "default", - "testBackend", - armappservice.StaticSiteLinkedBackendARMResource{ - Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - Region: to.Ptr("West US 2"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UnlinkBackendFromStaticSiteBuild.json -func ExampleStaticSitesClient_UnlinkBackendFromBuild() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewStaticSitesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.UnlinkBackendFromBuild(ctx, - "rg", - "testStaticSite0", - "12", - "testBackend", - &armappservice.StaticSitesClientUnlinkBackendFromBuildOptions{IsCleaningAuthConfig: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/time_rfc3339.go b/sdk/resourcemanager/appservice/armappservice/time_rfc3339.go index 6fbddbab455e..170ed1b119a3 100644 --- a/sdk/resourcemanager/appservice/armappservice/time_rfc3339.go +++ b/sdk/resourcemanager/appservice/armappservice/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go index bf1403e19693..065015089a02 100644 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go @@ -32,9 +32,9 @@ type TopLevelDomainsClient struct { } // NewTopLevelDomainsClient creates a new instance of TopLevelDomainsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTopLevelDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopLevelDomainsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,9 +57,10 @@ func NewTopLevelDomainsClient(subscriptionID string, credential azcore.TokenCred // Get - Description for Get details of a top-level domain. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// name - Name of the top-level domain. -// options - TopLevelDomainsClientGetOptions contains the optional parameters for the TopLevelDomainsClient.Get method. +// +// Generated from API version 2022-09-01 +// - name - Name of the top-level domain. +// - options - TopLevelDomainsClientGetOptions contains the optional parameters for the TopLevelDomainsClient.Get method. func (client *TopLevelDomainsClient) Get(ctx context.Context, name string, options *TopLevelDomainsClientGetOptions) (TopLevelDomainsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, name, options) if err != nil { @@ -91,7 +92,7 @@ func (client *TopLevelDomainsClient) getCreateRequest(ctx context.Context, name return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -107,9 +108,10 @@ func (client *TopLevelDomainsClient) getHandleResponse(resp *http.Response) (Top } // NewListPager - Description for Get all top-level domains supported for registration. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - TopLevelDomainsClientListOptions contains the optional parameters for the TopLevelDomainsClient.List method. +// +// Generated from API version 2022-09-01 +// - options - TopLevelDomainsClientListOptions contains the optional parameters for the TopLevelDomainsClient.NewListPager +// method. func (client *TopLevelDomainsClient) NewListPager(options *TopLevelDomainsClientListOptions) *runtime.Pager[TopLevelDomainsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[TopLevelDomainsClientListResponse]{ More: func(page TopLevelDomainsClientListResponse) bool { @@ -150,7 +152,7 @@ func (client *TopLevelDomainsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -166,12 +168,12 @@ func (client *TopLevelDomainsClient) listHandleResponse(resp *http.Response) (To } // NewListAgreementsPager - Description for Gets all legal agreements that user needs to accept before purchasing a domain. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// name - Name of the top-level domain. -// agreementOption - Domain agreement options. -// options - TopLevelDomainsClientListAgreementsOptions contains the optional parameters for the TopLevelDomainsClient.ListAgreements -// method. +// +// Generated from API version 2022-09-01 +// - name - Name of the top-level domain. +// - agreementOption - Domain agreement options. +// - options - TopLevelDomainsClientListAgreementsOptions contains the optional parameters for the TopLevelDomainsClient.NewListAgreementsPager +// method. func (client *TopLevelDomainsClient) NewListAgreementsPager(name string, agreementOption TopLevelDomainAgreementOption, options *TopLevelDomainsClientListAgreementsOptions) *runtime.Pager[TopLevelDomainsClientListAgreementsResponse] { return runtime.NewPager(runtime.PagingHandler[TopLevelDomainsClientListAgreementsResponse]{ More: func(page TopLevelDomainsClientListAgreementsResponse) bool { @@ -216,7 +218,7 @@ func (client *TopLevelDomainsClient) listAgreementsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, agreementOption) diff --git a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go deleted file mode 100644 index 29da2be5956f..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go +++ /dev/null @@ -1,92 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListTopLevelDomains.json -func ExampleTopLevelDomainsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewTopLevelDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/GetTopLevelDomain.json -func ExampleTopLevelDomainsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewTopLevelDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "com", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2022-03-01/examples/ListTopLevelDomainAgreements.json -func ExampleTopLevelDomainsClient_NewListAgreementsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewTopLevelDomainsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAgreementsPager("in", - armappservice.TopLevelDomainAgreementOption{ - ForTransfer: to.Ptr(false), - IncludePrivacy: to.Ptr(true), - }, - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/webapps_client.go b/sdk/resourcemanager/appservice/armappservice/webapps_client.go index b9b52d85ad25..ae7eaf39e364 100644 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/webapps_client.go @@ -33,9 +33,9 @@ type WebAppsClient struct { } // NewWebAppsClient creates a new instance of WebAppsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWebAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebAppsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewWebAppsClient(subscriptionID string, credential azcore.TokenCredential, // AddPremierAddOn - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// premierAddOn - A JSON representation of the edited premier add-on. -// options - WebAppsClientAddPremierAddOnOptions contains the optional parameters for the WebAppsClient.AddPremierAddOn method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - premierAddOn - A JSON representation of the edited premier add-on. +// - options - WebAppsClientAddPremierAddOnOptions contains the optional parameters for the WebAppsClient.AddPremierAddOn method. func (client *WebAppsClient) AddPremierAddOn(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOn, options *WebAppsClientAddPremierAddOnOptions) (WebAppsClientAddPremierAddOnResponse, error) { req, err := client.addPremierAddOnCreateRequest(ctx, resourceGroupName, name, premierAddOnName, premierAddOn, options) if err != nil { @@ -103,7 +104,7 @@ func (client *WebAppsClient) addPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, premierAddOn) @@ -120,15 +121,16 @@ func (client *WebAppsClient) addPremierAddOnHandleResponse(resp *http.Response) // AddPremierAddOnSlot - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production -// slot. -// premierAddOn - A JSON representation of the edited premier add-on. -// options - WebAppsClientAddPremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.AddPremierAddOnSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production +// slot. +// - premierAddOn - A JSON representation of the edited premier add-on. +// - options - WebAppsClientAddPremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.AddPremierAddOnSlot +// method. func (client *WebAppsClient) AddPremierAddOnSlot(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, premierAddOn PremierAddOn, options *WebAppsClientAddPremierAddOnSlotOptions) (WebAppsClientAddPremierAddOnSlotResponse, error) { req, err := client.addPremierAddOnSlotCreateRequest(ctx, resourceGroupName, name, premierAddOnName, slot, premierAddOn, options) if err != nil { @@ -172,7 +174,7 @@ func (client *WebAppsClient) addPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, premierAddOn) @@ -189,11 +191,12 @@ func (client *WebAppsClient) addPremierAddOnSlotHandleResponse(resp *http.Respon // AnalyzeCustomHostname - Description for Analyze a custom hostname. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientAnalyzeCustomHostnameOptions contains the optional parameters for the WebAppsClient.AnalyzeCustomHostname -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientAnalyzeCustomHostnameOptions contains the optional parameters for the WebAppsClient.AnalyzeCustomHostname +// method. func (client *WebAppsClient) AnalyzeCustomHostname(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientAnalyzeCustomHostnameOptions) (WebAppsClientAnalyzeCustomHostnameResponse, error) { req, err := client.analyzeCustomHostnameCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -232,7 +235,7 @@ func (client *WebAppsClient) analyzeCustomHostnameCreateRequest(ctx context.Cont if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -249,12 +252,13 @@ func (client *WebAppsClient) analyzeCustomHostnameHandleResponse(resp *http.Resp // AnalyzeCustomHostnameSlot - Description for Analyze a custom hostname. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientAnalyzeCustomHostnameSlotOptions contains the optional parameters for the WebAppsClient.AnalyzeCustomHostnameSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientAnalyzeCustomHostnameSlotOptions contains the optional parameters for the WebAppsClient.AnalyzeCustomHostnameSlot +// method. func (client *WebAppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientAnalyzeCustomHostnameSlotOptions) (WebAppsClientAnalyzeCustomHostnameSlotResponse, error) { req, err := client.analyzeCustomHostnameSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -297,7 +301,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotCreateRequest(ctx context. if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -315,12 +319,13 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotHandleResponse(resp *http. // ApplySlotConfigToProduction - Description for Applies the configuration settings from the target slot onto the current // slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slotSwapEntity - JSON object that contains the target slot name. See example. -// options - WebAppsClientApplySlotConfigToProductionOptions contains the optional parameters for the WebAppsClient.ApplySlotConfigToProduction -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slotSwapEntity - JSON object that contains the target slot name. See example. +// - options - WebAppsClientApplySlotConfigToProductionOptions contains the optional parameters for the WebAppsClient.ApplySlotConfigToProduction +// method. func (client *WebAppsClient) ApplySlotConfigToProduction(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientApplySlotConfigToProductionOptions) (WebAppsClientApplySlotConfigToProductionResponse, error) { req, err := client.applySlotConfigToProductionCreateRequest(ctx, resourceGroupName, name, slotSwapEntity, options) if err != nil { @@ -356,7 +361,7 @@ func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotSwapEntity) @@ -364,13 +369,14 @@ func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx contex // ApplySlotConfigurationSlot - Description for Applies the configuration settings from the target slot onto the current slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. -// slotSwapEntity - JSON object that contains the target slot name. See example. -// options - WebAppsClientApplySlotConfigurationSlotOptions contains the optional parameters for the WebAppsClient.ApplySlotConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. +// - slotSwapEntity - JSON object that contains the target slot name. See example. +// - options - WebAppsClientApplySlotConfigurationSlotOptions contains the optional parameters for the WebAppsClient.ApplySlotConfigurationSlot +// method. func (client *WebAppsClient) ApplySlotConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientApplySlotConfigurationSlotOptions) (WebAppsClientApplySlotConfigurationSlotResponse, error) { req, err := client.applySlotConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, slotSwapEntity, options) if err != nil { @@ -410,7 +416,7 @@ func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotSwapEntity) @@ -418,11 +424,12 @@ func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context // BeginApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection +// method. func (client *WebAppsClient) BeginApproveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*runtime.Poller[WebAppsClientApproveOrRejectPrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.approveOrRejectPrivateEndpointConnection(ctx, resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) @@ -437,7 +444,8 @@ func (client *WebAppsClient) BeginApproveOrRejectPrivateEndpointConnection(ctx c // ApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) approveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.approveOrRejectPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, options) if err != nil { @@ -477,7 +485,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, privateEndpointWrapper) @@ -485,11 +493,12 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateReque // BeginApproveOrRejectPrivateEndpointConnectionSlot - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions contains the optional parameters for the -// WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions contains the optional parameters for the +// WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot method. func (client *WebAppsClient) BeginApproveOrRejectPrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions) (*runtime.Poller[WebAppsClientApproveOrRejectPrivateEndpointConnectionSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.approveOrRejectPrivateEndpointConnectionSlot(ctx, resourceGroupName, name, privateEndpointConnectionName, slot, privateEndpointWrapper, options) @@ -504,7 +513,8 @@ func (client *WebAppsClient) BeginApproveOrRejectPrivateEndpointConnectionSlot(c // ApproveOrRejectPrivateEndpointConnectionSlot - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions) (*http.Response, error) { req, err := client.approveOrRejectPrivateEndpointConnectionSlotCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, slot, privateEndpointWrapper, options) if err != nil { @@ -548,7 +558,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, privateEndpointWrapper) @@ -556,11 +566,12 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateR // Backup - Description for Creates a backup of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// request - Backup configuration. You can use the JSON response from the POST action as input here. -// options - WebAppsClientBackupOptions contains the optional parameters for the WebAppsClient.Backup method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - request - Backup configuration. You can use the JSON response from the POST action as input here. +// - options - WebAppsClientBackupOptions contains the optional parameters for the WebAppsClient.Backup method. func (client *WebAppsClient) Backup(ctx context.Context, resourceGroupName string, name string, request BackupRequest, options *WebAppsClientBackupOptions) (WebAppsClientBackupResponse, error) { req, err := client.backupCreateRequest(ctx, resourceGroupName, name, request, options) if err != nil { @@ -596,7 +607,7 @@ func (client *WebAppsClient) backupCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -613,12 +624,13 @@ func (client *WebAppsClient) backupHandleResponse(resp *http.Response) (WebAppsC // BackupSlot - Description for Creates a backup of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. -// request - Backup configuration. You can use the JSON response from the POST action as input here. -// options - WebAppsClientBackupSlotOptions contains the optional parameters for the WebAppsClient.BackupSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. +// - request - Backup configuration. You can use the JSON response from the POST action as input here. +// - options - WebAppsClientBackupSlotOptions contains the optional parameters for the WebAppsClient.BackupSlot method. func (client *WebAppsClient) BackupSlot(ctx context.Context, resourceGroupName string, name string, slot string, request BackupRequest, options *WebAppsClientBackupSlotOptions) (WebAppsClientBackupSlotResponse, error) { req, err := client.backupSlotCreateRequest(ctx, resourceGroupName, name, slot, request, options) if err != nil { @@ -658,7 +670,7 @@ func (client *WebAppsClient) backupSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -675,13 +687,14 @@ func (client *WebAppsClient) backupSlotHandleResponse(resp *http.Response) (WebA // CreateDeployment - Description for Create a deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - ID of an existing deployment. -// deployment - Deployment details. -// options - WebAppsClientCreateDeploymentOptions contains the optional parameters for the WebAppsClient.CreateDeployment -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - ID of an existing deployment. +// - deployment - Deployment details. +// - options - WebAppsClientCreateDeploymentOptions contains the optional parameters for the WebAppsClient.CreateDeployment +// method. func (client *WebAppsClient) CreateDeployment(ctx context.Context, resourceGroupName string, name string, id string, deployment Deployment, options *WebAppsClientCreateDeploymentOptions) (WebAppsClientCreateDeploymentResponse, error) { req, err := client.createDeploymentCreateRequest(ctx, resourceGroupName, name, id, deployment, options) if err != nil { @@ -721,7 +734,7 @@ func (client *WebAppsClient) createDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, deployment) @@ -738,14 +751,15 @@ func (client *WebAppsClient) createDeploymentHandleResponse(resp *http.Response) // CreateDeploymentSlot - Description for Create a deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - ID of an existing deployment. -// slot - Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. -// deployment - Deployment details. -// options - WebAppsClientCreateDeploymentSlotOptions contains the optional parameters for the WebAppsClient.CreateDeploymentSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - ID of an existing deployment. +// - slot - Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. +// - deployment - Deployment details. +// - options - WebAppsClientCreateDeploymentSlotOptions contains the optional parameters for the WebAppsClient.CreateDeploymentSlot +// method. func (client *WebAppsClient) CreateDeploymentSlot(ctx context.Context, resourceGroupName string, name string, id string, slot string, deployment Deployment, options *WebAppsClientCreateDeploymentSlotOptions) (WebAppsClientCreateDeploymentSlotResponse, error) { req, err := client.createDeploymentSlotCreateRequest(ctx, resourceGroupName, name, id, slot, deployment, options) if err != nil { @@ -789,7 +803,7 @@ func (client *WebAppsClient) createDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, deployment) @@ -806,13 +820,14 @@ func (client *WebAppsClient) createDeploymentSlotHandleResponse(resp *http.Respo // BeginCreateFunction - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// functionEnvelope - Function details. -// options - WebAppsClientBeginCreateFunctionOptions contains the optional parameters for the WebAppsClient.BeginCreateFunction -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - functionEnvelope - Function details. +// - options - WebAppsClientBeginCreateFunctionOptions contains the optional parameters for the WebAppsClient.BeginCreateFunction +// method. func (client *WebAppsClient) BeginCreateFunction(ctx context.Context, resourceGroupName string, name string, functionName string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateFunctionOptions) (*runtime.Poller[WebAppsClientCreateFunctionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createFunction(ctx, resourceGroupName, name, functionName, functionEnvelope, options) @@ -827,7 +842,8 @@ func (client *WebAppsClient) BeginCreateFunction(ctx context.Context, resourceGr // CreateFunction - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createFunction(ctx context.Context, resourceGroupName string, name string, functionName string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateFunctionOptions) (*http.Response, error) { req, err := client.createFunctionCreateRequest(ctx, resourceGroupName, name, functionName, functionEnvelope, options) if err != nil { @@ -867,7 +883,7 @@ func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, functionEnvelope) @@ -875,14 +891,15 @@ func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, re // BeginCreateInstanceFunctionSlot - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// slot - Name of the deployment slot. -// functionEnvelope - Function details. -// options - WebAppsClientBeginCreateInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceFunctionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - slot - Name of the deployment slot. +// - functionEnvelope - Function details. +// - options - WebAppsClientBeginCreateInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceFunctionSlot +// method. func (client *WebAppsClient) BeginCreateInstanceFunctionSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateInstanceFunctionSlotOptions) (*runtime.Poller[WebAppsClientCreateInstanceFunctionSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createInstanceFunctionSlot(ctx, resourceGroupName, name, functionName, slot, functionEnvelope, options) @@ -897,7 +914,8 @@ func (client *WebAppsClient) BeginCreateInstanceFunctionSlot(ctx context.Context // CreateInstanceFunctionSlot - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createInstanceFunctionSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateInstanceFunctionSlotOptions) (*http.Response, error) { req, err := client.createInstanceFunctionSlotCreateRequest(ctx, resourceGroupName, name, functionName, slot, functionEnvelope, options) if err != nil { @@ -941,7 +959,7 @@ func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, functionEnvelope) @@ -949,13 +967,14 @@ func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context // BeginCreateInstanceMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// instanceID - ID of web app instance. -// msDeploy - Details of MSDeploy operation -// options - WebAppsClientBeginCreateInstanceMSDeployOperationOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceMSDeployOperation -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - instanceID - ID of web app instance. +// - msDeploy - Details of MSDeploy operation +// - options - WebAppsClientBeginCreateInstanceMSDeployOperationOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceMSDeployOperation +// method. func (client *WebAppsClient) BeginCreateInstanceMSDeployOperation(ctx context.Context, resourceGroupName string, name string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationOptions) (*runtime.Poller[WebAppsClientCreateInstanceMSDeployOperationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createInstanceMSDeployOperation(ctx, resourceGroupName, name, instanceID, msDeploy, options) @@ -970,7 +989,8 @@ func (client *WebAppsClient) BeginCreateInstanceMSDeployOperation(ctx context.Co // CreateInstanceMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createInstanceMSDeployOperation(ctx context.Context, resourceGroupName string, name string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationOptions) (*http.Response, error) { req, err := client.createInstanceMSDeployOperationCreateRequest(ctx, resourceGroupName, name, instanceID, msDeploy, options) if err != nil { @@ -1010,7 +1030,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, msDeploy) @@ -1018,14 +1038,15 @@ func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx co // BeginCreateInstanceMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// instanceID - ID of web app instance. -// msDeploy - Details of MSDeploy operation -// options - WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceMSDeployOperationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - instanceID - ID of web app instance. +// - msDeploy - Details of MSDeploy operation +// - options - WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceMSDeployOperationSlot +// method. func (client *WebAppsClient) BeginCreateInstanceMSDeployOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions) (*runtime.Poller[WebAppsClientCreateInstanceMSDeployOperationSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createInstanceMSDeployOperationSlot(ctx, resourceGroupName, name, slot, instanceID, msDeploy, options) @@ -1040,7 +1061,8 @@ func (client *WebAppsClient) BeginCreateInstanceMSDeployOperationSlot(ctx contex // CreateInstanceMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createInstanceMSDeployOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions) (*http.Response, error) { req, err := client.createInstanceMSDeployOperationSlotCreateRequest(ctx, resourceGroupName, name, slot, instanceID, msDeploy, options) if err != nil { @@ -1084,7 +1106,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, msDeploy) @@ -1092,12 +1114,13 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ct // BeginCreateMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// msDeploy - Details of MSDeploy operation -// options - WebAppsClientBeginCreateMSDeployOperationOptions contains the optional parameters for the WebAppsClient.BeginCreateMSDeployOperation -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - msDeploy - Details of MSDeploy operation +// - options - WebAppsClientBeginCreateMSDeployOperationOptions contains the optional parameters for the WebAppsClient.BeginCreateMSDeployOperation +// method. func (client *WebAppsClient) BeginCreateMSDeployOperation(ctx context.Context, resourceGroupName string, name string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationOptions) (*runtime.Poller[WebAppsClientCreateMSDeployOperationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createMSDeployOperation(ctx, resourceGroupName, name, msDeploy, options) @@ -1112,7 +1135,8 @@ func (client *WebAppsClient) BeginCreateMSDeployOperation(ctx context.Context, r // CreateMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createMSDeployOperation(ctx context.Context, resourceGroupName string, name string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationOptions) (*http.Response, error) { req, err := client.createMSDeployOperationCreateRequest(ctx, resourceGroupName, name, msDeploy, options) if err != nil { @@ -1148,7 +1172,7 @@ func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, msDeploy) @@ -1156,13 +1180,14 @@ func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Co // BeginCreateMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// msDeploy - Details of MSDeploy operation -// options - WebAppsClientBeginCreateMSDeployOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateMSDeployOperationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - msDeploy - Details of MSDeploy operation +// - options - WebAppsClientBeginCreateMSDeployOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateMSDeployOperationSlot +// method. func (client *WebAppsClient) BeginCreateMSDeployOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationSlotOptions) (*runtime.Poller[WebAppsClientCreateMSDeployOperationSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createMSDeployOperationSlot(ctx, resourceGroupName, name, slot, msDeploy, options) @@ -1177,7 +1202,8 @@ func (client *WebAppsClient) BeginCreateMSDeployOperationSlot(ctx context.Contex // CreateMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createMSDeployOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationSlotOptions) (*http.Response, error) { req, err := client.createMSDeployOperationSlotCreateRequest(ctx, resourceGroupName, name, slot, msDeploy, options) if err != nil { @@ -1217,7 +1243,7 @@ func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, msDeploy) @@ -1225,11 +1251,12 @@ func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx contex // CreateOneDeployOperation - Description for Invoke the OneDeploy publish web app extension. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientCreateOneDeployOperationOptions contains the optional parameters for the WebAppsClient.CreateOneDeployOperation -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientCreateOneDeployOperationOptions contains the optional parameters for the WebAppsClient.CreateOneDeployOperation +// method. func (client *WebAppsClient) CreateOneDeployOperation(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientCreateOneDeployOperationOptions) (WebAppsClientCreateOneDeployOperationResponse, error) { req, err := client.createOneDeployOperationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -1265,7 +1292,7 @@ func (client *WebAppsClient) createOneDeployOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1283,12 +1310,13 @@ func (client *WebAppsClient) createOneDeployOperationHandleResponse(resp *http.R // BeginCreateOrUpdate - Description for Creates a new web, mobile, or API app in an existing resource group, or updates an // existing app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. -// siteEnvelope - A JSON representation of the app properties. See example. -// options - WebAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. +// - siteEnvelope - A JSON representation of the app properties. See example. +// - options - WebAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdate +// method. func (client *WebAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, name string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateOptions) (*runtime.Poller[WebAppsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, name, siteEnvelope, options) @@ -1304,7 +1332,8 @@ func (client *WebAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // CreateOrUpdate - Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing // app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, siteEnvelope, options) if err != nil { @@ -1340,7 +1369,7 @@ func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteEnvelope) @@ -1348,12 +1377,13 @@ func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, re // CreateOrUpdateConfiguration - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// siteConfig - JSON representation of a SiteConfig object. See example. -// options - WebAppsClientCreateOrUpdateConfigurationOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - siteConfig - JSON representation of a SiteConfig object. See example. +// - options - WebAppsClientCreateOrUpdateConfigurationOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateConfiguration +// method. func (client *WebAppsClient) CreateOrUpdateConfiguration(ctx context.Context, resourceGroupName string, name string, siteConfig SiteConfigResource, options *WebAppsClientCreateOrUpdateConfigurationOptions) (WebAppsClientCreateOrUpdateConfigurationResponse, error) { req, err := client.createOrUpdateConfigurationCreateRequest(ctx, resourceGroupName, name, siteConfig, options) if err != nil { @@ -1389,7 +1419,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteConfig) @@ -1406,13 +1436,14 @@ func (client *WebAppsClient) createOrUpdateConfigurationHandleResponse(resp *htt // CreateOrUpdateConfigurationSlot - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. -// siteConfig - JSON representation of a SiteConfig object. See example. -// options - WebAppsClientCreateOrUpdateConfigurationSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. +// - siteConfig - JSON representation of a SiteConfig object. See example. +// - options - WebAppsClientCreateOrUpdateConfigurationSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateConfigurationSlot +// method. func (client *WebAppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteConfig SiteConfigResource, options *WebAppsClientCreateOrUpdateConfigurationSlotOptions) (WebAppsClientCreateOrUpdateConfigurationSlotResponse, error) { req, err := client.createOrUpdateConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, siteConfig, options) if err != nil { @@ -1452,7 +1483,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteConfig) @@ -1470,13 +1501,14 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotHandleResponse(resp // CreateOrUpdateDomainOwnershipIdentifier - Description for Creates a domain ownership identifier for web app, or updates // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// domainOwnershipIdentifier - A JSON representation of the domain ownership properties. -// options - WebAppsClientCreateOrUpdateDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateDomainOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - domainOwnershipIdentifier - A JSON representation of the domain ownership properties. +// - options - WebAppsClientCreateOrUpdateDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateDomainOwnershipIdentifier +// method. func (client *WebAppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, domainOwnershipIdentifier Identifier, options *WebAppsClientCreateOrUpdateDomainOwnershipIdentifierOptions) (WebAppsClientCreateOrUpdateDomainOwnershipIdentifierResponse, error) { req, err := client.createOrUpdateDomainOwnershipIdentifierCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, domainOwnershipIdentifier, options) if err != nil { @@ -1516,7 +1548,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domainOwnershipIdentifier) @@ -1534,14 +1566,15 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierHandleRespon // CreateOrUpdateDomainOwnershipIdentifierSlot - Description for Creates a domain ownership identifier for web app, or updates // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// domainOwnershipIdentifier - A JSON representation of the domain ownership properties. -// options - WebAppsClientCreateOrUpdateDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateDomainOwnershipIdentifierSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - domainOwnershipIdentifier - A JSON representation of the domain ownership properties. +// - options - WebAppsClientCreateOrUpdateDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateDomainOwnershipIdentifierSlot +// method. func (client *WebAppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, domainOwnershipIdentifier Identifier, options *WebAppsClientCreateOrUpdateDomainOwnershipIdentifierSlotOptions) (WebAppsClientCreateOrUpdateDomainOwnershipIdentifierSlotResponse, error) { req, err := client.createOrUpdateDomainOwnershipIdentifierSlotCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier, options) if err != nil { @@ -1585,7 +1618,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domainOwnershipIdentifier) @@ -1602,14 +1635,15 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotHandleRe // CreateOrUpdateFunctionSecret - Description for Add or update a function secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - The name of the function. -// keyName - The name of the key. -// key - The key to create or update -// options - WebAppsClientCreateOrUpdateFunctionSecretOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateFunctionSecret -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - The name of the function. +// - keyName - The name of the key. +// - key - The key to create or update +// - options - WebAppsClientCreateOrUpdateFunctionSecretOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateFunctionSecret +// method. func (client *WebAppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, key KeyInfo, options *WebAppsClientCreateOrUpdateFunctionSecretOptions) (WebAppsClientCreateOrUpdateFunctionSecretResponse, error) { req, err := client.createOrUpdateFunctionSecretCreateRequest(ctx, resourceGroupName, name, functionName, keyName, key, options) if err != nil { @@ -1653,7 +1687,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, key) @@ -1670,15 +1704,16 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretHandleResponse(resp *ht // CreateOrUpdateFunctionSecretSlot - Description for Add or update a function secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - The name of the function. -// keyName - The name of the key. -// slot - Name of the deployment slot. -// key - The key to create or update -// options - WebAppsClientCreateOrUpdateFunctionSecretSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateFunctionSecretSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - The name of the function. +// - keyName - The name of the key. +// - slot - Name of the deployment slot. +// - key - The key to create or update +// - options - WebAppsClientCreateOrUpdateFunctionSecretSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateFunctionSecretSlot +// method. func (client *WebAppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, key KeyInfo, options *WebAppsClientCreateOrUpdateFunctionSecretSlotOptions) (WebAppsClientCreateOrUpdateFunctionSecretSlotResponse, error) { req, err := client.createOrUpdateFunctionSecretSlotCreateRequest(ctx, resourceGroupName, name, functionName, keyName, slot, key, options) if err != nil { @@ -1726,7 +1761,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, key) @@ -1743,13 +1778,14 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretSlotHandleResponse(resp // CreateOrUpdateHostNameBinding - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// hostName - Hostname in the hostname binding. -// hostNameBinding - Binding details. This is the JSON representation of a HostNameBinding object. -// options - WebAppsClientCreateOrUpdateHostNameBindingOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostNameBinding -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - hostName - Hostname in the hostname binding. +// - hostNameBinding - Binding details. This is the JSON representation of a HostNameBinding object. +// - options - WebAppsClientCreateOrUpdateHostNameBindingOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostNameBinding +// method. func (client *WebAppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, resourceGroupName string, name string, hostName string, hostNameBinding HostNameBinding, options *WebAppsClientCreateOrUpdateHostNameBindingOptions) (WebAppsClientCreateOrUpdateHostNameBindingResponse, error) { req, err := client.createOrUpdateHostNameBindingCreateRequest(ctx, resourceGroupName, name, hostName, hostNameBinding, options) if err != nil { @@ -1789,7 +1825,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, hostNameBinding) @@ -1806,14 +1842,15 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingHandleResponse(resp *h // CreateOrUpdateHostNameBindingSlot - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// hostName - Hostname in the hostname binding. -// slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. -// hostNameBinding - Binding details. This is the JSON representation of a HostNameBinding object. -// options - WebAppsClientCreateOrUpdateHostNameBindingSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostNameBindingSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - hostName - Hostname in the hostname binding. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - hostNameBinding - Binding details. This is the JSON representation of a HostNameBinding object. +// - options - WebAppsClientCreateOrUpdateHostNameBindingSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostNameBindingSlot +// method. func (client *WebAppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, resourceGroupName string, name string, hostName string, slot string, hostNameBinding HostNameBinding, options *WebAppsClientCreateOrUpdateHostNameBindingSlotOptions) (WebAppsClientCreateOrUpdateHostNameBindingSlotResponse, error) { req, err := client.createOrUpdateHostNameBindingSlotCreateRequest(ctx, resourceGroupName, name, hostName, slot, hostNameBinding, options) if err != nil { @@ -1857,7 +1894,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, hostNameBinding) @@ -1874,14 +1911,15 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingSlotHandleResponse(res // CreateOrUpdateHostSecret - Description for Add or update a host level secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// keyType - The type of host key. -// keyName - The name of the key. -// key - The key to create or update -// options - WebAppsClientCreateOrUpdateHostSecretOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostSecret -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - keyType - The type of host key. +// - keyName - The name of the key. +// - key - The key to create or update +// - options - WebAppsClientCreateOrUpdateHostSecretOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostSecret +// method. func (client *WebAppsClient) CreateOrUpdateHostSecret(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, key KeyInfo, options *WebAppsClientCreateOrUpdateHostSecretOptions) (WebAppsClientCreateOrUpdateHostSecretResponse, error) { req, err := client.createOrUpdateHostSecretCreateRequest(ctx, resourceGroupName, name, keyType, keyName, key, options) if err != nil { @@ -1925,7 +1963,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, key) @@ -1942,15 +1980,16 @@ func (client *WebAppsClient) createOrUpdateHostSecretHandleResponse(resp *http.R // CreateOrUpdateHostSecretSlot - Description for Add or update a host level secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// keyType - The type of host key. -// keyName - The name of the key. -// slot - Name of the deployment slot. -// key - The key to create or update -// options - WebAppsClientCreateOrUpdateHostSecretSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostSecretSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - keyType - The type of host key. +// - keyName - The name of the key. +// - slot - Name of the deployment slot. +// - key - The key to create or update +// - options - WebAppsClientCreateOrUpdateHostSecretSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHostSecretSlot +// method. func (client *WebAppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, key KeyInfo, options *WebAppsClientCreateOrUpdateHostSecretSlotOptions) (WebAppsClientCreateOrUpdateHostSecretSlotResponse, error) { req, err := client.createOrUpdateHostSecretSlotCreateRequest(ctx, resourceGroupName, name, keyType, keyName, slot, key, options) if err != nil { @@ -1998,7 +2037,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, key) @@ -2015,14 +2054,15 @@ func (client *WebAppsClient) createOrUpdateHostSecretSlotHandleResponse(resp *ht // CreateOrUpdateHybridConnection - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// connectionEnvelope - The details of the hybrid connection. -// options - WebAppsClientCreateOrUpdateHybridConnectionOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - connectionEnvelope - The details of the hybrid connection. +// - options - WebAppsClientCreateOrUpdateHybridConnectionOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHybridConnection +// method. func (client *WebAppsClient) CreateOrUpdateHybridConnection(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, connectionEnvelope HybridConnection, options *WebAppsClientCreateOrUpdateHybridConnectionOptions) (WebAppsClientCreateOrUpdateHybridConnectionResponse, error) { req, err := client.createOrUpdateHybridConnectionCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, connectionEnvelope, options) if err != nil { @@ -2066,7 +2106,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2083,15 +2123,16 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionHandleResponse(resp * // CreateOrUpdateHybridConnectionSlot - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// slot - The name of the slot for the web app. -// connectionEnvelope - The details of the hybrid connection. -// options - WebAppsClientCreateOrUpdateHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHybridConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - slot - The name of the slot for the web app. +// - connectionEnvelope - The details of the hybrid connection. +// - options - WebAppsClientCreateOrUpdateHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateHybridConnectionSlot +// method. func (client *WebAppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope HybridConnection, options *WebAppsClientCreateOrUpdateHybridConnectionSlotOptions) (WebAppsClientCreateOrUpdateHybridConnectionSlotResponse, error) { req, err := client.createOrUpdateHybridConnectionSlotCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope, options) if err != nil { @@ -2139,7 +2180,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2156,13 +2197,14 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionSlotHandleResponse(re // CreateOrUpdatePublicCertificate - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// publicCertificateName - Public certificate name. -// publicCertificate - Public certificate details. This is the JSON representation of a PublicCertificate object. -// options - WebAppsClientCreateOrUpdatePublicCertificateOptions contains the optional parameters for the WebAppsClient.CreateOrUpdatePublicCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - publicCertificateName - Public certificate name. +// - publicCertificate - Public certificate details. This is the JSON representation of a PublicCertificate object. +// - options - WebAppsClientCreateOrUpdatePublicCertificateOptions contains the optional parameters for the WebAppsClient.CreateOrUpdatePublicCertificate +// method. func (client *WebAppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, publicCertificate PublicCertificate, options *WebAppsClientCreateOrUpdatePublicCertificateOptions) (WebAppsClientCreateOrUpdatePublicCertificateResponse, error) { req, err := client.createOrUpdatePublicCertificateCreateRequest(ctx, resourceGroupName, name, publicCertificateName, publicCertificate, options) if err != nil { @@ -2202,7 +2244,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, publicCertificate) @@ -2219,14 +2261,15 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateHandleResponse(resp // CreateOrUpdatePublicCertificateSlot - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// publicCertificateName - Public certificate name. -// slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. -// publicCertificate - Public certificate details. This is the JSON representation of a PublicCertificate object. -// options - WebAppsClientCreateOrUpdatePublicCertificateSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdatePublicCertificateSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - publicCertificateName - Public certificate name. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - publicCertificate - Public certificate details. This is the JSON representation of a PublicCertificate object. +// - options - WebAppsClientCreateOrUpdatePublicCertificateSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdatePublicCertificateSlot +// method. func (client *WebAppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, slot string, publicCertificate PublicCertificate, options *WebAppsClientCreateOrUpdatePublicCertificateSlotOptions) (WebAppsClientCreateOrUpdatePublicCertificateSlotResponse, error) { req, err := client.createOrUpdatePublicCertificateSlotCreateRequest(ctx, resourceGroupName, name, publicCertificateName, slot, publicCertificate, options) if err != nil { @@ -2270,7 +2313,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, publicCertificate) @@ -2288,13 +2331,14 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotHandleResponse(r // CreateOrUpdateRelayServiceConnection - Description for Creates a new hybrid connection configuration (PUT), or updates // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection configuration. -// connectionEnvelope - Details of the hybrid connection configuration. -// options - WebAppsClientCreateOrUpdateRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateRelayServiceConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection configuration. +// - connectionEnvelope - Details of the hybrid connection configuration. +// - options - WebAppsClientCreateOrUpdateRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateRelayServiceConnection +// method. func (client *WebAppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Context, resourceGroupName string, name string, entityName string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientCreateOrUpdateRelayServiceConnectionOptions) (WebAppsClientCreateOrUpdateRelayServiceConnectionResponse, error) { req, err := client.createOrUpdateRelayServiceConnectionCreateRequest(ctx, resourceGroupName, name, entityName, connectionEnvelope, options) if err != nil { @@ -2334,7 +2378,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2352,15 +2396,16 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionHandleResponse( // CreateOrUpdateRelayServiceConnectionSlot - Description for Creates a new hybrid connection configuration (PUT), or updates // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection configuration. -// slot - Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the -// production slot. -// connectionEnvelope - Details of the hybrid connection configuration. -// options - WebAppsClientCreateOrUpdateRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateRelayServiceConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection configuration. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the +// production slot. +// - connectionEnvelope - Details of the hybrid connection configuration. +// - options - WebAppsClientCreateOrUpdateRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateRelayServiceConnectionSlot +// method. func (client *WebAppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientCreateOrUpdateRelayServiceConnectionSlotOptions) (WebAppsClientCreateOrUpdateRelayServiceConnectionSlotResponse, error) { req, err := client.createOrUpdateRelayServiceConnectionSlotCreateRequest(ctx, resourceGroupName, name, entityName, slot, connectionEnvelope, options) if err != nil { @@ -2404,7 +2449,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2422,14 +2467,15 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotHandleRespo // BeginCreateOrUpdateSlot - Description for Creates a new web, mobile, or API app in an existing resource group, or updates // an existing app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. -// slot - Name of the deployment slot to create or update. By default, this API attempts to create or modify the production -// slot. -// siteEnvelope - A JSON representation of the app properties. See example. -// options - WebAppsClientBeginCreateOrUpdateSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. +// - slot - Name of the deployment slot to create or update. By default, this API attempts to create or modify the production +// slot. +// - siteEnvelope - A JSON representation of the app properties. See example. +// - options - WebAppsClientBeginCreateOrUpdateSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSlot +// method. func (client *WebAppsClient) BeginCreateOrUpdateSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateSlotOptions) (*runtime.Poller[WebAppsClientCreateOrUpdateSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateSlot(ctx, resourceGroupName, name, slot, siteEnvelope, options) @@ -2445,7 +2491,8 @@ func (client *WebAppsClient) BeginCreateOrUpdateSlot(ctx context.Context, resour // CreateOrUpdateSlot - Description for Creates a new web, mobile, or API app in an existing resource group, or updates an // existing app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createOrUpdateSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateSlotOptions) (*http.Response, error) { req, err := client.createOrUpdateSlotCreateRequest(ctx, resourceGroupName, name, slot, siteEnvelope, options) if err != nil { @@ -2485,7 +2532,7 @@ func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteEnvelope) @@ -2493,12 +2540,13 @@ func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context // BeginCreateOrUpdateSourceControl - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// siteSourceControl - JSON representation of a SiteSourceControl object. See example. -// options - WebAppsClientBeginCreateOrUpdateSourceControlOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSourceControl -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - siteSourceControl - JSON representation of a SiteSourceControl object. See example. +// - options - WebAppsClientBeginCreateOrUpdateSourceControlOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSourceControl +// method. func (client *WebAppsClient) BeginCreateOrUpdateSourceControl(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlOptions) (*runtime.Poller[WebAppsClientCreateOrUpdateSourceControlResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateSourceControl(ctx, resourceGroupName, name, siteSourceControl, options) @@ -2513,7 +2561,8 @@ func (client *WebAppsClient) BeginCreateOrUpdateSourceControl(ctx context.Contex // CreateOrUpdateSourceControl - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createOrUpdateSourceControl(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlOptions) (*http.Response, error) { req, err := client.createOrUpdateSourceControlCreateRequest(ctx, resourceGroupName, name, siteSourceControl, options) if err != nil { @@ -2549,7 +2598,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteSourceControl) @@ -2557,14 +2606,15 @@ func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx contex // BeginCreateOrUpdateSourceControlSlot - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for -// the production slot. -// siteSourceControl - JSON representation of a SiteSourceControl object. See example. -// options - WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSourceControlSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for +// the production slot. +// - siteSourceControl - JSON representation of a SiteSourceControl object. See example. +// - options - WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSourceControlSlot +// method. func (client *WebAppsClient) BeginCreateOrUpdateSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions) (*runtime.Poller[WebAppsClientCreateOrUpdateSourceControlSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdateSourceControlSlot(ctx, resourceGroupName, name, slot, siteSourceControl, options) @@ -2579,7 +2629,8 @@ func (client *WebAppsClient) BeginCreateOrUpdateSourceControlSlot(ctx context.Co // CreateOrUpdateSourceControlSlot - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) createOrUpdateSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions) (*http.Response, error) { req, err := client.createOrUpdateSourceControlSlotCreateRequest(ctx, resourceGroupName, name, slot, siteSourceControl, options) if err != nil { @@ -2619,7 +2670,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteSourceControl) @@ -2630,12 +2681,13 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co // already been // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOptions contains the optional parameters for -// the WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOptions contains the optional parameters for +// the WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck method. func (client *WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOptions) (WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckResponse, error) { req, err := client.createOrUpdateSwiftVirtualNetworkConnectionWithCheckCreateRequest(ctx, resourceGroupName, name, connectionEnvelope, options) if err != nil { @@ -2671,7 +2723,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2691,14 +2743,15 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // already been // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production -// slot. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions contains the optional parameters -// for the WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production +// slot. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions contains the optional parameters +// for the WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot method. func (client *WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx context.Context, resourceGroupName string, name string, slot string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions) (WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotResponse, error) { req, err := client.createOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest(ctx, resourceGroupName, name, slot, connectionEnvelope, options) if err != nil { @@ -2738,7 +2791,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2756,13 +2809,14 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // CreateOrUpdateVnetConnection - Description for Adds a Virtual Network connection to an app or slot (PUT) or updates the // connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of an existing Virtual Network. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientCreateOrUpdateVnetConnectionOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of an existing Virtual Network. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientCreateOrUpdateVnetConnectionOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnection +// method. func (client *WebAppsClient) CreateOrUpdateVnetConnection(ctx context.Context, resourceGroupName string, name string, vnetName string, connectionEnvelope VnetInfoResource, options *WebAppsClientCreateOrUpdateVnetConnectionOptions) (WebAppsClientCreateOrUpdateVnetConnectionResponse, error) { req, err := client.createOrUpdateVnetConnectionCreateRequest(ctx, resourceGroupName, name, vnetName, connectionEnvelope, options) if err != nil { @@ -2802,7 +2856,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2820,14 +2874,15 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionHandleResponse(resp *ht // CreateOrUpdateVnetConnectionGateway - Description for Adds a gateway to a connected Virtual Network (PUT) or updates it // (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Currently, the only supported string is "primary". -// connectionEnvelope - The properties to update this gateway with. -// options - WebAppsClientCreateOrUpdateVnetConnectionGatewayOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnectionGateway -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Currently, the only supported string is "primary". +// - connectionEnvelope - The properties to update this gateway with. +// - options - WebAppsClientCreateOrUpdateVnetConnectionGatewayOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnectionGateway +// method. func (client *WebAppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, options *WebAppsClientCreateOrUpdateVnetConnectionGatewayOptions) (WebAppsClientCreateOrUpdateVnetConnectionGatewayResponse, error) { req, err := client.createOrUpdateVnetConnectionGatewayCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, connectionEnvelope, options) if err != nil { @@ -2871,7 +2926,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2889,16 +2944,17 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayHandleResponse(r // CreateOrUpdateVnetConnectionGatewaySlot - Description for Adds a gateway to a connected Virtual Network (PUT) or updates // it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Currently, the only supported string is "primary". -// slot - Name of the deployment slot. If a slot is not specified, the API will add or update a gateway for the production -// slot's Virtual Network. -// connectionEnvelope - The properties to update this gateway with. -// options - WebAppsClientCreateOrUpdateVnetConnectionGatewaySlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnectionGatewaySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Currently, the only supported string is "primary". +// - slot - Name of the deployment slot. If a slot is not specified, the API will add or update a gateway for the production +// slot's Virtual Network. +// - connectionEnvelope - The properties to update this gateway with. +// - options - WebAppsClientCreateOrUpdateVnetConnectionGatewaySlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnectionGatewaySlot +// method. func (client *WebAppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, connectionEnvelope VnetGateway, options *WebAppsClientCreateOrUpdateVnetConnectionGatewaySlotOptions) (WebAppsClientCreateOrUpdateVnetConnectionGatewaySlotResponse, error) { req, err := client.createOrUpdateVnetConnectionGatewaySlotCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, slot, connectionEnvelope, options) if err != nil { @@ -2946,7 +3002,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -2964,15 +3020,16 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotHandleRespon // CreateOrUpdateVnetConnectionSlot - Description for Adds a Virtual Network connection to an app or slot (PUT) or updates // the connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of an existing Virtual Network. -// slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production -// slot. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientCreateOrUpdateVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of an existing Virtual Network. +// - slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production +// slot. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientCreateOrUpdateVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.CreateOrUpdateVnetConnectionSlot +// method. func (client *WebAppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, connectionEnvelope VnetInfoResource, options *WebAppsClientCreateOrUpdateVnetConnectionSlotOptions) (WebAppsClientCreateOrUpdateVnetConnectionSlotResponse, error) { req, err := client.createOrUpdateVnetConnectionSlotCreateRequest(ctx, resourceGroupName, name, vnetName, slot, connectionEnvelope, options) if err != nil { @@ -3016,7 +3073,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -3033,10 +3090,11 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionSlotHandleResponse(resp // Delete - Description for Deletes a web, mobile, or API app, or one of the deployment slots. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app to delete. -// options - WebAppsClientDeleteOptions contains the optional parameters for the WebAppsClient.Delete method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app to delete. +// - options - WebAppsClientDeleteOptions contains the optional parameters for the WebAppsClient.Delete method. func (client *WebAppsClient) Delete(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeleteOptions) (WebAppsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -3078,7 +3136,7 @@ func (client *WebAppsClient) deleteCreateRequest(ctx context.Context, resourceGr if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3086,11 +3144,12 @@ func (client *WebAppsClient) deleteCreateRequest(ctx context.Context, resourceGr // DeleteBackup - Description for Deletes a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// backupID - ID of the backup. -// options - WebAppsClientDeleteBackupOptions contains the optional parameters for the WebAppsClient.DeleteBackup method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - backupID - ID of the backup. +// - options - WebAppsClientDeleteBackupOptions contains the optional parameters for the WebAppsClient.DeleteBackup method. func (client *WebAppsClient) DeleteBackup(ctx context.Context, resourceGroupName string, name string, backupID string, options *WebAppsClientDeleteBackupOptions) (WebAppsClientDeleteBackupResponse, error) { req, err := client.deleteBackupCreateRequest(ctx, resourceGroupName, name, backupID, options) if err != nil { @@ -3130,7 +3189,7 @@ func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3138,11 +3197,12 @@ func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, reso // DeleteBackupConfiguration - Description for Deletes the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientDeleteBackupConfigurationOptions contains the optional parameters for the WebAppsClient.DeleteBackupConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientDeleteBackupConfigurationOptions contains the optional parameters for the WebAppsClient.DeleteBackupConfiguration +// method. func (client *WebAppsClient) DeleteBackupConfiguration(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeleteBackupConfigurationOptions) (WebAppsClientDeleteBackupConfigurationResponse, error) { req, err := client.deleteBackupConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -3178,7 +3238,7 @@ func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3186,13 +3246,14 @@ func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context. // DeleteBackupConfigurationSlot - Description for Deletes the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production -// slot. -// options - WebAppsClientDeleteBackupConfigurationSlotOptions contains the optional parameters for the WebAppsClient.DeleteBackupConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production +// slot. +// - options - WebAppsClientDeleteBackupConfigurationSlotOptions contains the optional parameters for the WebAppsClient.DeleteBackupConfigurationSlot +// method. func (client *WebAppsClient) DeleteBackupConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeleteBackupConfigurationSlotOptions) (WebAppsClientDeleteBackupConfigurationSlotResponse, error) { req, err := client.deleteBackupConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -3232,7 +3293,7 @@ func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3240,13 +3301,14 @@ func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx cont // DeleteBackupSlot - Description for Deletes a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// backupID - ID of the backup. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. -// options - WebAppsClientDeleteBackupSlotOptions contains the optional parameters for the WebAppsClient.DeleteBackupSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - backupID - ID of the backup. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. +// - options - WebAppsClientDeleteBackupSlotOptions contains the optional parameters for the WebAppsClient.DeleteBackupSlot +// method. func (client *WebAppsClient) DeleteBackupSlot(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, options *WebAppsClientDeleteBackupSlotOptions) (WebAppsClientDeleteBackupSlotResponse, error) { req, err := client.deleteBackupSlotCreateRequest(ctx, resourceGroupName, name, backupID, slot, options) if err != nil { @@ -3290,7 +3352,7 @@ func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3298,12 +3360,13 @@ func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, // DeleteContinuousWebJob - Description for Delete a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientDeleteContinuousWebJobOptions contains the optional parameters for the WebAppsClient.DeleteContinuousWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientDeleteContinuousWebJobOptions contains the optional parameters for the WebAppsClient.DeleteContinuousWebJob +// method. func (client *WebAppsClient) DeleteContinuousWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientDeleteContinuousWebJobOptions) (WebAppsClientDeleteContinuousWebJobResponse, error) { req, err := client.deleteContinuousWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -3343,7 +3406,7 @@ func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3351,13 +3414,14 @@ func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Con // DeleteContinuousWebJobSlot - Description for Delete a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientDeleteContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.DeleteContinuousWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientDeleteContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.DeleteContinuousWebJobSlot +// method. func (client *WebAppsClient) DeleteContinuousWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientDeleteContinuousWebJobSlotOptions) (WebAppsClientDeleteContinuousWebJobSlotResponse, error) { req, err := client.deleteContinuousWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -3401,7 +3465,7 @@ func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3409,12 +3473,13 @@ func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context // DeleteDeployment - Description for Delete a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - Deployment ID. -// options - WebAppsClientDeleteDeploymentOptions contains the optional parameters for the WebAppsClient.DeleteDeployment -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - Deployment ID. +// - options - WebAppsClientDeleteDeploymentOptions contains the optional parameters for the WebAppsClient.DeleteDeployment +// method. func (client *WebAppsClient) DeleteDeployment(ctx context.Context, resourceGroupName string, name string, id string, options *WebAppsClientDeleteDeploymentOptions) (WebAppsClientDeleteDeploymentResponse, error) { req, err := client.deleteDeploymentCreateRequest(ctx, resourceGroupName, name, id, options) if err != nil { @@ -3454,7 +3519,7 @@ func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3462,13 +3527,14 @@ func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, // DeleteDeploymentSlot - Description for Delete a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - Deployment ID. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientDeleteDeploymentSlotOptions contains the optional parameters for the WebAppsClient.DeleteDeploymentSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - Deployment ID. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientDeleteDeploymentSlotOptions contains the optional parameters for the WebAppsClient.DeleteDeploymentSlot +// method. func (client *WebAppsClient) DeleteDeploymentSlot(ctx context.Context, resourceGroupName string, name string, id string, slot string, options *WebAppsClientDeleteDeploymentSlotOptions) (WebAppsClientDeleteDeploymentSlotResponse, error) { req, err := client.deleteDeploymentSlotCreateRequest(ctx, resourceGroupName, name, id, slot, options) if err != nil { @@ -3512,7 +3578,7 @@ func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3520,12 +3586,13 @@ func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Conte // DeleteDomainOwnershipIdentifier - Description for Deletes a domain ownership identifier for a web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// options - WebAppsClientDeleteDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.DeleteDomainOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - options - WebAppsClientDeleteDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.DeleteDomainOwnershipIdentifier +// method. func (client *WebAppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, options *WebAppsClientDeleteDomainOwnershipIdentifierOptions) (WebAppsClientDeleteDomainOwnershipIdentifierResponse, error) { req, err := client.deleteDomainOwnershipIdentifierCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, options) if err != nil { @@ -3565,7 +3632,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3573,13 +3640,14 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx co // DeleteDomainOwnershipIdentifierSlot - Description for Deletes a domain ownership identifier for a web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// options - WebAppsClientDeleteDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.DeleteDomainOwnershipIdentifierSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - options - WebAppsClientDeleteDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.DeleteDomainOwnershipIdentifierSlot +// method. func (client *WebAppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, options *WebAppsClientDeleteDomainOwnershipIdentifierSlotOptions) (WebAppsClientDeleteDomainOwnershipIdentifierSlotResponse, error) { req, err := client.deleteDomainOwnershipIdentifierSlotCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, slot, options) if err != nil { @@ -3623,7 +3691,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3631,11 +3699,12 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ct // DeleteFunction - Description for Delete a function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// options - WebAppsClientDeleteFunctionOptions contains the optional parameters for the WebAppsClient.DeleteFunction method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - options - WebAppsClientDeleteFunctionOptions contains the optional parameters for the WebAppsClient.DeleteFunction method. func (client *WebAppsClient) DeleteFunction(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientDeleteFunctionOptions) (WebAppsClientDeleteFunctionResponse, error) { req, err := client.deleteFunctionCreateRequest(ctx, resourceGroupName, name, functionName, options) if err != nil { @@ -3675,7 +3744,7 @@ func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3683,13 +3752,14 @@ func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, re // DeleteFunctionSecret - Description for Delete a function secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - The name of the function. -// keyName - The name of the key. -// options - WebAppsClientDeleteFunctionSecretOptions contains the optional parameters for the WebAppsClient.DeleteFunctionSecret -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - The name of the function. +// - keyName - The name of the key. +// - options - WebAppsClientDeleteFunctionSecretOptions contains the optional parameters for the WebAppsClient.DeleteFunctionSecret +// method. func (client *WebAppsClient) DeleteFunctionSecret(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, options *WebAppsClientDeleteFunctionSecretOptions) (WebAppsClientDeleteFunctionSecretResponse, error) { req, err := client.deleteFunctionSecretCreateRequest(ctx, resourceGroupName, name, functionName, keyName, options) if err != nil { @@ -3733,7 +3803,7 @@ func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3741,14 +3811,15 @@ func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Conte // DeleteFunctionSecretSlot - Description for Delete a function secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - The name of the function. -// keyName - The name of the key. -// slot - Name of the deployment slot. -// options - WebAppsClientDeleteFunctionSecretSlotOptions contains the optional parameters for the WebAppsClient.DeleteFunctionSecretSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - The name of the function. +// - keyName - The name of the key. +// - slot - Name of the deployment slot. +// - options - WebAppsClientDeleteFunctionSecretSlotOptions contains the optional parameters for the WebAppsClient.DeleteFunctionSecretSlot +// method. func (client *WebAppsClient) DeleteFunctionSecretSlot(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, options *WebAppsClientDeleteFunctionSecretSlotOptions) (WebAppsClientDeleteFunctionSecretSlotResponse, error) { req, err := client.deleteFunctionSecretSlotCreateRequest(ctx, resourceGroupName, name, functionName, keyName, slot, options) if err != nil { @@ -3796,7 +3867,7 @@ func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3804,12 +3875,13 @@ func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.C // DeleteHostNameBinding - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// hostName - Hostname in the hostname binding. -// options - WebAppsClientDeleteHostNameBindingOptions contains the optional parameters for the WebAppsClient.DeleteHostNameBinding -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - hostName - Hostname in the hostname binding. +// - options - WebAppsClientDeleteHostNameBindingOptions contains the optional parameters for the WebAppsClient.DeleteHostNameBinding +// method. func (client *WebAppsClient) DeleteHostNameBinding(ctx context.Context, resourceGroupName string, name string, hostName string, options *WebAppsClientDeleteHostNameBindingOptions) (WebAppsClientDeleteHostNameBindingResponse, error) { req, err := client.deleteHostNameBindingCreateRequest(ctx, resourceGroupName, name, hostName, options) if err != nil { @@ -3849,7 +3921,7 @@ func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3857,13 +3929,14 @@ func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Cont // DeleteHostNameBindingSlot - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// hostName - Hostname in the hostname binding. -// options - WebAppsClientDeleteHostNameBindingSlotOptions contains the optional parameters for the WebAppsClient.DeleteHostNameBindingSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - hostName - Hostname in the hostname binding. +// - options - WebAppsClientDeleteHostNameBindingSlotOptions contains the optional parameters for the WebAppsClient.DeleteHostNameBindingSlot +// method. func (client *WebAppsClient) DeleteHostNameBindingSlot(ctx context.Context, resourceGroupName string, name string, slot string, hostName string, options *WebAppsClientDeleteHostNameBindingSlotOptions) (WebAppsClientDeleteHostNameBindingSlotResponse, error) { req, err := client.deleteHostNameBindingSlotCreateRequest(ctx, resourceGroupName, name, slot, hostName, options) if err != nil { @@ -3907,7 +3980,7 @@ func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3915,13 +3988,14 @@ func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context. // DeleteHostSecret - Description for Delete a host level secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// keyType - The type of host key. -// keyName - The name of the key. -// options - WebAppsClientDeleteHostSecretOptions contains the optional parameters for the WebAppsClient.DeleteHostSecret -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - keyType - The type of host key. +// - keyName - The name of the key. +// - options - WebAppsClientDeleteHostSecretOptions contains the optional parameters for the WebAppsClient.DeleteHostSecret +// method. func (client *WebAppsClient) DeleteHostSecret(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, options *WebAppsClientDeleteHostSecretOptions) (WebAppsClientDeleteHostSecretResponse, error) { req, err := client.deleteHostSecretCreateRequest(ctx, resourceGroupName, name, keyType, keyName, options) if err != nil { @@ -3965,7 +4039,7 @@ func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3973,14 +4047,15 @@ func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, // DeleteHostSecretSlot - Description for Delete a host level secret. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// keyType - The type of host key. -// keyName - The name of the key. -// slot - Name of the deployment slot. -// options - WebAppsClientDeleteHostSecretSlotOptions contains the optional parameters for the WebAppsClient.DeleteHostSecretSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - keyType - The type of host key. +// - keyName - The name of the key. +// - slot - Name of the deployment slot. +// - options - WebAppsClientDeleteHostSecretSlotOptions contains the optional parameters for the WebAppsClient.DeleteHostSecretSlot +// method. func (client *WebAppsClient) DeleteHostSecretSlot(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, options *WebAppsClientDeleteHostSecretSlotOptions) (WebAppsClientDeleteHostSecretSlotResponse, error) { req, err := client.deleteHostSecretSlotCreateRequest(ctx, resourceGroupName, name, keyType, keyName, slot, options) if err != nil { @@ -4028,7 +4103,7 @@ func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4036,13 +4111,14 @@ func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Conte // DeleteHybridConnection - Description for Removes a Hybrid Connection from this site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// options - WebAppsClientDeleteHybridConnectionOptions contains the optional parameters for the WebAppsClient.DeleteHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - options - WebAppsClientDeleteHybridConnectionOptions contains the optional parameters for the WebAppsClient.DeleteHybridConnection +// method. func (client *WebAppsClient) DeleteHybridConnection(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *WebAppsClientDeleteHybridConnectionOptions) (WebAppsClientDeleteHybridConnectionResponse, error) { req, err := client.deleteHybridConnectionCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, options) if err != nil { @@ -4086,7 +4162,7 @@ func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4094,14 +4170,15 @@ func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Con // DeleteHybridConnectionSlot - Description for Removes a Hybrid Connection from this site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// slot - The name of the slot for the web app. -// options - WebAppsClientDeleteHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.DeleteHybridConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - slot - The name of the slot for the web app. +// - options - WebAppsClientDeleteHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.DeleteHybridConnectionSlot +// method. func (client *WebAppsClient) DeleteHybridConnectionSlot(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, options *WebAppsClientDeleteHybridConnectionSlotOptions) (WebAppsClientDeleteHybridConnectionSlotResponse, error) { req, err := client.deleteHybridConnectionSlotCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, slot, options) if err != nil { @@ -4149,7 +4226,7 @@ func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4157,13 +4234,14 @@ func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context // DeleteInstanceFunctionSlot - Description for Delete a function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// slot - Name of the deployment slot. -// options - WebAppsClientDeleteInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.DeleteInstanceFunctionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientDeleteInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.DeleteInstanceFunctionSlot +// method. func (client *WebAppsClient) DeleteInstanceFunctionSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientDeleteInstanceFunctionSlotOptions) (WebAppsClientDeleteInstanceFunctionSlotResponse, error) { req, err := client.deleteInstanceFunctionSlotCreateRequest(ctx, resourceGroupName, name, functionName, slot, options) if err != nil { @@ -4207,7 +4285,7 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4216,14 +4294,15 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context // DeleteInstanceProcess - Description for Terminate a process by its ID for a web site, or a deployment slot, or specific // scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientDeleteInstanceProcessOptions contains the optional parameters for the WebAppsClient.DeleteInstanceProcess -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientDeleteInstanceProcessOptions contains the optional parameters for the WebAppsClient.DeleteInstanceProcess +// method. func (client *WebAppsClient) DeleteInstanceProcess(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientDeleteInstanceProcessOptions) (WebAppsClientDeleteInstanceProcessResponse, error) { req, err := client.deleteInstanceProcessCreateRequest(ctx, resourceGroupName, name, processID, instanceID, options) if err != nil { @@ -4267,7 +4346,7 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4276,15 +4355,16 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont // DeleteInstanceProcessSlot - Description for Terminate a process by its ID for a web site, or a deployment slot, or specific // scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientDeleteInstanceProcessSlotOptions contains the optional parameters for the WebAppsClient.DeleteInstanceProcessSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientDeleteInstanceProcessSlotOptions contains the optional parameters for the WebAppsClient.DeleteInstanceProcessSlot +// method. func (client *WebAppsClient) DeleteInstanceProcessSlot(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientDeleteInstanceProcessSlotOptions) (WebAppsClientDeleteInstanceProcessSlotResponse, error) { req, err := client.deleteInstanceProcessSlotCreateRequest(ctx, resourceGroupName, name, processID, slot, instanceID, options) if err != nil { @@ -4332,7 +4412,7 @@ func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4340,12 +4420,13 @@ func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context. // DeletePremierAddOn - Description for Delete a premier add-on from an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// options - WebAppsClientDeletePremierAddOnOptions contains the optional parameters for the WebAppsClient.DeletePremierAddOn -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - options - WebAppsClientDeletePremierAddOnOptions contains the optional parameters for the WebAppsClient.DeletePremierAddOn +// method. func (client *WebAppsClient) DeletePremierAddOn(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, options *WebAppsClientDeletePremierAddOnOptions) (WebAppsClientDeletePremierAddOnResponse, error) { req, err := client.deletePremierAddOnCreateRequest(ctx, resourceGroupName, name, premierAddOnName, options) if err != nil { @@ -4385,7 +4466,7 @@ func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4393,14 +4474,15 @@ func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context // DeletePremierAddOnSlot - Description for Delete a premier add-on from an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the named add-on for the production -// slot. -// options - WebAppsClientDeletePremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.DeletePremierAddOnSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the named add-on for the production +// slot. +// - options - WebAppsClientDeletePremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.DeletePremierAddOnSlot +// method. func (client *WebAppsClient) DeletePremierAddOnSlot(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, options *WebAppsClientDeletePremierAddOnSlotOptions) (WebAppsClientDeletePremierAddOnSlotResponse, error) { req, err := client.deletePremierAddOnSlotCreateRequest(ctx, resourceGroupName, name, premierAddOnName, slot, options) if err != nil { @@ -4444,7 +4526,7 @@ func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4452,11 +4534,12 @@ func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Con // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnection +// method. func (client *WebAppsClient) BeginDeletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *WebAppsClientBeginDeletePrivateEndpointConnectionOptions) (*runtime.Poller[WebAppsClientDeletePrivateEndpointConnectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deletePrivateEndpointConnection(ctx, resourceGroupName, name, privateEndpointConnectionName, options) @@ -4471,7 +4554,8 @@ func (client *WebAppsClient) BeginDeletePrivateEndpointConnection(ctx context.Co // DeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *WebAppsClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { req, err := client.deletePrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, options) if err != nil { @@ -4511,7 +4595,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4519,11 +4603,12 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx co // BeginDeletePrivateEndpointConnectionSlot - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnectionSlot +// method. func (client *WebAppsClient) BeginDeletePrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, options *WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions) (*runtime.Poller[WebAppsClientDeletePrivateEndpointConnectionSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deletePrivateEndpointConnectionSlot(ctx, resourceGroupName, name, privateEndpointConnectionName, slot, options) @@ -4538,7 +4623,8 @@ func (client *WebAppsClient) BeginDeletePrivateEndpointConnectionSlot(ctx contex // DeletePrivateEndpointConnectionSlot - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) deletePrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, options *WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions) (*http.Response, error) { req, err := client.deletePrivateEndpointConnectionSlotCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, slot, options) if err != nil { @@ -4582,7 +4668,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4591,11 +4677,12 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct // DeleteProcess - Description for Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out // instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// options - WebAppsClientDeleteProcessOptions contains the optional parameters for the WebAppsClient.DeleteProcess method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - options - WebAppsClientDeleteProcessOptions contains the optional parameters for the WebAppsClient.DeleteProcess method. func (client *WebAppsClient) DeleteProcess(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientDeleteProcessOptions) (WebAppsClientDeleteProcessResponse, error) { req, err := client.deleteProcessCreateRequest(ctx, resourceGroupName, name, processID, options) if err != nil { @@ -4635,7 +4722,7 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4644,13 +4731,14 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res // DeleteProcessSlot - Description for Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out // instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientDeleteProcessSlotOptions contains the optional parameters for the WebAppsClient.DeleteProcessSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientDeleteProcessSlotOptions contains the optional parameters for the WebAppsClient.DeleteProcessSlot +// method. func (client *WebAppsClient) DeleteProcessSlot(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientDeleteProcessSlotOptions) (WebAppsClientDeleteProcessSlotResponse, error) { req, err := client.deleteProcessSlotCreateRequest(ctx, resourceGroupName, name, processID, slot, options) if err != nil { @@ -4694,7 +4782,7 @@ func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4702,12 +4790,13 @@ func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, // DeletePublicCertificate - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// publicCertificateName - Public certificate name. -// options - WebAppsClientDeletePublicCertificateOptions contains the optional parameters for the WebAppsClient.DeletePublicCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - publicCertificateName - Public certificate name. +// - options - WebAppsClientDeletePublicCertificateOptions contains the optional parameters for the WebAppsClient.DeletePublicCertificate +// method. func (client *WebAppsClient) DeletePublicCertificate(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, options *WebAppsClientDeletePublicCertificateOptions) (WebAppsClientDeletePublicCertificateResponse, error) { req, err := client.deletePublicCertificateCreateRequest(ctx, resourceGroupName, name, publicCertificateName, options) if err != nil { @@ -4747,7 +4836,7 @@ func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4755,13 +4844,14 @@ func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Co // DeletePublicCertificateSlot - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// publicCertificateName - Public certificate name. -// options - WebAppsClientDeletePublicCertificateSlotOptions contains the optional parameters for the WebAppsClient.DeletePublicCertificateSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - publicCertificateName - Public certificate name. +// - options - WebAppsClientDeletePublicCertificateSlotOptions contains the optional parameters for the WebAppsClient.DeletePublicCertificateSlot +// method. func (client *WebAppsClient) DeletePublicCertificateSlot(ctx context.Context, resourceGroupName string, name string, slot string, publicCertificateName string, options *WebAppsClientDeletePublicCertificateSlotOptions) (WebAppsClientDeletePublicCertificateSlotResponse, error) { req, err := client.deletePublicCertificateSlotCreateRequest(ctx, resourceGroupName, name, slot, publicCertificateName, options) if err != nil { @@ -4805,7 +4895,7 @@ func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4813,12 +4903,13 @@ func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx contex // DeleteRelayServiceConnection - Description for Deletes a relay service connection by its name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection configuration. -// options - WebAppsClientDeleteRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.DeleteRelayServiceConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection configuration. +// - options - WebAppsClientDeleteRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.DeleteRelayServiceConnection +// method. func (client *WebAppsClient) DeleteRelayServiceConnection(ctx context.Context, resourceGroupName string, name string, entityName string, options *WebAppsClientDeleteRelayServiceConnectionOptions) (WebAppsClientDeleteRelayServiceConnectionResponse, error) { req, err := client.deleteRelayServiceConnectionCreateRequest(ctx, resourceGroupName, name, entityName, options) if err != nil { @@ -4858,7 +4949,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4866,14 +4957,15 @@ func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx conte // DeleteRelayServiceConnectionSlot - Description for Deletes a relay service connection by its name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection configuration. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production -// slot. -// options - WebAppsClientDeleteRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.DeleteRelayServiceConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection configuration. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production +// slot. +// - options - WebAppsClientDeleteRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.DeleteRelayServiceConnectionSlot +// method. func (client *WebAppsClient) DeleteRelayServiceConnectionSlot(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, options *WebAppsClientDeleteRelayServiceConnectionSlotOptions) (WebAppsClientDeleteRelayServiceConnectionSlotResponse, error) { req, err := client.deleteRelayServiceConnectionSlotCreateRequest(ctx, resourceGroupName, name, entityName, slot, options) if err != nil { @@ -4917,7 +5009,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4925,12 +5017,13 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c // DeleteSiteExtension - Description for Remove a site extension from a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// siteExtensionID - Site extension name. -// options - WebAppsClientDeleteSiteExtensionOptions contains the optional parameters for the WebAppsClient.DeleteSiteExtension -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - siteExtensionID - Site extension name. +// - options - WebAppsClientDeleteSiteExtensionOptions contains the optional parameters for the WebAppsClient.DeleteSiteExtension +// method. func (client *WebAppsClient) DeleteSiteExtension(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientDeleteSiteExtensionOptions) (WebAppsClientDeleteSiteExtensionResponse, error) { req, err := client.deleteSiteExtensionCreateRequest(ctx, resourceGroupName, name, siteExtensionID, options) if err != nil { @@ -4970,7 +5063,7 @@ func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4978,13 +5071,14 @@ func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Contex // DeleteSiteExtensionSlot - Description for Remove a site extension from a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// siteExtensionID - Site extension name. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientDeleteSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.DeleteSiteExtensionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - siteExtensionID - Site extension name. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientDeleteSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.DeleteSiteExtensionSlot +// method. func (client *WebAppsClient) DeleteSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientDeleteSiteExtensionSlotOptions) (WebAppsClientDeleteSiteExtensionSlotResponse, error) { req, err := client.deleteSiteExtensionSlotCreateRequest(ctx, resourceGroupName, name, siteExtensionID, slot, options) if err != nil { @@ -5028,7 +5122,7 @@ func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5036,11 +5130,12 @@ func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Co // DeleteSlot - Description for Deletes a web, mobile, or API app, or one of the deployment slots. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app to delete. -// slot - Name of the deployment slot to delete. By default, the API deletes the production slot. -// options - WebAppsClientDeleteSlotOptions contains the optional parameters for the WebAppsClient.DeleteSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app to delete. +// - slot - Name of the deployment slot to delete. By default, the API deletes the production slot. +// - options - WebAppsClientDeleteSlotOptions contains the optional parameters for the WebAppsClient.DeleteSlot method. func (client *WebAppsClient) DeleteSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeleteSlotOptions) (WebAppsClientDeleteSlotResponse, error) { req, err := client.deleteSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -5086,7 +5181,7 @@ func (client *WebAppsClient) deleteSlotCreateRequest(ctx context.Context, resour if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5094,11 +5189,12 @@ func (client *WebAppsClient) deleteSlotCreateRequest(ctx context.Context, resour // DeleteSourceControl - Description for Deletes the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientDeleteSourceControlOptions contains the optional parameters for the WebAppsClient.DeleteSourceControl -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientDeleteSourceControlOptions contains the optional parameters for the WebAppsClient.DeleteSourceControl +// method. func (client *WebAppsClient) DeleteSourceControl(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeleteSourceControlOptions) (WebAppsClientDeleteSourceControlResponse, error) { req, err := client.deleteSourceControlCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -5137,7 +5233,7 @@ func (client *WebAppsClient) deleteSourceControlCreateRequest(ctx context.Contex if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5145,13 +5241,14 @@ func (client *WebAppsClient) deleteSourceControlCreateRequest(ctx context.Contex // DeleteSourceControlSlot - Description for Deletes the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the source control configuration for -// the production slot. -// options - WebAppsClientDeleteSourceControlSlotOptions contains the optional parameters for the WebAppsClient.DeleteSourceControlSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the source control configuration for +// the production slot. +// - options - WebAppsClientDeleteSourceControlSlotOptions contains the optional parameters for the WebAppsClient.DeleteSourceControlSlot +// method. func (client *WebAppsClient) DeleteSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeleteSourceControlSlotOptions) (WebAppsClientDeleteSourceControlSlotResponse, error) { req, err := client.deleteSourceControlSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -5194,7 +5291,7 @@ func (client *WebAppsClient) deleteSourceControlSlotCreateRequest(ctx context.Co if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5202,11 +5299,12 @@ func (client *WebAppsClient) deleteSourceControlSlotCreateRequest(ctx context.Co // DeleteSwiftVirtualNetwork - Description for Deletes a Swift Virtual Network connection from an app (or deployment slot). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientDeleteSwiftVirtualNetworkOptions contains the optional parameters for the WebAppsClient.DeleteSwiftVirtualNetwork -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientDeleteSwiftVirtualNetworkOptions contains the optional parameters for the WebAppsClient.DeleteSwiftVirtualNetwork +// method. func (client *WebAppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeleteSwiftVirtualNetworkOptions) (WebAppsClientDeleteSwiftVirtualNetworkResponse, error) { req, err := client.deleteSwiftVirtualNetworkCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -5242,7 +5340,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5250,12 +5348,13 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context. // DeleteSwiftVirtualNetworkSlot - Description for Deletes a Swift Virtual Network connection from an app (or deployment slot). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. -// options - WebAppsClientDeleteSwiftVirtualNetworkSlotOptions contains the optional parameters for the WebAppsClient.DeleteSwiftVirtualNetworkSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. +// - options - WebAppsClientDeleteSwiftVirtualNetworkSlotOptions contains the optional parameters for the WebAppsClient.DeleteSwiftVirtualNetworkSlot +// method. func (client *WebAppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeleteSwiftVirtualNetworkSlotOptions) (WebAppsClientDeleteSwiftVirtualNetworkSlotResponse, error) { req, err := client.deleteSwiftVirtualNetworkSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -5295,7 +5394,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5303,12 +5402,13 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx cont // DeleteTriggeredWebJob - Description for Delete a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientDeleteTriggeredWebJobOptions contains the optional parameters for the WebAppsClient.DeleteTriggeredWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientDeleteTriggeredWebJobOptions contains the optional parameters for the WebAppsClient.DeleteTriggeredWebJob +// method. func (client *WebAppsClient) DeleteTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientDeleteTriggeredWebJobOptions) (WebAppsClientDeleteTriggeredWebJobResponse, error) { req, err := client.deleteTriggeredWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -5348,7 +5448,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5356,13 +5456,14 @@ func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Cont // DeleteTriggeredWebJobSlot - Description for Delete a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes web job for the production slot. -// options - WebAppsClientDeleteTriggeredWebJobSlotOptions contains the optional parameters for the WebAppsClient.DeleteTriggeredWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes web job for the production slot. +// - options - WebAppsClientDeleteTriggeredWebJobSlotOptions contains the optional parameters for the WebAppsClient.DeleteTriggeredWebJobSlot +// method. func (client *WebAppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientDeleteTriggeredWebJobSlotOptions) (WebAppsClientDeleteTriggeredWebJobSlotResponse, error) { req, err := client.deleteTriggeredWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -5406,7 +5507,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5414,12 +5515,13 @@ func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context. // DeleteVnetConnection - Description for Deletes a connection from an app (or deployment slot to a named virtual network. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the virtual network. -// options - WebAppsClientDeleteVnetConnectionOptions contains the optional parameters for the WebAppsClient.DeleteVnetConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the virtual network. +// - options - WebAppsClientDeleteVnetConnectionOptions contains the optional parameters for the WebAppsClient.DeleteVnetConnection +// method. func (client *WebAppsClient) DeleteVnetConnection(ctx context.Context, resourceGroupName string, name string, vnetName string, options *WebAppsClientDeleteVnetConnectionOptions) (WebAppsClientDeleteVnetConnectionResponse, error) { req, err := client.deleteVnetConnectionCreateRequest(ctx, resourceGroupName, name, vnetName, options) if err != nil { @@ -5459,7 +5561,7 @@ func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5467,13 +5569,14 @@ func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Conte // DeleteVnetConnectionSlot - Description for Deletes a connection from an app (or deployment slot to a named virtual network. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the virtual network. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. -// options - WebAppsClientDeleteVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.DeleteVnetConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the virtual network. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. +// - options - WebAppsClientDeleteVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.DeleteVnetConnectionSlot +// method. func (client *WebAppsClient) DeleteVnetConnectionSlot(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, options *WebAppsClientDeleteVnetConnectionSlotOptions) (WebAppsClientDeleteVnetConnectionSlotResponse, error) { req, err := client.deleteVnetConnectionSlotCreateRequest(ctx, resourceGroupName, name, vnetName, slot, options) if err != nil { @@ -5517,20 +5620,130 @@ func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// DeployWorkflowArtifacts - Description for Creates the artifacts for web site, or a deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientDeployWorkflowArtifactsOptions contains the optional parameters for the WebAppsClient.DeployWorkflowArtifacts +// method. +func (client *WebAppsClient) DeployWorkflowArtifacts(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeployWorkflowArtifactsOptions) (WebAppsClientDeployWorkflowArtifactsResponse, error) { + req, err := client.deployWorkflowArtifactsCreateRequest(ctx, resourceGroupName, name, options) + if err != nil { + return WebAppsClientDeployWorkflowArtifactsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientDeployWorkflowArtifactsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientDeployWorkflowArtifactsResponse{}, runtime.NewResponseError(resp) + } + return WebAppsClientDeployWorkflowArtifactsResponse{}, nil +} + +// deployWorkflowArtifactsCreateRequest creates the DeployWorkflowArtifacts request. +func (client *WebAppsClient) deployWorkflowArtifactsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeployWorkflowArtifactsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployWorkflowArtifacts" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.WorkflowArtifacts != nil { + return req, runtime.MarshalAsJSON(req, *options.WorkflowArtifacts) + } + return req, nil +} + +// DeployWorkflowArtifactsSlot - Description for Creates the artifacts for web site, or a deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientDeployWorkflowArtifactsSlotOptions contains the optional parameters for the WebAppsClient.DeployWorkflowArtifactsSlot +// method. +func (client *WebAppsClient) DeployWorkflowArtifactsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeployWorkflowArtifactsSlotOptions) (WebAppsClientDeployWorkflowArtifactsSlotResponse, error) { + req, err := client.deployWorkflowArtifactsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) + if err != nil { + return WebAppsClientDeployWorkflowArtifactsSlotResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientDeployWorkflowArtifactsSlotResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientDeployWorkflowArtifactsSlotResponse{}, runtime.NewResponseError(resp) + } + return WebAppsClientDeployWorkflowArtifactsSlotResponse{}, nil +} + +// deployWorkflowArtifactsSlotCreateRequest creates the DeployWorkflowArtifactsSlot request. +func (client *WebAppsClient) deployWorkflowArtifactsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeployWorkflowArtifactsSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployWorkflowArtifacts" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if slot == "" { + return nil, errors.New("parameter slot cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{slot}", url.PathEscape(slot)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.WorkflowArtifacts != nil { + return req, runtime.MarshalAsJSON(req, *options.WorkflowArtifacts) + } return req, nil } // DiscoverBackup - Description for Discovers an existing app backup that can be restored from a blob in Azure storage. Use // this to get information about the databases stored in a backup. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// request - A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. -// options - WebAppsClientDiscoverBackupOptions contains the optional parameters for the WebAppsClient.DiscoverBackup method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - request - A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. +// - options - WebAppsClientDiscoverBackupOptions contains the optional parameters for the WebAppsClient.DiscoverBackup method. func (client *WebAppsClient) DiscoverBackup(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, options *WebAppsClientDiscoverBackupOptions) (WebAppsClientDiscoverBackupResponse, error) { req, err := client.discoverBackupCreateRequest(ctx, resourceGroupName, name, request, options) if err != nil { @@ -5566,7 +5779,7 @@ func (client *WebAppsClient) discoverBackupCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -5584,13 +5797,14 @@ func (client *WebAppsClient) discoverBackupHandleResponse(resp *http.Response) ( // DiscoverBackupSlot - Description for Discovers an existing app backup that can be restored from a blob in Azure storage. // Use this to get information about the databases stored in a backup. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. -// request - A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. -// options - WebAppsClientDiscoverBackupSlotOptions contains the optional parameters for the WebAppsClient.DiscoverBackupSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. +// - request - A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. +// - options - WebAppsClientDiscoverBackupSlotOptions contains the optional parameters for the WebAppsClient.DiscoverBackupSlot +// method. func (client *WebAppsClient) DiscoverBackupSlot(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, options *WebAppsClientDiscoverBackupSlotOptions) (WebAppsClientDiscoverBackupSlotResponse, error) { req, err := client.discoverBackupSlotCreateRequest(ctx, resourceGroupName, name, slot, request, options) if err != nil { @@ -5630,7 +5844,7 @@ func (client *WebAppsClient) discoverBackupSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -5648,11 +5862,12 @@ func (client *WebAppsClient) discoverBackupSlotHandleResponse(resp *http.Respons // GenerateNewSitePublishingPassword - Description for Generates a new publishing password for an app (or deployment slot, // if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGenerateNewSitePublishingPasswordOptions contains the optional parameters for the WebAppsClient.GenerateNewSitePublishingPassword -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGenerateNewSitePublishingPasswordOptions contains the optional parameters for the WebAppsClient.GenerateNewSitePublishingPassword +// method. func (client *WebAppsClient) GenerateNewSitePublishingPassword(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGenerateNewSitePublishingPasswordOptions) (WebAppsClientGenerateNewSitePublishingPasswordResponse, error) { req, err := client.generateNewSitePublishingPasswordCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -5688,7 +5903,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5697,13 +5912,14 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx // GenerateNewSitePublishingPasswordSlot - Description for Generates a new publishing password for an app (or deployment slot, // if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API generate a new publishing password for the production -// slot. -// options - WebAppsClientGenerateNewSitePublishingPasswordSlotOptions contains the optional parameters for the WebAppsClient.GenerateNewSitePublishingPasswordSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API generate a new publishing password for the production +// slot. +// - options - WebAppsClientGenerateNewSitePublishingPasswordSlotOptions contains the optional parameters for the WebAppsClient.GenerateNewSitePublishingPasswordSlot +// method. func (client *WebAppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGenerateNewSitePublishingPasswordSlotOptions) (WebAppsClientGenerateNewSitePublishingPasswordSlotResponse, error) { req, err := client.generateNewSitePublishingPasswordSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -5743,7 +5959,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5751,10 +5967,11 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest( // Get - Description for Gets the details of a web, mobile, or API app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetOptions contains the optional parameters for the WebAppsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetOptions contains the optional parameters for the WebAppsClient.Get method. func (client *WebAppsClient) Get(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetOptions) (WebAppsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -5790,7 +6007,7 @@ func (client *WebAppsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5807,12 +6024,13 @@ func (client *WebAppsClient) getHandleResponse(resp *http.Response) (WebAppsClie // GetAppSettingKeyVaultReference - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// appSettingKey - App Setting key name. -// options - WebAppsClientGetAppSettingKeyVaultReferenceOptions contains the optional parameters for the WebAppsClient.GetAppSettingKeyVaultReference -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - appSettingKey - App Setting key name. +// - options - WebAppsClientGetAppSettingKeyVaultReferenceOptions contains the optional parameters for the WebAppsClient.GetAppSettingKeyVaultReference +// method. func (client *WebAppsClient) GetAppSettingKeyVaultReference(ctx context.Context, resourceGroupName string, name string, appSettingKey string, options *WebAppsClientGetAppSettingKeyVaultReferenceOptions) (WebAppsClientGetAppSettingKeyVaultReferenceResponse, error) { req, err := client.getAppSettingKeyVaultReferenceCreateRequest(ctx, resourceGroupName, name, appSettingKey, options) if err != nil { @@ -5852,7 +6070,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5869,12 +6087,13 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceHandleResponse(resp * // GetAppSettingKeyVaultReferenceSlot - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// appSettingKey - App Setting key name. -// options - WebAppsClientGetAppSettingKeyVaultReferenceSlotOptions contains the optional parameters for the WebAppsClient.GetAppSettingKeyVaultReferenceSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - appSettingKey - App Setting key name. +// - options - WebAppsClientGetAppSettingKeyVaultReferenceSlotOptions contains the optional parameters for the WebAppsClient.GetAppSettingKeyVaultReferenceSlot +// method. func (client *WebAppsClient) GetAppSettingKeyVaultReferenceSlot(ctx context.Context, resourceGroupName string, name string, appSettingKey string, slot string, options *WebAppsClientGetAppSettingKeyVaultReferenceSlotOptions) (WebAppsClientGetAppSettingKeyVaultReferenceSlotResponse, error) { req, err := client.getAppSettingKeyVaultReferenceSlotCreateRequest(ctx, resourceGroupName, name, appSettingKey, slot, options) if err != nil { @@ -5918,7 +6137,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5934,12 +6153,12 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotHandleResponse(re } // NewGetAppSettingsKeyVaultReferencesPager - Description for Gets the config reference app settings and status of an app -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetAppSettingsKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.GetAppSettingsKeyVaultReferences -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetAppSettingsKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.NewGetAppSettingsKeyVaultReferencesPager +// method. func (client *WebAppsClient) NewGetAppSettingsKeyVaultReferencesPager(resourceGroupName string, name string, options *WebAppsClientGetAppSettingsKeyVaultReferencesOptions) *runtime.Pager[WebAppsClientGetAppSettingsKeyVaultReferencesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientGetAppSettingsKeyVaultReferencesResponse]{ More: func(page WebAppsClientGetAppSettingsKeyVaultReferencesResponse) bool { @@ -5988,7 +6207,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6005,12 +6224,12 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesHandleResponse(resp // NewGetAppSettingsKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status of an // app -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.GetAppSettingsKeyVaultReferencesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.NewGetAppSettingsKeyVaultReferencesSlotPager +// method. func (client *WebAppsClient) NewGetAppSettingsKeyVaultReferencesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions) *runtime.Pager[WebAppsClientGetAppSettingsKeyVaultReferencesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientGetAppSettingsKeyVaultReferencesSlotResponse]{ More: func(page WebAppsClientGetAppSettingsKeyVaultReferencesSlotResponse) bool { @@ -6063,7 +6282,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6080,10 +6299,11 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotHandleResponse( // GetAuthSettings - Description for Gets the Authentication/Authorization settings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetAuthSettingsOptions contains the optional parameters for the WebAppsClient.GetAuthSettings method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetAuthSettingsOptions contains the optional parameters for the WebAppsClient.GetAuthSettings method. func (client *WebAppsClient) GetAuthSettings(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAuthSettingsOptions) (WebAppsClientGetAuthSettingsResponse, error) { req, err := client.getAuthSettingsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -6119,7 +6339,7 @@ func (client *WebAppsClient) getAuthSettingsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6136,12 +6356,13 @@ func (client *WebAppsClient) getAuthSettingsHandleResponse(resp *http.Response) // GetAuthSettingsSlot - Description for Gets the Authentication/Authorization settings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. -// options - WebAppsClientGetAuthSettingsSlotOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. +// - options - WebAppsClientGetAuthSettingsSlotOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsSlot +// method. func (client *WebAppsClient) GetAuthSettingsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAuthSettingsSlotOptions) (WebAppsClientGetAuthSettingsSlotResponse, error) { req, err := client.getAuthSettingsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -6181,7 +6402,7 @@ func (client *WebAppsClient) getAuthSettingsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6198,11 +6419,12 @@ func (client *WebAppsClient) getAuthSettingsSlotHandleResponse(resp *http.Respon // GetAuthSettingsV2 - Description for Gets site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetAuthSettingsV2Options contains the optional parameters for the WebAppsClient.GetAuthSettingsV2 -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetAuthSettingsV2Options contains the optional parameters for the WebAppsClient.GetAuthSettingsV2 +// method. func (client *WebAppsClient) GetAuthSettingsV2(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAuthSettingsV2Options) (WebAppsClientGetAuthSettingsV2Response, error) { req, err := client.getAuthSettingsV2CreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -6238,7 +6460,7 @@ func (client *WebAppsClient) getAuthSettingsV2CreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6255,12 +6477,13 @@ func (client *WebAppsClient) getAuthSettingsV2HandleResponse(resp *http.Response // GetAuthSettingsV2Slot - Description for Gets site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. -// options - WebAppsClientGetAuthSettingsV2SlotOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2Slot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. +// - options - WebAppsClientGetAuthSettingsV2SlotOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2Slot +// method. func (client *WebAppsClient) GetAuthSettingsV2Slot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAuthSettingsV2SlotOptions) (WebAppsClientGetAuthSettingsV2SlotResponse, error) { req, err := client.getAuthSettingsV2SlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -6300,7 +6523,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6318,11 +6541,12 @@ func (client *WebAppsClient) getAuthSettingsV2SlotHandleResponse(resp *http.Resp // GetAuthSettingsV2WithoutSecrets - Description for Gets site's Authentication / Authorization settings for apps via the // V2 format // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetAuthSettingsV2WithoutSecretsOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2WithoutSecrets -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetAuthSettingsV2WithoutSecretsOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2WithoutSecrets +// method. func (client *WebAppsClient) GetAuthSettingsV2WithoutSecrets(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAuthSettingsV2WithoutSecretsOptions) (WebAppsClientGetAuthSettingsV2WithoutSecretsResponse, error) { req, err := client.getAuthSettingsV2WithoutSecretsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -6358,7 +6582,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6375,12 +6599,13 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsHandleResponse(resp // GetAuthSettingsV2WithoutSecretsSlot - Gets site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. -// options - WebAppsClientGetAuthSettingsV2WithoutSecretsSlotOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2WithoutSecretsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. +// - options - WebAppsClientGetAuthSettingsV2WithoutSecretsSlotOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2WithoutSecretsSlot +// method. func (client *WebAppsClient) GetAuthSettingsV2WithoutSecretsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAuthSettingsV2WithoutSecretsSlotOptions) (WebAppsClientGetAuthSettingsV2WithoutSecretsSlotResponse, error) { req, err := client.getAuthSettingsV2WithoutSecretsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -6420,7 +6645,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6437,11 +6662,12 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotHandleResponse(r // GetBackupConfiguration - Description for Gets the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetBackupConfigurationOptions contains the optional parameters for the WebAppsClient.GetBackupConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetBackupConfigurationOptions contains the optional parameters for the WebAppsClient.GetBackupConfiguration +// method. func (client *WebAppsClient) GetBackupConfiguration(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetBackupConfigurationOptions) (WebAppsClientGetBackupConfigurationResponse, error) { req, err := client.getBackupConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -6477,7 +6703,7 @@ func (client *WebAppsClient) getBackupConfigurationCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6494,13 +6720,14 @@ func (client *WebAppsClient) getBackupConfigurationHandleResponse(resp *http.Res // GetBackupConfigurationSlot - Description for Gets the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production -// slot. -// options - WebAppsClientGetBackupConfigurationSlotOptions contains the optional parameters for the WebAppsClient.GetBackupConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production +// slot. +// - options - WebAppsClientGetBackupConfigurationSlotOptions contains the optional parameters for the WebAppsClient.GetBackupConfigurationSlot +// method. func (client *WebAppsClient) GetBackupConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetBackupConfigurationSlotOptions) (WebAppsClientGetBackupConfigurationSlotResponse, error) { req, err := client.getBackupConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -6540,7 +6767,7 @@ func (client *WebAppsClient) getBackupConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6557,11 +6784,12 @@ func (client *WebAppsClient) getBackupConfigurationSlotHandleResponse(resp *http // GetBackupStatus - Description for Gets a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// backupID - ID of the backup. -// options - WebAppsClientGetBackupStatusOptions contains the optional parameters for the WebAppsClient.GetBackupStatus method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - backupID - ID of the backup. +// - options - WebAppsClientGetBackupStatusOptions contains the optional parameters for the WebAppsClient.GetBackupStatus method. func (client *WebAppsClient) GetBackupStatus(ctx context.Context, resourceGroupName string, name string, backupID string, options *WebAppsClientGetBackupStatusOptions) (WebAppsClientGetBackupStatusResponse, error) { req, err := client.getBackupStatusCreateRequest(ctx, resourceGroupName, name, backupID, options) if err != nil { @@ -6601,7 +6829,7 @@ func (client *WebAppsClient) getBackupStatusCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6618,13 +6846,14 @@ func (client *WebAppsClient) getBackupStatusHandleResponse(resp *http.Response) // GetBackupStatusSlot - Description for Gets a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// backupID - ID of the backup. -// slot - Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. -// options - WebAppsClientGetBackupStatusSlotOptions contains the optional parameters for the WebAppsClient.GetBackupStatusSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - backupID - ID of the backup. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. +// - options - WebAppsClientGetBackupStatusSlotOptions contains the optional parameters for the WebAppsClient.GetBackupStatusSlot +// method. func (client *WebAppsClient) GetBackupStatusSlot(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, options *WebAppsClientGetBackupStatusSlotOptions) (WebAppsClientGetBackupStatusSlotResponse, error) { req, err := client.getBackupStatusSlotCreateRequest(ctx, resourceGroupName, name, backupID, slot, options) if err != nil { @@ -6668,7 +6897,7 @@ func (client *WebAppsClient) getBackupStatusSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6686,11 +6915,12 @@ func (client *WebAppsClient) getBackupStatusSlotHandleResponse(resp *http.Respon // GetConfiguration - Description for Gets the configuration of an app, such as platform version and bitness, default documents, // virtual applications, Always On, etc. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetConfigurationOptions contains the optional parameters for the WebAppsClient.GetConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetConfigurationOptions contains the optional parameters for the WebAppsClient.GetConfiguration +// method. func (client *WebAppsClient) GetConfiguration(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetConfigurationOptions) (WebAppsClientGetConfigurationResponse, error) { req, err := client.getConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -6726,7 +6956,7 @@ func (client *WebAppsClient) getConfigurationCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6744,12 +6974,13 @@ func (client *WebAppsClient) getConfigurationHandleResponse(resp *http.Response) // GetConfigurationSlot - Description for Gets the configuration of an app, such as platform version and bitness, default // documents, virtual applications, Always On, etc. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. -// options - WebAppsClientGetConfigurationSlotOptions contains the optional parameters for the WebAppsClient.GetConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. +// - options - WebAppsClientGetConfigurationSlotOptions contains the optional parameters for the WebAppsClient.GetConfigurationSlot +// method. func (client *WebAppsClient) GetConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetConfigurationSlotOptions) (WebAppsClientGetConfigurationSlotResponse, error) { req, err := client.getConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -6789,7 +7020,7 @@ func (client *WebAppsClient) getConfigurationSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6806,12 +7037,13 @@ func (client *WebAppsClient) getConfigurationSlotHandleResponse(resp *http.Respo // GetConfigurationSnapshot - Description for Gets a snapshot of the configuration of an app at a previous point in time. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// snapshotID - The ID of the snapshot to read. -// options - WebAppsClientGetConfigurationSnapshotOptions contains the optional parameters for the WebAppsClient.GetConfigurationSnapshot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - snapshotID - The ID of the snapshot to read. +// - options - WebAppsClientGetConfigurationSnapshotOptions contains the optional parameters for the WebAppsClient.GetConfigurationSnapshot +// method. func (client *WebAppsClient) GetConfigurationSnapshot(ctx context.Context, resourceGroupName string, name string, snapshotID string, options *WebAppsClientGetConfigurationSnapshotOptions) (WebAppsClientGetConfigurationSnapshotResponse, error) { req, err := client.getConfigurationSnapshotCreateRequest(ctx, resourceGroupName, name, snapshotID, options) if err != nil { @@ -6851,7 +7083,7 @@ func (client *WebAppsClient) getConfigurationSnapshotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6868,13 +7100,14 @@ func (client *WebAppsClient) getConfigurationSnapshotHandleResponse(resp *http.R // GetConfigurationSnapshotSlot - Description for Gets a snapshot of the configuration of an app at a previous point in time. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// snapshotID - The ID of the snapshot to read. -// slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. -// options - WebAppsClientGetConfigurationSnapshotSlotOptions contains the optional parameters for the WebAppsClient.GetConfigurationSnapshotSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - snapshotID - The ID of the snapshot to read. +// - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. +// - options - WebAppsClientGetConfigurationSnapshotSlotOptions contains the optional parameters for the WebAppsClient.GetConfigurationSnapshotSlot +// method. func (client *WebAppsClient) GetConfigurationSnapshotSlot(ctx context.Context, resourceGroupName string, name string, snapshotID string, slot string, options *WebAppsClientGetConfigurationSnapshotSlotOptions) (WebAppsClientGetConfigurationSnapshotSlotResponse, error) { req, err := client.getConfigurationSnapshotSlotCreateRequest(ctx, resourceGroupName, name, snapshotID, slot, options) if err != nil { @@ -6918,7 +7151,7 @@ func (client *WebAppsClient) getConfigurationSnapshotSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6935,11 +7168,12 @@ func (client *WebAppsClient) getConfigurationSnapshotSlotHandleResponse(resp *ht // GetContainerLogsZip - Description for Gets the ZIP archived docker log files for the given site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetContainerLogsZipOptions contains the optional parameters for the WebAppsClient.GetContainerLogsZip -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetContainerLogsZipOptions contains the optional parameters for the WebAppsClient.GetContainerLogsZip +// method. func (client *WebAppsClient) GetContainerLogsZip(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetContainerLogsZipOptions) (WebAppsClientGetContainerLogsZipResponse, error) { req, err := client.getContainerLogsZipCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -6975,7 +7209,7 @@ func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/zip"} @@ -6984,12 +7218,13 @@ func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Contex // GetContainerLogsZipSlot - Description for Gets the ZIP archived docker log files for the given site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientGetContainerLogsZipSlotOptions contains the optional parameters for the WebAppsClient.GetContainerLogsZipSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientGetContainerLogsZipSlotOptions contains the optional parameters for the WebAppsClient.GetContainerLogsZipSlot +// method. func (client *WebAppsClient) GetContainerLogsZipSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetContainerLogsZipSlotOptions) (WebAppsClientGetContainerLogsZipSlotResponse, error) { req, err := client.getContainerLogsZipSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -7029,7 +7264,7 @@ func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/zip"} @@ -7038,12 +7273,13 @@ func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Co // GetContinuousWebJob - Description for Gets a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientGetContinuousWebJobOptions contains the optional parameters for the WebAppsClient.GetContinuousWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientGetContinuousWebJobOptions contains the optional parameters for the WebAppsClient.GetContinuousWebJob +// method. func (client *WebAppsClient) GetContinuousWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientGetContinuousWebJobOptions) (WebAppsClientGetContinuousWebJobResponse, error) { req, err := client.getContinuousWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -7083,7 +7319,7 @@ func (client *WebAppsClient) getContinuousWebJobCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7100,13 +7336,14 @@ func (client *WebAppsClient) getContinuousWebJobHandleResponse(resp *http.Respon // GetContinuousWebJobSlot - Description for Gets a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientGetContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.GetContinuousWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientGetContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.GetContinuousWebJobSlot +// method. func (client *WebAppsClient) GetContinuousWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientGetContinuousWebJobSlotOptions) (WebAppsClientGetContinuousWebJobSlotResponse, error) { req, err := client.getContinuousWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -7150,7 +7387,7 @@ func (client *WebAppsClient) getContinuousWebJobSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7167,11 +7404,12 @@ func (client *WebAppsClient) getContinuousWebJobSlotHandleResponse(resp *http.Re // GetDeployment - Description for Get a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - Deployment ID. -// options - WebAppsClientGetDeploymentOptions contains the optional parameters for the WebAppsClient.GetDeployment method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - Deployment ID. +// - options - WebAppsClientGetDeploymentOptions contains the optional parameters for the WebAppsClient.GetDeployment method. func (client *WebAppsClient) GetDeployment(ctx context.Context, resourceGroupName string, name string, id string, options *WebAppsClientGetDeploymentOptions) (WebAppsClientGetDeploymentResponse, error) { req, err := client.getDeploymentCreateRequest(ctx, resourceGroupName, name, id, options) if err != nil { @@ -7211,7 +7449,7 @@ func (client *WebAppsClient) getDeploymentCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7228,13 +7466,14 @@ func (client *WebAppsClient) getDeploymentHandleResponse(resp *http.Response) (W // GetDeploymentSlot - Description for Get a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - Deployment ID. -// slot - Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. -// options - WebAppsClientGetDeploymentSlotOptions contains the optional parameters for the WebAppsClient.GetDeploymentSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - Deployment ID. +// - slot - Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. +// - options - WebAppsClientGetDeploymentSlotOptions contains the optional parameters for the WebAppsClient.GetDeploymentSlot +// method. func (client *WebAppsClient) GetDeploymentSlot(ctx context.Context, resourceGroupName string, name string, id string, slot string, options *WebAppsClientGetDeploymentSlotOptions) (WebAppsClientGetDeploymentSlotResponse, error) { req, err := client.getDeploymentSlotCreateRequest(ctx, resourceGroupName, name, id, slot, options) if err != nil { @@ -7278,7 +7517,7 @@ func (client *WebAppsClient) getDeploymentSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7295,11 +7534,12 @@ func (client *WebAppsClient) getDeploymentSlotHandleResponse(resp *http.Response // GetDiagnosticLogsConfiguration - Description for Gets the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetDiagnosticLogsConfigurationOptions contains the optional parameters for the WebAppsClient.GetDiagnosticLogsConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetDiagnosticLogsConfigurationOptions contains the optional parameters for the WebAppsClient.GetDiagnosticLogsConfiguration +// method. func (client *WebAppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetDiagnosticLogsConfigurationOptions) (WebAppsClientGetDiagnosticLogsConfigurationResponse, error) { req, err := client.getDiagnosticLogsConfigurationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -7335,7 +7575,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7352,13 +7592,14 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationHandleResponse(resp * // GetDiagnosticLogsConfigurationSlot - Description for Gets the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production -// slot. -// options - WebAppsClientGetDiagnosticLogsConfigurationSlotOptions contains the optional parameters for the WebAppsClient.GetDiagnosticLogsConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production +// slot. +// - options - WebAppsClientGetDiagnosticLogsConfigurationSlotOptions contains the optional parameters for the WebAppsClient.GetDiagnosticLogsConfigurationSlot +// method. func (client *WebAppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetDiagnosticLogsConfigurationSlotOptions) (WebAppsClientGetDiagnosticLogsConfigurationSlotResponse, error) { req, err := client.getDiagnosticLogsConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -7398,7 +7639,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7415,12 +7656,13 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotHandleResponse(re // GetDomainOwnershipIdentifier - Description for Get domain ownership identifier for web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// options - WebAppsClientGetDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.GetDomainOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - options - WebAppsClientGetDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.GetDomainOwnershipIdentifier +// method. func (client *WebAppsClient) GetDomainOwnershipIdentifier(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, options *WebAppsClientGetDomainOwnershipIdentifierOptions) (WebAppsClientGetDomainOwnershipIdentifierResponse, error) { req, err := client.getDomainOwnershipIdentifierCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, options) if err != nil { @@ -7460,7 +7702,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7477,13 +7719,14 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierHandleResponse(resp *ht // GetDomainOwnershipIdentifierSlot - Description for Get domain ownership identifier for web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// options - WebAppsClientGetDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.GetDomainOwnershipIdentifierSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - options - WebAppsClientGetDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.GetDomainOwnershipIdentifierSlot +// method. func (client *WebAppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, options *WebAppsClientGetDomainOwnershipIdentifierSlotOptions) (WebAppsClientGetDomainOwnershipIdentifierSlotResponse, error) { req, err := client.getDomainOwnershipIdentifierSlotCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, slot, options) if err != nil { @@ -7527,7 +7770,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7544,10 +7787,11 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierSlotHandleResponse(resp // GetFtpAllowed - Description for Returns whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetFtpAllowedOptions contains the optional parameters for the WebAppsClient.GetFtpAllowed method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetFtpAllowedOptions contains the optional parameters for the WebAppsClient.GetFtpAllowed method. func (client *WebAppsClient) GetFtpAllowed(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetFtpAllowedOptions) (WebAppsClientGetFtpAllowedResponse, error) { req, err := client.getFtpAllowedCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -7583,7 +7827,7 @@ func (client *WebAppsClient) getFtpAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7600,11 +7844,12 @@ func (client *WebAppsClient) getFtpAllowedHandleResponse(resp *http.Response) (W // GetFtpAllowedSlot - Description for Returns whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetFtpAllowedSlotOptions contains the optional parameters for the WebAppsClient.GetFtpAllowedSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetFtpAllowedSlotOptions contains the optional parameters for the WebAppsClient.GetFtpAllowedSlot +// method. func (client *WebAppsClient) GetFtpAllowedSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetFtpAllowedSlotOptions) (WebAppsClientGetFtpAllowedSlotResponse, error) { req, err := client.getFtpAllowedSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -7644,7 +7889,7 @@ func (client *WebAppsClient) getFtpAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7661,11 +7906,12 @@ func (client *WebAppsClient) getFtpAllowedSlotHandleResponse(resp *http.Response // GetFunction - Description for Get function information by its ID for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// options - WebAppsClientGetFunctionOptions contains the optional parameters for the WebAppsClient.GetFunction method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - options - WebAppsClientGetFunctionOptions contains the optional parameters for the WebAppsClient.GetFunction method. func (client *WebAppsClient) GetFunction(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientGetFunctionOptions) (WebAppsClientGetFunctionResponse, error) { req, err := client.getFunctionCreateRequest(ctx, resourceGroupName, name, functionName, options) if err != nil { @@ -7705,7 +7951,7 @@ func (client *WebAppsClient) getFunctionCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7722,11 +7968,12 @@ func (client *WebAppsClient) getFunctionHandleResponse(resp *http.Response) (Web // GetFunctionsAdminToken - Description for Fetch a short lived token that can be exchanged for a master key. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetFunctionsAdminTokenOptions contains the optional parameters for the WebAppsClient.GetFunctionsAdminToken -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetFunctionsAdminTokenOptions contains the optional parameters for the WebAppsClient.GetFunctionsAdminToken +// method. func (client *WebAppsClient) GetFunctionsAdminToken(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetFunctionsAdminTokenOptions) (WebAppsClientGetFunctionsAdminTokenResponse, error) { req, err := client.getFunctionsAdminTokenCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -7762,7 +8009,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7779,12 +8026,13 @@ func (client *WebAppsClient) getFunctionsAdminTokenHandleResponse(resp *http.Res // GetFunctionsAdminTokenSlot - Description for Fetch a short lived token that can be exchanged for a master key. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientGetFunctionsAdminTokenSlotOptions contains the optional parameters for the WebAppsClient.GetFunctionsAdminTokenSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientGetFunctionsAdminTokenSlotOptions contains the optional parameters for the WebAppsClient.GetFunctionsAdminTokenSlot +// method. func (client *WebAppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetFunctionsAdminTokenSlotOptions) (WebAppsClientGetFunctionsAdminTokenSlotResponse, error) { req, err := client.getFunctionsAdminTokenSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -7824,7 +8072,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7841,12 +8089,13 @@ func (client *WebAppsClient) getFunctionsAdminTokenSlotHandleResponse(resp *http // GetHostNameBinding - Description for Get the named hostname binding for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// hostName - Hostname in the hostname binding. -// options - WebAppsClientGetHostNameBindingOptions contains the optional parameters for the WebAppsClient.GetHostNameBinding -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - hostName - Hostname in the hostname binding. +// - options - WebAppsClientGetHostNameBindingOptions contains the optional parameters for the WebAppsClient.GetHostNameBinding +// method. func (client *WebAppsClient) GetHostNameBinding(ctx context.Context, resourceGroupName string, name string, hostName string, options *WebAppsClientGetHostNameBindingOptions) (WebAppsClientGetHostNameBindingResponse, error) { req, err := client.getHostNameBindingCreateRequest(ctx, resourceGroupName, name, hostName, options) if err != nil { @@ -7886,7 +8135,7 @@ func (client *WebAppsClient) getHostNameBindingCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7903,13 +8152,14 @@ func (client *WebAppsClient) getHostNameBindingHandleResponse(resp *http.Respons // GetHostNameBindingSlot - Description for Get the named hostname binding for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. -// hostName - Hostname in the hostname binding. -// options - WebAppsClientGetHostNameBindingSlotOptions contains the optional parameters for the WebAppsClient.GetHostNameBindingSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. +// - hostName - Hostname in the hostname binding. +// - options - WebAppsClientGetHostNameBindingSlotOptions contains the optional parameters for the WebAppsClient.GetHostNameBindingSlot +// method. func (client *WebAppsClient) GetHostNameBindingSlot(ctx context.Context, resourceGroupName string, name string, slot string, hostName string, options *WebAppsClientGetHostNameBindingSlotOptions) (WebAppsClientGetHostNameBindingSlotResponse, error) { req, err := client.getHostNameBindingSlotCreateRequest(ctx, resourceGroupName, name, slot, hostName, options) if err != nil { @@ -7953,7 +8203,7 @@ func (client *WebAppsClient) getHostNameBindingSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7970,13 +8220,14 @@ func (client *WebAppsClient) getHostNameBindingSlotHandleResponse(resp *http.Res // GetHybridConnection - Description for Retrieves a specific Service Bus Hybrid Connection used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// options - WebAppsClientGetHybridConnectionOptions contains the optional parameters for the WebAppsClient.GetHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - options - WebAppsClientGetHybridConnectionOptions contains the optional parameters for the WebAppsClient.GetHybridConnection +// method. func (client *WebAppsClient) GetHybridConnection(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *WebAppsClientGetHybridConnectionOptions) (WebAppsClientGetHybridConnectionResponse, error) { req, err := client.getHybridConnectionCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, options) if err != nil { @@ -8020,7 +8271,7 @@ func (client *WebAppsClient) getHybridConnectionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8037,14 +8288,15 @@ func (client *WebAppsClient) getHybridConnectionHandleResponse(resp *http.Respon // GetHybridConnectionSlot - Description for Retrieves a specific Service Bus Hybrid Connection used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// slot - The name of the slot for the web app. -// options - WebAppsClientGetHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetHybridConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - slot - The name of the slot for the web app. +// - options - WebAppsClientGetHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetHybridConnectionSlot +// method. func (client *WebAppsClient) GetHybridConnectionSlot(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, options *WebAppsClientGetHybridConnectionSlotOptions) (WebAppsClientGetHybridConnectionSlotResponse, error) { req, err := client.getHybridConnectionSlotCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, slot, options) if err != nil { @@ -8092,7 +8344,7 @@ func (client *WebAppsClient) getHybridConnectionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8109,13 +8361,14 @@ func (client *WebAppsClient) getHybridConnectionSlotHandleResponse(resp *http.Re // GetInstanceFunctionSlot - Description for Get function information by its ID for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// slot - Name of the deployment slot. -// options - WebAppsClientGetInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceFunctionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientGetInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceFunctionSlot +// method. func (client *WebAppsClient) GetInstanceFunctionSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientGetInstanceFunctionSlotOptions) (WebAppsClientGetInstanceFunctionSlotResponse, error) { req, err := client.getInstanceFunctionSlotCreateRequest(ctx, resourceGroupName, name, functionName, slot, options) if err != nil { @@ -8159,7 +8412,7 @@ func (client *WebAppsClient) getInstanceFunctionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8176,10 +8429,11 @@ func (client *WebAppsClient) getInstanceFunctionSlotHandleResponse(resp *http.Re // GetInstanceInfo - Description for Gets all scale-out instances of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetInstanceInfoOptions contains the optional parameters for the WebAppsClient.GetInstanceInfo method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetInstanceInfoOptions contains the optional parameters for the WebAppsClient.GetInstanceInfo method. func (client *WebAppsClient) GetInstanceInfo(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientGetInstanceInfoOptions) (WebAppsClientGetInstanceInfoResponse, error) { req, err := client.getInstanceInfoCreateRequest(ctx, resourceGroupName, name, instanceID, options) if err != nil { @@ -8219,7 +8473,7 @@ func (client *WebAppsClient) getInstanceInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8236,12 +8490,13 @@ func (client *WebAppsClient) getInstanceInfoHandleResponse(resp *http.Response) // GetInstanceInfoSlot - Description for Gets all scale-out instances of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. -// options - WebAppsClientGetInstanceInfoSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceInfoSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. +// - options - WebAppsClientGetInstanceInfoSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceInfoSlot +// method. func (client *WebAppsClient) GetInstanceInfoSlot(ctx context.Context, resourceGroupName string, name string, instanceID string, slot string, options *WebAppsClientGetInstanceInfoSlotOptions) (WebAppsClientGetInstanceInfoSlotResponse, error) { req, err := client.getInstanceInfoSlotCreateRequest(ctx, resourceGroupName, name, instanceID, slot, options) if err != nil { @@ -8285,7 +8540,7 @@ func (client *WebAppsClient) getInstanceInfoSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8302,12 +8557,13 @@ func (client *WebAppsClient) getInstanceInfoSlotHandleResponse(resp *http.Respon // GetInstanceMSDeployLog - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// instanceID - ID of web app instance. -// options - WebAppsClientGetInstanceMSDeployLogOptions contains the optional parameters for the WebAppsClient.GetInstanceMSDeployLog -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - instanceID - ID of web app instance. +// - options - WebAppsClientGetInstanceMSDeployLogOptions contains the optional parameters for the WebAppsClient.GetInstanceMSDeployLog +// method. func (client *WebAppsClient) GetInstanceMSDeployLog(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientGetInstanceMSDeployLogOptions) (WebAppsClientGetInstanceMSDeployLogResponse, error) { req, err := client.getInstanceMSDeployLogCreateRequest(ctx, resourceGroupName, name, instanceID, options) if err != nil { @@ -8347,7 +8603,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8364,13 +8620,14 @@ func (client *WebAppsClient) getInstanceMSDeployLogHandleResponse(resp *http.Res // GetInstanceMSDeployLogSlot - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// instanceID - ID of web app instance. -// options - WebAppsClientGetInstanceMSDeployLogSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceMSDeployLogSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - instanceID - ID of web app instance. +// - options - WebAppsClientGetInstanceMSDeployLogSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceMSDeployLogSlot +// method. func (client *WebAppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, options *WebAppsClientGetInstanceMSDeployLogSlotOptions) (WebAppsClientGetInstanceMSDeployLogSlotResponse, error) { req, err := client.getInstanceMSDeployLogSlotCreateRequest(ctx, resourceGroupName, name, slot, instanceID, options) if err != nil { @@ -8414,7 +8671,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8431,12 +8688,13 @@ func (client *WebAppsClient) getInstanceMSDeployLogSlotHandleResponse(resp *http // GetInstanceMsDeployStatus - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// instanceID - ID of web app instance. -// options - WebAppsClientGetInstanceMsDeployStatusOptions contains the optional parameters for the WebAppsClient.GetInstanceMsDeployStatus -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - instanceID - ID of web app instance. +// - options - WebAppsClientGetInstanceMsDeployStatusOptions contains the optional parameters for the WebAppsClient.GetInstanceMsDeployStatus +// method. func (client *WebAppsClient) GetInstanceMsDeployStatus(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientGetInstanceMsDeployStatusOptions) (WebAppsClientGetInstanceMsDeployStatusResponse, error) { req, err := client.getInstanceMsDeployStatusCreateRequest(ctx, resourceGroupName, name, instanceID, options) if err != nil { @@ -8476,7 +8734,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8493,13 +8751,14 @@ func (client *WebAppsClient) getInstanceMsDeployStatusHandleResponse(resp *http. // GetInstanceMsDeployStatusSlot - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// instanceID - ID of web app instance. -// options - WebAppsClientGetInstanceMsDeployStatusSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceMsDeployStatusSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - instanceID - ID of web app instance. +// - options - WebAppsClientGetInstanceMsDeployStatusSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceMsDeployStatusSlot +// method. func (client *WebAppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, options *WebAppsClientGetInstanceMsDeployStatusSlotOptions) (WebAppsClientGetInstanceMsDeployStatusSlotResponse, error) { req, err := client.getInstanceMsDeployStatusSlotCreateRequest(ctx, resourceGroupName, name, slot, instanceID, options) if err != nil { @@ -8543,7 +8802,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8560,14 +8819,15 @@ func (client *WebAppsClient) getInstanceMsDeployStatusSlotHandleResponse(resp *h // GetInstanceProcess - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientGetInstanceProcessOptions contains the optional parameters for the WebAppsClient.GetInstanceProcess -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientGetInstanceProcessOptions contains the optional parameters for the WebAppsClient.GetInstanceProcess +// method. func (client *WebAppsClient) GetInstanceProcess(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientGetInstanceProcessOptions) (WebAppsClientGetInstanceProcessResponse, error) { req, err := client.getInstanceProcessCreateRequest(ctx, resourceGroupName, name, processID, instanceID, options) if err != nil { @@ -8611,7 +8871,7 @@ func (client *WebAppsClient) getInstanceProcessCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8629,14 +8889,15 @@ func (client *WebAppsClient) getInstanceProcessHandleResponse(resp *http.Respons // GetInstanceProcessDump - Description for Get a memory dump of a process by its ID for a specific scaled-out instance in // a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientGetInstanceProcessDumpOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessDump -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientGetInstanceProcessDumpOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessDump +// method. func (client *WebAppsClient) GetInstanceProcessDump(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientGetInstanceProcessDumpOptions) (WebAppsClientGetInstanceProcessDumpResponse, error) { req, err := client.getInstanceProcessDumpCreateRequest(ctx, resourceGroupName, name, processID, instanceID, options) if err != nil { @@ -8680,7 +8941,7 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -8690,15 +8951,16 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con // GetInstanceProcessDumpSlot - Description for Get a memory dump of a process by its ID for a specific scaled-out instance // in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientGetInstanceProcessDumpSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessDumpSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientGetInstanceProcessDumpSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessDumpSlot +// method. func (client *WebAppsClient) GetInstanceProcessDumpSlot(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientGetInstanceProcessDumpSlotOptions) (WebAppsClientGetInstanceProcessDumpSlotResponse, error) { req, err := client.getInstanceProcessDumpSlotCreateRequest(ctx, resourceGroupName, name, processID, slot, instanceID, options) if err != nil { @@ -8746,7 +9008,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -8756,15 +9018,16 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context // GetInstanceProcessModule - Description for Get process information by its ID for a specific scaled-out instance in a web // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// baseAddress - Module base address. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientGetInstanceProcessModuleOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessModule -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - baseAddress - Module base address. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientGetInstanceProcessModuleOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessModule +// method. func (client *WebAppsClient) GetInstanceProcessModule(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, instanceID string, options *WebAppsClientGetInstanceProcessModuleOptions) (WebAppsClientGetInstanceProcessModuleResponse, error) { req, err := client.getInstanceProcessModuleCreateRequest(ctx, resourceGroupName, name, processID, baseAddress, instanceID, options) if err != nil { @@ -8812,7 +9075,7 @@ func (client *WebAppsClient) getInstanceProcessModuleCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8830,16 +9093,17 @@ func (client *WebAppsClient) getInstanceProcessModuleHandleResponse(resp *http.R // GetInstanceProcessModuleSlot - Description for Get process information by its ID for a specific scaled-out instance in // a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// baseAddress - Module base address. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientGetInstanceProcessModuleSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessModuleSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - baseAddress - Module base address. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientGetInstanceProcessModuleSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessModuleSlot +// method. func (client *WebAppsClient) GetInstanceProcessModuleSlot(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, slot string, instanceID string, options *WebAppsClientGetInstanceProcessModuleSlotOptions) (WebAppsClientGetInstanceProcessModuleSlotResponse, error) { req, err := client.getInstanceProcessModuleSlotCreateRequest(ctx, resourceGroupName, name, processID, baseAddress, slot, instanceID, options) if err != nil { @@ -8891,7 +9155,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8909,15 +9173,16 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotHandleResponse(resp *ht // GetInstanceProcessSlot - Description for Get process information by its ID for a specific scaled-out instance in a web // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientGetInstanceProcessSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientGetInstanceProcessSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceProcessSlot +// method. func (client *WebAppsClient) GetInstanceProcessSlot(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientGetInstanceProcessSlotOptions) (WebAppsClientGetInstanceProcessSlotResponse, error) { req, err := client.getInstanceProcessSlotCreateRequest(ctx, resourceGroupName, name, processID, slot, instanceID, options) if err != nil { @@ -8965,7 +9230,7 @@ func (client *WebAppsClient) getInstanceProcessSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8980,12 +9245,81 @@ func (client *WebAppsClient) getInstanceProcessSlotHandleResponse(resp *http.Res return result, nil } +// GetInstanceWorkflowSlot - Get workflow information by its ID for web site, or a deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. +// - workflowName - Workflow name. +// - options - WebAppsClientGetInstanceWorkflowSlotOptions contains the optional parameters for the WebAppsClient.GetInstanceWorkflowSlot +// method. +func (client *WebAppsClient) GetInstanceWorkflowSlot(ctx context.Context, resourceGroupName string, name string, slot string, workflowName string, options *WebAppsClientGetInstanceWorkflowSlotOptions) (WebAppsClientGetInstanceWorkflowSlotResponse, error) { + req, err := client.getInstanceWorkflowSlotCreateRequest(ctx, resourceGroupName, name, slot, workflowName, options) + if err != nil { + return WebAppsClientGetInstanceWorkflowSlotResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientGetInstanceWorkflowSlotResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientGetInstanceWorkflowSlotResponse{}, runtime.NewResponseError(resp) + } + return client.getInstanceWorkflowSlotHandleResponse(resp) +} + +// getInstanceWorkflowSlotCreateRequest creates the GetInstanceWorkflowSlot request. +func (client *WebAppsClient) getInstanceWorkflowSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, workflowName string, options *WebAppsClientGetInstanceWorkflowSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/workflows/{workflowName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if slot == "" { + return nil, errors.New("parameter slot cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{slot}", url.PathEscape(slot)) + if workflowName == "" { + return nil, errors.New("parameter workflowName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workflowName}", url.PathEscape(workflowName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getInstanceWorkflowSlotHandleResponse handles the GetInstanceWorkflowSlot response. +func (client *WebAppsClient) getInstanceWorkflowSlotHandleResponse(resp *http.Response) (WebAppsClientGetInstanceWorkflowSlotResponse, error) { + result := WebAppsClientGetInstanceWorkflowSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkflowEnvelope); err != nil { + return WebAppsClientGetInstanceWorkflowSlotResponse{}, err + } + return result, nil +} + // GetMSDeployLog - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetMSDeployLogOptions contains the optional parameters for the WebAppsClient.GetMSDeployLog method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetMSDeployLogOptions contains the optional parameters for the WebAppsClient.GetMSDeployLog method. func (client *WebAppsClient) GetMSDeployLog(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetMSDeployLogOptions) (WebAppsClientGetMSDeployLogResponse, error) { req, err := client.getMSDeployLogCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -9021,7 +9355,7 @@ func (client *WebAppsClient) getMSDeployLogCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9038,12 +9372,13 @@ func (client *WebAppsClient) getMSDeployLogHandleResponse(resp *http.Response) ( // GetMSDeployLogSlot - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientGetMSDeployLogSlotOptions contains the optional parameters for the WebAppsClient.GetMSDeployLogSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientGetMSDeployLogSlotOptions contains the optional parameters for the WebAppsClient.GetMSDeployLogSlot +// method. func (client *WebAppsClient) GetMSDeployLogSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetMSDeployLogSlotOptions) (WebAppsClientGetMSDeployLogSlotResponse, error) { req, err := client.getMSDeployLogSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -9083,7 +9418,7 @@ func (client *WebAppsClient) getMSDeployLogSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9100,11 +9435,12 @@ func (client *WebAppsClient) getMSDeployLogSlotHandleResponse(resp *http.Respons // GetMSDeployStatus - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetMSDeployStatusOptions contains the optional parameters for the WebAppsClient.GetMSDeployStatus -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetMSDeployStatusOptions contains the optional parameters for the WebAppsClient.GetMSDeployStatus +// method. func (client *WebAppsClient) GetMSDeployStatus(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetMSDeployStatusOptions) (WebAppsClientGetMSDeployStatusResponse, error) { req, err := client.getMSDeployStatusCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -9140,7 +9476,7 @@ func (client *WebAppsClient) getMSDeployStatusCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9157,12 +9493,13 @@ func (client *WebAppsClient) getMSDeployStatusHandleResponse(resp *http.Response // GetMSDeployStatusSlot - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientGetMSDeployStatusSlotOptions contains the optional parameters for the WebAppsClient.GetMSDeployStatusSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientGetMSDeployStatusSlotOptions contains the optional parameters for the WebAppsClient.GetMSDeployStatusSlot +// method. func (client *WebAppsClient) GetMSDeployStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetMSDeployStatusSlotOptions) (WebAppsClientGetMSDeployStatusSlotResponse, error) { req, err := client.getMSDeployStatusSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -9202,7 +9539,7 @@ func (client *WebAppsClient) getMSDeployStatusSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9220,11 +9557,12 @@ func (client *WebAppsClient) getMSDeployStatusSlotHandleResponse(resp *http.Resp // GetMigrateMySQLStatus - Description for Returns the status of MySql in app migration, if one is active, and whether or // not MySql in app is enabled // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetMigrateMySQLStatusOptions contains the optional parameters for the WebAppsClient.GetMigrateMySQLStatus -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetMigrateMySQLStatusOptions contains the optional parameters for the WebAppsClient.GetMigrateMySQLStatus +// method. func (client *WebAppsClient) GetMigrateMySQLStatus(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetMigrateMySQLStatusOptions) (WebAppsClientGetMigrateMySQLStatusResponse, error) { req, err := client.getMigrateMySQLStatusCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -9260,7 +9598,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9278,12 +9616,13 @@ func (client *WebAppsClient) getMigrateMySQLStatusHandleResponse(resp *http.Resp // GetMigrateMySQLStatusSlot - Description for Returns the status of MySql in app migration, if one is active, and whether // or not MySql in app is enabled // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of the deployment slot. -// options - WebAppsClientGetMigrateMySQLStatusSlotOptions contains the optional parameters for the WebAppsClient.GetMigrateMySQLStatusSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of the deployment slot. +// - options - WebAppsClientGetMigrateMySQLStatusSlotOptions contains the optional parameters for the WebAppsClient.GetMigrateMySQLStatusSlot +// method. func (client *WebAppsClient) GetMigrateMySQLStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetMigrateMySQLStatusSlotOptions) (WebAppsClientGetMigrateMySQLStatusSlotResponse, error) { req, err := client.getMigrateMySQLStatusSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -9323,7 +9662,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9341,12 +9680,13 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotHandleResponse(resp *http. // GetNetworkTraceOperation - Description for Gets a named operation for a network trace capturing (or deployment slot, if // specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// options - WebAppsClientGetNetworkTraceOperationOptions contains the optional parameters for the WebAppsClient.GetNetworkTraceOperation -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - options - WebAppsClientGetNetworkTraceOperationOptions contains the optional parameters for the WebAppsClient.GetNetworkTraceOperation +// method. func (client *WebAppsClient) GetNetworkTraceOperation(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTraceOperationOptions) (WebAppsClientGetNetworkTraceOperationResponse, error) { req, err := client.getNetworkTraceOperationCreateRequest(ctx, resourceGroupName, name, operationID, options) if err != nil { @@ -9386,7 +9726,7 @@ func (client *WebAppsClient) getNetworkTraceOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9404,13 +9744,14 @@ func (client *WebAppsClient) getNetworkTraceOperationHandleResponse(resp *http.R // GetNetworkTraceOperationSlot - Description for Gets a named operation for a network trace capturing (or deployment slot, // if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. -// options - WebAppsClientGetNetworkTraceOperationSlotOptions contains the optional parameters for the WebAppsClient.GetNetworkTraceOperationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. +// - options - WebAppsClientGetNetworkTraceOperationSlotOptions contains the optional parameters for the WebAppsClient.GetNetworkTraceOperationSlot +// method. func (client *WebAppsClient) GetNetworkTraceOperationSlot(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTraceOperationSlotOptions) (WebAppsClientGetNetworkTraceOperationSlotResponse, error) { req, err := client.getNetworkTraceOperationSlotCreateRequest(ctx, resourceGroupName, name, operationID, slot, options) if err != nil { @@ -9454,7 +9795,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9472,13 +9813,14 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotHandleResponse(resp *ht // GetNetworkTraceOperationSlotV2 - Description for Gets a named operation for a network trace capturing (or deployment slot, // if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. -// options - WebAppsClientGetNetworkTraceOperationSlotV2Options contains the optional parameters for the WebAppsClient.GetNetworkTraceOperationSlotV2 -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. +// - options - WebAppsClientGetNetworkTraceOperationSlotV2Options contains the optional parameters for the WebAppsClient.GetNetworkTraceOperationSlotV2 +// method. func (client *WebAppsClient) GetNetworkTraceOperationSlotV2(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTraceOperationSlotV2Options) (WebAppsClientGetNetworkTraceOperationSlotV2Response, error) { req, err := client.getNetworkTraceOperationSlotV2CreateRequest(ctx, resourceGroupName, name, operationID, slot, options) if err != nil { @@ -9522,7 +9864,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2CreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9540,12 +9882,13 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2HandleResponse(resp * // GetNetworkTraceOperationV2 - Description for Gets a named operation for a network trace capturing (or deployment slot, // if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// options - WebAppsClientGetNetworkTraceOperationV2Options contains the optional parameters for the WebAppsClient.GetNetworkTraceOperationV2 -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - options - WebAppsClientGetNetworkTraceOperationV2Options contains the optional parameters for the WebAppsClient.GetNetworkTraceOperationV2 +// method. func (client *WebAppsClient) GetNetworkTraceOperationV2(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTraceOperationV2Options) (WebAppsClientGetNetworkTraceOperationV2Response, error) { req, err := client.getNetworkTraceOperationV2CreateRequest(ctx, resourceGroupName, name, operationID, options) if err != nil { @@ -9585,7 +9928,7 @@ func (client *WebAppsClient) getNetworkTraceOperationV2CreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9602,12 +9945,13 @@ func (client *WebAppsClient) getNetworkTraceOperationV2HandleResponse(resp *http // GetNetworkTraces - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// options - WebAppsClientGetNetworkTracesOptions contains the optional parameters for the WebAppsClient.GetNetworkTraces -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - options - WebAppsClientGetNetworkTracesOptions contains the optional parameters for the WebAppsClient.GetNetworkTraces +// method. func (client *WebAppsClient) GetNetworkTraces(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTracesOptions) (WebAppsClientGetNetworkTracesResponse, error) { req, err := client.getNetworkTracesCreateRequest(ctx, resourceGroupName, name, operationID, options) if err != nil { @@ -9647,7 +9991,7 @@ func (client *WebAppsClient) getNetworkTracesCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9664,13 +10008,14 @@ func (client *WebAppsClient) getNetworkTracesHandleResponse(resp *http.Response) // GetNetworkTracesSlot - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. -// options - WebAppsClientGetNetworkTracesSlotOptions contains the optional parameters for the WebAppsClient.GetNetworkTracesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. +// - options - WebAppsClientGetNetworkTracesSlotOptions contains the optional parameters for the WebAppsClient.GetNetworkTracesSlot +// method. func (client *WebAppsClient) GetNetworkTracesSlot(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTracesSlotOptions) (WebAppsClientGetNetworkTracesSlotResponse, error) { req, err := client.getNetworkTracesSlotCreateRequest(ctx, resourceGroupName, name, operationID, slot, options) if err != nil { @@ -9714,7 +10059,7 @@ func (client *WebAppsClient) getNetworkTracesSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9731,13 +10076,14 @@ func (client *WebAppsClient) getNetworkTracesSlotHandleResponse(resp *http.Respo // GetNetworkTracesSlotV2 - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. -// options - WebAppsClientGetNetworkTracesSlotV2Options contains the optional parameters for the WebAppsClient.GetNetworkTracesSlotV2 -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. +// - options - WebAppsClientGetNetworkTracesSlotV2Options contains the optional parameters for the WebAppsClient.GetNetworkTracesSlotV2 +// method. func (client *WebAppsClient) GetNetworkTracesSlotV2(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTracesSlotV2Options) (WebAppsClientGetNetworkTracesSlotV2Response, error) { req, err := client.getNetworkTracesSlotV2CreateRequest(ctx, resourceGroupName, name, operationID, slot, options) if err != nil { @@ -9781,7 +10127,7 @@ func (client *WebAppsClient) getNetworkTracesSlotV2CreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9798,12 +10144,13 @@ func (client *WebAppsClient) getNetworkTracesSlotV2HandleResponse(resp *http.Res // GetNetworkTracesV2 - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// operationID - GUID of the operation. -// options - WebAppsClientGetNetworkTracesV2Options contains the optional parameters for the WebAppsClient.GetNetworkTracesV2 -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - operationID - GUID of the operation. +// - options - WebAppsClientGetNetworkTracesV2Options contains the optional parameters for the WebAppsClient.GetNetworkTracesV2 +// method. func (client *WebAppsClient) GetNetworkTracesV2(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTracesV2Options) (WebAppsClientGetNetworkTracesV2Response, error) { req, err := client.getNetworkTracesV2CreateRequest(ctx, resourceGroupName, name, operationID, options) if err != nil { @@ -9843,7 +10190,7 @@ func (client *WebAppsClient) getNetworkTracesV2CreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9861,11 +10208,12 @@ func (client *WebAppsClient) getNetworkTracesV2HandleResponse(resp *http.Respons // GetOneDeployStatus - Description for Invoke onedeploy status API /api/deployments and gets the deployment status for the // site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetOneDeployStatusOptions contains the optional parameters for the WebAppsClient.GetOneDeployStatus -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetOneDeployStatusOptions contains the optional parameters for the WebAppsClient.GetOneDeployStatus +// method. func (client *WebAppsClient) GetOneDeployStatus(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetOneDeployStatusOptions) (WebAppsClientGetOneDeployStatusResponse, error) { req, err := client.getOneDeployStatusCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -9901,7 +10249,7 @@ func (client *WebAppsClient) getOneDeployStatusCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9918,11 +10266,12 @@ func (client *WebAppsClient) getOneDeployStatusHandleResponse(resp *http.Respons // GetPremierAddOn - Description for Gets a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// options - WebAppsClientGetPremierAddOnOptions contains the optional parameters for the WebAppsClient.GetPremierAddOn method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - options - WebAppsClientGetPremierAddOnOptions contains the optional parameters for the WebAppsClient.GetPremierAddOn method. func (client *WebAppsClient) GetPremierAddOn(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, options *WebAppsClientGetPremierAddOnOptions) (WebAppsClientGetPremierAddOnResponse, error) { req, err := client.getPremierAddOnCreateRequest(ctx, resourceGroupName, name, premierAddOnName, options) if err != nil { @@ -9962,7 +10311,7 @@ func (client *WebAppsClient) getPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9979,13 +10328,14 @@ func (client *WebAppsClient) getPremierAddOnHandleResponse(resp *http.Response) // GetPremierAddOnSlot - Description for Gets a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the named add-on for the production slot. -// options - WebAppsClientGetPremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.GetPremierAddOnSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the named add-on for the production slot. +// - options - WebAppsClientGetPremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.GetPremierAddOnSlot +// method. func (client *WebAppsClient) GetPremierAddOnSlot(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, options *WebAppsClientGetPremierAddOnSlotOptions) (WebAppsClientGetPremierAddOnSlotResponse, error) { req, err := client.getPremierAddOnSlotCreateRequest(ctx, resourceGroupName, name, premierAddOnName, slot, options) if err != nil { @@ -10029,7 +10379,7 @@ func (client *WebAppsClient) getPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10047,11 +10397,12 @@ func (client *WebAppsClient) getPremierAddOnSlotHandleResponse(resp *http.Respon // GetPrivateAccess - Description for Gets data around private site access enablement and authorized Virtual Networks that // can access the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientGetPrivateAccessOptions contains the optional parameters for the WebAppsClient.GetPrivateAccess -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientGetPrivateAccessOptions contains the optional parameters for the WebAppsClient.GetPrivateAccess +// method. func (client *WebAppsClient) GetPrivateAccess(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetPrivateAccessOptions) (WebAppsClientGetPrivateAccessResponse, error) { req, err := client.getPrivateAccessCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -10087,7 +10438,7 @@ func (client *WebAppsClient) getPrivateAccessCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10105,12 +10456,13 @@ func (client *WebAppsClient) getPrivateAccessHandleResponse(resp *http.Response) // GetPrivateAccessSlot - Description for Gets data around private site access enablement and authorized Virtual Networks // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for the web app. -// options - WebAppsClientGetPrivateAccessSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateAccessSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for the web app. +// - options - WebAppsClientGetPrivateAccessSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateAccessSlot +// method. func (client *WebAppsClient) GetPrivateAccessSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetPrivateAccessSlotOptions) (WebAppsClientGetPrivateAccessSlotResponse, error) { req, err := client.getPrivateAccessSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -10150,7 +10502,7 @@ func (client *WebAppsClient) getPrivateAccessSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10167,12 +10519,13 @@ func (client *WebAppsClient) getPrivateAccessSlotHandleResponse(resp *http.Respo // GetPrivateEndpointConnection - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// privateEndpointConnectionName - Name of the private endpoint connection. -// options - WebAppsClientGetPrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - privateEndpointConnectionName - Name of the private endpoint connection. +// - options - WebAppsClientGetPrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnection +// method. func (client *WebAppsClient) GetPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *WebAppsClientGetPrivateEndpointConnectionOptions) (WebAppsClientGetPrivateEndpointConnectionResponse, error) { req, err := client.getPrivateEndpointConnectionCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, options) if err != nil { @@ -10212,7 +10565,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10229,12 +10582,12 @@ func (client *WebAppsClient) getPrivateEndpointConnectionHandleResponse(resp *ht // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoint connections associated with // a site -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnectionList -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the WebAppsClient.NewGetPrivateEndpointConnectionListPager +// method. func (client *WebAppsClient) NewGetPrivateEndpointConnectionListPager(resourceGroupName string, name string, options *WebAppsClientGetPrivateEndpointConnectionListOptions) *runtime.Pager[WebAppsClientGetPrivateEndpointConnectionListResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientGetPrivateEndpointConnectionListResponse]{ More: func(page WebAppsClientGetPrivateEndpointConnectionListResponse) bool { @@ -10283,7 +10636,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10300,13 +10653,13 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListHandleResponse(resp // NewGetPrivateEndpointConnectionListSlotPager - Description for Gets the list of private endpoint connections associated // with a site -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// slot - Name of the site deployment slot. -// options - WebAppsClientGetPrivateEndpointConnectionListSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnectionListSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - slot - Name of the site deployment slot. +// - options - WebAppsClientGetPrivateEndpointConnectionListSlotOptions contains the optional parameters for the WebAppsClient.NewGetPrivateEndpointConnectionListSlotPager +// method. func (client *WebAppsClient) NewGetPrivateEndpointConnectionListSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientGetPrivateEndpointConnectionListSlotOptions) *runtime.Pager[WebAppsClientGetPrivateEndpointConnectionListSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientGetPrivateEndpointConnectionListSlotResponse]{ More: func(page WebAppsClientGetPrivateEndpointConnectionListSlotResponse) bool { @@ -10359,7 +10712,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10376,13 +10729,14 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListSlotHandleResponse( // GetPrivateEndpointConnectionSlot - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// privateEndpointConnectionName - Name of the private endpoint connection. -// slot - Name of the site deployment slot. -// options - WebAppsClientGetPrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - privateEndpointConnectionName - Name of the private endpoint connection. +// - slot - Name of the site deployment slot. +// - options - WebAppsClientGetPrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateEndpointConnectionSlot +// method. func (client *WebAppsClient) GetPrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, options *WebAppsClientGetPrivateEndpointConnectionSlotOptions) (WebAppsClientGetPrivateEndpointConnectionSlotResponse, error) { req, err := client.getPrivateEndpointConnectionSlotCreateRequest(ctx, resourceGroupName, name, privateEndpointConnectionName, slot, options) if err != nil { @@ -10426,7 +10780,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10443,11 +10797,12 @@ func (client *WebAppsClient) getPrivateEndpointConnectionSlotHandleResponse(resp // GetPrivateLinkResources - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientGetPrivateLinkResourcesOptions contains the optional parameters for the WebAppsClient.GetPrivateLinkResources -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientGetPrivateLinkResourcesOptions contains the optional parameters for the WebAppsClient.GetPrivateLinkResources +// method. func (client *WebAppsClient) GetPrivateLinkResources(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetPrivateLinkResourcesOptions) (WebAppsClientGetPrivateLinkResourcesResponse, error) { req, err := client.getPrivateLinkResourcesCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -10483,7 +10838,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10500,11 +10855,12 @@ func (client *WebAppsClient) getPrivateLinkResourcesHandleResponse(resp *http.Re // GetPrivateLinkResourcesSlot - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the site. -// options - WebAppsClientGetPrivateLinkResourcesSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateLinkResourcesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the site. +// - options - WebAppsClientGetPrivateLinkResourcesSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateLinkResourcesSlot +// method. func (client *WebAppsClient) GetPrivateLinkResourcesSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetPrivateLinkResourcesSlotOptions) (WebAppsClientGetPrivateLinkResourcesSlotResponse, error) { req, err := client.getPrivateLinkResourcesSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -10544,7 +10900,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10561,11 +10917,12 @@ func (client *WebAppsClient) getPrivateLinkResourcesSlotHandleResponse(resp *htt // GetProcess - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// options - WebAppsClientGetProcessOptions contains the optional parameters for the WebAppsClient.GetProcess method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - options - WebAppsClientGetProcessOptions contains the optional parameters for the WebAppsClient.GetProcess method. func (client *WebAppsClient) GetProcess(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientGetProcessOptions) (WebAppsClientGetProcessResponse, error) { req, err := client.getProcessCreateRequest(ctx, resourceGroupName, name, processID, options) if err != nil { @@ -10605,7 +10962,7 @@ func (client *WebAppsClient) getProcessCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10622,11 +10979,12 @@ func (client *WebAppsClient) getProcessHandleResponse(resp *http.Response) (WebA // GetProcessDump - Description for Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// options - WebAppsClientGetProcessDumpOptions contains the optional parameters for the WebAppsClient.GetProcessDump method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - options - WebAppsClientGetProcessDumpOptions contains the optional parameters for the WebAppsClient.GetProcessDump method. func (client *WebAppsClient) GetProcessDump(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientGetProcessDumpOptions) (WebAppsClientGetProcessDumpResponse, error) { req, err := client.getProcessDumpCreateRequest(ctx, resourceGroupName, name, processID, options) if err != nil { @@ -10666,7 +11024,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -10676,13 +11034,14 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re // GetProcessDumpSlot - Description for Get a memory dump of a process by its ID for a specific scaled-out instance in a web // site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientGetProcessDumpSlotOptions contains the optional parameters for the WebAppsClient.GetProcessDumpSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientGetProcessDumpSlotOptions contains the optional parameters for the WebAppsClient.GetProcessDumpSlot +// method. func (client *WebAppsClient) GetProcessDumpSlot(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientGetProcessDumpSlotOptions) (WebAppsClientGetProcessDumpSlotResponse, error) { req, err := client.getProcessDumpSlotCreateRequest(ctx, resourceGroupName, name, processID, slot, options) if err != nil { @@ -10726,7 +11085,7 @@ func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -10735,13 +11094,14 @@ func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context // GetProcessModule - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// baseAddress - Module base address. -// options - WebAppsClientGetProcessModuleOptions contains the optional parameters for the WebAppsClient.GetProcessModule -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - baseAddress - Module base address. +// - options - WebAppsClientGetProcessModuleOptions contains the optional parameters for the WebAppsClient.GetProcessModule +// method. func (client *WebAppsClient) GetProcessModule(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, options *WebAppsClientGetProcessModuleOptions) (WebAppsClientGetProcessModuleResponse, error) { req, err := client.getProcessModuleCreateRequest(ctx, resourceGroupName, name, processID, baseAddress, options) if err != nil { @@ -10785,7 +11145,7 @@ func (client *WebAppsClient) getProcessModuleCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10802,14 +11162,15 @@ func (client *WebAppsClient) getProcessModuleHandleResponse(resp *http.Response) // GetProcessModuleSlot - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// baseAddress - Module base address. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientGetProcessModuleSlotOptions contains the optional parameters for the WebAppsClient.GetProcessModuleSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - baseAddress - Module base address. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientGetProcessModuleSlotOptions contains the optional parameters for the WebAppsClient.GetProcessModuleSlot +// method. func (client *WebAppsClient) GetProcessModuleSlot(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, slot string, options *WebAppsClientGetProcessModuleSlotOptions) (WebAppsClientGetProcessModuleSlotResponse, error) { req, err := client.getProcessModuleSlotCreateRequest(ctx, resourceGroupName, name, processID, baseAddress, slot, options) if err != nil { @@ -10857,7 +11218,7 @@ func (client *WebAppsClient) getProcessModuleSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10874,12 +11235,13 @@ func (client *WebAppsClient) getProcessModuleSlotHandleResponse(resp *http.Respo // GetProcessSlot - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientGetProcessSlotOptions contains the optional parameters for the WebAppsClient.GetProcessSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientGetProcessSlotOptions contains the optional parameters for the WebAppsClient.GetProcessSlot method. func (client *WebAppsClient) GetProcessSlot(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientGetProcessSlotOptions) (WebAppsClientGetProcessSlotResponse, error) { req, err := client.getProcessSlotCreateRequest(ctx, resourceGroupName, name, processID, slot, options) if err != nil { @@ -10923,7 +11285,7 @@ func (client *WebAppsClient) getProcessSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10940,12 +11302,13 @@ func (client *WebAppsClient) getProcessSlotHandleResponse(resp *http.Response) ( // BeginGetProductionSiteDeploymentStatus - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// deploymentStatusID - GUID of the deployment operation. -// options - WebAppsClientBeginGetProductionSiteDeploymentStatusOptions contains the optional parameters for the WebAppsClient.BeginGetProductionSiteDeploymentStatus -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - deploymentStatusID - GUID of the deployment operation. +// - options - WebAppsClientBeginGetProductionSiteDeploymentStatusOptions contains the optional parameters for the WebAppsClient.BeginGetProductionSiteDeploymentStatus +// method. func (client *WebAppsClient) BeginGetProductionSiteDeploymentStatus(ctx context.Context, resourceGroupName string, name string, deploymentStatusID string, options *WebAppsClientBeginGetProductionSiteDeploymentStatusOptions) (*runtime.Poller[WebAppsClientGetProductionSiteDeploymentStatusResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.getProductionSiteDeploymentStatus(ctx, resourceGroupName, name, deploymentStatusID, options) @@ -10960,7 +11323,8 @@ func (client *WebAppsClient) BeginGetProductionSiteDeploymentStatus(ctx context. // GetProductionSiteDeploymentStatus - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) getProductionSiteDeploymentStatus(ctx context.Context, resourceGroupName string, name string, deploymentStatusID string, options *WebAppsClientBeginGetProductionSiteDeploymentStatusOptions) (*http.Response, error) { req, err := client.getProductionSiteDeploymentStatusCreateRequest(ctx, resourceGroupName, name, deploymentStatusID, options) if err != nil { @@ -11000,7 +11364,7 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11008,12 +11372,13 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx // GetPublicCertificate - Description for Get the named public certificate for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// publicCertificateName - Public certificate name. -// options - WebAppsClientGetPublicCertificateOptions contains the optional parameters for the WebAppsClient.GetPublicCertificate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - publicCertificateName - Public certificate name. +// - options - WebAppsClientGetPublicCertificateOptions contains the optional parameters for the WebAppsClient.GetPublicCertificate +// method. func (client *WebAppsClient) GetPublicCertificate(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, options *WebAppsClientGetPublicCertificateOptions) (WebAppsClientGetPublicCertificateResponse, error) { req, err := client.getPublicCertificateCreateRequest(ctx, resourceGroupName, name, publicCertificateName, options) if err != nil { @@ -11053,7 +11418,7 @@ func (client *WebAppsClient) getPublicCertificateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11070,13 +11435,14 @@ func (client *WebAppsClient) getPublicCertificateHandleResponse(resp *http.Respo // GetPublicCertificateSlot - Description for Get the named public certificate for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. -// publicCertificateName - Public certificate name. -// options - WebAppsClientGetPublicCertificateSlotOptions contains the optional parameters for the WebAppsClient.GetPublicCertificateSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. +// - publicCertificateName - Public certificate name. +// - options - WebAppsClientGetPublicCertificateSlotOptions contains the optional parameters for the WebAppsClient.GetPublicCertificateSlot +// method. func (client *WebAppsClient) GetPublicCertificateSlot(ctx context.Context, resourceGroupName string, name string, slot string, publicCertificateName string, options *WebAppsClientGetPublicCertificateSlotOptions) (WebAppsClientGetPublicCertificateSlotResponse, error) { req, err := client.getPublicCertificateSlotCreateRequest(ctx, resourceGroupName, name, slot, publicCertificateName, options) if err != nil { @@ -11120,7 +11486,7 @@ func (client *WebAppsClient) getPublicCertificateSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11137,12 +11503,13 @@ func (client *WebAppsClient) getPublicCertificateSlotHandleResponse(resp *http.R // GetRelayServiceConnection - Description for Gets a hybrid connection configuration by its name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection. -// options - WebAppsClientGetRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.GetRelayServiceConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection. +// - options - WebAppsClientGetRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.GetRelayServiceConnection +// method. func (client *WebAppsClient) GetRelayServiceConnection(ctx context.Context, resourceGroupName string, name string, entityName string, options *WebAppsClientGetRelayServiceConnectionOptions) (WebAppsClientGetRelayServiceConnectionResponse, error) { req, err := client.getRelayServiceConnectionCreateRequest(ctx, resourceGroupName, name, entityName, options) if err != nil { @@ -11182,7 +11549,7 @@ func (client *WebAppsClient) getRelayServiceConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11199,14 +11566,15 @@ func (client *WebAppsClient) getRelayServiceConnectionHandleResponse(resp *http. // GetRelayServiceConnectionSlot - Description for Gets a hybrid connection configuration by its name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection. -// slot - Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production -// slot. -// options - WebAppsClientGetRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetRelayServiceConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production +// slot. +// - options - WebAppsClientGetRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetRelayServiceConnectionSlot +// method. func (client *WebAppsClient) GetRelayServiceConnectionSlot(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, options *WebAppsClientGetRelayServiceConnectionSlotOptions) (WebAppsClientGetRelayServiceConnectionSlotResponse, error) { req, err := client.getRelayServiceConnectionSlotCreateRequest(ctx, resourceGroupName, name, entityName, slot, options) if err != nil { @@ -11250,7 +11618,7 @@ func (client *WebAppsClient) getRelayServiceConnectionSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11267,10 +11635,11 @@ func (client *WebAppsClient) getRelayServiceConnectionSlotHandleResponse(resp *h // GetScmAllowed - Description for Returns whether Scm basic auth is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetScmAllowedOptions contains the optional parameters for the WebAppsClient.GetScmAllowed method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetScmAllowedOptions contains the optional parameters for the WebAppsClient.GetScmAllowed method. func (client *WebAppsClient) GetScmAllowed(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetScmAllowedOptions) (WebAppsClientGetScmAllowedResponse, error) { req, err := client.getScmAllowedCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -11306,7 +11675,7 @@ func (client *WebAppsClient) getScmAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11323,11 +11692,12 @@ func (client *WebAppsClient) getScmAllowedHandleResponse(resp *http.Response) (W // GetScmAllowedSlot - Description for Returns whether Scm basic auth is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetScmAllowedSlotOptions contains the optional parameters for the WebAppsClient.GetScmAllowedSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetScmAllowedSlotOptions contains the optional parameters for the WebAppsClient.GetScmAllowedSlot +// method. func (client *WebAppsClient) GetScmAllowedSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetScmAllowedSlotOptions) (WebAppsClientGetScmAllowedSlotResponse, error) { req, err := client.getScmAllowedSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -11367,7 +11737,7 @@ func (client *WebAppsClient) getScmAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11384,11 +11754,12 @@ func (client *WebAppsClient) getScmAllowedSlotHandleResponse(resp *http.Response // GetSiteConnectionStringKeyVaultReference - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetSiteConnectionStringKeyVaultReferenceOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReference -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetSiteConnectionStringKeyVaultReferenceOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReference +// method. func (client *WebAppsClient) GetSiteConnectionStringKeyVaultReference(ctx context.Context, resourceGroupName string, name string, connectionStringKey string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferenceOptions) (WebAppsClientGetSiteConnectionStringKeyVaultReferenceResponse, error) { req, err := client.getSiteConnectionStringKeyVaultReferenceCreateRequest(ctx, resourceGroupName, name, connectionStringKey, options) if err != nil { @@ -11428,7 +11799,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11445,11 +11816,12 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceHandleRespo // GetSiteConnectionStringKeyVaultReferenceSlot - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferenceSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferenceSlot +// method. func (client *WebAppsClient) GetSiteConnectionStringKeyVaultReferenceSlot(ctx context.Context, resourceGroupName string, name string, connectionStringKey string, slot string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions) (WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotResponse, error) { req, err := client.getSiteConnectionStringKeyVaultReferenceSlotCreateRequest(ctx, resourceGroupName, name, connectionStringKey, slot, options) if err != nil { @@ -11493,7 +11865,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11510,12 +11882,12 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotHandleR // NewGetSiteConnectionStringKeyVaultReferencesPager - Description for Gets the config reference app settings and status of // an app -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferences -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesPager +// method. func (client *WebAppsClient) NewGetSiteConnectionStringKeyVaultReferencesPager(resourceGroupName string, name string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions) *runtime.Pager[WebAppsClientGetSiteConnectionStringKeyVaultReferencesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientGetSiteConnectionStringKeyVaultReferencesResponse]{ More: func(page WebAppsClientGetSiteConnectionStringKeyVaultReferencesResponse) bool { @@ -11564,7 +11936,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11581,12 +11953,12 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesHandleResp // NewGetSiteConnectionStringKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status // of an app -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferencesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesSlotPager +// method. func (client *WebAppsClient) NewGetSiteConnectionStringKeyVaultReferencesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions) *runtime.Pager[WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotResponse]{ More: func(page WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotResponse) bool { @@ -11639,7 +12011,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11656,12 +12028,13 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotHandle // GetSiteExtension - Description for Get site extension information by its ID for a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// siteExtensionID - Site extension name. -// options - WebAppsClientGetSiteExtensionOptions contains the optional parameters for the WebAppsClient.GetSiteExtension -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - siteExtensionID - Site extension name. +// - options - WebAppsClientGetSiteExtensionOptions contains the optional parameters for the WebAppsClient.GetSiteExtension +// method. func (client *WebAppsClient) GetSiteExtension(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientGetSiteExtensionOptions) (WebAppsClientGetSiteExtensionResponse, error) { req, err := client.getSiteExtensionCreateRequest(ctx, resourceGroupName, name, siteExtensionID, options) if err != nil { @@ -11701,7 +12074,7 @@ func (client *WebAppsClient) getSiteExtensionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11718,13 +12091,14 @@ func (client *WebAppsClient) getSiteExtensionHandleResponse(resp *http.Response) // GetSiteExtensionSlot - Description for Get site extension information by its ID for a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// siteExtensionID - Site extension name. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientGetSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.GetSiteExtensionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - siteExtensionID - Site extension name. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientGetSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.GetSiteExtensionSlot +// method. func (client *WebAppsClient) GetSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientGetSiteExtensionSlotOptions) (WebAppsClientGetSiteExtensionSlotResponse, error) { req, err := client.getSiteExtensionSlotCreateRequest(ctx, resourceGroupName, name, siteExtensionID, slot, options) if err != nil { @@ -11768,7 +12142,7 @@ func (client *WebAppsClient) getSiteExtensionSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11785,11 +12159,12 @@ func (client *WebAppsClient) getSiteExtensionSlotHandleResponse(resp *http.Respo // GetSitePhpErrorLogFlag - Description for Gets web app's event logs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetSitePhpErrorLogFlagOptions contains the optional parameters for the WebAppsClient.GetSitePhpErrorLogFlag -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetSitePhpErrorLogFlagOptions contains the optional parameters for the WebAppsClient.GetSitePhpErrorLogFlag +// method. func (client *WebAppsClient) GetSitePhpErrorLogFlag(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSitePhpErrorLogFlagOptions) (WebAppsClientGetSitePhpErrorLogFlagResponse, error) { req, err := client.getSitePhpErrorLogFlagCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -11825,7 +12200,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11842,12 +12217,13 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagHandleResponse(resp *http.Res // GetSitePhpErrorLogFlagSlot - Description for Gets web app's event logs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientGetSitePhpErrorLogFlagSlotOptions contains the optional parameters for the WebAppsClient.GetSitePhpErrorLogFlagSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientGetSitePhpErrorLogFlagSlotOptions contains the optional parameters for the WebAppsClient.GetSitePhpErrorLogFlagSlot +// method. func (client *WebAppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSitePhpErrorLogFlagSlotOptions) (WebAppsClientGetSitePhpErrorLogFlagSlotResponse, error) { req, err := client.getSitePhpErrorLogFlagSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -11887,7 +12263,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11904,11 +12280,12 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagSlotHandleResponse(resp *http // GetSlot - Description for Gets the details of a web, mobile, or API app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. By default, this API returns the production slot. -// options - WebAppsClientGetSlotOptions contains the optional parameters for the WebAppsClient.GetSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. By default, this API returns the production slot. +// - options - WebAppsClientGetSlotOptions contains the optional parameters for the WebAppsClient.GetSlot method. func (client *WebAppsClient) GetSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSlotOptions) (WebAppsClientGetSlotResponse, error) { req, err := client.getSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -11948,7 +12325,7 @@ func (client *WebAppsClient) getSlotCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11965,14 +12342,15 @@ func (client *WebAppsClient) getSlotHandleResponse(resp *http.Response) (WebApps // BeginGetSlotSiteDeploymentStatusSlot - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the deployment status for the production -// slot. -// deploymentStatusID - GUID of the deployment operation. -// options - WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions contains the optional parameters for the WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the deployment status for the production +// slot. +// - deploymentStatusID - GUID of the deployment operation. +// - options - WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions contains the optional parameters for the WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot +// method. func (client *WebAppsClient) BeginGetSlotSiteDeploymentStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, deploymentStatusID string, options *WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions) (*runtime.Poller[WebAppsClientGetSlotSiteDeploymentStatusSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.getSlotSiteDeploymentStatusSlot(ctx, resourceGroupName, name, slot, deploymentStatusID, options) @@ -11987,7 +12365,8 @@ func (client *WebAppsClient) BeginGetSlotSiteDeploymentStatusSlot(ctx context.Co // GetSlotSiteDeploymentStatusSlot - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) getSlotSiteDeploymentStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, deploymentStatusID string, options *WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions) (*http.Response, error) { req, err := client.getSlotSiteDeploymentStatusSlotCreateRequest(ctx, resourceGroupName, name, slot, deploymentStatusID, options) if err != nil { @@ -12031,7 +12410,7 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12039,11 +12418,12 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx co // GetSourceControl - Description for Gets the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetSourceControlOptions contains the optional parameters for the WebAppsClient.GetSourceControl -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetSourceControlOptions contains the optional parameters for the WebAppsClient.GetSourceControl +// method. func (client *WebAppsClient) GetSourceControl(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSourceControlOptions) (WebAppsClientGetSourceControlResponse, error) { req, err := client.getSourceControlCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -12079,7 +12459,7 @@ func (client *WebAppsClient) getSourceControlCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12096,13 +12476,14 @@ func (client *WebAppsClient) getSourceControlHandleResponse(resp *http.Response) // GetSourceControlSlot - Description for Gets the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the source control configuration for the -// production slot. -// options - WebAppsClientGetSourceControlSlotOptions contains the optional parameters for the WebAppsClient.GetSourceControlSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the source control configuration for the +// production slot. +// - options - WebAppsClientGetSourceControlSlotOptions contains the optional parameters for the WebAppsClient.GetSourceControlSlot +// method. func (client *WebAppsClient) GetSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSourceControlSlotOptions) (WebAppsClientGetSourceControlSlotResponse, error) { req, err := client.getSourceControlSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -12142,7 +12523,7 @@ func (client *WebAppsClient) getSourceControlSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12159,11 +12540,12 @@ func (client *WebAppsClient) getSourceControlSlotHandleResponse(resp *http.Respo // GetSwiftVirtualNetworkConnection - Description for Gets a Swift Virtual Network connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientGetSwiftVirtualNetworkConnectionOptions contains the optional parameters for the WebAppsClient.GetSwiftVirtualNetworkConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientGetSwiftVirtualNetworkConnectionOptions contains the optional parameters for the WebAppsClient.GetSwiftVirtualNetworkConnection +// method. func (client *WebAppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSwiftVirtualNetworkConnectionOptions) (WebAppsClientGetSwiftVirtualNetworkConnectionResponse, error) { req, err := client.getSwiftVirtualNetworkConnectionCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -12199,7 +12581,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12216,13 +12598,14 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionHandleResponse(resp // GetSwiftVirtualNetworkConnectionSlot - Description for Gets a Swift Virtual Network connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual -// Network. -// options - WebAppsClientGetSwiftVirtualNetworkConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetSwiftVirtualNetworkConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual +// Network. +// - options - WebAppsClientGetSwiftVirtualNetworkConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetSwiftVirtualNetworkConnectionSlot +// method. func (client *WebAppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSwiftVirtualNetworkConnectionSlotOptions) (WebAppsClientGetSwiftVirtualNetworkConnectionSlotResponse, error) { req, err := client.getSwiftVirtualNetworkConnectionSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -12262,7 +12645,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12279,12 +12662,13 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotHandleResponse( // GetTriggeredWebJob - Description for Gets a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientGetTriggeredWebJobOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientGetTriggeredWebJobOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJob +// method. func (client *WebAppsClient) GetTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientGetTriggeredWebJobOptions) (WebAppsClientGetTriggeredWebJobResponse, error) { req, err := client.getTriggeredWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -12324,7 +12708,7 @@ func (client *WebAppsClient) getTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12342,13 +12726,14 @@ func (client *WebAppsClient) getTriggeredWebJobHandleResponse(resp *http.Respons // GetTriggeredWebJobHistory - Description for Gets a triggered web job's history by its ID for an app, , or a deployment // slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// id - History ID. -// options - WebAppsClientGetTriggeredWebJobHistoryOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJobHistory -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - id - History ID. +// - options - WebAppsClientGetTriggeredWebJobHistoryOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJobHistory +// method. func (client *WebAppsClient) GetTriggeredWebJobHistory(ctx context.Context, resourceGroupName string, name string, webJobName string, id string, options *WebAppsClientGetTriggeredWebJobHistoryOptions) (WebAppsClientGetTriggeredWebJobHistoryResponse, error) { req, err := client.getTriggeredWebJobHistoryCreateRequest(ctx, resourceGroupName, name, webJobName, id, options) if err != nil { @@ -12392,7 +12777,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12410,14 +12795,15 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryHandleResponse(resp *http. // GetTriggeredWebJobHistorySlot - Description for Gets a triggered web job's history by its ID for an app, , or a deployment // slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// id - History ID. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientGetTriggeredWebJobHistorySlotOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJobHistorySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - id - History ID. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientGetTriggeredWebJobHistorySlotOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJobHistorySlot +// method. func (client *WebAppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, resourceGroupName string, name string, webJobName string, id string, slot string, options *WebAppsClientGetTriggeredWebJobHistorySlotOptions) (WebAppsClientGetTriggeredWebJobHistorySlotResponse, error) { req, err := client.getTriggeredWebJobHistorySlotCreateRequest(ctx, resourceGroupName, name, webJobName, id, slot, options) if err != nil { @@ -12465,7 +12851,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistorySlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12482,13 +12868,14 @@ func (client *WebAppsClient) getTriggeredWebJobHistorySlotHandleResponse(resp *h // GetTriggeredWebJobSlot - Description for Gets a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientGetTriggeredWebJobSlotOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientGetTriggeredWebJobSlotOptions contains the optional parameters for the WebAppsClient.GetTriggeredWebJobSlot +// method. func (client *WebAppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientGetTriggeredWebJobSlotOptions) (WebAppsClientGetTriggeredWebJobSlotResponse, error) { req, err := client.getTriggeredWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -12532,7 +12919,7 @@ func (client *WebAppsClient) getTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12549,12 +12936,13 @@ func (client *WebAppsClient) getTriggeredWebJobSlotHandleResponse(resp *http.Res // GetVnetConnection - Description for Gets a virtual network the app (or deployment slot) is connected to by name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the virtual network. -// options - WebAppsClientGetVnetConnectionOptions contains the optional parameters for the WebAppsClient.GetVnetConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the virtual network. +// - options - WebAppsClientGetVnetConnectionOptions contains the optional parameters for the WebAppsClient.GetVnetConnection +// method. func (client *WebAppsClient) GetVnetConnection(ctx context.Context, resourceGroupName string, name string, vnetName string, options *WebAppsClientGetVnetConnectionOptions) (WebAppsClientGetVnetConnectionResponse, error) { req, err := client.getVnetConnectionCreateRequest(ctx, resourceGroupName, name, vnetName, options) if err != nil { @@ -12594,7 +12982,7 @@ func (client *WebAppsClient) getVnetConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12611,13 +12999,14 @@ func (client *WebAppsClient) getVnetConnectionHandleResponse(resp *http.Response // GetVnetConnectionGateway - Description for Gets an app's Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Currently, the only supported string is "primary". -// options - WebAppsClientGetVnetConnectionGatewayOptions contains the optional parameters for the WebAppsClient.GetVnetConnectionGateway -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Currently, the only supported string is "primary". +// - options - WebAppsClientGetVnetConnectionGatewayOptions contains the optional parameters for the WebAppsClient.GetVnetConnectionGateway +// method. func (client *WebAppsClient) GetVnetConnectionGateway(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, options *WebAppsClientGetVnetConnectionGatewayOptions) (WebAppsClientGetVnetConnectionGatewayResponse, error) { req, err := client.getVnetConnectionGatewayCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, options) if err != nil { @@ -12661,7 +13050,7 @@ func (client *WebAppsClient) getVnetConnectionGatewayCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12678,15 +13067,16 @@ func (client *WebAppsClient) getVnetConnectionGatewayHandleResponse(resp *http.R // GetVnetConnectionGatewaySlot - Description for Gets an app's Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Currently, the only supported string is "primary". -// slot - Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual -// Network. -// options - WebAppsClientGetVnetConnectionGatewaySlotOptions contains the optional parameters for the WebAppsClient.GetVnetConnectionGatewaySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Currently, the only supported string is "primary". +// - slot - Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual +// Network. +// - options - WebAppsClientGetVnetConnectionGatewaySlotOptions contains the optional parameters for the WebAppsClient.GetVnetConnectionGatewaySlot +// method. func (client *WebAppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, options *WebAppsClientGetVnetConnectionGatewaySlotOptions) (WebAppsClientGetVnetConnectionGatewaySlotResponse, error) { req, err := client.getVnetConnectionGatewaySlotCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, slot, options) if err != nil { @@ -12734,7 +13124,7 @@ func (client *WebAppsClient) getVnetConnectionGatewaySlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12751,14 +13141,15 @@ func (client *WebAppsClient) getVnetConnectionGatewaySlotHandleResponse(resp *ht // GetVnetConnectionSlot - Description for Gets a virtual network the app (or deployment slot) is connected to by name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the virtual network. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the named virtual network for the production -// slot. -// options - WebAppsClientGetVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetVnetConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the virtual network. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the named virtual network for the production +// slot. +// - options - WebAppsClientGetVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.GetVnetConnectionSlot +// method. func (client *WebAppsClient) GetVnetConnectionSlot(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, options *WebAppsClientGetVnetConnectionSlotOptions) (WebAppsClientGetVnetConnectionSlotResponse, error) { req, err := client.getVnetConnectionSlotCreateRequest(ctx, resourceGroupName, name, vnetName, slot, options) if err != nil { @@ -12802,7 +13193,7 @@ func (client *WebAppsClient) getVnetConnectionSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12819,11 +13210,12 @@ func (client *WebAppsClient) getVnetConnectionSlotHandleResponse(resp *http.Resp // GetWebJob - Description for Get webjob information for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of the web job. -// options - WebAppsClientGetWebJobOptions contains the optional parameters for the WebAppsClient.GetWebJob method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of the web job. +// - options - WebAppsClientGetWebJobOptions contains the optional parameters for the WebAppsClient.GetWebJob method. func (client *WebAppsClient) GetWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientGetWebJobOptions) (WebAppsClientGetWebJobResponse, error) { req, err := client.getWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -12863,7 +13255,7 @@ func (client *WebAppsClient) getWebJobCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12880,12 +13272,13 @@ func (client *WebAppsClient) getWebJobHandleResponse(resp *http.Response) (WebAp // GetWebJobSlot - Description for Get webjob information for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of the web job. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientGetWebJobSlotOptions contains the optional parameters for the WebAppsClient.GetWebJobSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of the web job. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientGetWebJobSlotOptions contains the optional parameters for the WebAppsClient.GetWebJobSlot method. func (client *WebAppsClient) GetWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientGetWebJobSlotOptions) (WebAppsClientGetWebJobSlotResponse, error) { req, err := client.getWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -12929,7 +13322,7 @@ func (client *WebAppsClient) getWebJobSlotCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12946,11 +13339,12 @@ func (client *WebAppsClient) getWebJobSlotHandleResponse(resp *http.Response) (W // GetWebSiteContainerLogs - Description for Gets the last lines of docker logs for the given site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientGetWebSiteContainerLogsOptions contains the optional parameters for the WebAppsClient.GetWebSiteContainerLogs -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientGetWebSiteContainerLogsOptions contains the optional parameters for the WebAppsClient.GetWebSiteContainerLogs +// method. func (client *WebAppsClient) GetWebSiteContainerLogs(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetWebSiteContainerLogsOptions) (WebAppsClientGetWebSiteContainerLogsResponse, error) { req, err := client.getWebSiteContainerLogsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -12986,7 +13380,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream"} @@ -12995,12 +13389,13 @@ func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Co // GetWebSiteContainerLogsSlot - Description for Gets the last lines of docker logs for the given site // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientGetWebSiteContainerLogsSlotOptions contains the optional parameters for the WebAppsClient.GetWebSiteContainerLogsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientGetWebSiteContainerLogsSlotOptions contains the optional parameters for the WebAppsClient.GetWebSiteContainerLogsSlot +// method. func (client *WebAppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetWebSiteContainerLogsSlotOptions) (WebAppsClientGetWebSiteContainerLogsSlotResponse, error) { req, err := client.getWebSiteContainerLogsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -13040,21 +13435,84 @@ func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream"} return req, nil } +// GetWorkflow - Get workflow information by its ID for web site, or a deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - Workflow name. +// - options - WebAppsClientGetWorkflowOptions contains the optional parameters for the WebAppsClient.GetWorkflow method. +func (client *WebAppsClient) GetWorkflow(ctx context.Context, resourceGroupName string, name string, workflowName string, options *WebAppsClientGetWorkflowOptions) (WebAppsClientGetWorkflowResponse, error) { + req, err := client.getWorkflowCreateRequest(ctx, resourceGroupName, name, workflowName, options) + if err != nil { + return WebAppsClientGetWorkflowResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientGetWorkflowResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientGetWorkflowResponse{}, runtime.NewResponseError(resp) + } + return client.getWorkflowHandleResponse(resp) +} + +// getWorkflowCreateRequest creates the GetWorkflow request. +func (client *WebAppsClient) getWorkflowCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, options *WebAppsClientGetWorkflowOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/workflows/{workflowName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if workflowName == "" { + return nil, errors.New("parameter workflowName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workflowName}", url.PathEscape(workflowName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getWorkflowHandleResponse handles the GetWorkflow response. +func (client *WebAppsClient) getWorkflowHandleResponse(resp *http.Response) (WebAppsClientGetWorkflowResponse, error) { + result := WebAppsClientGetWorkflowResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkflowEnvelope); err != nil { + return WebAppsClientGetWorkflowResponse{}, err + } + return result, nil +} + // BeginInstallSiteExtension - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// siteExtensionID - Site extension name. -// options - WebAppsClientBeginInstallSiteExtensionOptions contains the optional parameters for the WebAppsClient.BeginInstallSiteExtension -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - siteExtensionID - Site extension name. +// - options - WebAppsClientBeginInstallSiteExtensionOptions contains the optional parameters for the WebAppsClient.BeginInstallSiteExtension +// method. func (client *WebAppsClient) BeginInstallSiteExtension(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientBeginInstallSiteExtensionOptions) (*runtime.Poller[WebAppsClientInstallSiteExtensionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.installSiteExtension(ctx, resourceGroupName, name, siteExtensionID, options) @@ -13069,7 +13527,8 @@ func (client *WebAppsClient) BeginInstallSiteExtension(ctx context.Context, reso // InstallSiteExtension - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) installSiteExtension(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientBeginInstallSiteExtensionOptions) (*http.Response, error) { req, err := client.installSiteExtensionCreateRequest(ctx, resourceGroupName, name, siteExtensionID, options) if err != nil { @@ -13109,7 +13568,7 @@ func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13117,13 +13576,14 @@ func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Conte // BeginInstallSiteExtensionSlot - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// siteExtensionID - Site extension name. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientBeginInstallSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.BeginInstallSiteExtensionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - siteExtensionID - Site extension name. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientBeginInstallSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.BeginInstallSiteExtensionSlot +// method. func (client *WebAppsClient) BeginInstallSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientBeginInstallSiteExtensionSlotOptions) (*runtime.Poller[WebAppsClientInstallSiteExtensionSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.installSiteExtensionSlot(ctx, resourceGroupName, name, siteExtensionID, slot, options) @@ -13138,7 +13598,8 @@ func (client *WebAppsClient) BeginInstallSiteExtensionSlot(ctx context.Context, // InstallSiteExtensionSlot - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) installSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientBeginInstallSiteExtensionSlotOptions) (*http.Response, error) { req, err := client.installSiteExtensionSlotCreateRequest(ctx, resourceGroupName, name, siteExtensionID, slot, options) if err != nil { @@ -13182,7 +13643,7 @@ func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13190,10 +13651,11 @@ func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.C // IsCloneable - Description for Shows whether an app can be cloned to another resource group or subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientIsCloneableOptions contains the optional parameters for the WebAppsClient.IsCloneable method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientIsCloneableOptions contains the optional parameters for the WebAppsClient.IsCloneable method. func (client *WebAppsClient) IsCloneable(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientIsCloneableOptions) (WebAppsClientIsCloneableResponse, error) { req, err := client.isCloneableCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -13229,7 +13691,7 @@ func (client *WebAppsClient) isCloneableCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13246,11 +13708,12 @@ func (client *WebAppsClient) isCloneableHandleResponse(resp *http.Response) (Web // IsCloneableSlot - Description for Shows whether an app can be cloned to another resource group or subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. By default, this API returns information on the production slot. -// options - WebAppsClientIsCloneableSlotOptions contains the optional parameters for the WebAppsClient.IsCloneableSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. By default, this API returns information on the production slot. +// - options - WebAppsClientIsCloneableSlotOptions contains the optional parameters for the WebAppsClient.IsCloneableSlot method. func (client *WebAppsClient) IsCloneableSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientIsCloneableSlotOptions) (WebAppsClientIsCloneableSlotResponse, error) { req, err := client.isCloneableSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -13290,7 +13753,7 @@ func (client *WebAppsClient) isCloneableSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13306,9 +13769,9 @@ func (client *WebAppsClient) isCloneableSlotHandleResponse(resp *http.Response) } // NewListPager - Description for Get all apps for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebAppsClientListOptions contains the optional parameters for the WebAppsClient.List method. +// +// Generated from API version 2022-09-01 +// - options - WebAppsClientListOptions contains the optional parameters for the WebAppsClient.NewListPager method. func (client *WebAppsClient) NewListPager(options *WebAppsClientListOptions) *runtime.Pager[WebAppsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListResponse]{ More: func(page WebAppsClientListResponse) bool { @@ -13349,7 +13812,7 @@ func (client *WebAppsClient) listCreateRequest(ctx context.Context, options *Web return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13366,11 +13829,12 @@ func (client *WebAppsClient) listHandleResponse(resp *http.Response) (WebAppsCli // ListApplicationSettings - Description for Gets the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListApplicationSettingsOptions contains the optional parameters for the WebAppsClient.ListApplicationSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListApplicationSettingsOptions contains the optional parameters for the WebAppsClient.ListApplicationSettings +// method. func (client *WebAppsClient) ListApplicationSettings(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListApplicationSettingsOptions) (WebAppsClientListApplicationSettingsResponse, error) { req, err := client.listApplicationSettingsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -13406,7 +13870,7 @@ func (client *WebAppsClient) listApplicationSettingsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13423,13 +13887,14 @@ func (client *WebAppsClient) listApplicationSettingsHandleResponse(resp *http.Re // ListApplicationSettingsSlot - Description for Gets the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production -// slot. -// options - WebAppsClientListApplicationSettingsSlotOptions contains the optional parameters for the WebAppsClient.ListApplicationSettingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production +// slot. +// - options - WebAppsClientListApplicationSettingsSlotOptions contains the optional parameters for the WebAppsClient.ListApplicationSettingsSlot +// method. func (client *WebAppsClient) ListApplicationSettingsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListApplicationSettingsSlotOptions) (WebAppsClientListApplicationSettingsSlotResponse, error) { req, err := client.listApplicationSettingsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -13469,7 +13934,7 @@ func (client *WebAppsClient) listApplicationSettingsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13486,11 +13951,12 @@ func (client *WebAppsClient) listApplicationSettingsSlotHandleResponse(resp *htt // ListAzureStorageAccounts - Description for Gets the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListAzureStorageAccountsOptions contains the optional parameters for the WebAppsClient.ListAzureStorageAccounts -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListAzureStorageAccountsOptions contains the optional parameters for the WebAppsClient.ListAzureStorageAccounts +// method. func (client *WebAppsClient) ListAzureStorageAccounts(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListAzureStorageAccountsOptions) (WebAppsClientListAzureStorageAccountsResponse, error) { req, err := client.listAzureStorageAccountsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -13526,7 +13992,7 @@ func (client *WebAppsClient) listAzureStorageAccountsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13543,13 +14009,14 @@ func (client *WebAppsClient) listAzureStorageAccountsHandleResponse(resp *http.R // ListAzureStorageAccountsSlot - Description for Gets the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations -// for the production slot. -// options - WebAppsClientListAzureStorageAccountsSlotOptions contains the optional parameters for the WebAppsClient.ListAzureStorageAccountsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations +// for the production slot. +// - options - WebAppsClientListAzureStorageAccountsSlotOptions contains the optional parameters for the WebAppsClient.ListAzureStorageAccountsSlot +// method. func (client *WebAppsClient) ListAzureStorageAccountsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListAzureStorageAccountsSlotOptions) (WebAppsClientListAzureStorageAccountsSlotResponse, error) { req, err := client.listAzureStorageAccountsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -13589,7 +14056,7 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13608,13 +14075,14 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotHandleResponse(resp *ht // with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the // backup if a new URL is passed in the request body. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// backupID - ID of backup. -// request - Information on backup request. -// options - WebAppsClientListBackupStatusSecretsOptions contains the optional parameters for the WebAppsClient.ListBackupStatusSecrets -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - backupID - ID of backup. +// - request - Information on backup request. +// - options - WebAppsClientListBackupStatusSecretsOptions contains the optional parameters for the WebAppsClient.ListBackupStatusSecrets +// method. func (client *WebAppsClient) ListBackupStatusSecrets(ctx context.Context, resourceGroupName string, name string, backupID string, request BackupRequest, options *WebAppsClientListBackupStatusSecretsOptions) (WebAppsClientListBackupStatusSecretsResponse, error) { req, err := client.listBackupStatusSecretsCreateRequest(ctx, resourceGroupName, name, backupID, request, options) if err != nil { @@ -13654,7 +14122,7 @@ func (client *WebAppsClient) listBackupStatusSecretsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -13673,14 +14141,15 @@ func (client *WebAppsClient) listBackupStatusSecretsHandleResponse(resp *http.Re // associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the // backup if a new URL is passed in the request body. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// backupID - ID of backup. -// slot - Name of web app slot. If not specified then will default to production slot. -// request - Information on backup request. -// options - WebAppsClientListBackupStatusSecretsSlotOptions contains the optional parameters for the WebAppsClient.ListBackupStatusSecretsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - backupID - ID of backup. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - request - Information on backup request. +// - options - WebAppsClientListBackupStatusSecretsSlotOptions contains the optional parameters for the WebAppsClient.ListBackupStatusSecretsSlot +// method. func (client *WebAppsClient) ListBackupStatusSecretsSlot(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request BackupRequest, options *WebAppsClientListBackupStatusSecretsSlotOptions) (WebAppsClientListBackupStatusSecretsSlotResponse, error) { req, err := client.listBackupStatusSecretsSlotCreateRequest(ctx, resourceGroupName, name, backupID, slot, request, options) if err != nil { @@ -13724,7 +14193,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -13740,11 +14209,11 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotHandleResponse(resp *htt } // NewListBackupsPager - Description for Gets existing backups of an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListBackupsOptions contains the optional parameters for the WebAppsClient.ListBackups method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListBackupsOptions contains the optional parameters for the WebAppsClient.NewListBackupsPager method. func (client *WebAppsClient) NewListBackupsPager(resourceGroupName string, name string, options *WebAppsClientListBackupsOptions) *runtime.Pager[WebAppsClientListBackupsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListBackupsResponse]{ More: func(page WebAppsClientListBackupsResponse) bool { @@ -13793,7 +14262,7 @@ func (client *WebAppsClient) listBackupsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13809,12 +14278,13 @@ func (client *WebAppsClient) listBackupsHandleResponse(resp *http.Response) (Web } // NewListBackupsSlotPager - Description for Gets existing backups of an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. -// options - WebAppsClientListBackupsSlotOptions contains the optional parameters for the WebAppsClient.ListBackupsSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. +// - options - WebAppsClientListBackupsSlotOptions contains the optional parameters for the WebAppsClient.NewListBackupsSlotPager +// method. func (client *WebAppsClient) NewListBackupsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListBackupsSlotOptions) *runtime.Pager[WebAppsClientListBackupsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListBackupsSlotResponse]{ More: func(page WebAppsClientListBackupsSlotResponse) bool { @@ -13867,7 +14337,7 @@ func (client *WebAppsClient) listBackupsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13884,12 +14354,12 @@ func (client *WebAppsClient) listBackupsSlotHandleResponse(resp *http.Response) // NewListBasicPublishingCredentialsPoliciesPager - Description for Returns whether Scm basic auth is allowed and whether // Ftp is allowed for a given site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListBasicPublishingCredentialsPoliciesOptions contains the optional parameters for the WebAppsClient.ListBasicPublishingCredentialsPolicies -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListBasicPublishingCredentialsPoliciesOptions contains the optional parameters for the WebAppsClient.NewListBasicPublishingCredentialsPoliciesPager +// method. func (client *WebAppsClient) NewListBasicPublishingCredentialsPoliciesPager(resourceGroupName string, name string, options *WebAppsClientListBasicPublishingCredentialsPoliciesOptions) *runtime.Pager[WebAppsClientListBasicPublishingCredentialsPoliciesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListBasicPublishingCredentialsPoliciesResponse]{ More: func(page WebAppsClientListBasicPublishingCredentialsPoliciesResponse) bool { @@ -13938,7 +14408,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13955,12 +14425,12 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesHandleRespons // NewListBasicPublishingCredentialsPoliciesSlotPager - Description for Returns whether Scm basic auth is allowed and whether // Ftp is allowed for a given site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions contains the optional parameters for the WebAppsClient.ListBasicPublishingCredentialsPoliciesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions contains the optional parameters for the WebAppsClient.NewListBasicPublishingCredentialsPoliciesSlotPager +// method. func (client *WebAppsClient) NewListBasicPublishingCredentialsPoliciesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions) *runtime.Pager[WebAppsClientListBasicPublishingCredentialsPoliciesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListBasicPublishingCredentialsPoliciesSlotResponse]{ More: func(page WebAppsClientListBasicPublishingCredentialsPoliciesSlotResponse) bool { @@ -14013,7 +14483,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14029,11 +14499,11 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotHandleRes } // NewListByResourceGroupPager - Description for Gets all web, mobile, and API apps in the specified resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// options - WebAppsClientListByResourceGroupOptions contains the optional parameters for the WebAppsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - options - WebAppsClientListByResourceGroupOptions contains the optional parameters for the WebAppsClient.NewListByResourceGroupPager +// method. func (client *WebAppsClient) NewListByResourceGroupPager(resourceGroupName string, options *WebAppsClientListByResourceGroupOptions) *runtime.Pager[WebAppsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListByResourceGroupResponse]{ More: func(page WebAppsClientListByResourceGroupResponse) bool { @@ -14081,7 +14551,7 @@ func (client *WebAppsClient) listByResourceGroupCreateRequest(ctx context.Contex if options != nil && options.IncludeSlots != nil { reqQP.Set("includeSlots", strconv.FormatBool(*options.IncludeSlots)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14098,12 +14568,12 @@ func (client *WebAppsClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListConfigurationSnapshotInfoPager - Description for Gets a list of web app configuration snapshots identifiers. Each // element of the list contains a timestamp and the ID of the snapshot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListConfigurationSnapshotInfoOptions contains the optional parameters for the WebAppsClient.ListConfigurationSnapshotInfo -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListConfigurationSnapshotInfoOptions contains the optional parameters for the WebAppsClient.NewListConfigurationSnapshotInfoPager +// method. func (client *WebAppsClient) NewListConfigurationSnapshotInfoPager(resourceGroupName string, name string, options *WebAppsClientListConfigurationSnapshotInfoOptions) *runtime.Pager[WebAppsClientListConfigurationSnapshotInfoResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListConfigurationSnapshotInfoResponse]{ More: func(page WebAppsClientListConfigurationSnapshotInfoResponse) bool { @@ -14152,7 +14622,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14169,13 +14639,13 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoHandleResponse(resp *h // NewListConfigurationSnapshotInfoSlotPager - Description for Gets a list of web app configuration snapshots identifiers. // Each element of the list contains a timestamp and the ID of the snapshot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. -// options - WebAppsClientListConfigurationSnapshotInfoSlotOptions contains the optional parameters for the WebAppsClient.ListConfigurationSnapshotInfoSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. +// - options - WebAppsClientListConfigurationSnapshotInfoSlotOptions contains the optional parameters for the WebAppsClient.NewListConfigurationSnapshotInfoSlotPager +// method. func (client *WebAppsClient) NewListConfigurationSnapshotInfoSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListConfigurationSnapshotInfoSlotOptions) *runtime.Pager[WebAppsClientListConfigurationSnapshotInfoSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListConfigurationSnapshotInfoSlotResponse]{ More: func(page WebAppsClientListConfigurationSnapshotInfoSlotResponse) bool { @@ -14228,7 +14698,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14244,12 +14714,12 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotHandleResponse(res } // NewListConfigurationsPager - Description for List the configurations of an app -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListConfigurationsOptions contains the optional parameters for the WebAppsClient.ListConfigurations -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListConfigurationsOptions contains the optional parameters for the WebAppsClient.NewListConfigurationsPager +// method. func (client *WebAppsClient) NewListConfigurationsPager(resourceGroupName string, name string, options *WebAppsClientListConfigurationsOptions) *runtime.Pager[WebAppsClientListConfigurationsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListConfigurationsResponse]{ More: func(page WebAppsClientListConfigurationsResponse) bool { @@ -14298,7 +14768,7 @@ func (client *WebAppsClient) listConfigurationsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14314,13 +14784,13 @@ func (client *WebAppsClient) listConfigurationsHandleResponse(resp *http.Respons } // NewListConfigurationsSlotPager - Description for List the configurations of an app -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. -// options - WebAppsClientListConfigurationsSlotOptions contains the optional parameters for the WebAppsClient.ListConfigurationsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. +// - options - WebAppsClientListConfigurationsSlotOptions contains the optional parameters for the WebAppsClient.NewListConfigurationsSlotPager +// method. func (client *WebAppsClient) NewListConfigurationsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListConfigurationsSlotOptions) *runtime.Pager[WebAppsClientListConfigurationsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListConfigurationsSlotResponse]{ More: func(page WebAppsClientListConfigurationsSlotResponse) bool { @@ -14373,7 +14843,7 @@ func (client *WebAppsClient) listConfigurationsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14390,11 +14860,12 @@ func (client *WebAppsClient) listConfigurationsSlotHandleResponse(resp *http.Res // ListConnectionStrings - Description for Gets the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListConnectionStringsOptions contains the optional parameters for the WebAppsClient.ListConnectionStrings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListConnectionStringsOptions contains the optional parameters for the WebAppsClient.ListConnectionStrings +// method. func (client *WebAppsClient) ListConnectionStrings(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListConnectionStringsOptions) (WebAppsClientListConnectionStringsResponse, error) { req, err := client.listConnectionStringsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -14430,7 +14901,7 @@ func (client *WebAppsClient) listConnectionStringsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14447,13 +14918,14 @@ func (client *WebAppsClient) listConnectionStringsHandleResponse(resp *http.Resp // ListConnectionStringsSlot - Description for Gets the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production -// slot. -// options - WebAppsClientListConnectionStringsSlotOptions contains the optional parameters for the WebAppsClient.ListConnectionStringsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production +// slot. +// - options - WebAppsClientListConnectionStringsSlotOptions contains the optional parameters for the WebAppsClient.ListConnectionStringsSlot +// method. func (client *WebAppsClient) ListConnectionStringsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListConnectionStringsSlotOptions) (WebAppsClientListConnectionStringsSlotResponse, error) { req, err := client.listConnectionStringsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -14493,7 +14965,7 @@ func (client *WebAppsClient) listConnectionStringsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14509,12 +14981,12 @@ func (client *WebAppsClient) listConnectionStringsSlotHandleResponse(resp *http. } // NewListContinuousWebJobsPager - Description for List continuous web jobs for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListContinuousWebJobsOptions contains the optional parameters for the WebAppsClient.ListContinuousWebJobs -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListContinuousWebJobsOptions contains the optional parameters for the WebAppsClient.NewListContinuousWebJobsPager +// method. func (client *WebAppsClient) NewListContinuousWebJobsPager(resourceGroupName string, name string, options *WebAppsClientListContinuousWebJobsOptions) *runtime.Pager[WebAppsClientListContinuousWebJobsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListContinuousWebJobsResponse]{ More: func(page WebAppsClientListContinuousWebJobsResponse) bool { @@ -14563,7 +15035,7 @@ func (client *WebAppsClient) listContinuousWebJobsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14579,13 +15051,13 @@ func (client *WebAppsClient) listContinuousWebJobsHandleResponse(resp *http.Resp } // NewListContinuousWebJobsSlotPager - Description for List continuous web jobs for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientListContinuousWebJobsSlotOptions contains the optional parameters for the WebAppsClient.ListContinuousWebJobsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientListContinuousWebJobsSlotOptions contains the optional parameters for the WebAppsClient.NewListContinuousWebJobsSlotPager +// method. func (client *WebAppsClient) NewListContinuousWebJobsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListContinuousWebJobsSlotOptions) *runtime.Pager[WebAppsClientListContinuousWebJobsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListContinuousWebJobsSlotResponse]{ More: func(page WebAppsClientListContinuousWebJobsSlotResponse) bool { @@ -14638,7 +15110,7 @@ func (client *WebAppsClient) listContinuousWebJobsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14655,12 +15127,13 @@ func (client *WebAppsClient) listContinuousWebJobsSlotHandleResponse(resp *http. // ListDeploymentLog - Description for List deployment log for specific deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". -// options - WebAppsClientListDeploymentLogOptions contains the optional parameters for the WebAppsClient.ListDeploymentLog -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". +// - options - WebAppsClientListDeploymentLogOptions contains the optional parameters for the WebAppsClient.ListDeploymentLog +// method. func (client *WebAppsClient) ListDeploymentLog(ctx context.Context, resourceGroupName string, name string, id string, options *WebAppsClientListDeploymentLogOptions) (WebAppsClientListDeploymentLogResponse, error) { req, err := client.listDeploymentLogCreateRequest(ctx, resourceGroupName, name, id, options) if err != nil { @@ -14700,7 +15173,7 @@ func (client *WebAppsClient) listDeploymentLogCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14717,13 +15190,14 @@ func (client *WebAppsClient) listDeploymentLogHandleResponse(resp *http.Response // ListDeploymentLogSlot - Description for List deployment log for specific deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// id - The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientListDeploymentLogSlotOptions contains the optional parameters for the WebAppsClient.ListDeploymentLogSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - id - The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientListDeploymentLogSlotOptions contains the optional parameters for the WebAppsClient.ListDeploymentLogSlot +// method. func (client *WebAppsClient) ListDeploymentLogSlot(ctx context.Context, resourceGroupName string, name string, id string, slot string, options *WebAppsClientListDeploymentLogSlotOptions) (WebAppsClientListDeploymentLogSlotResponse, error) { req, err := client.listDeploymentLogSlotCreateRequest(ctx, resourceGroupName, name, id, slot, options) if err != nil { @@ -14767,7 +15241,7 @@ func (client *WebAppsClient) listDeploymentLogSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14783,11 +15257,12 @@ func (client *WebAppsClient) listDeploymentLogSlotHandleResponse(resp *http.Resp } // NewListDeploymentsPager - Description for List deployments for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListDeploymentsOptions contains the optional parameters for the WebAppsClient.ListDeployments method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListDeploymentsOptions contains the optional parameters for the WebAppsClient.NewListDeploymentsPager +// method. func (client *WebAppsClient) NewListDeploymentsPager(resourceGroupName string, name string, options *WebAppsClientListDeploymentsOptions) *runtime.Pager[WebAppsClientListDeploymentsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListDeploymentsResponse]{ More: func(page WebAppsClientListDeploymentsResponse) bool { @@ -14836,7 +15311,7 @@ func (client *WebAppsClient) listDeploymentsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14852,13 +15327,13 @@ func (client *WebAppsClient) listDeploymentsHandleResponse(resp *http.Response) } // NewListDeploymentsSlotPager - Description for List deployments for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientListDeploymentsSlotOptions contains the optional parameters for the WebAppsClient.ListDeploymentsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientListDeploymentsSlotOptions contains the optional parameters for the WebAppsClient.NewListDeploymentsSlotPager +// method. func (client *WebAppsClient) NewListDeploymentsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListDeploymentsSlotOptions) *runtime.Pager[WebAppsClientListDeploymentsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListDeploymentsSlotResponse]{ More: func(page WebAppsClientListDeploymentsSlotResponse) bool { @@ -14911,7 +15386,7 @@ func (client *WebAppsClient) listDeploymentsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14927,12 +15402,12 @@ func (client *WebAppsClient) listDeploymentsSlotHandleResponse(resp *http.Respon } // NewListDomainOwnershipIdentifiersPager - Description for Lists ownership identifiers for domain associated with web app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListDomainOwnershipIdentifiersOptions contains the optional parameters for the WebAppsClient.ListDomainOwnershipIdentifiers -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListDomainOwnershipIdentifiersOptions contains the optional parameters for the WebAppsClient.NewListDomainOwnershipIdentifiersPager +// method. func (client *WebAppsClient) NewListDomainOwnershipIdentifiersPager(resourceGroupName string, name string, options *WebAppsClientListDomainOwnershipIdentifiersOptions) *runtime.Pager[WebAppsClientListDomainOwnershipIdentifiersResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListDomainOwnershipIdentifiersResponse]{ More: func(page WebAppsClientListDomainOwnershipIdentifiersResponse) bool { @@ -14981,7 +15456,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14998,13 +15473,13 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersHandleResponse(resp * // NewListDomainOwnershipIdentifiersSlotPager - Description for Lists ownership identifiers for domain associated with web // app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// options - WebAppsClientListDomainOwnershipIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.ListDomainOwnershipIdentifiersSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - options - WebAppsClientListDomainOwnershipIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.NewListDomainOwnershipIdentifiersSlotPager +// method. func (client *WebAppsClient) NewListDomainOwnershipIdentifiersSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListDomainOwnershipIdentifiersSlotOptions) *runtime.Pager[WebAppsClientListDomainOwnershipIdentifiersSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListDomainOwnershipIdentifiersSlotResponse]{ More: func(page WebAppsClientListDomainOwnershipIdentifiersSlotResponse) bool { @@ -15057,7 +15532,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15074,12 +15549,13 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotHandleResponse(re // ListFunctionKeys - Description for Get function keys for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// options - WebAppsClientListFunctionKeysOptions contains the optional parameters for the WebAppsClient.ListFunctionKeys -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - options - WebAppsClientListFunctionKeysOptions contains the optional parameters for the WebAppsClient.ListFunctionKeys +// method. func (client *WebAppsClient) ListFunctionKeys(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientListFunctionKeysOptions) (WebAppsClientListFunctionKeysResponse, error) { req, err := client.listFunctionKeysCreateRequest(ctx, resourceGroupName, name, functionName, options) if err != nil { @@ -15119,7 +15595,7 @@ func (client *WebAppsClient) listFunctionKeysCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15136,13 +15612,14 @@ func (client *WebAppsClient) listFunctionKeysHandleResponse(resp *http.Response) // ListFunctionKeysSlot - Description for Get function keys for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// slot - Name of the deployment slot. -// options - WebAppsClientListFunctionKeysSlotOptions contains the optional parameters for the WebAppsClient.ListFunctionKeysSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListFunctionKeysSlotOptions contains the optional parameters for the WebAppsClient.ListFunctionKeysSlot +// method. func (client *WebAppsClient) ListFunctionKeysSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientListFunctionKeysSlotOptions) (WebAppsClientListFunctionKeysSlotResponse, error) { req, err := client.listFunctionKeysSlotCreateRequest(ctx, resourceGroupName, name, functionName, slot, options) if err != nil { @@ -15186,7 +15663,7 @@ func (client *WebAppsClient) listFunctionKeysSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15203,12 +15680,13 @@ func (client *WebAppsClient) listFunctionKeysSlotHandleResponse(resp *http.Respo // ListFunctionSecrets - Description for Get function secrets for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// options - WebAppsClientListFunctionSecretsOptions contains the optional parameters for the WebAppsClient.ListFunctionSecrets -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - options - WebAppsClientListFunctionSecretsOptions contains the optional parameters for the WebAppsClient.ListFunctionSecrets +// method. func (client *WebAppsClient) ListFunctionSecrets(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientListFunctionSecretsOptions) (WebAppsClientListFunctionSecretsResponse, error) { req, err := client.listFunctionSecretsCreateRequest(ctx, resourceGroupName, name, functionName, options) if err != nil { @@ -15248,7 +15726,7 @@ func (client *WebAppsClient) listFunctionSecretsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15265,13 +15743,14 @@ func (client *WebAppsClient) listFunctionSecretsHandleResponse(resp *http.Respon // ListFunctionSecretsSlot - Description for Get function secrets for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// functionName - Function name. -// slot - Name of the deployment slot. -// options - WebAppsClientListFunctionSecretsSlotOptions contains the optional parameters for the WebAppsClient.ListFunctionSecretsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - functionName - Function name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListFunctionSecretsSlotOptions contains the optional parameters for the WebAppsClient.ListFunctionSecretsSlot +// method. func (client *WebAppsClient) ListFunctionSecretsSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientListFunctionSecretsSlotOptions) (WebAppsClientListFunctionSecretsSlotResponse, error) { req, err := client.listFunctionSecretsSlotCreateRequest(ctx, resourceGroupName, name, functionName, slot, options) if err != nil { @@ -15315,7 +15794,7 @@ func (client *WebAppsClient) listFunctionSecretsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15331,11 +15810,12 @@ func (client *WebAppsClient) listFunctionSecretsSlotHandleResponse(resp *http.Re } // NewListFunctionsPager - Description for List the functions for a web site, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListFunctionsOptions contains the optional parameters for the WebAppsClient.ListFunctions method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListFunctionsOptions contains the optional parameters for the WebAppsClient.NewListFunctionsPager +// method. func (client *WebAppsClient) NewListFunctionsPager(resourceGroupName string, name string, options *WebAppsClientListFunctionsOptions) *runtime.Pager[WebAppsClientListFunctionsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListFunctionsResponse]{ More: func(page WebAppsClientListFunctionsResponse) bool { @@ -15384,7 +15864,7 @@ func (client *WebAppsClient) listFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15401,10 +15881,11 @@ func (client *WebAppsClient) listFunctionsHandleResponse(resp *http.Response) (W // ListHostKeys - Description for Get host secrets for a function app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListHostKeysOptions contains the optional parameters for the WebAppsClient.ListHostKeys method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListHostKeysOptions contains the optional parameters for the WebAppsClient.ListHostKeys method. func (client *WebAppsClient) ListHostKeys(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListHostKeysOptions) (WebAppsClientListHostKeysResponse, error) { req, err := client.listHostKeysCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -15440,7 +15921,7 @@ func (client *WebAppsClient) listHostKeysCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15457,12 +15938,13 @@ func (client *WebAppsClient) listHostKeysHandleResponse(resp *http.Response) (We // ListHostKeysSlot - Description for Get host secrets for a function app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. -// options - WebAppsClientListHostKeysSlotOptions contains the optional parameters for the WebAppsClient.ListHostKeysSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListHostKeysSlotOptions contains the optional parameters for the WebAppsClient.ListHostKeysSlot +// method. func (client *WebAppsClient) ListHostKeysSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListHostKeysSlotOptions) (WebAppsClientListHostKeysSlotResponse, error) { req, err := client.listHostKeysSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -15502,7 +15984,7 @@ func (client *WebAppsClient) listHostKeysSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15518,12 +16000,12 @@ func (client *WebAppsClient) listHostKeysSlotHandleResponse(resp *http.Response) } // NewListHostNameBindingsPager - Description for Get hostname bindings for an app or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListHostNameBindingsOptions contains the optional parameters for the WebAppsClient.ListHostNameBindings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListHostNameBindingsOptions contains the optional parameters for the WebAppsClient.NewListHostNameBindingsPager +// method. func (client *WebAppsClient) NewListHostNameBindingsPager(resourceGroupName string, name string, options *WebAppsClientListHostNameBindingsOptions) *runtime.Pager[WebAppsClientListHostNameBindingsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListHostNameBindingsResponse]{ More: func(page WebAppsClientListHostNameBindingsResponse) bool { @@ -15572,7 +16054,7 @@ func (client *WebAppsClient) listHostNameBindingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15588,13 +16070,13 @@ func (client *WebAppsClient) listHostNameBindingsHandleResponse(resp *http.Respo } // NewListHostNameBindingsSlotPager - Description for Get hostname bindings for an app or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. -// options - WebAppsClientListHostNameBindingsSlotOptions contains the optional parameters for the WebAppsClient.ListHostNameBindingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. +// - options - WebAppsClientListHostNameBindingsSlotOptions contains the optional parameters for the WebAppsClient.NewListHostNameBindingsSlotPager +// method. func (client *WebAppsClient) NewListHostNameBindingsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListHostNameBindingsSlotOptions) *runtime.Pager[WebAppsClientListHostNameBindingsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListHostNameBindingsSlotResponse]{ More: func(page WebAppsClientListHostNameBindingsSlotResponse) bool { @@ -15647,7 +16129,7 @@ func (client *WebAppsClient) listHostNameBindingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15664,11 +16146,12 @@ func (client *WebAppsClient) listHostNameBindingsSlotHandleResponse(resp *http.R // ListHybridConnections - Description for Retrieves all Service Bus Hybrid Connections used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientListHybridConnectionsOptions contains the optional parameters for the WebAppsClient.ListHybridConnections -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientListHybridConnectionsOptions contains the optional parameters for the WebAppsClient.ListHybridConnections +// method. func (client *WebAppsClient) ListHybridConnections(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListHybridConnectionsOptions) (WebAppsClientListHybridConnectionsResponse, error) { req, err := client.listHybridConnectionsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -15704,7 +16187,7 @@ func (client *WebAppsClient) listHybridConnectionsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15721,12 +16204,13 @@ func (client *WebAppsClient) listHybridConnectionsHandleResponse(resp *http.Resp // ListHybridConnectionsSlot - Description for Retrieves all Service Bus Hybrid Connections used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for the web app. -// options - WebAppsClientListHybridConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListHybridConnectionsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for the web app. +// - options - WebAppsClientListHybridConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListHybridConnectionsSlot +// method. func (client *WebAppsClient) ListHybridConnectionsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListHybridConnectionsSlotOptions) (WebAppsClientListHybridConnectionsSlotResponse, error) { req, err := client.listHybridConnectionsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -15766,7 +16250,7 @@ func (client *WebAppsClient) listHybridConnectionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15782,13 +16266,13 @@ func (client *WebAppsClient) listHybridConnectionsSlotHandleResponse(resp *http. } // NewListInstanceFunctionsSlotPager - Description for List the functions for a web site, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. -// options - WebAppsClientListInstanceFunctionsSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceFunctionsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListInstanceFunctionsSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceFunctionsSlotPager +// method. func (client *WebAppsClient) NewListInstanceFunctionsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceFunctionsSlotOptions) *runtime.Pager[WebAppsClientListInstanceFunctionsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceFunctionsSlotResponse]{ More: func(page WebAppsClientListInstanceFunctionsSlotResponse) bool { @@ -15841,7 +16325,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15857,12 +16341,12 @@ func (client *WebAppsClient) listInstanceFunctionsSlotHandleResponse(resp *http. } // NewListInstanceIdentifiersPager - Description for Gets all scale-out instances of an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListInstanceIdentifiersOptions contains the optional parameters for the WebAppsClient.ListInstanceIdentifiers -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListInstanceIdentifiersOptions contains the optional parameters for the WebAppsClient.NewListInstanceIdentifiersPager +// method. func (client *WebAppsClient) NewListInstanceIdentifiersPager(resourceGroupName string, name string, options *WebAppsClientListInstanceIdentifiersOptions) *runtime.Pager[WebAppsClientListInstanceIdentifiersResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceIdentifiersResponse]{ More: func(page WebAppsClientListInstanceIdentifiersResponse) bool { @@ -15911,7 +16395,7 @@ func (client *WebAppsClient) listInstanceIdentifiersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15927,13 +16411,13 @@ func (client *WebAppsClient) listInstanceIdentifiersHandleResponse(resp *http.Re } // NewListInstanceIdentifiersSlotPager - Description for Gets all scale-out instances of an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. -// options - WebAppsClientListInstanceIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceIdentifiersSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. +// - options - WebAppsClientListInstanceIdentifiersSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceIdentifiersSlotPager +// method. func (client *WebAppsClient) NewListInstanceIdentifiersSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceIdentifiersSlotOptions) *runtime.Pager[WebAppsClientListInstanceIdentifiersSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceIdentifiersSlotResponse]{ More: func(page WebAppsClientListInstanceIdentifiersSlotResponse) bool { @@ -15986,7 +16470,7 @@ func (client *WebAppsClient) listInstanceIdentifiersSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16003,15 +16487,15 @@ func (client *WebAppsClient) listInstanceIdentifiersSlotHandleResponse(resp *htt // NewListInstanceProcessModulesPager - Description for List module information for a process by its ID for a specific scaled-out // instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientListInstanceProcessModulesOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessModules -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientListInstanceProcessModulesOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessModulesPager +// method. func (client *WebAppsClient) NewListInstanceProcessModulesPager(resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientListInstanceProcessModulesOptions) *runtime.Pager[WebAppsClientListInstanceProcessModulesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceProcessModulesResponse]{ More: func(page WebAppsClientListInstanceProcessModulesResponse) bool { @@ -16068,7 +16552,7 @@ func (client *WebAppsClient) listInstanceProcessModulesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16085,16 +16569,16 @@ func (client *WebAppsClient) listInstanceProcessModulesHandleResponse(resp *http // NewListInstanceProcessModulesSlotPager - Description for List module information for a process by its ID for a specific // scaled-out instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientListInstanceProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessModulesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientListInstanceProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessModulesSlotPager +// method. func (client *WebAppsClient) NewListInstanceProcessModulesSlotPager(resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientListInstanceProcessModulesSlotOptions) *runtime.Pager[WebAppsClientListInstanceProcessModulesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceProcessModulesSlotResponse]{ More: func(page WebAppsClientListInstanceProcessModulesSlotResponse) bool { @@ -16155,7 +16639,7 @@ func (client *WebAppsClient) listInstanceProcessModulesSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16172,15 +16656,15 @@ func (client *WebAppsClient) listInstanceProcessModulesSlotHandleResponse(resp * // NewListInstanceProcessThreadsPager - Description for List the threads in a process by its ID for a specific scaled-out // instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientListInstanceProcessThreadsOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessThreads -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientListInstanceProcessThreadsOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessThreadsPager +// method. func (client *WebAppsClient) NewListInstanceProcessThreadsPager(resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientListInstanceProcessThreadsOptions) *runtime.Pager[WebAppsClientListInstanceProcessThreadsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceProcessThreadsResponse]{ More: func(page WebAppsClientListInstanceProcessThreadsResponse) bool { @@ -16237,7 +16721,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16254,16 +16738,16 @@ func (client *WebAppsClient) listInstanceProcessThreadsHandleResponse(resp *http // NewListInstanceProcessThreadsSlotPager - Description for List the threads in a process by its ID for a specific scaled-out // instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientListInstanceProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessThreadsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientListInstanceProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessThreadsSlotPager +// method. func (client *WebAppsClient) NewListInstanceProcessThreadsSlotPager(resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientListInstanceProcessThreadsSlotOptions) *runtime.Pager[WebAppsClientListInstanceProcessThreadsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceProcessThreadsSlotResponse]{ More: func(page WebAppsClientListInstanceProcessThreadsSlotResponse) bool { @@ -16324,7 +16808,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16341,14 +16825,14 @@ func (client *WebAppsClient) listInstanceProcessThreadsSlotHandleResponse(resp * // NewListInstanceProcessesPager - Description for Get list of processes for a web site, or a deployment slot, or for a specific // scaled-out instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientListInstanceProcessesOptions contains the optional parameters for the WebAppsClient.ListInstanceProcesses -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientListInstanceProcessesOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessesPager +// method. func (client *WebAppsClient) NewListInstanceProcessesPager(resourceGroupName string, name string, instanceID string, options *WebAppsClientListInstanceProcessesOptions) *runtime.Pager[WebAppsClientListInstanceProcessesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceProcessesResponse]{ More: func(page WebAppsClientListInstanceProcessesResponse) bool { @@ -16401,7 +16885,7 @@ func (client *WebAppsClient) listInstanceProcessesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16418,15 +16902,15 @@ func (client *WebAppsClient) listInstanceProcessesHandleResponse(resp *http.Resp // NewListInstanceProcessesSlotPager - Description for Get list of processes for a web site, or a deployment slot, or for // a specific scaled-out instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET -// api/sites/{siteName}/instances". -// options - WebAppsClientListInstanceProcessesSlotOptions contains the optional parameters for the WebAppsClient.ListInstanceProcessesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET +// api/sites/{siteName}/instances". +// - options - WebAppsClientListInstanceProcessesSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceProcessesSlotPager +// method. func (client *WebAppsClient) NewListInstanceProcessesSlotPager(resourceGroupName string, name string, slot string, instanceID string, options *WebAppsClientListInstanceProcessesSlotOptions) *runtime.Pager[WebAppsClientListInstanceProcessesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceProcessesSlotResponse]{ More: func(page WebAppsClientListInstanceProcessesSlotResponse) bool { @@ -16483,7 +16967,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16498,12 +16982,88 @@ func (client *WebAppsClient) listInstanceProcessesSlotHandleResponse(resp *http. return result, nil } +// NewListInstanceWorkflowsSlotPager - List the workflows for a web site, or a deployment slot. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListInstanceWorkflowsSlotOptions contains the optional parameters for the WebAppsClient.NewListInstanceWorkflowsSlotPager +// method. +func (client *WebAppsClient) NewListInstanceWorkflowsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceWorkflowsSlotOptions) *runtime.Pager[WebAppsClientListInstanceWorkflowsSlotResponse] { + return runtime.NewPager(runtime.PagingHandler[WebAppsClientListInstanceWorkflowsSlotResponse]{ + More: func(page WebAppsClientListInstanceWorkflowsSlotResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *WebAppsClientListInstanceWorkflowsSlotResponse) (WebAppsClientListInstanceWorkflowsSlotResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listInstanceWorkflowsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return WebAppsClientListInstanceWorkflowsSlotResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientListInstanceWorkflowsSlotResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientListInstanceWorkflowsSlotResponse{}, runtime.NewResponseError(resp) + } + return client.listInstanceWorkflowsSlotHandleResponse(resp) + }, + }) +} + +// listInstanceWorkflowsSlotCreateRequest creates the ListInstanceWorkflowsSlot request. +func (client *WebAppsClient) listInstanceWorkflowsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceWorkflowsSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/workflows" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if slot == "" { + return nil, errors.New("parameter slot cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{slot}", url.PathEscape(slot)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listInstanceWorkflowsSlotHandleResponse handles the ListInstanceWorkflowsSlot response. +func (client *WebAppsClient) listInstanceWorkflowsSlotHandleResponse(resp *http.Response) (WebAppsClientListInstanceWorkflowsSlotResponse, error) { + result := WebAppsClientListInstanceWorkflowsSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkflowEnvelopeCollection); err != nil { + return WebAppsClientListInstanceWorkflowsSlotResponse{}, err + } + return result, nil +} + // ListMetadata - Description for Gets the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListMetadataOptions contains the optional parameters for the WebAppsClient.ListMetadata method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListMetadataOptions contains the optional parameters for the WebAppsClient.ListMetadata method. func (client *WebAppsClient) ListMetadata(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListMetadataOptions) (WebAppsClientListMetadataResponse, error) { req, err := client.listMetadataCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -16539,7 +17099,7 @@ func (client *WebAppsClient) listMetadataCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16556,12 +17116,13 @@ func (client *WebAppsClient) listMetadataHandleResponse(resp *http.Response) (We // ListMetadataSlot - Description for Gets the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. -// options - WebAppsClientListMetadataSlotOptions contains the optional parameters for the WebAppsClient.ListMetadataSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. +// - options - WebAppsClientListMetadataSlotOptions contains the optional parameters for the WebAppsClient.ListMetadataSlot +// method. func (client *WebAppsClient) ListMetadataSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListMetadataSlotOptions) (WebAppsClientListMetadataSlotResponse, error) { req, err := client.listMetadataSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -16601,7 +17162,7 @@ func (client *WebAppsClient) listMetadataSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16618,12 +17179,13 @@ func (client *WebAppsClient) listMetadataSlotHandleResponse(resp *http.Response) // ListNetworkFeatures - Description for Gets all network features used by the app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// view - The type of view. Only "summary" is supported at this time. -// options - WebAppsClientListNetworkFeaturesOptions contains the optional parameters for the WebAppsClient.ListNetworkFeatures -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - view - The type of view. Only "summary" is supported at this time. +// - options - WebAppsClientListNetworkFeaturesOptions contains the optional parameters for the WebAppsClient.ListNetworkFeatures +// method. func (client *WebAppsClient) ListNetworkFeatures(ctx context.Context, resourceGroupName string, name string, view string, options *WebAppsClientListNetworkFeaturesOptions) (WebAppsClientListNetworkFeaturesResponse, error) { req, err := client.listNetworkFeaturesCreateRequest(ctx, resourceGroupName, name, view, options) if err != nil { @@ -16663,7 +17225,7 @@ func (client *WebAppsClient) listNetworkFeaturesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16680,13 +17242,14 @@ func (client *WebAppsClient) listNetworkFeaturesHandleResponse(resp *http.Respon // ListNetworkFeaturesSlot - Description for Gets all network features used by the app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// view - The type of view. Only "summary" is supported at this time. -// slot - Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. -// options - WebAppsClientListNetworkFeaturesSlotOptions contains the optional parameters for the WebAppsClient.ListNetworkFeaturesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - view - The type of view. Only "summary" is supported at this time. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. +// - options - WebAppsClientListNetworkFeaturesSlotOptions contains the optional parameters for the WebAppsClient.ListNetworkFeaturesSlot +// method. func (client *WebAppsClient) ListNetworkFeaturesSlot(ctx context.Context, resourceGroupName string, name string, view string, slot string, options *WebAppsClientListNetworkFeaturesSlotOptions) (WebAppsClientListNetworkFeaturesSlotResponse, error) { req, err := client.listNetworkFeaturesSlotCreateRequest(ctx, resourceGroupName, name, view, slot, options) if err != nil { @@ -16730,7 +17293,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16746,12 +17309,12 @@ func (client *WebAppsClient) listNetworkFeaturesSlotHandleResponse(resp *http.Re } // NewListPerfMonCountersPager - Description for Gets perfmon counters for web app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientListPerfMonCountersOptions contains the optional parameters for the WebAppsClient.ListPerfMonCounters -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientListPerfMonCountersOptions contains the optional parameters for the WebAppsClient.NewListPerfMonCountersPager +// method. func (client *WebAppsClient) NewListPerfMonCountersPager(resourceGroupName string, name string, options *WebAppsClientListPerfMonCountersOptions) *runtime.Pager[WebAppsClientListPerfMonCountersResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListPerfMonCountersResponse]{ More: func(page WebAppsClientListPerfMonCountersResponse) bool { @@ -16800,7 +17363,7 @@ func (client *WebAppsClient) listPerfMonCountersCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -16821,13 +17384,13 @@ func (client *WebAppsClient) listPerfMonCountersHandleResponse(resp *http.Respon } // NewListPerfMonCountersSlotPager - Description for Gets perfmon counters for web app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientListPerfMonCountersSlotOptions contains the optional parameters for the WebAppsClient.ListPerfMonCountersSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientListPerfMonCountersSlotOptions contains the optional parameters for the WebAppsClient.NewListPerfMonCountersSlotPager +// method. func (client *WebAppsClient) NewListPerfMonCountersSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListPerfMonCountersSlotOptions) *runtime.Pager[WebAppsClientListPerfMonCountersSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListPerfMonCountersSlotResponse]{ More: func(page WebAppsClientListPerfMonCountersSlotResponse) bool { @@ -16880,7 +17443,7 @@ func (client *WebAppsClient) listPerfMonCountersSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -16902,11 +17465,12 @@ func (client *WebAppsClient) listPerfMonCountersSlotHandleResponse(resp *http.Re // ListPremierAddOns - Description for Gets the premier add-ons of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListPremierAddOnsOptions contains the optional parameters for the WebAppsClient.ListPremierAddOns -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListPremierAddOnsOptions contains the optional parameters for the WebAppsClient.ListPremierAddOns +// method. func (client *WebAppsClient) ListPremierAddOns(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListPremierAddOnsOptions) (WebAppsClientListPremierAddOnsResponse, error) { req, err := client.listPremierAddOnsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -16942,7 +17506,7 @@ func (client *WebAppsClient) listPremierAddOnsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16959,13 +17523,14 @@ func (client *WebAppsClient) listPremierAddOnsHandleResponse(resp *http.Response // ListPremierAddOnsSlot - Description for Gets the premier add-ons of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the premier add-ons for the production -// slot. -// options - WebAppsClientListPremierAddOnsSlotOptions contains the optional parameters for the WebAppsClient.ListPremierAddOnsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the premier add-ons for the production +// slot. +// - options - WebAppsClientListPremierAddOnsSlotOptions contains the optional parameters for the WebAppsClient.ListPremierAddOnsSlot +// method. func (client *WebAppsClient) ListPremierAddOnsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListPremierAddOnsSlotOptions) (WebAppsClientListPremierAddOnsSlotResponse, error) { req, err := client.listPremierAddOnsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -17005,7 +17570,7 @@ func (client *WebAppsClient) listPremierAddOnsSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17022,13 +17587,13 @@ func (client *WebAppsClient) listPremierAddOnsSlotHandleResponse(resp *http.Resp // NewListProcessModulesPager - Description for List module information for a process by its ID for a specific scaled-out // instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// options - WebAppsClientListProcessModulesOptions contains the optional parameters for the WebAppsClient.ListProcessModules -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - options - WebAppsClientListProcessModulesOptions contains the optional parameters for the WebAppsClient.NewListProcessModulesPager +// method. func (client *WebAppsClient) NewListProcessModulesPager(resourceGroupName string, name string, processID string, options *WebAppsClientListProcessModulesOptions) *runtime.Pager[WebAppsClientListProcessModulesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProcessModulesResponse]{ More: func(page WebAppsClientListProcessModulesResponse) bool { @@ -17081,7 +17646,7 @@ func (client *WebAppsClient) listProcessModulesCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17098,14 +17663,14 @@ func (client *WebAppsClient) listProcessModulesHandleResponse(resp *http.Respons // NewListProcessModulesSlotPager - Description for List module information for a process by its ID for a specific scaled-out // instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientListProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.ListProcessModulesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientListProcessModulesSlotOptions contains the optional parameters for the WebAppsClient.NewListProcessModulesSlotPager +// method. func (client *WebAppsClient) NewListProcessModulesSlotPager(resourceGroupName string, name string, processID string, slot string, options *WebAppsClientListProcessModulesSlotOptions) *runtime.Pager[WebAppsClientListProcessModulesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProcessModulesSlotResponse]{ More: func(page WebAppsClientListProcessModulesSlotResponse) bool { @@ -17162,7 +17727,7 @@ func (client *WebAppsClient) listProcessModulesSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17179,13 +17744,13 @@ func (client *WebAppsClient) listProcessModulesSlotHandleResponse(resp *http.Res // NewListProcessThreadsPager - Description for List the threads in a process by its ID for a specific scaled-out instance // in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// options - WebAppsClientListProcessThreadsOptions contains the optional parameters for the WebAppsClient.ListProcessThreads -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - options - WebAppsClientListProcessThreadsOptions contains the optional parameters for the WebAppsClient.NewListProcessThreadsPager +// method. func (client *WebAppsClient) NewListProcessThreadsPager(resourceGroupName string, name string, processID string, options *WebAppsClientListProcessThreadsOptions) *runtime.Pager[WebAppsClientListProcessThreadsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProcessThreadsResponse]{ More: func(page WebAppsClientListProcessThreadsResponse) bool { @@ -17238,7 +17803,7 @@ func (client *WebAppsClient) listProcessThreadsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17255,14 +17820,14 @@ func (client *WebAppsClient) listProcessThreadsHandleResponse(resp *http.Respons // NewListProcessThreadsSlotPager - Description for List the threads in a process by its ID for a specific scaled-out instance // in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// processID - PID. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientListProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.ListProcessThreadsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - processID - PID. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientListProcessThreadsSlotOptions contains the optional parameters for the WebAppsClient.NewListProcessThreadsSlotPager +// method. func (client *WebAppsClient) NewListProcessThreadsSlotPager(resourceGroupName string, name string, processID string, slot string, options *WebAppsClientListProcessThreadsSlotOptions) *runtime.Pager[WebAppsClientListProcessThreadsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProcessThreadsSlotResponse]{ More: func(page WebAppsClientListProcessThreadsSlotResponse) bool { @@ -17319,7 +17884,7 @@ func (client *WebAppsClient) listProcessThreadsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17336,11 +17901,12 @@ func (client *WebAppsClient) listProcessThreadsSlotHandleResponse(resp *http.Res // NewListProcessesPager - Description for Get list of processes for a web site, or a deployment slot, or for a specific scaled-out // instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListProcessesOptions contains the optional parameters for the WebAppsClient.ListProcesses method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListProcessesOptions contains the optional parameters for the WebAppsClient.NewListProcessesPager +// method. func (client *WebAppsClient) NewListProcessesPager(resourceGroupName string, name string, options *WebAppsClientListProcessesOptions) *runtime.Pager[WebAppsClientListProcessesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProcessesResponse]{ More: func(page WebAppsClientListProcessesResponse) bool { @@ -17389,7 +17955,7 @@ func (client *WebAppsClient) listProcessesCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17406,13 +17972,13 @@ func (client *WebAppsClient) listProcessesHandleResponse(resp *http.Response) (W // NewListProcessesSlotPager - Description for Get list of processes for a web site, or a deployment slot, or for a specific // scaled-out instance in a web site. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientListProcessesSlotOptions contains the optional parameters for the WebAppsClient.ListProcessesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientListProcessesSlotOptions contains the optional parameters for the WebAppsClient.NewListProcessesSlotPager +// method. func (client *WebAppsClient) NewListProcessesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListProcessesSlotOptions) *runtime.Pager[WebAppsClientListProcessesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProcessesSlotResponse]{ More: func(page WebAppsClientListProcessesSlotResponse) bool { @@ -17465,7 +18031,7 @@ func (client *WebAppsClient) listProcessesSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17481,12 +18047,12 @@ func (client *WebAppsClient) listProcessesSlotHandleResponse(resp *http.Response } // NewListProductionSiteDeploymentStatusesPager - List deployment statuses for an app (or deployment slot, if specified). -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListProductionSiteDeploymentStatusesOptions contains the optional parameters for the WebAppsClient.ListProductionSiteDeploymentStatuses -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListProductionSiteDeploymentStatusesOptions contains the optional parameters for the WebAppsClient.NewListProductionSiteDeploymentStatusesPager +// method. func (client *WebAppsClient) NewListProductionSiteDeploymentStatusesPager(resourceGroupName string, name string, options *WebAppsClientListProductionSiteDeploymentStatusesOptions) *runtime.Pager[WebAppsClientListProductionSiteDeploymentStatusesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListProductionSiteDeploymentStatusesResponse]{ More: func(page WebAppsClientListProductionSiteDeploymentStatusesResponse) bool { @@ -17535,7 +18101,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17551,12 +18117,12 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesHandleResponse( } // NewListPublicCertificatesPager - Description for Get public certificates for an app or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListPublicCertificatesOptions contains the optional parameters for the WebAppsClient.ListPublicCertificates -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListPublicCertificatesOptions contains the optional parameters for the WebAppsClient.NewListPublicCertificatesPager +// method. func (client *WebAppsClient) NewListPublicCertificatesPager(resourceGroupName string, name string, options *WebAppsClientListPublicCertificatesOptions) *runtime.Pager[WebAppsClientListPublicCertificatesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListPublicCertificatesResponse]{ More: func(page WebAppsClientListPublicCertificatesResponse) bool { @@ -17605,7 +18171,7 @@ func (client *WebAppsClient) listPublicCertificatesCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17621,13 +18187,13 @@ func (client *WebAppsClient) listPublicCertificatesHandleResponse(resp *http.Res } // NewListPublicCertificatesSlotPager - Description for Get public certificates for an app or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. -// options - WebAppsClientListPublicCertificatesSlotOptions contains the optional parameters for the WebAppsClient.ListPublicCertificatesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. +// - options - WebAppsClientListPublicCertificatesSlotOptions contains the optional parameters for the WebAppsClient.NewListPublicCertificatesSlotPager +// method. func (client *WebAppsClient) NewListPublicCertificatesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListPublicCertificatesSlotOptions) *runtime.Pager[WebAppsClientListPublicCertificatesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListPublicCertificatesSlotResponse]{ More: func(page WebAppsClientListPublicCertificatesSlotResponse) bool { @@ -17680,7 +18246,7 @@ func (client *WebAppsClient) listPublicCertificatesSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17697,11 +18263,12 @@ func (client *WebAppsClient) listPublicCertificatesSlotHandleResponse(resp *http // BeginListPublishingCredentials - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientBeginListPublishingCredentialsOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentials -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientBeginListPublishingCredentialsOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentials +// method. func (client *WebAppsClient) BeginListPublishingCredentials(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginListPublishingCredentialsOptions) (*runtime.Poller[WebAppsClientListPublishingCredentialsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.listPublishingCredentials(ctx, resourceGroupName, name, options) @@ -17716,7 +18283,8 @@ func (client *WebAppsClient) BeginListPublishingCredentials(ctx context.Context, // ListPublishingCredentials - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) listPublishingCredentials(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginListPublishingCredentialsOptions) (*http.Response, error) { req, err := client.listPublishingCredentialsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -17752,7 +18320,7 @@ func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17760,13 +18328,14 @@ func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context. // BeginListPublishingCredentialsSlot - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production -// slot. -// options - WebAppsClientBeginListPublishingCredentialsSlotOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentialsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production +// slot. +// - options - WebAppsClientBeginListPublishingCredentialsSlotOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentialsSlot +// method. func (client *WebAppsClient) BeginListPublishingCredentialsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginListPublishingCredentialsSlotOptions) (*runtime.Poller[WebAppsClientListPublishingCredentialsSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.listPublishingCredentialsSlot(ctx, resourceGroupName, name, slot, options) @@ -17781,7 +18350,8 @@ func (client *WebAppsClient) BeginListPublishingCredentialsSlot(ctx context.Cont // ListPublishingCredentialsSlot - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) listPublishingCredentialsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginListPublishingCredentialsSlotOptions) (*http.Response, error) { req, err := client.listPublishingCredentialsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -17821,7 +18391,7 @@ func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17829,13 +18399,14 @@ func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx cont // ListPublishingProfileXMLWithSecrets - Description for Gets the publishing profile for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// publishingProfileOptions - Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} -// to get a FileZilla publishing profile. -// options - WebAppsClientListPublishingProfileXMLWithSecretsOptions contains the optional parameters for the WebAppsClient.ListPublishingProfileXMLWithSecrets -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - publishingProfileOptions - Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} +// to get a FileZilla publishing profile. +// - options - WebAppsClientListPublishingProfileXMLWithSecretsOptions contains the optional parameters for the WebAppsClient.ListPublishingProfileXMLWithSecrets +// method. func (client *WebAppsClient) ListPublishingProfileXMLWithSecrets(ctx context.Context, resourceGroupName string, name string, publishingProfileOptions CsmPublishingProfileOptions, options *WebAppsClientListPublishingProfileXMLWithSecretsOptions) (WebAppsClientListPublishingProfileXMLWithSecretsResponse, error) { req, err := client.listPublishingProfileXMLWithSecretsCreateRequest(ctx, resourceGroupName, name, publishingProfileOptions, options) if err != nil { @@ -17871,7 +18442,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/xml"} @@ -17881,15 +18452,16 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct // ListPublishingProfileXMLWithSecretsSlot - Description for Gets the publishing profile for an app (or deployment slot, if // specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production -// slot. -// publishingProfileOptions - Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} -// to get a FileZilla publishing profile. -// options - WebAppsClientListPublishingProfileXMLWithSecretsSlotOptions contains the optional parameters for the WebAppsClient.ListPublishingProfileXMLWithSecretsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production +// slot. +// - publishingProfileOptions - Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} +// to get a FileZilla publishing profile. +// - options - WebAppsClientListPublishingProfileXMLWithSecretsSlotOptions contains the optional parameters for the WebAppsClient.ListPublishingProfileXMLWithSecretsSlot +// method. func (client *WebAppsClient) ListPublishingProfileXMLWithSecretsSlot(ctx context.Context, resourceGroupName string, name string, slot string, publishingProfileOptions CsmPublishingProfileOptions, options *WebAppsClientListPublishingProfileXMLWithSecretsSlotOptions) (WebAppsClientListPublishingProfileXMLWithSecretsSlotResponse, error) { req, err := client.listPublishingProfileXMLWithSecretsSlotCreateRequest(ctx, resourceGroupName, name, slot, publishingProfileOptions, options) if err != nil { @@ -17929,7 +18501,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/xml"} @@ -17938,11 +18510,12 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateReques // ListRelayServiceConnections - Description for Gets hybrid connections configured for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListRelayServiceConnectionsOptions contains the optional parameters for the WebAppsClient.ListRelayServiceConnections -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListRelayServiceConnectionsOptions contains the optional parameters for the WebAppsClient.ListRelayServiceConnections +// method. func (client *WebAppsClient) ListRelayServiceConnections(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListRelayServiceConnectionsOptions) (WebAppsClientListRelayServiceConnectionsResponse, error) { req, err := client.listRelayServiceConnectionsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -17978,7 +18551,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17996,13 +18569,14 @@ func (client *WebAppsClient) listRelayServiceConnectionsHandleResponse(resp *htt // ListRelayServiceConnectionsSlot - Description for Gets hybrid connections configured for an app (or deployment slot, if // specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production -// slot. -// options - WebAppsClientListRelayServiceConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListRelayServiceConnectionsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production +// slot. +// - options - WebAppsClientListRelayServiceConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListRelayServiceConnectionsSlot +// method. func (client *WebAppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListRelayServiceConnectionsSlotOptions) (WebAppsClientListRelayServiceConnectionsSlotResponse, error) { req, err := client.listRelayServiceConnectionsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -18042,7 +18616,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18058,11 +18632,12 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotHandleResponse(resp } // NewListSiteBackupsPager - Description for Gets existing backups of an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListSiteBackupsOptions contains the optional parameters for the WebAppsClient.ListSiteBackups method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListSiteBackupsOptions contains the optional parameters for the WebAppsClient.NewListSiteBackupsPager +// method. func (client *WebAppsClient) NewListSiteBackupsPager(resourceGroupName string, name string, options *WebAppsClientListSiteBackupsOptions) *runtime.Pager[WebAppsClientListSiteBackupsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSiteBackupsResponse]{ More: func(page WebAppsClientListSiteBackupsResponse) bool { @@ -18111,7 +18686,7 @@ func (client *WebAppsClient) listSiteBackupsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18127,13 +18702,13 @@ func (client *WebAppsClient) listSiteBackupsHandleResponse(resp *http.Response) } // NewListSiteBackupsSlotPager - Description for Gets existing backups of an app. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. -// options - WebAppsClientListSiteBackupsSlotOptions contains the optional parameters for the WebAppsClient.ListSiteBackupsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. +// - options - WebAppsClientListSiteBackupsSlotOptions contains the optional parameters for the WebAppsClient.NewListSiteBackupsSlotPager +// method. func (client *WebAppsClient) NewListSiteBackupsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListSiteBackupsSlotOptions) *runtime.Pager[WebAppsClientListSiteBackupsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSiteBackupsSlotResponse]{ More: func(page WebAppsClientListSiteBackupsSlotResponse) bool { @@ -18186,7 +18761,7 @@ func (client *WebAppsClient) listSiteBackupsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18202,12 +18777,12 @@ func (client *WebAppsClient) listSiteBackupsSlotHandleResponse(resp *http.Respon } // NewListSiteExtensionsPager - Description for Get list of siteextensions for a web site, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListSiteExtensionsOptions contains the optional parameters for the WebAppsClient.ListSiteExtensions -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListSiteExtensionsOptions contains the optional parameters for the WebAppsClient.NewListSiteExtensionsPager +// method. func (client *WebAppsClient) NewListSiteExtensionsPager(resourceGroupName string, name string, options *WebAppsClientListSiteExtensionsOptions) *runtime.Pager[WebAppsClientListSiteExtensionsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSiteExtensionsResponse]{ More: func(page WebAppsClientListSiteExtensionsResponse) bool { @@ -18256,7 +18831,7 @@ func (client *WebAppsClient) listSiteExtensionsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18272,13 +18847,13 @@ func (client *WebAppsClient) listSiteExtensionsHandleResponse(resp *http.Respons } // NewListSiteExtensionsSlotPager - Description for Get list of siteextensions for a web site, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientListSiteExtensionsSlotOptions contains the optional parameters for the WebAppsClient.ListSiteExtensionsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientListSiteExtensionsSlotOptions contains the optional parameters for the WebAppsClient.NewListSiteExtensionsSlotPager +// method. func (client *WebAppsClient) NewListSiteExtensionsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListSiteExtensionsSlotOptions) *runtime.Pager[WebAppsClientListSiteExtensionsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSiteExtensionsSlotResponse]{ More: func(page WebAppsClientListSiteExtensionsSlotResponse) bool { @@ -18331,7 +18906,7 @@ func (client *WebAppsClient) listSiteExtensionsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18348,11 +18923,12 @@ func (client *WebAppsClient) listSiteExtensionsSlotHandleResponse(resp *http.Res // ListSitePushSettings - Description for Gets the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientListSitePushSettingsOptions contains the optional parameters for the WebAppsClient.ListSitePushSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientListSitePushSettingsOptions contains the optional parameters for the WebAppsClient.ListSitePushSettings +// method. func (client *WebAppsClient) ListSitePushSettings(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSitePushSettingsOptions) (WebAppsClientListSitePushSettingsResponse, error) { req, err := client.listSitePushSettingsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -18388,7 +18964,7 @@ func (client *WebAppsClient) listSitePushSettingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18405,12 +18981,13 @@ func (client *WebAppsClient) listSitePushSettingsHandleResponse(resp *http.Respo // ListSitePushSettingsSlot - Description for Gets the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientListSitePushSettingsSlotOptions contains the optional parameters for the WebAppsClient.ListSitePushSettingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientListSitePushSettingsSlotOptions contains the optional parameters for the WebAppsClient.ListSitePushSettingsSlot +// method. func (client *WebAppsClient) ListSitePushSettingsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSitePushSettingsSlotOptions) (WebAppsClientListSitePushSettingsSlotResponse, error) { req, err := client.listSitePushSettingsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -18450,7 +19027,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18468,11 +19045,12 @@ func (client *WebAppsClient) listSitePushSettingsSlotHandleResponse(resp *http.R // ListSlotConfigurationNames - Description for Gets the names of app settings and connection strings that stick to the slot // (not swapped). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListSlotConfigurationNamesOptions contains the optional parameters for the WebAppsClient.ListSlotConfigurationNames -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListSlotConfigurationNamesOptions contains the optional parameters for the WebAppsClient.ListSlotConfigurationNames +// method. func (client *WebAppsClient) ListSlotConfigurationNames(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSlotConfigurationNamesOptions) (WebAppsClientListSlotConfigurationNamesResponse, error) { req, err := client.listSlotConfigurationNamesCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -18508,7 +19086,7 @@ func (client *WebAppsClient) listSlotConfigurationNamesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18525,13 +19103,13 @@ func (client *WebAppsClient) listSlotConfigurationNamesHandleResponse(resp *http // NewListSlotDifferencesFromProductionPager - Description for Get the difference in configuration settings between two web // app slots. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slotSwapEntity - JSON object that contains the target slot name. See example. -// options - WebAppsClientListSlotDifferencesFromProductionOptions contains the optional parameters for the WebAppsClient.ListSlotDifferencesFromProduction -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slotSwapEntity - JSON object that contains the target slot name. See example. +// - options - WebAppsClientListSlotDifferencesFromProductionOptions contains the optional parameters for the WebAppsClient.NewListSlotDifferencesFromProductionPager +// method. func (client *WebAppsClient) NewListSlotDifferencesFromProductionPager(resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientListSlotDifferencesFromProductionOptions) *runtime.Pager[WebAppsClientListSlotDifferencesFromProductionResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSlotDifferencesFromProductionResponse]{ More: func(page WebAppsClientListSlotDifferencesFromProductionResponse) bool { @@ -18580,7 +19158,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotSwapEntity) @@ -18596,14 +19174,14 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionHandleResponse(res } // NewListSlotDifferencesSlotPager - Description for Get the difference in configuration settings between two web app slots. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. -// slotSwapEntity - JSON object that contains the target slot name. See example. -// options - WebAppsClientListSlotDifferencesSlotOptions contains the optional parameters for the WebAppsClient.ListSlotDifferencesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. +// - slotSwapEntity - JSON object that contains the target slot name. See example. +// - options - WebAppsClientListSlotDifferencesSlotOptions contains the optional parameters for the WebAppsClient.NewListSlotDifferencesSlotPager +// method. func (client *WebAppsClient) NewListSlotDifferencesSlotPager(resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientListSlotDifferencesSlotOptions) *runtime.Pager[WebAppsClientListSlotDifferencesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSlotDifferencesSlotResponse]{ More: func(page WebAppsClientListSlotDifferencesSlotResponse) bool { @@ -18656,7 +19234,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotSwapEntity) @@ -18672,14 +19250,14 @@ func (client *WebAppsClient) listSlotDifferencesSlotHandleResponse(resp *http.Re } // NewListSlotSiteDeploymentStatusesSlotPager - List deployment statuses for an app (or deployment slot, if specified). -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get the deployment status for the production -// slot. -// options - WebAppsClientListSlotSiteDeploymentStatusesSlotOptions contains the optional parameters for the WebAppsClient.ListSlotSiteDeploymentStatusesSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get the deployment status for the production +// slot. +// - options - WebAppsClientListSlotSiteDeploymentStatusesSlotOptions contains the optional parameters for the WebAppsClient.NewListSlotSiteDeploymentStatusesSlotPager +// method. func (client *WebAppsClient) NewListSlotSiteDeploymentStatusesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListSlotSiteDeploymentStatusesSlotOptions) *runtime.Pager[WebAppsClientListSlotSiteDeploymentStatusesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSlotSiteDeploymentStatusesSlotResponse]{ More: func(page WebAppsClientListSlotSiteDeploymentStatusesSlotResponse) bool { @@ -18732,7 +19310,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18748,11 +19326,11 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotHandleResponse(re } // NewListSlotsPager - Description for Gets an app's deployment slots. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListSlotsOptions contains the optional parameters for the WebAppsClient.ListSlots method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListSlotsOptions contains the optional parameters for the WebAppsClient.NewListSlotsPager method. func (client *WebAppsClient) NewListSlotsPager(resourceGroupName string, name string, options *WebAppsClientListSlotsOptions) *runtime.Pager[WebAppsClientListSlotsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSlotsResponse]{ More: func(page WebAppsClientListSlotsResponse) bool { @@ -18801,7 +19379,7 @@ func (client *WebAppsClient) listSlotsCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18817,11 +19395,12 @@ func (client *WebAppsClient) listSlotsHandleResponse(resp *http.Response) (WebAp } // NewListSnapshotsPager - Description for Returns all Snapshots to the user. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Website Name. -// options - WebAppsClientListSnapshotsOptions contains the optional parameters for the WebAppsClient.ListSnapshots method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Website Name. +// - options - WebAppsClientListSnapshotsOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsPager +// method. func (client *WebAppsClient) NewListSnapshotsPager(resourceGroupName string, name string, options *WebAppsClientListSnapshotsOptions) *runtime.Pager[WebAppsClientListSnapshotsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSnapshotsResponse]{ More: func(page WebAppsClientListSnapshotsResponse) bool { @@ -18870,7 +19449,7 @@ func (client *WebAppsClient) listSnapshotsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18886,12 +19465,12 @@ func (client *WebAppsClient) listSnapshotsHandleResponse(resp *http.Response) (W } // NewListSnapshotsFromDRSecondaryPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Website Name. -// options - WebAppsClientListSnapshotsFromDRSecondaryOptions contains the optional parameters for the WebAppsClient.ListSnapshotsFromDRSecondary -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Website Name. +// - options - WebAppsClientListSnapshotsFromDRSecondaryOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsFromDRSecondaryPager +// method. func (client *WebAppsClient) NewListSnapshotsFromDRSecondaryPager(resourceGroupName string, name string, options *WebAppsClientListSnapshotsFromDRSecondaryOptions) *runtime.Pager[WebAppsClientListSnapshotsFromDRSecondaryResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSnapshotsFromDRSecondaryResponse]{ More: func(page WebAppsClientListSnapshotsFromDRSecondaryResponse) bool { @@ -18940,7 +19519,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18956,13 +19535,13 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryHandleResponse(resp *ht } // NewListSnapshotsFromDRSecondarySlotPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Website Name. -// slot - Website Slot. -// options - WebAppsClientListSnapshotsFromDRSecondarySlotOptions contains the optional parameters for the WebAppsClient.ListSnapshotsFromDRSecondarySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Website Name. +// - slot - Website Slot. +// - options - WebAppsClientListSnapshotsFromDRSecondarySlotOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsFromDRSecondarySlotPager +// method. func (client *WebAppsClient) NewListSnapshotsFromDRSecondarySlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListSnapshotsFromDRSecondarySlotOptions) *runtime.Pager[WebAppsClientListSnapshotsFromDRSecondarySlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSnapshotsFromDRSecondarySlotResponse]{ More: func(page WebAppsClientListSnapshotsFromDRSecondarySlotResponse) bool { @@ -19015,7 +19594,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19031,13 +19610,13 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotHandleResponse(resp } // NewListSnapshotsSlotPager - Description for Returns all Snapshots to the user. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Website Name. -// slot - Website Slot. -// options - WebAppsClientListSnapshotsSlotOptions contains the optional parameters for the WebAppsClient.ListSnapshotsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Website Name. +// - slot - Website Slot. +// - options - WebAppsClientListSnapshotsSlotOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsSlotPager +// method. func (client *WebAppsClient) NewListSnapshotsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListSnapshotsSlotOptions) *runtime.Pager[WebAppsClientListSnapshotsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListSnapshotsSlotResponse]{ More: func(page WebAppsClientListSnapshotsSlotResponse) bool { @@ -19090,7 +19669,7 @@ func (client *WebAppsClient) listSnapshotsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19107,11 +19686,12 @@ func (client *WebAppsClient) listSnapshotsSlotHandleResponse(resp *http.Response // ListSyncFunctionTriggers - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListSyncFunctionTriggersOptions contains the optional parameters for the WebAppsClient.ListSyncFunctionTriggers -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListSyncFunctionTriggersOptions contains the optional parameters for the WebAppsClient.ListSyncFunctionTriggers +// method. func (client *WebAppsClient) ListSyncFunctionTriggers(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSyncFunctionTriggersOptions) (WebAppsClientListSyncFunctionTriggersResponse, error) { req, err := client.listSyncFunctionTriggersCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -19147,7 +19727,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19164,12 +19744,13 @@ func (client *WebAppsClient) listSyncFunctionTriggersHandleResponse(resp *http.R // ListSyncFunctionTriggersSlot - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. -// options - WebAppsClientListSyncFunctionTriggersSlotOptions contains the optional parameters for the WebAppsClient.ListSyncFunctionTriggersSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListSyncFunctionTriggersSlotOptions contains the optional parameters for the WebAppsClient.ListSyncFunctionTriggersSlot +// method. func (client *WebAppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSyncFunctionTriggersSlotOptions) (WebAppsClientListSyncFunctionTriggersSlotResponse, error) { req, err := client.listSyncFunctionTriggersSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -19209,7 +19790,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19226,10 +19807,11 @@ func (client *WebAppsClient) listSyncFunctionTriggersSlotHandleResponse(resp *ht // ListSyncStatus - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListSyncStatusOptions contains the optional parameters for the WebAppsClient.ListSyncStatus method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListSyncStatusOptions contains the optional parameters for the WebAppsClient.ListSyncStatus method. func (client *WebAppsClient) ListSyncStatus(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSyncStatusOptions) (WebAppsClientListSyncStatusResponse, error) { req, err := client.listSyncStatusCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -19265,7 +19847,7 @@ func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19273,12 +19855,13 @@ func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, re // ListSyncStatusSlot - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. -// options - WebAppsClientListSyncStatusSlotOptions contains the optional parameters for the WebAppsClient.ListSyncStatusSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListSyncStatusSlotOptions contains the optional parameters for the WebAppsClient.ListSyncStatusSlot +// method. func (client *WebAppsClient) ListSyncStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSyncStatusSlotOptions) (WebAppsClientListSyncStatusSlotResponse, error) { req, err := client.listSyncStatusSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -19318,20 +19901,20 @@ func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // NewListTriggeredWebJobHistoryPager - Description for List a triggered web job's history for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientListTriggeredWebJobHistoryOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobHistory -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientListTriggeredWebJobHistoryOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobHistoryPager +// method. func (client *WebAppsClient) NewListTriggeredWebJobHistoryPager(resourceGroupName string, name string, webJobName string, options *WebAppsClientListTriggeredWebJobHistoryOptions) *runtime.Pager[WebAppsClientListTriggeredWebJobHistoryResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListTriggeredWebJobHistoryResponse]{ More: func(page WebAppsClientListTriggeredWebJobHistoryResponse) bool { @@ -19384,7 +19967,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19401,14 +19984,14 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryHandleResponse(resp *http // NewListTriggeredWebJobHistorySlotPager - Description for List a triggered web job's history for an app, or a deployment // slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientListTriggeredWebJobHistorySlotOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobHistorySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientListTriggeredWebJobHistorySlotOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobHistorySlotPager +// method. func (client *WebAppsClient) NewListTriggeredWebJobHistorySlotPager(resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientListTriggeredWebJobHistorySlotOptions) *runtime.Pager[WebAppsClientListTriggeredWebJobHistorySlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListTriggeredWebJobHistorySlotResponse]{ More: func(page WebAppsClientListTriggeredWebJobHistorySlotResponse) bool { @@ -19465,7 +20048,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19481,12 +20064,12 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotHandleResponse(resp * } // NewListTriggeredWebJobsPager - Description for List triggered web jobs for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListTriggeredWebJobsOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobs -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListTriggeredWebJobsOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobsPager +// method. func (client *WebAppsClient) NewListTriggeredWebJobsPager(resourceGroupName string, name string, options *WebAppsClientListTriggeredWebJobsOptions) *runtime.Pager[WebAppsClientListTriggeredWebJobsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListTriggeredWebJobsResponse]{ More: func(page WebAppsClientListTriggeredWebJobsResponse) bool { @@ -19535,7 +20118,7 @@ func (client *WebAppsClient) listTriggeredWebJobsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19551,13 +20134,13 @@ func (client *WebAppsClient) listTriggeredWebJobsHandleResponse(resp *http.Respo } // NewListTriggeredWebJobsSlotPager - Description for List triggered web jobs for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientListTriggeredWebJobsSlotOptions contains the optional parameters for the WebAppsClient.ListTriggeredWebJobsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientListTriggeredWebJobsSlotOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobsSlotPager +// method. func (client *WebAppsClient) NewListTriggeredWebJobsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListTriggeredWebJobsSlotOptions) *runtime.Pager[WebAppsClientListTriggeredWebJobsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListTriggeredWebJobsSlotResponse]{ More: func(page WebAppsClientListTriggeredWebJobsSlotResponse) bool { @@ -19610,7 +20193,7 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19626,11 +20209,11 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotHandleResponse(resp *http.R } // NewListUsagesPager - Description for Gets the quota usage information of an app (or deployment slot, if specified). -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListUsagesOptions contains the optional parameters for the WebAppsClient.ListUsages method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListUsagesOptions contains the optional parameters for the WebAppsClient.NewListUsagesPager method. func (client *WebAppsClient) NewListUsagesPager(resourceGroupName string, name string, options *WebAppsClientListUsagesOptions) *runtime.Pager[WebAppsClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListUsagesResponse]{ More: func(page WebAppsClientListUsagesResponse) bool { @@ -19679,7 +20262,7 @@ func (client *WebAppsClient) listUsagesCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -19700,12 +20283,13 @@ func (client *WebAppsClient) listUsagesHandleResponse(resp *http.Response) (WebA } // NewListUsagesSlotPager - Description for Gets the quota usage information of an app (or deployment slot, if specified). -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. -// options - WebAppsClientListUsagesSlotOptions contains the optional parameters for the WebAppsClient.ListUsagesSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. +// - options - WebAppsClientListUsagesSlotOptions contains the optional parameters for the WebAppsClient.NewListUsagesSlotPager +// method. func (client *WebAppsClient) NewListUsagesSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListUsagesSlotOptions) *runtime.Pager[WebAppsClientListUsagesSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListUsagesSlotResponse]{ More: func(page WebAppsClientListUsagesSlotResponse) bool { @@ -19758,7 +20342,7 @@ func (client *WebAppsClient) listUsagesSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -19780,11 +20364,12 @@ func (client *WebAppsClient) listUsagesSlotHandleResponse(resp *http.Response) ( // ListVnetConnections - Description for Gets the virtual networks the app (or deployment slot) is connected to. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientListVnetConnectionsOptions contains the optional parameters for the WebAppsClient.ListVnetConnections -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientListVnetConnectionsOptions contains the optional parameters for the WebAppsClient.ListVnetConnections +// method. func (client *WebAppsClient) ListVnetConnections(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListVnetConnectionsOptions) (WebAppsClientListVnetConnectionsResponse, error) { req, err := client.listVnetConnectionsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -19820,7 +20405,7 @@ func (client *WebAppsClient) listVnetConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19837,13 +20422,14 @@ func (client *WebAppsClient) listVnetConnectionsHandleResponse(resp *http.Respon // ListVnetConnectionsSlot - Description for Gets the virtual networks the app (or deployment slot) is connected to. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will get virtual network connections for the production -// slot. -// options - WebAppsClientListVnetConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListVnetConnectionsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will get virtual network connections for the production +// slot. +// - options - WebAppsClientListVnetConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListVnetConnectionsSlot +// method. func (client *WebAppsClient) ListVnetConnectionsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListVnetConnectionsSlotOptions) (WebAppsClientListVnetConnectionsSlotResponse, error) { req, err := client.listVnetConnectionsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -19883,7 +20469,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19899,11 +20485,11 @@ func (client *WebAppsClient) listVnetConnectionsSlotHandleResponse(resp *http.Re } // NewListWebJobsPager - Description for List webjobs for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// options - WebAppsClientListWebJobsOptions contains the optional parameters for the WebAppsClient.ListWebJobs method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListWebJobsOptions contains the optional parameters for the WebAppsClient.NewListWebJobsPager method. func (client *WebAppsClient) NewListWebJobsPager(resourceGroupName string, name string, options *WebAppsClientListWebJobsOptions) *runtime.Pager[WebAppsClientListWebJobsResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListWebJobsResponse]{ More: func(page WebAppsClientListWebJobsResponse) bool { @@ -19952,7 +20538,7 @@ func (client *WebAppsClient) listWebJobsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19968,12 +20554,13 @@ func (client *WebAppsClient) listWebJobsHandleResponse(resp *http.Response) (Web } // NewListWebJobsSlotPager - Description for List webjobs for an app, or a deployment slot. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. -// options - WebAppsClientListWebJobsSlotOptions contains the optional parameters for the WebAppsClient.ListWebJobsSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. +// - options - WebAppsClientListWebJobsSlotOptions contains the optional parameters for the WebAppsClient.NewListWebJobsSlotPager +// method. func (client *WebAppsClient) NewListWebJobsSlotPager(resourceGroupName string, name string, slot string, options *WebAppsClientListWebJobsSlotOptions) *runtime.Pager[WebAppsClientListWebJobsSlotResponse] { return runtime.NewPager(runtime.PagingHandler[WebAppsClientListWebJobsSlotResponse]{ More: func(page WebAppsClientListWebJobsSlotResponse) bool { @@ -20026,7 +20613,7 @@ func (client *WebAppsClient) listWebJobsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20041,14 +20628,206 @@ func (client *WebAppsClient) listWebJobsSlotHandleResponse(resp *http.Response) return result, nil } +// NewListWorkflowsPager - List the workflows for a web site, or a deployment slot. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListWorkflowsOptions contains the optional parameters for the WebAppsClient.NewListWorkflowsPager +// method. +func (client *WebAppsClient) NewListWorkflowsPager(resourceGroupName string, name string, options *WebAppsClientListWorkflowsOptions) *runtime.Pager[WebAppsClientListWorkflowsResponse] { + return runtime.NewPager(runtime.PagingHandler[WebAppsClientListWorkflowsResponse]{ + More: func(page WebAppsClientListWorkflowsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *WebAppsClientListWorkflowsResponse) (WebAppsClientListWorkflowsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listWorkflowsCreateRequest(ctx, resourceGroupName, name, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return WebAppsClientListWorkflowsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientListWorkflowsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientListWorkflowsResponse{}, runtime.NewResponseError(resp) + } + return client.listWorkflowsHandleResponse(resp) + }, + }) +} + +// listWorkflowsCreateRequest creates the ListWorkflows request. +func (client *WebAppsClient) listWorkflowsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListWorkflowsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/workflows" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listWorkflowsHandleResponse handles the ListWorkflows response. +func (client *WebAppsClient) listWorkflowsHandleResponse(resp *http.Response) (WebAppsClientListWorkflowsResponse, error) { + result := WebAppsClientListWorkflowsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkflowEnvelopeCollection); err != nil { + return WebAppsClientListWorkflowsResponse{}, err + } + return result, nil +} + +// ListWorkflowsConnections - Lists logic app's connections for web site, or a deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - options - WebAppsClientListWorkflowsConnectionsOptions contains the optional parameters for the WebAppsClient.ListWorkflowsConnections +// method. +func (client *WebAppsClient) ListWorkflowsConnections(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListWorkflowsConnectionsOptions) (WebAppsClientListWorkflowsConnectionsResponse, error) { + req, err := client.listWorkflowsConnectionsCreateRequest(ctx, resourceGroupName, name, options) + if err != nil { + return WebAppsClientListWorkflowsConnectionsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientListWorkflowsConnectionsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientListWorkflowsConnectionsResponse{}, runtime.NewResponseError(resp) + } + return client.listWorkflowsConnectionsHandleResponse(resp) +} + +// listWorkflowsConnectionsCreateRequest creates the ListWorkflowsConnections request. +func (client *WebAppsClient) listWorkflowsConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListWorkflowsConnectionsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listWorkflowsConnections" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listWorkflowsConnectionsHandleResponse handles the ListWorkflowsConnections response. +func (client *WebAppsClient) listWorkflowsConnectionsHandleResponse(resp *http.Response) (WebAppsClientListWorkflowsConnectionsResponse, error) { + result := WebAppsClientListWorkflowsConnectionsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkflowEnvelope); err != nil { + return WebAppsClientListWorkflowsConnectionsResponse{}, err + } + return result, nil +} + +// ListWorkflowsConnectionsSlot - Lists logic app's connections for web site, or a deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - slot - Name of the deployment slot. +// - options - WebAppsClientListWorkflowsConnectionsSlotOptions contains the optional parameters for the WebAppsClient.ListWorkflowsConnectionsSlot +// method. +func (client *WebAppsClient) ListWorkflowsConnectionsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListWorkflowsConnectionsSlotOptions) (WebAppsClientListWorkflowsConnectionsSlotResponse, error) { + req, err := client.listWorkflowsConnectionsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) + if err != nil { + return WebAppsClientListWorkflowsConnectionsSlotResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return WebAppsClientListWorkflowsConnectionsSlotResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return WebAppsClientListWorkflowsConnectionsSlotResponse{}, runtime.NewResponseError(resp) + } + return client.listWorkflowsConnectionsSlotHandleResponse(resp) +} + +// listWorkflowsConnectionsSlotCreateRequest creates the ListWorkflowsConnectionsSlot request. +func (client *WebAppsClient) listWorkflowsConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListWorkflowsConnectionsSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/listWorkflowsConnections" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if slot == "" { + return nil, errors.New("parameter slot cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{slot}", url.PathEscape(slot)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-09-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listWorkflowsConnectionsSlotHandleResponse handles the ListWorkflowsConnectionsSlot response. +func (client *WebAppsClient) listWorkflowsConnectionsSlotHandleResponse(resp *http.Response) (WebAppsClientListWorkflowsConnectionsSlotResponse, error) { + result := WebAppsClientListWorkflowsConnectionsSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.WorkflowEnvelope); err != nil { + return WebAppsClientListWorkflowsConnectionsSlotResponse{}, err + } + return result, nil +} + // BeginMigrateMySQL - Description for Migrates a local (in-app) MySql database to a remote MySql database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// migrationRequestEnvelope - MySql migration options. -// options - WebAppsClientBeginMigrateMySQLOptions contains the optional parameters for the WebAppsClient.BeginMigrateMySQL -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - migrationRequestEnvelope - MySql migration options. +// - options - WebAppsClientBeginMigrateMySQLOptions contains the optional parameters for the WebAppsClient.BeginMigrateMySQL +// method. func (client *WebAppsClient) BeginMigrateMySQL(ctx context.Context, resourceGroupName string, name string, migrationRequestEnvelope MigrateMySQLRequest, options *WebAppsClientBeginMigrateMySQLOptions) (*runtime.Poller[WebAppsClientMigrateMySQLResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateMySQL(ctx, resourceGroupName, name, migrationRequestEnvelope, options) @@ -20063,7 +20842,8 @@ func (client *WebAppsClient) BeginMigrateMySQL(ctx context.Context, resourceGrou // MigrateMySQL - Description for Migrates a local (in-app) MySql database to a remote MySql database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) migrateMySQL(ctx context.Context, resourceGroupName string, name string, migrationRequestEnvelope MigrateMySQLRequest, options *WebAppsClientBeginMigrateMySQLOptions) (*http.Response, error) { req, err := client.migrateMySQLCreateRequest(ctx, resourceGroupName, name, migrationRequestEnvelope, options) if err != nil { @@ -20099,7 +20879,7 @@ func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, migrationRequestEnvelope) @@ -20107,13 +20887,14 @@ func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, reso // BeginMigrateStorage - Description for Restores a web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// subscriptionName - Azure subscription. -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// migrationOptions - Migration migrationOptions. -// options - WebAppsClientBeginMigrateStorageOptions contains the optional parameters for the WebAppsClient.BeginMigrateStorage -// method. +// +// Generated from API version 2022-09-01 +// - subscriptionName - Azure subscription. +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - migrationOptions - Migration migrationOptions. +// - options - WebAppsClientBeginMigrateStorageOptions contains the optional parameters for the WebAppsClient.BeginMigrateStorage +// method. func (client *WebAppsClient) BeginMigrateStorage(ctx context.Context, subscriptionName string, resourceGroupName string, name string, migrationOptions StorageMigrationOptions, options *WebAppsClientBeginMigrateStorageOptions) (*runtime.Poller[WebAppsClientMigrateStorageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateStorage(ctx, subscriptionName, resourceGroupName, name, migrationOptions, options) @@ -20128,7 +20909,8 @@ func (client *WebAppsClient) BeginMigrateStorage(ctx context.Context, subscripti // MigrateStorage - Description for Restores a web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) migrateStorage(ctx context.Context, subscriptionName string, resourceGroupName string, name string, migrationOptions StorageMigrationOptions, options *WebAppsClientBeginMigrateStorageOptions) (*http.Response, error) { req, err := client.migrateStorageCreateRequest(ctx, subscriptionName, resourceGroupName, name, migrationOptions, options) if err != nil { @@ -20165,7 +20947,7 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su } reqQP := req.Raw().URL.Query() reqQP.Set("subscriptionName", subscriptionName) - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, migrationOptions) @@ -20174,12 +20956,13 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su // PutPrivateAccessVnet - Description for Sets data around private site access enablement and authorized Virtual Networks // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// access - The information for the private access -// options - WebAppsClientPutPrivateAccessVnetOptions contains the optional parameters for the WebAppsClient.PutPrivateAccessVnet -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - access - The information for the private access +// - options - WebAppsClientPutPrivateAccessVnetOptions contains the optional parameters for the WebAppsClient.PutPrivateAccessVnet +// method. func (client *WebAppsClient) PutPrivateAccessVnet(ctx context.Context, resourceGroupName string, name string, access PrivateAccess, options *WebAppsClientPutPrivateAccessVnetOptions) (WebAppsClientPutPrivateAccessVnetResponse, error) { req, err := client.putPrivateAccessVnetCreateRequest(ctx, resourceGroupName, name, access, options) if err != nil { @@ -20215,7 +20998,7 @@ func (client *WebAppsClient) putPrivateAccessVnetCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, access) @@ -20233,13 +21016,14 @@ func (client *WebAppsClient) putPrivateAccessVnetHandleResponse(resp *http.Respo // PutPrivateAccessVnetSlot - Description for Sets data around private site access enablement and authorized Virtual Networks // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for the web app. -// access - The information for the private access -// options - WebAppsClientPutPrivateAccessVnetSlotOptions contains the optional parameters for the WebAppsClient.PutPrivateAccessVnetSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for the web app. +// - access - The information for the private access +// - options - WebAppsClientPutPrivateAccessVnetSlotOptions contains the optional parameters for the WebAppsClient.PutPrivateAccessVnetSlot +// method. func (client *WebAppsClient) PutPrivateAccessVnetSlot(ctx context.Context, resourceGroupName string, name string, slot string, access PrivateAccess, options *WebAppsClientPutPrivateAccessVnetSlotOptions) (WebAppsClientPutPrivateAccessVnetSlotResponse, error) { req, err := client.putPrivateAccessVnetSlotCreateRequest(ctx, resourceGroupName, name, slot, access, options) if err != nil { @@ -20279,7 +21063,7 @@ func (client *WebAppsClient) putPrivateAccessVnetSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, access) @@ -20296,12 +21080,13 @@ func (client *WebAppsClient) putPrivateAccessVnetSlotHandleResponse(resp *http.R // RecoverSiteConfigurationSnapshot - Description for Reverts the configuration of an app to a previous snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// snapshotID - The ID of the snapshot to read. -// options - WebAppsClientRecoverSiteConfigurationSnapshotOptions contains the optional parameters for the WebAppsClient.RecoverSiteConfigurationSnapshot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - snapshotID - The ID of the snapshot to read. +// - options - WebAppsClientRecoverSiteConfigurationSnapshotOptions contains the optional parameters for the WebAppsClient.RecoverSiteConfigurationSnapshot +// method. func (client *WebAppsClient) RecoverSiteConfigurationSnapshot(ctx context.Context, resourceGroupName string, name string, snapshotID string, options *WebAppsClientRecoverSiteConfigurationSnapshotOptions) (WebAppsClientRecoverSiteConfigurationSnapshotResponse, error) { req, err := client.recoverSiteConfigurationSnapshotCreateRequest(ctx, resourceGroupName, name, snapshotID, options) if err != nil { @@ -20341,7 +21126,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20349,13 +21134,14 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx c // RecoverSiteConfigurationSnapshotSlot - Description for Reverts the configuration of an app to a previous snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// snapshotID - The ID of the snapshot to read. -// slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. -// options - WebAppsClientRecoverSiteConfigurationSnapshotSlotOptions contains the optional parameters for the WebAppsClient.RecoverSiteConfigurationSnapshotSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - snapshotID - The ID of the snapshot to read. +// - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. +// - options - WebAppsClientRecoverSiteConfigurationSnapshotSlotOptions contains the optional parameters for the WebAppsClient.RecoverSiteConfigurationSnapshotSlot +// method. func (client *WebAppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Context, resourceGroupName string, name string, snapshotID string, slot string, options *WebAppsClientRecoverSiteConfigurationSnapshotSlotOptions) (WebAppsClientRecoverSiteConfigurationSnapshotSlotResponse, error) { req, err := client.recoverSiteConfigurationSnapshotSlotCreateRequest(ctx, resourceGroupName, name, snapshotID, slot, options) if err != nil { @@ -20399,7 +21185,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20408,11 +21194,12 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c // ResetProductionSlotConfig - Description for Resets the configuration settings of the current slot if they were previously // modified by calling the API with POST. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientResetProductionSlotConfigOptions contains the optional parameters for the WebAppsClient.ResetProductionSlotConfig -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientResetProductionSlotConfigOptions contains the optional parameters for the WebAppsClient.ResetProductionSlotConfig +// method. func (client *WebAppsClient) ResetProductionSlotConfig(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientResetProductionSlotConfigOptions) (WebAppsClientResetProductionSlotConfigResponse, error) { req, err := client.resetProductionSlotConfigCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -20448,7 +21235,7 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20457,13 +21244,14 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. // ResetSlotConfigurationSlot - Description for Resets the configuration settings of the current slot if they were previously // modified by calling the API with POST. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API resets configuration settings for the production -// slot. -// options - WebAppsClientResetSlotConfigurationSlotOptions contains the optional parameters for the WebAppsClient.ResetSlotConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API resets configuration settings for the production +// slot. +// - options - WebAppsClientResetSlotConfigurationSlotOptions contains the optional parameters for the WebAppsClient.ResetSlotConfigurationSlot +// method. func (client *WebAppsClient) ResetSlotConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientResetSlotConfigurationSlotOptions) (WebAppsClientResetSlotConfigurationSlotResponse, error) { req, err := client.resetSlotConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -20503,7 +21291,7 @@ func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20511,10 +21299,11 @@ func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context // Restart - Description for Restarts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientRestartOptions contains the optional parameters for the WebAppsClient.Restart method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientRestartOptions contains the optional parameters for the WebAppsClient.Restart method. func (client *WebAppsClient) Restart(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientRestartOptions) (WebAppsClientRestartResponse, error) { req, err := client.restartCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -20556,7 +21345,7 @@ func (client *WebAppsClient) restartCreateRequest(ctx context.Context, resourceG if options != nil && options.Synchronous != nil { reqQP.Set("synchronous", strconv.FormatBool(*options.Synchronous)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20564,11 +21353,12 @@ func (client *WebAppsClient) restartCreateRequest(ctx context.Context, resourceG // RestartSlot - Description for Restarts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will restart the production slot. -// options - WebAppsClientRestartSlotOptions contains the optional parameters for the WebAppsClient.RestartSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will restart the production slot. +// - options - WebAppsClientRestartSlotOptions contains the optional parameters for the WebAppsClient.RestartSlot method. func (client *WebAppsClient) RestartSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientRestartSlotOptions) (WebAppsClientRestartSlotResponse, error) { req, err := client.restartSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -20614,7 +21404,7 @@ func (client *WebAppsClient) restartSlotCreateRequest(ctx context.Context, resou if options != nil && options.Synchronous != nil { reqQP.Set("synchronous", strconv.FormatBool(*options.Synchronous)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20622,12 +21412,13 @@ func (client *WebAppsClient) restartSlotCreateRequest(ctx context.Context, resou // BeginRestore - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// backupID - ID of the backup. -// request - Information on restore request . -// options - WebAppsClientBeginRestoreOptions contains the optional parameters for the WebAppsClient.BeginRestore method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - backupID - ID of the backup. +// - request - Information on restore request . +// - options - WebAppsClientBeginRestoreOptions contains the optional parameters for the WebAppsClient.BeginRestore method. func (client *WebAppsClient) BeginRestore(ctx context.Context, resourceGroupName string, name string, backupID string, request RestoreRequest, options *WebAppsClientBeginRestoreOptions) (*runtime.Poller[WebAppsClientRestoreResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restore(ctx, resourceGroupName, name, backupID, request, options) @@ -20642,7 +21433,8 @@ func (client *WebAppsClient) BeginRestore(ctx context.Context, resourceGroupName // Restore - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restore(ctx context.Context, resourceGroupName string, name string, backupID string, request RestoreRequest, options *WebAppsClientBeginRestoreOptions) (*http.Response, error) { req, err := client.restoreCreateRequest(ctx, resourceGroupName, name, backupID, request, options) if err != nil { @@ -20682,7 +21474,7 @@ func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -20690,12 +21482,13 @@ func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceG // BeginRestoreFromBackupBlob - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// request - Information on restore request . -// options - WebAppsClientBeginRestoreFromBackupBlobOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromBackupBlob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - request - Information on restore request . +// - options - WebAppsClientBeginRestoreFromBackupBlobOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromBackupBlob +// method. func (client *WebAppsClient) BeginRestoreFromBackupBlob(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobOptions) (*runtime.Poller[WebAppsClientRestoreFromBackupBlobResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreFromBackupBlob(ctx, resourceGroupName, name, request, options) @@ -20710,7 +21503,8 @@ func (client *WebAppsClient) BeginRestoreFromBackupBlob(ctx context.Context, res // RestoreFromBackupBlob - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreFromBackupBlob(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobOptions) (*http.Response, error) { req, err := client.restoreFromBackupBlobCreateRequest(ctx, resourceGroupName, name, request, options) if err != nil { @@ -20746,7 +21540,7 @@ func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -20754,13 +21548,14 @@ func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Cont // BeginRestoreFromBackupBlobSlot - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. -// request - Information on restore request . -// options - WebAppsClientBeginRestoreFromBackupBlobSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromBackupBlobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. +// - request - Information on restore request . +// - options - WebAppsClientBeginRestoreFromBackupBlobSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromBackupBlobSlot +// method. func (client *WebAppsClient) BeginRestoreFromBackupBlobSlot(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobSlotOptions) (*runtime.Poller[WebAppsClientRestoreFromBackupBlobSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreFromBackupBlobSlot(ctx, resourceGroupName, name, slot, request, options) @@ -20775,7 +21570,8 @@ func (client *WebAppsClient) BeginRestoreFromBackupBlobSlot(ctx context.Context, // RestoreFromBackupBlobSlot - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreFromBackupBlobSlot(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobSlotOptions) (*http.Response, error) { req, err := client.restoreFromBackupBlobSlotCreateRequest(ctx, resourceGroupName, name, slot, request, options) if err != nil { @@ -20815,7 +21611,7 @@ func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -20823,12 +21619,13 @@ func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context. // BeginRestoreFromDeletedApp - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// restoreRequest - Deleted web app restore information. -// options - WebAppsClientBeginRestoreFromDeletedAppOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromDeletedApp -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - restoreRequest - Deleted web app restore information. +// - options - WebAppsClientBeginRestoreFromDeletedAppOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromDeletedApp +// method. func (client *WebAppsClient) BeginRestoreFromDeletedApp(ctx context.Context, resourceGroupName string, name string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppOptions) (*runtime.Poller[WebAppsClientRestoreFromDeletedAppResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreFromDeletedApp(ctx, resourceGroupName, name, restoreRequest, options) @@ -20843,7 +21640,8 @@ func (client *WebAppsClient) BeginRestoreFromDeletedApp(ctx context.Context, res // RestoreFromDeletedApp - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreFromDeletedApp(ctx context.Context, resourceGroupName string, name string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppOptions) (*http.Response, error) { req, err := client.restoreFromDeletedAppCreateRequest(ctx, resourceGroupName, name, restoreRequest, options) if err != nil { @@ -20879,7 +21677,7 @@ func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, restoreRequest) @@ -20887,13 +21685,14 @@ func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Cont // BeginRestoreFromDeletedAppSlot - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// restoreRequest - Deleted web app restore information. -// options - WebAppsClientBeginRestoreFromDeletedAppSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromDeletedAppSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - restoreRequest - Deleted web app restore information. +// - options - WebAppsClientBeginRestoreFromDeletedAppSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromDeletedAppSlot +// method. func (client *WebAppsClient) BeginRestoreFromDeletedAppSlot(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppSlotOptions) (*runtime.Poller[WebAppsClientRestoreFromDeletedAppSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreFromDeletedAppSlot(ctx, resourceGroupName, name, slot, restoreRequest, options) @@ -20908,7 +21707,8 @@ func (client *WebAppsClient) BeginRestoreFromDeletedAppSlot(ctx context.Context, // RestoreFromDeletedAppSlot - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreFromDeletedAppSlot(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppSlotOptions) (*http.Response, error) { req, err := client.restoreFromDeletedAppSlotCreateRequest(ctx, resourceGroupName, name, slot, restoreRequest, options) if err != nil { @@ -20948,7 +21748,7 @@ func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, restoreRequest) @@ -20956,14 +21756,15 @@ func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context. // BeginRestoreSlot - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// backupID - ID of the backup. -// slot - Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. -// request - Information on restore request . -// options - WebAppsClientBeginRestoreSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - backupID - ID of the backup. +// - slot - Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. +// - request - Information on restore request . +// - options - WebAppsClientBeginRestoreSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSlot +// method. func (client *WebAppsClient) BeginRestoreSlot(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreSlotOptions) (*runtime.Poller[WebAppsClientRestoreSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreSlot(ctx, resourceGroupName, name, backupID, slot, request, options) @@ -20978,7 +21779,8 @@ func (client *WebAppsClient) BeginRestoreSlot(ctx context.Context, resourceGroup // RestoreSlot - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreSlot(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreSlotOptions) (*http.Response, error) { req, err := client.restoreSlotCreateRequest(ctx, resourceGroupName, name, backupID, slot, request, options) if err != nil { @@ -21022,7 +21824,7 @@ func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -21030,13 +21832,14 @@ func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resou // BeginRestoreSnapshot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// restoreRequest - Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots -// API. -// options - WebAppsClientBeginRestoreSnapshotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSnapshot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - restoreRequest - Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots +// API. +// - options - WebAppsClientBeginRestoreSnapshotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSnapshot +// method. func (client *WebAppsClient) BeginRestoreSnapshot(ctx context.Context, resourceGroupName string, name string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotOptions) (*runtime.Poller[WebAppsClientRestoreSnapshotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreSnapshot(ctx, resourceGroupName, name, restoreRequest, options) @@ -21051,7 +21854,8 @@ func (client *WebAppsClient) BeginRestoreSnapshot(ctx context.Context, resourceG // RestoreSnapshot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreSnapshot(ctx context.Context, resourceGroupName string, name string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotOptions) (*http.Response, error) { req, err := client.restoreSnapshotCreateRequest(ctx, resourceGroupName, name, restoreRequest, options) if err != nil { @@ -21087,7 +21891,7 @@ func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, restoreRequest) @@ -21095,14 +21899,15 @@ func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, r // BeginRestoreSnapshotSlot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// restoreRequest - Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots -// API. -// options - WebAppsClientBeginRestoreSnapshotSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSnapshotSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - restoreRequest - Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots +// API. +// - options - WebAppsClientBeginRestoreSnapshotSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSnapshotSlot +// method. func (client *WebAppsClient) BeginRestoreSnapshotSlot(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotSlotOptions) (*runtime.Poller[WebAppsClientRestoreSnapshotSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.restoreSnapshotSlot(ctx, resourceGroupName, name, slot, restoreRequest, options) @@ -21117,7 +21922,8 @@ func (client *WebAppsClient) BeginRestoreSnapshotSlot(ctx context.Context, resou // RestoreSnapshotSlot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) restoreSnapshotSlot(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotSlotOptions) (*http.Response, error) { req, err := client.restoreSnapshotSlotCreateRequest(ctx, resourceGroupName, name, slot, restoreRequest, options) if err != nil { @@ -21157,7 +21963,7 @@ func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, restoreRequest) @@ -21165,12 +21971,13 @@ func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Contex // RunTriggeredWebJob - Description for Run a triggered web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientRunTriggeredWebJobOptions contains the optional parameters for the WebAppsClient.RunTriggeredWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientRunTriggeredWebJobOptions contains the optional parameters for the WebAppsClient.RunTriggeredWebJob +// method. func (client *WebAppsClient) RunTriggeredWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientRunTriggeredWebJobOptions) (WebAppsClientRunTriggeredWebJobResponse, error) { req, err := client.runTriggeredWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -21210,7 +22017,7 @@ func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21218,13 +22025,14 @@ func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context // RunTriggeredWebJobSlot - Description for Run a triggered web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. -// options - WebAppsClientRunTriggeredWebJobSlotOptions contains the optional parameters for the WebAppsClient.RunTriggeredWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. +// - options - WebAppsClientRunTriggeredWebJobSlotOptions contains the optional parameters for the WebAppsClient.RunTriggeredWebJobSlot +// method. func (client *WebAppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientRunTriggeredWebJobSlotOptions) (WebAppsClientRunTriggeredWebJobSlotResponse, error) { req, err := client.runTriggeredWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -21268,7 +22076,7 @@ func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21276,10 +22084,11 @@ func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Con // Start - Description for Starts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientStartOptions contains the optional parameters for the WebAppsClient.Start method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientStartOptions contains the optional parameters for the WebAppsClient.Start method. func (client *WebAppsClient) Start(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStartOptions) (WebAppsClientStartResponse, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -21315,7 +22124,7 @@ func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21323,12 +22132,13 @@ func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGro // StartContinuousWebJob - Description for Start a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientStartContinuousWebJobOptions contains the optional parameters for the WebAppsClient.StartContinuousWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientStartContinuousWebJobOptions contains the optional parameters for the WebAppsClient.StartContinuousWebJob +// method. func (client *WebAppsClient) StartContinuousWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientStartContinuousWebJobOptions) (WebAppsClientStartContinuousWebJobResponse, error) { req, err := client.startContinuousWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -21368,7 +22178,7 @@ func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21376,13 +22186,14 @@ func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Cont // StartContinuousWebJobSlot - Description for Start a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientStartContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.StartContinuousWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientStartContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.StartContinuousWebJobSlot +// method. func (client *WebAppsClient) StartContinuousWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientStartContinuousWebJobSlotOptions) (WebAppsClientStartContinuousWebJobSlotResponse, error) { req, err := client.startContinuousWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -21426,7 +22237,7 @@ func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21434,11 +22245,12 @@ func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context. // BeginStartNetworkTrace - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientBeginStartNetworkTraceOptions contains the optional parameters for the WebAppsClient.BeginStartNetworkTrace -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientBeginStartNetworkTraceOptions contains the optional parameters for the WebAppsClient.BeginStartNetworkTrace +// method. func (client *WebAppsClient) BeginStartNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartNetworkTraceOptions) (*runtime.Poller[WebAppsClientStartNetworkTraceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startNetworkTrace(ctx, resourceGroupName, name, options) @@ -21453,7 +22265,8 @@ func (client *WebAppsClient) BeginStartNetworkTrace(ctx context.Context, resourc // StartNetworkTrace - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) startNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartNetworkTraceOptions) (*http.Response, error) { req, err := client.startNetworkTraceCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -21498,7 +22311,7 @@ func (client *WebAppsClient) startNetworkTraceCreateRequest(ctx context.Context, if options != nil && options.SasURL != nil { reqQP.Set("sasUrl", *options.SasURL) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21506,12 +22319,13 @@ func (client *WebAppsClient) startNetworkTraceCreateRequest(ctx context.Context, // BeginStartNetworkTraceSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for this web app. -// options - WebAppsClientBeginStartNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.BeginStartNetworkTraceSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for this web app. +// - options - WebAppsClientBeginStartNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.BeginStartNetworkTraceSlot +// method. func (client *WebAppsClient) BeginStartNetworkTraceSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginStartNetworkTraceSlotOptions) (*runtime.Poller[WebAppsClientStartNetworkTraceSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startNetworkTraceSlot(ctx, resourceGroupName, name, slot, options) @@ -21526,7 +22340,8 @@ func (client *WebAppsClient) BeginStartNetworkTraceSlot(ctx context.Context, res // StartNetworkTraceSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) startNetworkTraceSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginStartNetworkTraceSlotOptions) (*http.Response, error) { req, err := client.startNetworkTraceSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -21575,7 +22390,7 @@ func (client *WebAppsClient) startNetworkTraceSlotCreateRequest(ctx context.Cont if options != nil && options.SasURL != nil { reqQP.Set("sasUrl", *options.SasURL) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21583,11 +22398,12 @@ func (client *WebAppsClient) startNetworkTraceSlotCreateRequest(ctx context.Cont // StartSlot - Description for Starts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will start the production slot. -// options - WebAppsClientStartSlotOptions contains the optional parameters for the WebAppsClient.StartSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will start the production slot. +// - options - WebAppsClientStartSlotOptions contains the optional parameters for the WebAppsClient.StartSlot method. func (client *WebAppsClient) StartSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStartSlotOptions) (WebAppsClientStartSlotResponse, error) { req, err := client.startSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -21627,7 +22443,7 @@ func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21635,11 +22451,12 @@ func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourc // StartWebSiteNetworkTrace - Description for Start capturing network packets for the site (To be deprecated). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientStartWebSiteNetworkTraceOptions contains the optional parameters for the WebAppsClient.StartWebSiteNetworkTrace -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientStartWebSiteNetworkTraceOptions contains the optional parameters for the WebAppsClient.StartWebSiteNetworkTrace +// method. func (client *WebAppsClient) StartWebSiteNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStartWebSiteNetworkTraceOptions) (WebAppsClientStartWebSiteNetworkTraceResponse, error) { req, err := client.startWebSiteNetworkTraceCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -21684,7 +22501,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceCreateRequest(ctx context.C if options != nil && options.SasURL != nil { reqQP.Set("sasUrl", *options.SasURL) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21701,11 +22518,12 @@ func (client *WebAppsClient) startWebSiteNetworkTraceHandleResponse(resp *http.R // BeginStartWebSiteNetworkTraceOperation - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions contains the optional parameters for the WebAppsClient.BeginStartWebSiteNetworkTraceOperation -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions contains the optional parameters for the WebAppsClient.BeginStartWebSiteNetworkTraceOperation +// method. func (client *WebAppsClient) BeginStartWebSiteNetworkTraceOperation(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions) (*runtime.Poller[WebAppsClientStartWebSiteNetworkTraceOperationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startWebSiteNetworkTraceOperation(ctx, resourceGroupName, name, options) @@ -21720,7 +22538,8 @@ func (client *WebAppsClient) BeginStartWebSiteNetworkTraceOperation(ctx context. // StartWebSiteNetworkTraceOperation - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) startWebSiteNetworkTraceOperation(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions) (*http.Response, error) { req, err := client.startWebSiteNetworkTraceOperationCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -21765,7 +22584,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationCreateRequest(ctx if options != nil && options.SasURL != nil { reqQP.Set("sasUrl", *options.SasURL) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21773,12 +22592,13 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationCreateRequest(ctx // BeginStartWebSiteNetworkTraceOperationSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for this web app. -// options - WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for this web app. +// - options - WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot +// method. func (client *WebAppsClient) BeginStartWebSiteNetworkTraceOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions) (*runtime.Poller[WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startWebSiteNetworkTraceOperationSlot(ctx, resourceGroupName, name, slot, options) @@ -21793,7 +22613,8 @@ func (client *WebAppsClient) BeginStartWebSiteNetworkTraceOperationSlot(ctx cont // StartWebSiteNetworkTraceOperationSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions) (*http.Response, error) { req, err := client.startWebSiteNetworkTraceOperationSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -21842,7 +22663,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlotCreateRequest( if options != nil && options.SasURL != nil { reqQP.Set("sasUrl", *options.SasURL) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21850,12 +22671,13 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlotCreateRequest( // StartWebSiteNetworkTraceSlot - Description for Start capturing network packets for the site (To be deprecated). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for this web app. -// options - WebAppsClientStartWebSiteNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.StartWebSiteNetworkTraceSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for this web app. +// - options - WebAppsClientStartWebSiteNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.StartWebSiteNetworkTraceSlot +// method. func (client *WebAppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStartWebSiteNetworkTraceSlotOptions) (WebAppsClientStartWebSiteNetworkTraceSlotResponse, error) { req, err := client.startWebSiteNetworkTraceSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -21904,7 +22726,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceSlotCreateRequest(ctx conte if options != nil && options.SasURL != nil { reqQP.Set("sasUrl", *options.SasURL) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21921,10 +22743,11 @@ func (client *WebAppsClient) startWebSiteNetworkTraceSlotHandleResponse(resp *ht // Stop - Description for Stops an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientStopOptions contains the optional parameters for the WebAppsClient.Stop method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientStopOptions contains the optional parameters for the WebAppsClient.Stop method. func (client *WebAppsClient) Stop(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStopOptions) (WebAppsClientStopResponse, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -21960,7 +22783,7 @@ func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21968,12 +22791,13 @@ func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGrou // StopContinuousWebJob - Description for Stop a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// options - WebAppsClientStopContinuousWebJobOptions contains the optional parameters for the WebAppsClient.StopContinuousWebJob -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - options - WebAppsClientStopContinuousWebJobOptions contains the optional parameters for the WebAppsClient.StopContinuousWebJob +// method. func (client *WebAppsClient) StopContinuousWebJob(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientStopContinuousWebJobOptions) (WebAppsClientStopContinuousWebJobResponse, error) { req, err := client.stopContinuousWebJobCreateRequest(ctx, resourceGroupName, name, webJobName, options) if err != nil { @@ -22013,7 +22837,7 @@ func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22021,13 +22845,14 @@ func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Conte // StopContinuousWebJobSlot - Description for Stop a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// webJobName - Name of Web Job. -// slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. -// options - WebAppsClientStopContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.StopContinuousWebJobSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - webJobName - Name of Web Job. +// - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. +// - options - WebAppsClientStopContinuousWebJobSlotOptions contains the optional parameters for the WebAppsClient.StopContinuousWebJobSlot +// method. func (client *WebAppsClient) StopContinuousWebJobSlot(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientStopContinuousWebJobSlotOptions) (WebAppsClientStopContinuousWebJobSlotResponse, error) { req, err := client.stopContinuousWebJobSlotCreateRequest(ctx, resourceGroupName, name, webJobName, slot, options) if err != nil { @@ -22071,7 +22896,7 @@ func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22079,11 +22904,12 @@ func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.C // StopNetworkTrace - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientStopNetworkTraceOptions contains the optional parameters for the WebAppsClient.StopNetworkTrace -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientStopNetworkTraceOptions contains the optional parameters for the WebAppsClient.StopNetworkTrace +// method. func (client *WebAppsClient) StopNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStopNetworkTraceOptions) (WebAppsClientStopNetworkTraceResponse, error) { req, err := client.stopNetworkTraceCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -22119,7 +22945,7 @@ func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22127,12 +22953,13 @@ func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, // StopNetworkTraceSlot - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for this web app. -// options - WebAppsClientStopNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.StopNetworkTraceSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for this web app. +// - options - WebAppsClientStopNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.StopNetworkTraceSlot +// method. func (client *WebAppsClient) StopNetworkTraceSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStopNetworkTraceSlotOptions) (WebAppsClientStopNetworkTraceSlotResponse, error) { req, err := client.stopNetworkTraceSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -22172,7 +22999,7 @@ func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22180,11 +23007,12 @@ func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Conte // StopSlot - Description for Stops an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will stop the production slot. -// options - WebAppsClientStopSlotOptions contains the optional parameters for the WebAppsClient.StopSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will stop the production slot. +// - options - WebAppsClientStopSlotOptions contains the optional parameters for the WebAppsClient.StopSlot method. func (client *WebAppsClient) StopSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStopSlotOptions) (WebAppsClientStopSlotResponse, error) { req, err := client.stopSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -22224,7 +23052,7 @@ func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22232,11 +23060,12 @@ func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resource // StopWebSiteNetworkTrace - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// options - WebAppsClientStopWebSiteNetworkTraceOptions contains the optional parameters for the WebAppsClient.StopWebSiteNetworkTrace -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - options - WebAppsClientStopWebSiteNetworkTraceOptions contains the optional parameters for the WebAppsClient.StopWebSiteNetworkTrace +// method. func (client *WebAppsClient) StopWebSiteNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStopWebSiteNetworkTraceOptions) (WebAppsClientStopWebSiteNetworkTraceResponse, error) { req, err := client.stopWebSiteNetworkTraceCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -22272,7 +23101,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22280,12 +23109,13 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Co // StopWebSiteNetworkTraceSlot - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// slot - The name of the slot for this web app. -// options - WebAppsClientStopWebSiteNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.StopWebSiteNetworkTraceSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - slot - The name of the slot for this web app. +// - options - WebAppsClientStopWebSiteNetworkTraceSlotOptions contains the optional parameters for the WebAppsClient.StopWebSiteNetworkTraceSlot +// method. func (client *WebAppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStopWebSiteNetworkTraceSlotOptions) (WebAppsClientStopWebSiteNetworkTraceSlotResponse, error) { req, err := client.stopWebSiteNetworkTraceSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -22325,7 +23155,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22333,12 +23163,13 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx contex // BeginSwapSlot - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. -// slotSwapEntity - JSON object that contains the target slot name. See example. -// options - WebAppsClientBeginSwapSlotOptions contains the optional parameters for the WebAppsClient.BeginSwapSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. +// - slotSwapEntity - JSON object that contains the target slot name. See example. +// - options - WebAppsClientBeginSwapSlotOptions contains the optional parameters for the WebAppsClient.BeginSwapSlot method. func (client *WebAppsClient) BeginSwapSlot(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotOptions) (*runtime.Poller[WebAppsClientSwapSlotResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.swapSlot(ctx, resourceGroupName, name, slot, slotSwapEntity, options) @@ -22353,7 +23184,8 @@ func (client *WebAppsClient) BeginSwapSlot(ctx context.Context, resourceGroupNam // SwapSlot - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) swapSlot(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotOptions) (*http.Response, error) { req, err := client.swapSlotCreateRequest(ctx, resourceGroupName, name, slot, slotSwapEntity, options) if err != nil { @@ -22393,7 +23225,7 @@ func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotSwapEntity) @@ -22401,12 +23233,13 @@ func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resource // BeginSwapSlotWithProduction - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slotSwapEntity - JSON object that contains the target slot name. See example. -// options - WebAppsClientBeginSwapSlotWithProductionOptions contains the optional parameters for the WebAppsClient.BeginSwapSlotWithProduction -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slotSwapEntity - JSON object that contains the target slot name. See example. +// - options - WebAppsClientBeginSwapSlotWithProductionOptions contains the optional parameters for the WebAppsClient.BeginSwapSlotWithProduction +// method. func (client *WebAppsClient) BeginSwapSlotWithProduction(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotWithProductionOptions) (*runtime.Poller[WebAppsClientSwapSlotWithProductionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.swapSlotWithProduction(ctx, resourceGroupName, name, slotSwapEntity, options) @@ -22421,7 +23254,8 @@ func (client *WebAppsClient) BeginSwapSlotWithProduction(ctx context.Context, re // SwapSlotWithProduction - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WebAppsClient) swapSlotWithProduction(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotWithProductionOptions) (*http.Response, error) { req, err := client.swapSlotWithProductionCreateRequest(ctx, resourceGroupName, name, slotSwapEntity, options) if err != nil { @@ -22457,7 +23291,7 @@ func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotSwapEntity) @@ -22465,11 +23299,12 @@ func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Con // SyncFunctionTriggers - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientSyncFunctionTriggersOptions contains the optional parameters for the WebAppsClient.SyncFunctionTriggers -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientSyncFunctionTriggersOptions contains the optional parameters for the WebAppsClient.SyncFunctionTriggers +// method. func (client *WebAppsClient) SyncFunctionTriggers(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientSyncFunctionTriggersOptions) (WebAppsClientSyncFunctionTriggersResponse, error) { req, err := client.syncFunctionTriggersCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -22505,7 +23340,7 @@ func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22513,12 +23348,13 @@ func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Conte // SyncFunctionTriggersSlot - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. -// options - WebAppsClientSyncFunctionTriggersSlotOptions contains the optional parameters for the WebAppsClient.SyncFunctionTriggersSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. +// - options - WebAppsClientSyncFunctionTriggersSlotOptions contains the optional parameters for the WebAppsClient.SyncFunctionTriggersSlot +// method. func (client *WebAppsClient) SyncFunctionTriggersSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientSyncFunctionTriggersSlotOptions) (WebAppsClientSyncFunctionTriggersSlotResponse, error) { req, err := client.syncFunctionTriggersSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -22558,7 +23394,7 @@ func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22566,10 +23402,11 @@ func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.C // SyncFunctions - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientSyncFunctionsOptions contains the optional parameters for the WebAppsClient.SyncFunctions method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientSyncFunctionsOptions contains the optional parameters for the WebAppsClient.SyncFunctions method. func (client *WebAppsClient) SyncFunctions(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientSyncFunctionsOptions) (WebAppsClientSyncFunctionsResponse, error) { req, err := client.syncFunctionsCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -22605,7 +23442,7 @@ func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22613,12 +23450,13 @@ func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, res // SyncFunctionsSlot - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. -// options - WebAppsClientSyncFunctionsSlotOptions contains the optional parameters for the WebAppsClient.SyncFunctionsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. +// - options - WebAppsClientSyncFunctionsSlotOptions contains the optional parameters for the WebAppsClient.SyncFunctionsSlot +// method. func (client *WebAppsClient) SyncFunctionsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientSyncFunctionsSlotOptions) (WebAppsClientSyncFunctionsSlotResponse, error) { req, err := client.syncFunctionsSlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -22658,7 +23496,7 @@ func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22666,10 +23504,11 @@ func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, // SyncRepository - Description for Sync web app repository. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// options - WebAppsClientSyncRepositoryOptions contains the optional parameters for the WebAppsClient.SyncRepository method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - options - WebAppsClientSyncRepositoryOptions contains the optional parameters for the WebAppsClient.SyncRepository method. func (client *WebAppsClient) SyncRepository(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientSyncRepositoryOptions) (WebAppsClientSyncRepositoryResponse, error) { req, err := client.syncRepositoryCreateRequest(ctx, resourceGroupName, name, options) if err != nil { @@ -22705,7 +23544,7 @@ func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22713,12 +23552,13 @@ func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, re // SyncRepositorySlot - Description for Sync web app repository. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// options - WebAppsClientSyncRepositorySlotOptions contains the optional parameters for the WebAppsClient.SyncRepositorySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - options - WebAppsClientSyncRepositorySlotOptions contains the optional parameters for the WebAppsClient.SyncRepositorySlot +// method. func (client *WebAppsClient) SyncRepositorySlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientSyncRepositorySlotOptions) (WebAppsClientSyncRepositorySlotResponse, error) { req, err := client.syncRepositorySlotCreateRequest(ctx, resourceGroupName, name, slot, options) if err != nil { @@ -22758,7 +23598,7 @@ func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22766,11 +23606,12 @@ func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context // Update - Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. -// siteEnvelope - A JSON representation of the app properties. See example. -// options - WebAppsClientUpdateOptions contains the optional parameters for the WebAppsClient.Update method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. +// - siteEnvelope - A JSON representation of the app properties. See example. +// - options - WebAppsClientUpdateOptions contains the optional parameters for the WebAppsClient.Update method. func (client *WebAppsClient) Update(ctx context.Context, resourceGroupName string, name string, siteEnvelope SitePatchResource, options *WebAppsClientUpdateOptions) (WebAppsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, name, siteEnvelope, options) if err != nil { @@ -22806,7 +23647,7 @@ func (client *WebAppsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteEnvelope) @@ -22823,12 +23664,13 @@ func (client *WebAppsClient) updateHandleResponse(resp *http.Response) (WebAppsC // UpdateApplicationSettings - Description for Replaces the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// appSettings - Application settings of the app. -// options - WebAppsClientUpdateApplicationSettingsOptions contains the optional parameters for the WebAppsClient.UpdateApplicationSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - appSettings - Application settings of the app. +// - options - WebAppsClientUpdateApplicationSettingsOptions contains the optional parameters for the WebAppsClient.UpdateApplicationSettings +// method. func (client *WebAppsClient) UpdateApplicationSettings(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, options *WebAppsClientUpdateApplicationSettingsOptions) (WebAppsClientUpdateApplicationSettingsResponse, error) { req, err := client.updateApplicationSettingsCreateRequest(ctx, resourceGroupName, name, appSettings, options) if err != nil { @@ -22864,7 +23706,7 @@ func (client *WebAppsClient) updateApplicationSettingsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appSettings) @@ -22881,14 +23723,15 @@ func (client *WebAppsClient) updateApplicationSettingsHandleResponse(resp *http. // UpdateApplicationSettingsSlot - Description for Replaces the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production -// slot. -// appSettings - Application settings of the app. -// options - WebAppsClientUpdateApplicationSettingsSlotOptions contains the optional parameters for the WebAppsClient.UpdateApplicationSettingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production +// slot. +// - appSettings - Application settings of the app. +// - options - WebAppsClientUpdateApplicationSettingsSlotOptions contains the optional parameters for the WebAppsClient.UpdateApplicationSettingsSlot +// method. func (client *WebAppsClient) UpdateApplicationSettingsSlot(ctx context.Context, resourceGroupName string, name string, slot string, appSettings StringDictionary, options *WebAppsClientUpdateApplicationSettingsSlotOptions) (WebAppsClientUpdateApplicationSettingsSlotResponse, error) { req, err := client.updateApplicationSettingsSlotCreateRequest(ctx, resourceGroupName, name, slot, appSettings, options) if err != nil { @@ -22928,7 +23771,7 @@ func (client *WebAppsClient) updateApplicationSettingsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, appSettings) @@ -22945,12 +23788,13 @@ func (client *WebAppsClient) updateApplicationSettingsSlotHandleResponse(resp *h // UpdateAuthSettings - Description for Updates the Authentication / Authorization settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// siteAuthSettings - Auth settings associated with web app. -// options - WebAppsClientUpdateAuthSettingsOptions contains the optional parameters for the WebAppsClient.UpdateAuthSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - siteAuthSettings - Auth settings associated with web app. +// - options - WebAppsClientUpdateAuthSettingsOptions contains the optional parameters for the WebAppsClient.UpdateAuthSettings +// method. func (client *WebAppsClient) UpdateAuthSettings(ctx context.Context, resourceGroupName string, name string, siteAuthSettings SiteAuthSettings, options *WebAppsClientUpdateAuthSettingsOptions) (WebAppsClientUpdateAuthSettingsResponse, error) { req, err := client.updateAuthSettingsCreateRequest(ctx, resourceGroupName, name, siteAuthSettings, options) if err != nil { @@ -22986,7 +23830,7 @@ func (client *WebAppsClient) updateAuthSettingsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteAuthSettings) @@ -23003,13 +23847,14 @@ func (client *WebAppsClient) updateAuthSettingsHandleResponse(resp *http.Respons // UpdateAuthSettingsSlot - Description for Updates the Authentication / Authorization settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// siteAuthSettings - Auth settings associated with web app. -// options - WebAppsClientUpdateAuthSettingsSlotOptions contains the optional parameters for the WebAppsClient.UpdateAuthSettingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - siteAuthSettings - Auth settings associated with web app. +// - options - WebAppsClientUpdateAuthSettingsSlotOptions contains the optional parameters for the WebAppsClient.UpdateAuthSettingsSlot +// method. func (client *WebAppsClient) UpdateAuthSettingsSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteAuthSettings SiteAuthSettings, options *WebAppsClientUpdateAuthSettingsSlotOptions) (WebAppsClientUpdateAuthSettingsSlotResponse, error) { req, err := client.updateAuthSettingsSlotCreateRequest(ctx, resourceGroupName, name, slot, siteAuthSettings, options) if err != nil { @@ -23049,7 +23894,7 @@ func (client *WebAppsClient) updateAuthSettingsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteAuthSettings) @@ -23066,12 +23911,13 @@ func (client *WebAppsClient) updateAuthSettingsSlotHandleResponse(resp *http.Res // UpdateAuthSettingsV2 - Description for Updates site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// siteAuthSettingsV2 - Auth settings associated with web app. -// options - WebAppsClientUpdateAuthSettingsV2Options contains the optional parameters for the WebAppsClient.UpdateAuthSettingsV2 -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - siteAuthSettingsV2 - Auth settings associated with web app. +// - options - WebAppsClientUpdateAuthSettingsV2Options contains the optional parameters for the WebAppsClient.UpdateAuthSettingsV2 +// method. func (client *WebAppsClient) UpdateAuthSettingsV2(ctx context.Context, resourceGroupName string, name string, siteAuthSettingsV2 SiteAuthSettingsV2, options *WebAppsClientUpdateAuthSettingsV2Options) (WebAppsClientUpdateAuthSettingsV2Response, error) { req, err := client.updateAuthSettingsV2CreateRequest(ctx, resourceGroupName, name, siteAuthSettingsV2, options) if err != nil { @@ -23107,7 +23953,7 @@ func (client *WebAppsClient) updateAuthSettingsV2CreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteAuthSettingsV2) @@ -23124,13 +23970,14 @@ func (client *WebAppsClient) updateAuthSettingsV2HandleResponse(resp *http.Respo // UpdateAuthSettingsV2Slot - Description for Updates site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// siteAuthSettingsV2 - Auth settings associated with web app. -// options - WebAppsClientUpdateAuthSettingsV2SlotOptions contains the optional parameters for the WebAppsClient.UpdateAuthSettingsV2Slot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - siteAuthSettingsV2 - Auth settings associated with web app. +// - options - WebAppsClientUpdateAuthSettingsV2SlotOptions contains the optional parameters for the WebAppsClient.UpdateAuthSettingsV2Slot +// method. func (client *WebAppsClient) UpdateAuthSettingsV2Slot(ctx context.Context, resourceGroupName string, name string, slot string, siteAuthSettingsV2 SiteAuthSettingsV2, options *WebAppsClientUpdateAuthSettingsV2SlotOptions) (WebAppsClientUpdateAuthSettingsV2SlotResponse, error) { req, err := client.updateAuthSettingsV2SlotCreateRequest(ctx, resourceGroupName, name, slot, siteAuthSettingsV2, options) if err != nil { @@ -23170,7 +24017,7 @@ func (client *WebAppsClient) updateAuthSettingsV2SlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteAuthSettingsV2) @@ -23187,12 +24034,13 @@ func (client *WebAppsClient) updateAuthSettingsV2SlotHandleResponse(resp *http.R // UpdateAzureStorageAccounts - Description for Updates the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// azureStorageAccounts - Azure storage accounts of the app. -// options - WebAppsClientUpdateAzureStorageAccountsOptions contains the optional parameters for the WebAppsClient.UpdateAzureStorageAccounts -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - azureStorageAccounts - Azure storage accounts of the app. +// - options - WebAppsClientUpdateAzureStorageAccountsOptions contains the optional parameters for the WebAppsClient.UpdateAzureStorageAccounts +// method. func (client *WebAppsClient) UpdateAzureStorageAccounts(ctx context.Context, resourceGroupName string, name string, azureStorageAccounts AzureStoragePropertyDictionaryResource, options *WebAppsClientUpdateAzureStorageAccountsOptions) (WebAppsClientUpdateAzureStorageAccountsResponse, error) { req, err := client.updateAzureStorageAccountsCreateRequest(ctx, resourceGroupName, name, azureStorageAccounts, options) if err != nil { @@ -23228,7 +24076,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, azureStorageAccounts) @@ -23245,14 +24093,15 @@ func (client *WebAppsClient) updateAzureStorageAccountsHandleResponse(resp *http // UpdateAzureStorageAccountsSlot - Description for Updates the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations -// for the production slot. -// azureStorageAccounts - Azure storage accounts of the app. -// options - WebAppsClientUpdateAzureStorageAccountsSlotOptions contains the optional parameters for the WebAppsClient.UpdateAzureStorageAccountsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations +// for the production slot. +// - azureStorageAccounts - Azure storage accounts of the app. +// - options - WebAppsClientUpdateAzureStorageAccountsSlotOptions contains the optional parameters for the WebAppsClient.UpdateAzureStorageAccountsSlot +// method. func (client *WebAppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, resourceGroupName string, name string, slot string, azureStorageAccounts AzureStoragePropertyDictionaryResource, options *WebAppsClientUpdateAzureStorageAccountsSlotOptions) (WebAppsClientUpdateAzureStorageAccountsSlotResponse, error) { req, err := client.updateAzureStorageAccountsSlotCreateRequest(ctx, resourceGroupName, name, slot, azureStorageAccounts, options) if err != nil { @@ -23292,7 +24141,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, azureStorageAccounts) @@ -23309,12 +24158,13 @@ func (client *WebAppsClient) updateAzureStorageAccountsSlotHandleResponse(resp * // UpdateBackupConfiguration - Description for Updates the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// request - Edited backup configuration. -// options - WebAppsClientUpdateBackupConfigurationOptions contains the optional parameters for the WebAppsClient.UpdateBackupConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - request - Edited backup configuration. +// - options - WebAppsClientUpdateBackupConfigurationOptions contains the optional parameters for the WebAppsClient.UpdateBackupConfiguration +// method. func (client *WebAppsClient) UpdateBackupConfiguration(ctx context.Context, resourceGroupName string, name string, request BackupRequest, options *WebAppsClientUpdateBackupConfigurationOptions) (WebAppsClientUpdateBackupConfigurationResponse, error) { req, err := client.updateBackupConfigurationCreateRequest(ctx, resourceGroupName, name, request, options) if err != nil { @@ -23350,7 +24200,7 @@ func (client *WebAppsClient) updateBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -23367,14 +24217,15 @@ func (client *WebAppsClient) updateBackupConfigurationHandleResponse(resp *http. // UpdateBackupConfigurationSlot - Description for Updates the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production -// slot. -// request - Edited backup configuration. -// options - WebAppsClientUpdateBackupConfigurationSlotOptions contains the optional parameters for the WebAppsClient.UpdateBackupConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production +// slot. +// - request - Edited backup configuration. +// - options - WebAppsClientUpdateBackupConfigurationSlotOptions contains the optional parameters for the WebAppsClient.UpdateBackupConfigurationSlot +// method. func (client *WebAppsClient) UpdateBackupConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, request BackupRequest, options *WebAppsClientUpdateBackupConfigurationSlotOptions) (WebAppsClientUpdateBackupConfigurationSlotResponse, error) { req, err := client.updateBackupConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, request, options) if err != nil { @@ -23414,7 +24265,7 @@ func (client *WebAppsClient) updateBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -23431,12 +24282,13 @@ func (client *WebAppsClient) updateBackupConfigurationSlotHandleResponse(resp *h // UpdateConfiguration - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// siteConfig - JSON representation of a SiteConfig object. See example. -// options - WebAppsClientUpdateConfigurationOptions contains the optional parameters for the WebAppsClient.UpdateConfiguration -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - siteConfig - JSON representation of a SiteConfig object. See example. +// - options - WebAppsClientUpdateConfigurationOptions contains the optional parameters for the WebAppsClient.UpdateConfiguration +// method. func (client *WebAppsClient) UpdateConfiguration(ctx context.Context, resourceGroupName string, name string, siteConfig SiteConfigResource, options *WebAppsClientUpdateConfigurationOptions) (WebAppsClientUpdateConfigurationResponse, error) { req, err := client.updateConfigurationCreateRequest(ctx, resourceGroupName, name, siteConfig, options) if err != nil { @@ -23472,7 +24324,7 @@ func (client *WebAppsClient) updateConfigurationCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteConfig) @@ -23489,13 +24341,14 @@ func (client *WebAppsClient) updateConfigurationHandleResponse(resp *http.Respon // UpdateConfigurationSlot - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. -// siteConfig - JSON representation of a SiteConfig object. See example. -// options - WebAppsClientUpdateConfigurationSlotOptions contains the optional parameters for the WebAppsClient.UpdateConfigurationSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. +// - siteConfig - JSON representation of a SiteConfig object. See example. +// - options - WebAppsClientUpdateConfigurationSlotOptions contains the optional parameters for the WebAppsClient.UpdateConfigurationSlot +// method. func (client *WebAppsClient) UpdateConfigurationSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteConfig SiteConfigResource, options *WebAppsClientUpdateConfigurationSlotOptions) (WebAppsClientUpdateConfigurationSlotResponse, error) { req, err := client.updateConfigurationSlotCreateRequest(ctx, resourceGroupName, name, slot, siteConfig, options) if err != nil { @@ -23535,7 +24388,7 @@ func (client *WebAppsClient) updateConfigurationSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteConfig) @@ -23552,12 +24405,13 @@ func (client *WebAppsClient) updateConfigurationSlotHandleResponse(resp *http.Re // UpdateConnectionStrings - Description for Replaces the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// connectionStrings - Connection strings of the app or deployment slot. See example. -// options - WebAppsClientUpdateConnectionStringsOptions contains the optional parameters for the WebAppsClient.UpdateConnectionStrings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - connectionStrings - Connection strings of the app or deployment slot. See example. +// - options - WebAppsClientUpdateConnectionStringsOptions contains the optional parameters for the WebAppsClient.UpdateConnectionStrings +// method. func (client *WebAppsClient) UpdateConnectionStrings(ctx context.Context, resourceGroupName string, name string, connectionStrings ConnectionStringDictionary, options *WebAppsClientUpdateConnectionStringsOptions) (WebAppsClientUpdateConnectionStringsResponse, error) { req, err := client.updateConnectionStringsCreateRequest(ctx, resourceGroupName, name, connectionStrings, options) if err != nil { @@ -23593,7 +24447,7 @@ func (client *WebAppsClient) updateConnectionStringsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionStrings) @@ -23610,14 +24464,15 @@ func (client *WebAppsClient) updateConnectionStringsHandleResponse(resp *http.Re // UpdateConnectionStringsSlot - Description for Replaces the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production -// slot. -// connectionStrings - Connection strings of the app or deployment slot. See example. -// options - WebAppsClientUpdateConnectionStringsSlotOptions contains the optional parameters for the WebAppsClient.UpdateConnectionStringsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production +// slot. +// - connectionStrings - Connection strings of the app or deployment slot. See example. +// - options - WebAppsClientUpdateConnectionStringsSlotOptions contains the optional parameters for the WebAppsClient.UpdateConnectionStringsSlot +// method. func (client *WebAppsClient) UpdateConnectionStringsSlot(ctx context.Context, resourceGroupName string, name string, slot string, connectionStrings ConnectionStringDictionary, options *WebAppsClientUpdateConnectionStringsSlotOptions) (WebAppsClientUpdateConnectionStringsSlotResponse, error) { req, err := client.updateConnectionStringsSlotCreateRequest(ctx, resourceGroupName, name, slot, connectionStrings, options) if err != nil { @@ -23657,7 +24512,7 @@ func (client *WebAppsClient) updateConnectionStringsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionStrings) @@ -23674,12 +24529,13 @@ func (client *WebAppsClient) updateConnectionStringsSlotHandleResponse(resp *htt // UpdateDiagnosticLogsConfig - Description for Updates the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// siteLogsConfig - A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. -// options - WebAppsClientUpdateDiagnosticLogsConfigOptions contains the optional parameters for the WebAppsClient.UpdateDiagnosticLogsConfig -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - siteLogsConfig - A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. +// - options - WebAppsClientUpdateDiagnosticLogsConfigOptions contains the optional parameters for the WebAppsClient.UpdateDiagnosticLogsConfig +// method. func (client *WebAppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, resourceGroupName string, name string, siteLogsConfig SiteLogsConfig, options *WebAppsClientUpdateDiagnosticLogsConfigOptions) (WebAppsClientUpdateDiagnosticLogsConfigResponse, error) { req, err := client.updateDiagnosticLogsConfigCreateRequest(ctx, resourceGroupName, name, siteLogsConfig, options) if err != nil { @@ -23715,7 +24571,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteLogsConfig) @@ -23732,14 +24588,15 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigHandleResponse(resp *http // UpdateDiagnosticLogsConfigSlot - Description for Updates the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production -// slot. -// siteLogsConfig - A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. -// options - WebAppsClientUpdateDiagnosticLogsConfigSlotOptions contains the optional parameters for the WebAppsClient.UpdateDiagnosticLogsConfigSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production +// slot. +// - siteLogsConfig - A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. +// - options - WebAppsClientUpdateDiagnosticLogsConfigSlotOptions contains the optional parameters for the WebAppsClient.UpdateDiagnosticLogsConfigSlot +// method. func (client *WebAppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteLogsConfig SiteLogsConfig, options *WebAppsClientUpdateDiagnosticLogsConfigSlotOptions) (WebAppsClientUpdateDiagnosticLogsConfigSlotResponse, error) { req, err := client.updateDiagnosticLogsConfigSlotCreateRequest(ctx, resourceGroupName, name, slot, siteLogsConfig, options) if err != nil { @@ -23779,7 +24636,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteLogsConfig) @@ -23797,13 +24654,14 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotHandleResponse(resp * // UpdateDomainOwnershipIdentifier - Description for Creates a domain ownership identifier for web app, or updates an existing // ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// domainOwnershipIdentifier - A JSON representation of the domain ownership properties. -// options - WebAppsClientUpdateDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.UpdateDomainOwnershipIdentifier -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - domainOwnershipIdentifier - A JSON representation of the domain ownership properties. +// - options - WebAppsClientUpdateDomainOwnershipIdentifierOptions contains the optional parameters for the WebAppsClient.UpdateDomainOwnershipIdentifier +// method. func (client *WebAppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, domainOwnershipIdentifier Identifier, options *WebAppsClientUpdateDomainOwnershipIdentifierOptions) (WebAppsClientUpdateDomainOwnershipIdentifierResponse, error) { req, err := client.updateDomainOwnershipIdentifierCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, domainOwnershipIdentifier, options) if err != nil { @@ -23843,7 +24701,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domainOwnershipIdentifier) @@ -23861,14 +24719,15 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierHandleResponse(resp // UpdateDomainOwnershipIdentifierSlot - Description for Creates a domain ownership identifier for web app, or updates an // existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// domainOwnershipIdentifierName - Name of domain ownership identifier. -// slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. -// domainOwnershipIdentifier - A JSON representation of the domain ownership properties. -// options - WebAppsClientUpdateDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.UpdateDomainOwnershipIdentifierSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - domainOwnershipIdentifierName - Name of domain ownership identifier. +// - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. +// - domainOwnershipIdentifier - A JSON representation of the domain ownership properties. +// - options - WebAppsClientUpdateDomainOwnershipIdentifierSlotOptions contains the optional parameters for the WebAppsClient.UpdateDomainOwnershipIdentifierSlot +// method. func (client *WebAppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, domainOwnershipIdentifier Identifier, options *WebAppsClientUpdateDomainOwnershipIdentifierSlotOptions) (WebAppsClientUpdateDomainOwnershipIdentifierSlotResponse, error) { req, err := client.updateDomainOwnershipIdentifierSlotCreateRequest(ctx, resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier, options) if err != nil { @@ -23912,7 +24771,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, domainOwnershipIdentifier) @@ -23929,11 +24788,12 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotHandleResponse(r // UpdateFtpAllowed - Description for Updates whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientUpdateFtpAllowedOptions contains the optional parameters for the WebAppsClient.UpdateFtpAllowed -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientUpdateFtpAllowedOptions contains the optional parameters for the WebAppsClient.UpdateFtpAllowed +// method. func (client *WebAppsClient) UpdateFtpAllowed(ctx context.Context, resourceGroupName string, name string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateFtpAllowedOptions) (WebAppsClientUpdateFtpAllowedResponse, error) { req, err := client.updateFtpAllowedCreateRequest(ctx, resourceGroupName, name, csmPublishingAccessPoliciesEntity, options) if err != nil { @@ -23969,7 +24829,7 @@ func (client *WebAppsClient) updateFtpAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity) @@ -23986,11 +24846,12 @@ func (client *WebAppsClient) updateFtpAllowedHandleResponse(resp *http.Response) // UpdateFtpAllowedSlot - Description for Updates whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientUpdateFtpAllowedSlotOptions contains the optional parameters for the WebAppsClient.UpdateFtpAllowedSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientUpdateFtpAllowedSlotOptions contains the optional parameters for the WebAppsClient.UpdateFtpAllowedSlot +// method. func (client *WebAppsClient) UpdateFtpAllowedSlot(ctx context.Context, resourceGroupName string, name string, slot string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateFtpAllowedSlotOptions) (WebAppsClientUpdateFtpAllowedSlotResponse, error) { req, err := client.updateFtpAllowedSlotCreateRequest(ctx, resourceGroupName, name, slot, csmPublishingAccessPoliciesEntity, options) if err != nil { @@ -24030,7 +24891,7 @@ func (client *WebAppsClient) updateFtpAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity) @@ -24047,14 +24908,15 @@ func (client *WebAppsClient) updateFtpAllowedSlotHandleResponse(resp *http.Respo // UpdateHybridConnection - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// connectionEnvelope - The details of the hybrid connection. -// options - WebAppsClientUpdateHybridConnectionOptions contains the optional parameters for the WebAppsClient.UpdateHybridConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - connectionEnvelope - The details of the hybrid connection. +// - options - WebAppsClientUpdateHybridConnectionOptions contains the optional parameters for the WebAppsClient.UpdateHybridConnection +// method. func (client *WebAppsClient) UpdateHybridConnection(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, connectionEnvelope HybridConnection, options *WebAppsClientUpdateHybridConnectionOptions) (WebAppsClientUpdateHybridConnectionResponse, error) { req, err := client.updateHybridConnectionCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, connectionEnvelope, options) if err != nil { @@ -24098,7 +24960,7 @@ func (client *WebAppsClient) updateHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -24115,15 +24977,16 @@ func (client *WebAppsClient) updateHybridConnectionHandleResponse(resp *http.Res // UpdateHybridConnectionSlot - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - The name of the web app. -// namespaceName - The namespace for this hybrid connection. -// relayName - The relay name for this hybrid connection. -// slot - The name of the slot for the web app. -// connectionEnvelope - The details of the hybrid connection. -// options - WebAppsClientUpdateHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.UpdateHybridConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - The name of the web app. +// - namespaceName - The namespace for this hybrid connection. +// - relayName - The relay name for this hybrid connection. +// - slot - The name of the slot for the web app. +// - connectionEnvelope - The details of the hybrid connection. +// - options - WebAppsClientUpdateHybridConnectionSlotOptions contains the optional parameters for the WebAppsClient.UpdateHybridConnectionSlot +// method. func (client *WebAppsClient) UpdateHybridConnectionSlot(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope HybridConnection, options *WebAppsClientUpdateHybridConnectionSlotOptions) (WebAppsClientUpdateHybridConnectionSlotResponse, error) { req, err := client.updateHybridConnectionSlotCreateRequest(ctx, resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope, options) if err != nil { @@ -24171,7 +25034,7 @@ func (client *WebAppsClient) updateHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -24188,11 +25051,12 @@ func (client *WebAppsClient) updateHybridConnectionSlotHandleResponse(resp *http // UpdateMetadata - Description for Replaces the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// metadata - Edited metadata of the app or deployment slot. See example. -// options - WebAppsClientUpdateMetadataOptions contains the optional parameters for the WebAppsClient.UpdateMetadata method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - metadata - Edited metadata of the app or deployment slot. See example. +// - options - WebAppsClientUpdateMetadataOptions contains the optional parameters for the WebAppsClient.UpdateMetadata method. func (client *WebAppsClient) UpdateMetadata(ctx context.Context, resourceGroupName string, name string, metadata StringDictionary, options *WebAppsClientUpdateMetadataOptions) (WebAppsClientUpdateMetadataResponse, error) { req, err := client.updateMetadataCreateRequest(ctx, resourceGroupName, name, metadata, options) if err != nil { @@ -24228,7 +25092,7 @@ func (client *WebAppsClient) updateMetadataCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, metadata) @@ -24245,13 +25109,14 @@ func (client *WebAppsClient) updateMetadataHandleResponse(resp *http.Response) ( // UpdateMetadataSlot - Description for Replaces the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. -// metadata - Edited metadata of the app or deployment slot. See example. -// options - WebAppsClientUpdateMetadataSlotOptions contains the optional parameters for the WebAppsClient.UpdateMetadataSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. +// - metadata - Edited metadata of the app or deployment slot. See example. +// - options - WebAppsClientUpdateMetadataSlotOptions contains the optional parameters for the WebAppsClient.UpdateMetadataSlot +// method. func (client *WebAppsClient) UpdateMetadataSlot(ctx context.Context, resourceGroupName string, name string, slot string, metadata StringDictionary, options *WebAppsClientUpdateMetadataSlotOptions) (WebAppsClientUpdateMetadataSlotResponse, error) { req, err := client.updateMetadataSlotCreateRequest(ctx, resourceGroupName, name, slot, metadata, options) if err != nil { @@ -24291,7 +25156,7 @@ func (client *WebAppsClient) updateMetadataSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, metadata) @@ -24308,13 +25173,14 @@ func (client *WebAppsClient) updateMetadataSlotHandleResponse(resp *http.Respons // UpdatePremierAddOn - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// premierAddOn - A JSON representation of the edited premier add-on. -// options - WebAppsClientUpdatePremierAddOnOptions contains the optional parameters for the WebAppsClient.UpdatePremierAddOn -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - premierAddOn - A JSON representation of the edited premier add-on. +// - options - WebAppsClientUpdatePremierAddOnOptions contains the optional parameters for the WebAppsClient.UpdatePremierAddOn +// method. func (client *WebAppsClient) UpdatePremierAddOn(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource, options *WebAppsClientUpdatePremierAddOnOptions) (WebAppsClientUpdatePremierAddOnResponse, error) { req, err := client.updatePremierAddOnCreateRequest(ctx, resourceGroupName, name, premierAddOnName, premierAddOn, options) if err != nil { @@ -24354,7 +25220,7 @@ func (client *WebAppsClient) updatePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, premierAddOn) @@ -24371,15 +25237,16 @@ func (client *WebAppsClient) updatePremierAddOnHandleResponse(resp *http.Respons // UpdatePremierAddOnSlot - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// premierAddOnName - Add-on name. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production -// slot. -// premierAddOn - A JSON representation of the edited premier add-on. -// options - WebAppsClientUpdatePremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.UpdatePremierAddOnSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - premierAddOnName - Add-on name. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production +// slot. +// - premierAddOn - A JSON representation of the edited premier add-on. +// - options - WebAppsClientUpdatePremierAddOnSlotOptions contains the optional parameters for the WebAppsClient.UpdatePremierAddOnSlot +// method. func (client *WebAppsClient) UpdatePremierAddOnSlot(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, premierAddOn PremierAddOnPatchResource, options *WebAppsClientUpdatePremierAddOnSlotOptions) (WebAppsClientUpdatePremierAddOnSlotResponse, error) { req, err := client.updatePremierAddOnSlotCreateRequest(ctx, resourceGroupName, name, premierAddOnName, slot, premierAddOn, options) if err != nil { @@ -24423,7 +25290,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, premierAddOn) @@ -24441,13 +25308,14 @@ func (client *WebAppsClient) updatePremierAddOnSlotHandleResponse(resp *http.Res // UpdateRelayServiceConnection - Description for Creates a new hybrid connection configuration (PUT), or updates an existing // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection configuration. -// connectionEnvelope - Details of the hybrid connection configuration. -// options - WebAppsClientUpdateRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.UpdateRelayServiceConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection configuration. +// - connectionEnvelope - Details of the hybrid connection configuration. +// - options - WebAppsClientUpdateRelayServiceConnectionOptions contains the optional parameters for the WebAppsClient.UpdateRelayServiceConnection +// method. func (client *WebAppsClient) UpdateRelayServiceConnection(ctx context.Context, resourceGroupName string, name string, entityName string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientUpdateRelayServiceConnectionOptions) (WebAppsClientUpdateRelayServiceConnectionResponse, error) { req, err := client.updateRelayServiceConnectionCreateRequest(ctx, resourceGroupName, name, entityName, connectionEnvelope, options) if err != nil { @@ -24487,7 +25355,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -24505,15 +25373,16 @@ func (client *WebAppsClient) updateRelayServiceConnectionHandleResponse(resp *ht // UpdateRelayServiceConnectionSlot - Description for Creates a new hybrid connection configuration (PUT), or updates an existing // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// entityName - Name of the hybrid connection configuration. -// slot - Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the -// production slot. -// connectionEnvelope - Details of the hybrid connection configuration. -// options - WebAppsClientUpdateRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.UpdateRelayServiceConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - entityName - Name of the hybrid connection configuration. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the +// production slot. +// - connectionEnvelope - Details of the hybrid connection configuration. +// - options - WebAppsClientUpdateRelayServiceConnectionSlotOptions contains the optional parameters for the WebAppsClient.UpdateRelayServiceConnectionSlot +// method. func (client *WebAppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientUpdateRelayServiceConnectionSlotOptions) (WebAppsClientUpdateRelayServiceConnectionSlotResponse, error) { req, err := client.updateRelayServiceConnectionSlotCreateRequest(ctx, resourceGroupName, name, entityName, slot, connectionEnvelope, options) if err != nil { @@ -24557,7 +25426,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -24574,11 +25443,12 @@ func (client *WebAppsClient) updateRelayServiceConnectionSlotHandleResponse(resp // UpdateScmAllowed - Description for Updates whether user publishing credentials are allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientUpdateScmAllowedOptions contains the optional parameters for the WebAppsClient.UpdateScmAllowed -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientUpdateScmAllowedOptions contains the optional parameters for the WebAppsClient.UpdateScmAllowed +// method. func (client *WebAppsClient) UpdateScmAllowed(ctx context.Context, resourceGroupName string, name string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateScmAllowedOptions) (WebAppsClientUpdateScmAllowedResponse, error) { req, err := client.updateScmAllowedCreateRequest(ctx, resourceGroupName, name, csmPublishingAccessPoliciesEntity, options) if err != nil { @@ -24614,7 +25484,7 @@ func (client *WebAppsClient) updateScmAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity) @@ -24631,11 +25501,12 @@ func (client *WebAppsClient) updateScmAllowedHandleResponse(resp *http.Response) // UpdateScmAllowedSlot - Description for Updates whether user publishing credentials are allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// options - WebAppsClientUpdateScmAllowedSlotOptions contains the optional parameters for the WebAppsClient.UpdateScmAllowedSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - options - WebAppsClientUpdateScmAllowedSlotOptions contains the optional parameters for the WebAppsClient.UpdateScmAllowedSlot +// method. func (client *WebAppsClient) UpdateScmAllowedSlot(ctx context.Context, resourceGroupName string, name string, slot string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateScmAllowedSlotOptions) (WebAppsClientUpdateScmAllowedSlotResponse, error) { req, err := client.updateScmAllowedSlotCreateRequest(ctx, resourceGroupName, name, slot, csmPublishingAccessPoliciesEntity, options) if err != nil { @@ -24675,7 +25546,7 @@ func (client *WebAppsClient) updateScmAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity) @@ -24692,12 +25563,13 @@ func (client *WebAppsClient) updateScmAllowedSlotHandleResponse(resp *http.Respo // UpdateSitePushSettings - Description for Updates the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// pushSettings - Push settings associated with web app. -// options - WebAppsClientUpdateSitePushSettingsOptions contains the optional parameters for the WebAppsClient.UpdateSitePushSettings -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - pushSettings - Push settings associated with web app. +// - options - WebAppsClientUpdateSitePushSettingsOptions contains the optional parameters for the WebAppsClient.UpdateSitePushSettings +// method. func (client *WebAppsClient) UpdateSitePushSettings(ctx context.Context, resourceGroupName string, name string, pushSettings PushSettings, options *WebAppsClientUpdateSitePushSettingsOptions) (WebAppsClientUpdateSitePushSettingsResponse, error) { req, err := client.updateSitePushSettingsCreateRequest(ctx, resourceGroupName, name, pushSettings, options) if err != nil { @@ -24733,7 +25605,7 @@ func (client *WebAppsClient) updateSitePushSettingsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, pushSettings) @@ -24750,13 +25622,14 @@ func (client *WebAppsClient) updateSitePushSettingsHandleResponse(resp *http.Res // UpdateSitePushSettingsSlot - Description for Updates the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of web app. -// slot - Name of web app slot. If not specified then will default to production slot. -// pushSettings - Push settings associated with web app. -// options - WebAppsClientUpdateSitePushSettingsSlotOptions contains the optional parameters for the WebAppsClient.UpdateSitePushSettingsSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of web app. +// - slot - Name of web app slot. If not specified then will default to production slot. +// - pushSettings - Push settings associated with web app. +// - options - WebAppsClientUpdateSitePushSettingsSlotOptions contains the optional parameters for the WebAppsClient.UpdateSitePushSettingsSlot +// method. func (client *WebAppsClient) UpdateSitePushSettingsSlot(ctx context.Context, resourceGroupName string, name string, slot string, pushSettings PushSettings, options *WebAppsClientUpdateSitePushSettingsSlotOptions) (WebAppsClientUpdateSitePushSettingsSlotResponse, error) { req, err := client.updateSitePushSettingsSlotCreateRequest(ctx, resourceGroupName, name, slot, pushSettings, options) if err != nil { @@ -24796,7 +25669,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, pushSettings) @@ -24814,13 +25687,14 @@ func (client *WebAppsClient) updateSitePushSettingsSlotHandleResponse(resp *http // UpdateSlot - Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing // app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. -// slot - Name of the deployment slot to create or update. By default, this API attempts to create or modify the production -// slot. -// siteEnvelope - A JSON representation of the app properties. See example. -// options - WebAppsClientUpdateSlotOptions contains the optional parameters for the WebAppsClient.UpdateSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. +// - slot - Name of the deployment slot to create or update. By default, this API attempts to create or modify the production +// slot. +// - siteEnvelope - A JSON representation of the app properties. See example. +// - options - WebAppsClientUpdateSlotOptions contains the optional parameters for the WebAppsClient.UpdateSlot method. func (client *WebAppsClient) UpdateSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope SitePatchResource, options *WebAppsClientUpdateSlotOptions) (WebAppsClientUpdateSlotResponse, error) { req, err := client.updateSlotCreateRequest(ctx, resourceGroupName, name, slot, siteEnvelope, options) if err != nil { @@ -24860,7 +25734,7 @@ func (client *WebAppsClient) updateSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteEnvelope) @@ -24878,12 +25752,13 @@ func (client *WebAppsClient) updateSlotHandleResponse(resp *http.Response) (WebA // UpdateSlotConfigurationNames - Description for Updates the names of application settings and connection string that remain // with the slot during swap operation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slotConfigNames - Names of application settings and connection strings. See example. -// options - WebAppsClientUpdateSlotConfigurationNamesOptions contains the optional parameters for the WebAppsClient.UpdateSlotConfigurationNames -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slotConfigNames - Names of application settings and connection strings. See example. +// - options - WebAppsClientUpdateSlotConfigurationNamesOptions contains the optional parameters for the WebAppsClient.UpdateSlotConfigurationNames +// method. func (client *WebAppsClient) UpdateSlotConfigurationNames(ctx context.Context, resourceGroupName string, name string, slotConfigNames SlotConfigNamesResource, options *WebAppsClientUpdateSlotConfigurationNamesOptions) (WebAppsClientUpdateSlotConfigurationNamesResponse, error) { req, err := client.updateSlotConfigurationNamesCreateRequest(ctx, resourceGroupName, name, slotConfigNames, options) if err != nil { @@ -24919,7 +25794,7 @@ func (client *WebAppsClient) updateSlotConfigurationNamesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, slotConfigNames) @@ -24936,12 +25811,13 @@ func (client *WebAppsClient) updateSlotConfigurationNamesHandleResponse(resp *ht // UpdateSourceControl - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// siteSourceControl - JSON representation of a SiteSourceControl object. See example. -// options - WebAppsClientUpdateSourceControlOptions contains the optional parameters for the WebAppsClient.UpdateSourceControl -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - siteSourceControl - JSON representation of a SiteSourceControl object. See example. +// - options - WebAppsClientUpdateSourceControlOptions contains the optional parameters for the WebAppsClient.UpdateSourceControl +// method. func (client *WebAppsClient) UpdateSourceControl(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, options *WebAppsClientUpdateSourceControlOptions) (WebAppsClientUpdateSourceControlResponse, error) { req, err := client.updateSourceControlCreateRequest(ctx, resourceGroupName, name, siteSourceControl, options) if err != nil { @@ -24977,7 +25853,7 @@ func (client *WebAppsClient) updateSourceControlCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteSourceControl) @@ -24994,14 +25870,15 @@ func (client *WebAppsClient) updateSourceControlHandleResponse(resp *http.Respon // UpdateSourceControlSlot - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for -// the production slot. -// siteSourceControl - JSON representation of a SiteSourceControl object. See example. -// options - WebAppsClientUpdateSourceControlSlotOptions contains the optional parameters for the WebAppsClient.UpdateSourceControlSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for +// the production slot. +// - siteSourceControl - JSON representation of a SiteSourceControl object. See example. +// - options - WebAppsClientUpdateSourceControlSlotOptions contains the optional parameters for the WebAppsClient.UpdateSourceControlSlot +// method. func (client *WebAppsClient) UpdateSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, options *WebAppsClientUpdateSourceControlSlotOptions) (WebAppsClientUpdateSourceControlSlotResponse, error) { req, err := client.updateSourceControlSlotCreateRequest(ctx, resourceGroupName, name, slot, siteSourceControl, options) if err != nil { @@ -25041,7 +25918,7 @@ func (client *WebAppsClient) updateSourceControlSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, siteSourceControl) @@ -25060,12 +25937,13 @@ func (client *WebAppsClient) updateSourceControlSlotHandleResponse(resp *http.Re // that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckOptions contains the optional parameters for the WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheck -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckOptions contains the optional parameters for the WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheck +// method. func (client *WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheck(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckOptions) (WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckResponse, error) { req, err := client.updateSwiftVirtualNetworkConnectionWithCheckCreateRequest(ctx, resourceGroupName, name, connectionEnvelope, options) if err != nil { @@ -25101,7 +25979,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -25121,14 +25999,15 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckHandleR // been // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production -// slot. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions contains the optional parameters for the -// WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheckSlot method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production +// slot. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions contains the optional parameters for the +// WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheckSlot method. func (client *WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx context.Context, resourceGroupName string, name string, slot string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions) (WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckSlotResponse, error) { req, err := client.updateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest(ctx, resourceGroupName, name, slot, connectionEnvelope, options) if err != nil { @@ -25168,7 +26047,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -25186,13 +26065,14 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotHan // UpdateVnetConnection - Description for Adds a Virtual Network connection to an app or slot (PUT) or updates the connection // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of an existing Virtual Network. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientUpdateVnetConnectionOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnection -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of an existing Virtual Network. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientUpdateVnetConnectionOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnection +// method. func (client *WebAppsClient) UpdateVnetConnection(ctx context.Context, resourceGroupName string, name string, vnetName string, connectionEnvelope VnetInfoResource, options *WebAppsClientUpdateVnetConnectionOptions) (WebAppsClientUpdateVnetConnectionResponse, error) { req, err := client.updateVnetConnectionCreateRequest(ctx, resourceGroupName, name, vnetName, connectionEnvelope, options) if err != nil { @@ -25232,7 +26112,7 @@ func (client *WebAppsClient) updateVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -25249,14 +26129,15 @@ func (client *WebAppsClient) updateVnetConnectionHandleResponse(resp *http.Respo // UpdateVnetConnectionGateway - Description for Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Currently, the only supported string is "primary". -// connectionEnvelope - The properties to update this gateway with. -// options - WebAppsClientUpdateVnetConnectionGatewayOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnectionGateway -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Currently, the only supported string is "primary". +// - connectionEnvelope - The properties to update this gateway with. +// - options - WebAppsClientUpdateVnetConnectionGatewayOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnectionGateway +// method. func (client *WebAppsClient) UpdateVnetConnectionGateway(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, options *WebAppsClientUpdateVnetConnectionGatewayOptions) (WebAppsClientUpdateVnetConnectionGatewayResponse, error) { req, err := client.updateVnetConnectionGatewayCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, connectionEnvelope, options) if err != nil { @@ -25300,7 +26181,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewayCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -25317,16 +26198,17 @@ func (client *WebAppsClient) updateVnetConnectionGatewayHandleResponse(resp *htt // UpdateVnetConnectionGatewaySlot - Description for Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of the Virtual Network. -// gatewayName - Name of the gateway. Currently, the only supported string is "primary". -// slot - Name of the deployment slot. If a slot is not specified, the API will add or update a gateway for the production -// slot's Virtual Network. -// connectionEnvelope - The properties to update this gateway with. -// options - WebAppsClientUpdateVnetConnectionGatewaySlotOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnectionGatewaySlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of the Virtual Network. +// - gatewayName - Name of the gateway. Currently, the only supported string is "primary". +// - slot - Name of the deployment slot. If a slot is not specified, the API will add or update a gateway for the production +// slot's Virtual Network. +// - connectionEnvelope - The properties to update this gateway with. +// - options - WebAppsClientUpdateVnetConnectionGatewaySlotOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnectionGatewaySlot +// method. func (client *WebAppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, connectionEnvelope VnetGateway, options *WebAppsClientUpdateVnetConnectionGatewaySlotOptions) (WebAppsClientUpdateVnetConnectionGatewaySlotResponse, error) { req, err := client.updateVnetConnectionGatewaySlotCreateRequest(ctx, resourceGroupName, name, vnetName, gatewayName, slot, connectionEnvelope, options) if err != nil { @@ -25374,7 +26256,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) @@ -25392,15 +26274,16 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotHandleResponse(resp // UpdateVnetConnectionSlot - Description for Adds a Virtual Network connection to an app or slot (PUT) or updates the connection // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Name of the app. -// vnetName - Name of an existing Virtual Network. -// slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production -// slot. -// connectionEnvelope - Properties of the Virtual Network connection. See example. -// options - WebAppsClientUpdateVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnectionSlot -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the app. +// - vnetName - Name of an existing Virtual Network. +// - slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production +// slot. +// - connectionEnvelope - Properties of the Virtual Network connection. See example. +// - options - WebAppsClientUpdateVnetConnectionSlotOptions contains the optional parameters for the WebAppsClient.UpdateVnetConnectionSlot +// method. func (client *WebAppsClient) UpdateVnetConnectionSlot(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, connectionEnvelope VnetInfoResource, options *WebAppsClientUpdateVnetConnectionSlotOptions) (WebAppsClientUpdateVnetConnectionSlotResponse, error) { req, err := client.updateVnetConnectionSlotCreateRequest(ctx, resourceGroupName, name, vnetName, slot, connectionEnvelope, options) if err != nil { @@ -25444,7 +26327,7 @@ func (client *WebAppsClient) updateVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectionEnvelope) diff --git a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go deleted file mode 100644 index 5e69a21a4ccd..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go +++ /dev/null @@ -1,1187 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListPublishingCredentialsPolicies.json -func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("3fb8d758-2e2c-42e9-a528-a8acdfe87237", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBasicPublishingCredentialsPoliciesPager("testrg123", - "testsite", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetPublishingCredentialsPolicy.json -func ExampleWebAppsClient_GetFtpAllowed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetFtpAllowed(ctx, - "rg", - "testSite", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UpdatePublishingCredentialsPolicy.json -func ExampleWebAppsClient_UpdateFtpAllowed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateFtpAllowed(ctx, - "rg", - "testSite", - armappservice.CsmPublishingCredentialsPoliciesEntity{ - Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetPublishingCredentialsPolicy.json -func ExampleWebAppsClient_GetScmAllowed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetScmAllowed(ctx, - "rg", - "testSite", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UpdatePublishingCredentialsPolicy.json -func ExampleWebAppsClient_UpdateScmAllowed() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateScmAllowed(ctx, - "rg", - "testSite", - armappservice.CsmPublishingCredentialsPoliciesEntity{ - Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetKeyVaultReferencesForAppSettings.json -func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetAppSettingsKeyVaultReferencesPager("testrg123", - "testc6282", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetKeyVaultReferencesForAppSetting.json -func ExampleWebAppsClient_GetAppSettingKeyVaultReference() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAppSettingKeyVaultReference(ctx, - "testrg123", - "testc6282", - "setting", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListSiteDeploymentStatus.json -func ExampleWebAppsClient_NewListProductionSiteDeploymentStatusesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListProductionSiteDeploymentStatusesPager("rg", - "testSite", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSiteDeploymentStatus.json -func ExampleWebAppsClient_BeginGetProductionSiteDeploymentStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginGetProductionSiteDeploymentStatus(ctx, - "rg", - "testSite", - "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSiteInstanceInfo.json -func ExampleWebAppsClient_GetInstanceInfo() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetInstanceInfo(ctx, - "testrg123", - "tests346", - "134987120", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListSlotBackups.json -func ExampleWebAppsClient_NewListSiteBackupsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteBackupsPager("testrg123", - "tests346", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_GetNetworkTraceOperation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTraceOperation(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StartWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStartWebSiteNetworkTraceOperation(ctx, - "testrg123", - "SampleApp", - &armappservice.WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions{DurationInSeconds: to.Ptr[int32](60), - MaxFrameLength: nil, - SasURL: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StopWebSiteNetworkTrace.json -func ExampleWebAppsClient_StopWebSiteNetworkTrace() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.StopWebSiteNetworkTrace(ctx, - "testrg123", - "SampleApp", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraces.json -func ExampleWebAppsClient_GetNetworkTraces() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTraces(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_GetNetworkTraceOperationV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTraceOperationV2(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraces.json -func ExampleWebAppsClient_GetNetworkTracesV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTracesV2(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateEndpointConnection.json -func ExampleWebAppsClient_GetPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateEndpointConnection(ctx, - "rg", - "testSite", - "connection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json -func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginApproveOrRejectPrivateEndpointConnection(ctx, - "rg", - "testSite", - "connection", - armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteSitePrivateEndpointConnection.json -func ExampleWebAppsClient_BeginDeletePrivateEndpointConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeletePrivateEndpointConnection(ctx, - "rg", - "testSite", - "connection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateLinkResources.json -func ExampleWebAppsClient_GetPrivateLinkResources() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateLinkResources(ctx, - "rg", - "testSite", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListPublishingCredentialsPoliciesSlot.json -func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("3fb8d758-2e2c-42e9-a528-a8acdfe87237", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBasicPublishingCredentialsPoliciesSlotPager("testrg123", - "testsite", - "staging", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetPublishingCredentialsPolicySlot.json -func ExampleWebAppsClient_GetFtpAllowedSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetFtpAllowedSlot(ctx, - "rg", - "testSite", - "stage", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UpdatePublishingCredentialsPolicySlot.json -func ExampleWebAppsClient_UpdateFtpAllowedSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateFtpAllowedSlot(ctx, - "rg", - "testSite", - "stage", - armappservice.CsmPublishingCredentialsPoliciesEntity{ - Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetPublishingCredentialsPolicySlot.json -func ExampleWebAppsClient_GetScmAllowedSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetScmAllowedSlot(ctx, - "rg", - "testSite", - "stage", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/UpdatePublishingCredentialsPolicySlot.json -func ExampleWebAppsClient_UpdateScmAllowedSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UpdateScmAllowedSlot(ctx, - "rg", - "testSite", - "stage", - armappservice.CsmPublishingCredentialsPoliciesEntity{ - Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - Allow: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json -func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewGetAppSettingsKeyVaultReferencesSlotPager("testrg123", - "testc6282", - "stage", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetKeyVaultReferencesForAppSettingSlot.json -func ExampleWebAppsClient_GetAppSettingKeyVaultReferenceSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAppSettingKeyVaultReferenceSlot(ctx, - "testrg123", - "testc6282", - "setting", - "stage", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListSiteDeploymentStatusSlot.json -func ExampleWebAppsClient_NewListSlotSiteDeploymentStatusesSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSlotSiteDeploymentStatusesSlotPager("rg", - "testSite", - "stage", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSiteDeploymentStatusSlot.json -func ExampleWebAppsClient_BeginGetSlotSiteDeploymentStatusSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginGetSlotSiteDeploymentStatusSlot(ctx, - "rg", - "testSite", - "stage", - "eacfd68b-3bbd-4ad9-99c5-98614d89c8e5", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSiteInstanceInfo.json -func ExampleWebAppsClient_GetInstanceInfoSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetInstanceInfoSlot(ctx, - "testrg123", - "tests346", - "134987120", - "staging", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListSlotBackups.json -func ExampleWebAppsClient_NewListSiteBackupsSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListSiteBackupsSlotPager("testrg123", - "tests346", - "staging", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_GetNetworkTraceOperationSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTraceOperationSlot(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StartWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperationSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStartWebSiteNetworkTraceOperationSlot(ctx, - "testrg123", - "SampleApp", - "Production", - &armappservice.WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions{DurationInSeconds: to.Ptr[int32](60), - MaxFrameLength: nil, - SasURL: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StopWebSiteNetworkTrace.json -func ExampleWebAppsClient_StopWebSiteNetworkTraceSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.StopWebSiteNetworkTraceSlot(ctx, - "testrg123", - "SampleApp", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraces.json -func ExampleWebAppsClient_GetNetworkTracesSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTracesSlot(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_GetNetworkTraceOperationSlotV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTraceOperationSlotV2(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetWebSiteNetworkTraces.json -func ExampleWebAppsClient_GetNetworkTracesSlotV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkTracesSlotV2(ctx, - "testrg123", - "SampleApp", - "c291433b-53ad-4c49-8cae-0a293eae1c6d", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateEndpointConnectionSlot.json -func ExampleWebAppsClient_GetPrivateEndpointConnectionSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateEndpointConnectionSlot(ctx, - "rg", - "testSite", - "connection", - "stage", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json -func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnectionSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginApproveOrRejectPrivateEndpointConnectionSlot(ctx, - "rg", - "testSite", - "connection", - "stage", - armappservice.PrivateLinkConnectionApprovalRequestResource{ - Properties: &armappservice.PrivateLinkConnectionApprovalRequest{ - PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - Description: to.Ptr("Approved by admin."), - ActionsRequired: to.Ptr(""), - Status: to.Ptr("Approved"), - }, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/DeleteSitePrivateEndpointConnectionSlot.json -func ExampleWebAppsClient_BeginDeletePrivateEndpointConnectionSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeletePrivateEndpointConnectionSlot(ctx, - "rg", - "testSite", - "connection", - "stage", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/GetSitePrivateLinkResourcesSlot.json -func ExampleWebAppsClient_GetPrivateLinkResourcesSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateLinkResourcesSlot(ctx, - "rg", - "testSite", - "stage", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StartWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_BeginStartNetworkTraceSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStartNetworkTraceSlot(ctx, - "testrg123", - "SampleApp", - "Production", - &armappservice.WebAppsClientBeginStartNetworkTraceSlotOptions{DurationInSeconds: to.Ptr[int32](60), - MaxFrameLength: nil, - SasURL: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StopWebSiteNetworkTrace.json -func ExampleWebAppsClient_StopNetworkTraceSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.StopNetworkTraceSlot(ctx, - "testrg123", - "SampleApp", - "Production", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StartWebSiteNetworkTraceOperation.json -func ExampleWebAppsClient_BeginStartNetworkTrace() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStartNetworkTrace(ctx, - "testrg123", - "SampleApp", - &armappservice.WebAppsClientBeginStartNetworkTraceOptions{DurationInSeconds: to.Ptr[int32](60), - MaxFrameLength: nil, - SasURL: nil, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - res, err := poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/StopWebSiteNetworkTrace.json -func ExampleWebAppsClient_StopNetworkTrace() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebAppsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.StopNetworkTrace(ctx, - "testrg123", - "SampleApp", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go index d4418db45019..df1e01143638 100644 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go +++ b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go @@ -33,9 +33,9 @@ type WebSiteManagementClient struct { } // NewWebSiteManagementClient creates a new instance of WebSiteManagementClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWebSiteManagementClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebSiteManagementClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,10 +58,11 @@ func NewWebSiteManagementClient(subscriptionID string, credential azcore.TokenCr // CheckNameAvailability - Description for Check if a resource name is available. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// request - Name availability request. -// options - WebSiteManagementClientCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-09-01 +// - request - Name availability request. +// - options - WebSiteManagementClientCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.CheckNameAvailability +// method. func (client *WebSiteManagementClient) CheckNameAvailability(ctx context.Context, request ResourceNameAvailabilityRequest, options *WebSiteManagementClientCheckNameAvailabilityOptions) (WebSiteManagementClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, request, options) if err != nil { @@ -89,7 +90,7 @@ func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, request) @@ -106,9 +107,10 @@ func (client *WebSiteManagementClient) checkNameAvailabilityHandleResponse(resp // GetPublishingUser - Description for Gets publishing user // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientGetPublishingUserOptions contains the optional parameters for the WebSiteManagementClient.GetPublishingUser -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientGetPublishingUserOptions contains the optional parameters for the WebSiteManagementClient.GetPublishingUser +// method. func (client *WebSiteManagementClient) GetPublishingUser(ctx context.Context, options *WebSiteManagementClientGetPublishingUserOptions) (WebSiteManagementClientGetPublishingUserResponse, error) { req, err := client.getPublishingUserCreateRequest(ctx, options) if err != nil { @@ -132,7 +134,7 @@ func (client *WebSiteManagementClient) getPublishingUserCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -149,10 +151,11 @@ func (client *WebSiteManagementClient) getPublishingUserHandleResponse(resp *htt // GetSourceControl - Description for Gets source control token // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// sourceControlType - Type of source control -// options - WebSiteManagementClientGetSourceControlOptions contains the optional parameters for the WebSiteManagementClient.GetSourceControl -// method. +// +// Generated from API version 2022-09-01 +// - sourceControlType - Type of source control +// - options - WebSiteManagementClientGetSourceControlOptions contains the optional parameters for the WebSiteManagementClient.GetSourceControl +// method. func (client *WebSiteManagementClient) GetSourceControl(ctx context.Context, sourceControlType string, options *WebSiteManagementClientGetSourceControlOptions) (WebSiteManagementClientGetSourceControlResponse, error) { req, err := client.getSourceControlCreateRequest(ctx, sourceControlType, options) if err != nil { @@ -180,7 +183,7 @@ func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -197,9 +200,10 @@ func (client *WebSiteManagementClient) getSourceControlHandleResponse(resp *http // GetSubscriptionDeploymentLocations - Description for Gets list of available geo regions plus ministamps // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the WebSiteManagementClient.GetSubscriptionDeploymentLocations -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the WebSiteManagementClient.GetSubscriptionDeploymentLocations +// method. func (client *WebSiteManagementClient) GetSubscriptionDeploymentLocations(ctx context.Context, options *WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse, error) { req, err := client.getSubscriptionDeploymentLocationsCreateRequest(ctx, options) if err != nil { @@ -227,7 +231,7 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -243,10 +247,10 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsHandleR } // NewListBillingMetersPager - Description for Gets a list of meters for a given location. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.ListBillingMeters -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.NewListBillingMetersPager +// method. func (client *WebSiteManagementClient) NewListBillingMetersPager(options *WebSiteManagementClientListBillingMetersOptions) *runtime.Pager[WebSiteManagementClientListBillingMetersResponse] { return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListBillingMetersResponse]{ More: func(page WebSiteManagementClientListBillingMetersResponse) bool { @@ -293,7 +297,7 @@ func (client *WebSiteManagementClient) listBillingMetersCreateRequest(ctx contex if options != nil && options.OSType != nil { reqQP.Set("osType", *options.OSType) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -309,10 +313,10 @@ func (client *WebSiteManagementClient) listBillingMetersHandleResponse(resp *htt } // NewListCustomHostNameSitesPager - Get custom hostnames under this subscription -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.ListCustomHostNameSites -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.NewListCustomHostNameSitesPager +// method. func (client *WebSiteManagementClient) NewListCustomHostNameSitesPager(options *WebSiteManagementClientListCustomHostNameSitesOptions) *runtime.Pager[WebSiteManagementClientListCustomHostNameSitesResponse] { return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListCustomHostNameSitesResponse]{ More: func(page WebSiteManagementClientListCustomHostNameSitesResponse) bool { @@ -356,7 +360,7 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesCreateRequest(ctx if options != nil && options.Hostname != nil { reqQP.Set("hostname", *options.Hostname) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -372,10 +376,10 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesHandleResponse(res } // NewListGeoRegionsPager - Description for Get a list of available geographical regions. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.ListGeoRegions -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListGeoRegionsPager +// method. func (client *WebSiteManagementClient) NewListGeoRegionsPager(options *WebSiteManagementClientListGeoRegionsOptions) *runtime.Pager[WebSiteManagementClientListGeoRegionsResponse] { return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListGeoRegionsResponse]{ More: func(page WebSiteManagementClientListGeoRegionsResponse) bool { @@ -428,7 +432,7 @@ func (client *WebSiteManagementClient) listGeoRegionsCreateRequest(ctx context.C if options != nil && options.LinuxDynamicWorkersEnabled != nil { reqQP.Set("linuxDynamicWorkersEnabled", strconv.FormatBool(*options.LinuxDynamicWorkersEnabled)) } - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -444,10 +448,10 @@ func (client *WebSiteManagementClient) listGeoRegionsHandleResponse(resp *http.R } // NewListPremierAddOnOffersPager - Description for List all premier add-on offers. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.ListPremierAddOnOffers -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.NewListPremierAddOnOffersPager +// method. func (client *WebSiteManagementClient) NewListPremierAddOnOffersPager(options *WebSiteManagementClientListPremierAddOnOffersOptions) *runtime.Pager[WebSiteManagementClientListPremierAddOnOffersResponse] { return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListPremierAddOnOffersResponse]{ More: func(page WebSiteManagementClientListPremierAddOnOffersResponse) bool { @@ -488,7 +492,7 @@ func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -505,9 +509,10 @@ func (client *WebSiteManagementClient) listPremierAddOnOffersHandleResponse(resp // ListSKUs - Description for List all SKUs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientListSKUsOptions contains the optional parameters for the WebSiteManagementClient.ListSKUs -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientListSKUsOptions contains the optional parameters for the WebSiteManagementClient.ListSKUs +// method. func (client *WebSiteManagementClient) ListSKUs(ctx context.Context, options *WebSiteManagementClientListSKUsOptions) (WebSiteManagementClientListSKUsResponse, error) { req, err := client.listSKUsCreateRequest(ctx, options) if err != nil { @@ -535,7 +540,7 @@ func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -551,11 +556,11 @@ func (client *WebSiteManagementClient) listSKUsHandleResponse(resp *http.Respons } // NewListSiteIdentifiersAssignedToHostNamePager - Description for List all apps that are assigned to a hostname. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// nameIdentifier - Hostname information. -// options - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the -// WebSiteManagementClient.ListSiteIdentifiersAssignedToHostName method. +// +// Generated from API version 2022-09-01 +// - nameIdentifier - Hostname information. +// - options - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the +// WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager method. func (client *WebSiteManagementClient) NewListSiteIdentifiersAssignedToHostNamePager(nameIdentifier NameIdentifier, options *WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions) *runtime.Pager[WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse] { return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse]{ More: func(page WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse) bool { @@ -596,7 +601,7 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, nameIdentifier) @@ -612,10 +617,10 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameHand } // NewListSourceControlsPager - Description for Gets the source controls available for Azure websites. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// options - WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.ListSourceControls -// method. +// +// Generated from API version 2022-09-01 +// - options - WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.NewListSourceControlsPager +// method. func (client *WebSiteManagementClient) NewListSourceControlsPager(options *WebSiteManagementClientListSourceControlsOptions) *runtime.Pager[WebSiteManagementClientListSourceControlsResponse] { return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListSourceControlsResponse]{ More: func(page WebSiteManagementClientListSourceControlsResponse) bool { @@ -652,7 +657,7 @@ func (client *WebSiteManagementClient) listSourceControlsCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -669,10 +674,11 @@ func (client *WebSiteManagementClient) listSourceControlsHandleResponse(resp *ht // Move - Description for Move resources between resource groups. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// moveResourceEnvelope - Object that represents the resource to move. -// options - WebSiteManagementClientMoveOptions contains the optional parameters for the WebSiteManagementClient.Move method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - moveResourceEnvelope - Object that represents the resource to move. +// - options - WebSiteManagementClientMoveOptions contains the optional parameters for the WebSiteManagementClient.Move method. func (client *WebSiteManagementClient) Move(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *WebSiteManagementClientMoveOptions) (WebSiteManagementClientMoveResponse, error) { req, err := client.moveCreateRequest(ctx, resourceGroupName, moveResourceEnvelope, options) if err != nil { @@ -704,7 +710,7 @@ func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, moveResourceEnvelope) @@ -712,10 +718,11 @@ func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, re // UpdatePublishingUser - Description for Updates publishing user // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// userDetails - Details of publishing user -// options - WebSiteManagementClientUpdatePublishingUserOptions contains the optional parameters for the WebSiteManagementClient.UpdatePublishingUser -// method. +// +// Generated from API version 2022-09-01 +// - userDetails - Details of publishing user +// - options - WebSiteManagementClientUpdatePublishingUserOptions contains the optional parameters for the WebSiteManagementClient.UpdatePublishingUser +// method. func (client *WebSiteManagementClient) UpdatePublishingUser(ctx context.Context, userDetails User, options *WebSiteManagementClientUpdatePublishingUserOptions) (WebSiteManagementClientUpdatePublishingUserResponse, error) { req, err := client.updatePublishingUserCreateRequest(ctx, userDetails, options) if err != nil { @@ -739,7 +746,7 @@ func (client *WebSiteManagementClient) updatePublishingUserCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, userDetails) @@ -756,11 +763,12 @@ func (client *WebSiteManagementClient) updatePublishingUserHandleResponse(resp * // UpdateSourceControl - Description for Updates source control token // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// sourceControlType - Type of source control -// requestMessage - Source control token information -// options - WebSiteManagementClientUpdateSourceControlOptions contains the optional parameters for the WebSiteManagementClient.UpdateSourceControl -// method. +// +// Generated from API version 2022-09-01 +// - sourceControlType - Type of source control +// - requestMessage - Source control token information +// - options - WebSiteManagementClientUpdateSourceControlOptions contains the optional parameters for the WebSiteManagementClient.UpdateSourceControl +// method. func (client *WebSiteManagementClient) UpdateSourceControl(ctx context.Context, sourceControlType string, requestMessage SourceControl, options *WebSiteManagementClientUpdateSourceControlOptions) (WebSiteManagementClientUpdateSourceControlResponse, error) { req, err := client.updateSourceControlCreateRequest(ctx, sourceControlType, requestMessage, options) if err != nil { @@ -788,7 +796,7 @@ func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, requestMessage) @@ -805,11 +813,12 @@ func (client *WebSiteManagementClient) updateSourceControlHandleResponse(resp *h // Validate - Description for Validate if a resource can be created. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// validateRequest - Request with the resources to validate. -// options - WebSiteManagementClientValidateOptions contains the optional parameters for the WebSiteManagementClient.Validate -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - validateRequest - Request with the resources to validate. +// - options - WebSiteManagementClientValidateOptions contains the optional parameters for the WebSiteManagementClient.Validate +// method. func (client *WebSiteManagementClient) Validate(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, options *WebSiteManagementClientValidateOptions) (WebSiteManagementClientValidateResponse, error) { req, err := client.validateCreateRequest(ctx, resourceGroupName, validateRequest, options) if err != nil { @@ -841,7 +850,7 @@ func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, validateRequest) @@ -858,11 +867,12 @@ func (client *WebSiteManagementClient) validateHandleResponse(resp *http.Respons // ValidateMove - Description for Validate whether a resource can be moved. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// moveResourceEnvelope - Object that represents the resource to move. -// options - WebSiteManagementClientValidateMoveOptions contains the optional parameters for the WebSiteManagementClient.ValidateMove -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - moveResourceEnvelope - Object that represents the resource to move. +// - options - WebSiteManagementClientValidateMoveOptions contains the optional parameters for the WebSiteManagementClient.ValidateMove +// method. func (client *WebSiteManagementClient) ValidateMove(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *WebSiteManagementClientValidateMoveOptions) (WebSiteManagementClientValidateMoveResponse, error) { req, err := client.validateMoveCreateRequest(ctx, resourceGroupName, moveResourceEnvelope, options) if err != nil { @@ -894,7 +904,7 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, moveResourceEnvelope) @@ -903,10 +913,11 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con // VerifyHostingEnvironmentVnet - Description for Verifies if this VNET is compatible with an App Service Environment by analyzing // the Network Security Group rules. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// parameters - VNET information -// options - WebSiteManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the WebSiteManagementClient.VerifyHostingEnvironmentVnet -// method. +// +// Generated from API version 2022-09-01 +// - parameters - VNET information +// - options - WebSiteManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the WebSiteManagementClient.VerifyHostingEnvironmentVnet +// method. func (client *WebSiteManagementClient) VerifyHostingEnvironmentVnet(ctx context.Context, parameters VnetParameters, options *WebSiteManagementClientVerifyHostingEnvironmentVnetOptions) (WebSiteManagementClientVerifyHostingEnvironmentVnetResponse, error) { req, err := client.verifyHostingEnvironmentVnetCreateRequest(ctx, parameters, options) if err != nil { @@ -934,7 +945,7 @@ func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagementclient_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/websitemanagementclient_client_example_test.go deleted file mode 100644 index 12f20ebe2525..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagementclient_client_example_test.go +++ /dev/null @@ -1,69 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/ListCustomHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebSiteManagementClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/VerifyHostingEnvironmentVnet.json -func ExampleWebSiteManagementClient_VerifyHostingEnvironmentVnet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWebSiteManagementClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.VerifyHostingEnvironmentVnet(ctx, - armappservice.VnetParameters{ - Properties: &armappservice.VnetParametersProperties{ - VnetName: to.Ptr("vNet123"), - VnetResourceGroup: to.Ptr("vNet123rg"), - VnetSubnetName: to.Ptr("vNet123SubNet"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go index 17844b8d6e24..5b2aae0789b9 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go @@ -32,9 +32,9 @@ type WorkflowRunActionRepetitionsClient struct { } // NewWorkflowRunActionRepetitionsClient creates a new instance of WorkflowRunActionRepetitionsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowRunActionRepetitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionRepetitionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,15 +57,16 @@ func NewWorkflowRunActionRepetitionsClient(subscriptionID string, credential azc // Get - Get a workflow run action repetition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// repetitionName - The workflow repetition. -// options - WorkflowRunActionRepetitionsClientGetOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.Get -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - repetitionName - The workflow repetition. +// - options - WorkflowRunActionRepetitionsClientGetOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.Get +// method. func (client *WorkflowRunActionRepetitionsClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionRepetitionsClientGetOptions) (WorkflowRunActionRepetitionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, runName, actionName, repetitionName, options) if err != nil { @@ -117,7 +118,7 @@ func (client *WorkflowRunActionRepetitionsClient) getCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -133,15 +134,15 @@ func (client *WorkflowRunActionRepetitionsClient) getHandleResponse(resp *http.R } // NewListPager - Get all of a workflow run action repetitions. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// options - WorkflowRunActionRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.List -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - options - WorkflowRunActionRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.NewListPager +// method. func (client *WorkflowRunActionRepetitionsClient) NewListPager(resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionRepetitionsClientListOptions) *runtime.Pager[WorkflowRunActionRepetitionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunActionRepetitionsClientListResponse]{ More: func(page WorkflowRunActionRepetitionsClientListResponse) bool { @@ -202,7 +203,7 @@ func (client *WorkflowRunActionRepetitionsClient) listCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -218,16 +219,16 @@ func (client *WorkflowRunActionRepetitionsClient) listHandleResponse(resp *http. } // NewListExpressionTracesPager - Lists a workflow run expression trace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// repetitionName - The workflow repetition. -// options - WorkflowRunActionRepetitionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.ListExpressionTraces -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - repetitionName - The workflow repetition. +// - options - WorkflowRunActionRepetitionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.NewListExpressionTracesPager +// method. func (client *WorkflowRunActionRepetitionsClient) NewListExpressionTracesPager(resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionRepetitionsClientListExpressionTracesOptions) *runtime.Pager[WorkflowRunActionRepetitionsClientListExpressionTracesResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunActionRepetitionsClientListExpressionTracesResponse]{ More: func(page WorkflowRunActionRepetitionsClientListExpressionTracesResponse) bool { @@ -292,7 +293,7 @@ func (client *WorkflowRunActionRepetitionsClient) listExpressionTracesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go deleted file mode 100644 index c8dccdc9ab9c..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go +++ /dev/null @@ -1,102 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionRepetitions_List.json -func ExampleWorkflowRunActionRepetitionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionRepetitionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("testResourceGroup", - "test-name", - "testFlow", - "08586776228332053161046300351", - "testAction", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionRepetitions_Get.json -func ExampleWorkflowRunActionRepetitionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionRepetitionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testResourceGroup", - "test-name", - "testFlow", - "08586776228332053161046300351", - "testAction", - "000001", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json -func ExampleWorkflowRunActionRepetitionsClient_NewListExpressionTracesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionRepetitionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListExpressionTracesPager("testResourceGroup", - "test-name", - "testFlow", - "08586776228332053161046300351", - "testAction", - "000001", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Inputs { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go index 785dea56be6f..b6ac6aedd5b1 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go @@ -32,9 +32,9 @@ type WorkflowRunActionRepetitionsRequestHistoriesClient struct { } // NewWorkflowRunActionRepetitionsRequestHistoriesClient creates a new instance of WorkflowRunActionRepetitionsRequestHistoriesClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowRunActionRepetitionsRequestHistoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionRepetitionsRequestHistoriesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,16 +57,17 @@ func NewWorkflowRunActionRepetitionsRequestHistoriesClient(subscriptionID string // Get - Gets a workflow run repetition request history. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// repetitionName - The workflow repetition. -// requestHistoryName - The request history name. -// options - WorkflowRunActionRepetitionsRequestHistoriesClientGetOptions contains the optional parameters for the WorkflowRunActionRepetitionsRequestHistoriesClient.Get -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - repetitionName - The workflow repetition. +// - requestHistoryName - The request history name. +// - options - WorkflowRunActionRepetitionsRequestHistoriesClientGetOptions contains the optional parameters for the WorkflowRunActionRepetitionsRequestHistoriesClient.Get +// method. func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, requestHistoryName string, options *WorkflowRunActionRepetitionsRequestHistoriesClientGetOptions) (WorkflowRunActionRepetitionsRequestHistoriesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, runName, actionName, repetitionName, requestHistoryName, options) if err != nil { @@ -122,7 +123,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -138,16 +139,16 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getHandleRespo } // NewListPager - List a workflow run repetition request history. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// repetitionName - The workflow repetition. -// options - WorkflowRunActionRepetitionsRequestHistoriesClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsRequestHistoriesClient.List -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - repetitionName - The workflow repetition. +// - options - WorkflowRunActionRepetitionsRequestHistoriesClientListOptions contains the optional parameters for the WorkflowRunActionRepetitionsRequestHistoriesClient.NewListPager +// method. func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) NewListPager(resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionRepetitionsRequestHistoriesClientListOptions) *runtime.Pager[WorkflowRunActionRepetitionsRequestHistoriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunActionRepetitionsRequestHistoriesClientListResponse]{ More: func(page WorkflowRunActionRepetitionsRequestHistoriesClientListResponse) bool { @@ -212,7 +213,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) listCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go deleted file mode 100644 index 5257cdd91c8b..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go +++ /dev/null @@ -1,74 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json -func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionRepetitionsRequestHistoriesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("test-resource-group", - "test-name", - "test-workflow", - "08586776228332053161046300351", - "HTTP_Webhook", - "000001", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json -func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionRepetitionsRequestHistoriesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "08586776228332053161046300351", - "HTTP_Webhook", - "000001", - "08586611142732800686", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go index c2d90de9f635..220c74419fb1 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go @@ -33,9 +33,9 @@ type WorkflowRunActionsClient struct { } // NewWorkflowRunActionsClient creates a new instance of WorkflowRunActionsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowRunActionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewWorkflowRunActionsClient(subscriptionID string, credential azcore.TokenC // Get - Gets a workflow run action. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// options - WorkflowRunActionsClientGetOptions contains the optional parameters for the WorkflowRunActionsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - options - WorkflowRunActionsClientGetOptions contains the optional parameters for the WorkflowRunActionsClient.Get method. func (client *WorkflowRunActionsClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionsClientGetOptions) (WorkflowRunActionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, runName, actionName, options) if err != nil { @@ -112,7 +113,7 @@ func (client *WorkflowRunActionsClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -128,13 +129,14 @@ func (client *WorkflowRunActionsClient) getHandleResponse(resp *http.Response) ( } // NewListPager - Gets a list of workflow run actions. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// options - WorkflowRunActionsClientListOptions contains the optional parameters for the WorkflowRunActionsClient.List method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - options - WorkflowRunActionsClientListOptions contains the optional parameters for the WorkflowRunActionsClient.NewListPager +// method. func (client *WorkflowRunActionsClient) NewListPager(resourceGroupName string, name string, workflowName string, runName string, options *WorkflowRunActionsClientListOptions) *runtime.Pager[WorkflowRunActionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunActionsClientListResponse]{ More: func(page WorkflowRunActionsClientListResponse) bool { @@ -191,7 +193,7 @@ func (client *WorkflowRunActionsClient) listCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } @@ -213,15 +215,15 @@ func (client *WorkflowRunActionsClient) listHandleResponse(resp *http.Response) } // NewListExpressionTracesPager - Lists a workflow run expression trace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// options - WorkflowRunActionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionsClient.ListExpressionTraces -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - options - WorkflowRunActionsClientListExpressionTracesOptions contains the optional parameters for the WorkflowRunActionsClient.NewListExpressionTracesPager +// method. func (client *WorkflowRunActionsClient) NewListExpressionTracesPager(resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionsClientListExpressionTracesOptions) *runtime.Pager[WorkflowRunActionsClientListExpressionTracesResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunActionsClientListExpressionTracesResponse]{ More: func(page WorkflowRunActionsClientListExpressionTracesResponse) bool { @@ -282,7 +284,7 @@ func (client *WorkflowRunActionsClient) listExpressionTracesCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go deleted file mode 100644 index ae9859f5e83f..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go +++ /dev/null @@ -1,101 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActions_List.json -func ExampleWorkflowRunActionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("test-resource-group", - "test-name", - "test-workflow", - "08586676746934337772206998657CU22", - &armappservice.WorkflowRunActionsClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActions_Get.json -func ExampleWorkflowRunActionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "08586676746934337772206998657CU22", - "HTTP", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActions_ListExpressionTraces.json -func ExampleWorkflowRunActionsClient_NewListExpressionTracesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListExpressionTracesPager("testResourceGroup", - "test-name", - "testFlow", - "08586776228332053161046300351", - "testAction", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Inputs { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go index ca76b5607a61..c2db41848cb9 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go @@ -32,9 +32,9 @@ type WorkflowRunActionScopeRepetitionsClient struct { } // NewWorkflowRunActionScopeRepetitionsClient creates a new instance of WorkflowRunActionScopeRepetitionsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowRunActionScopeRepetitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionScopeRepetitionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,15 +57,16 @@ func NewWorkflowRunActionScopeRepetitionsClient(subscriptionID string, credentia // Get - Get a workflow run action scoped repetition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// repetitionName - The workflow repetition. -// options - WorkflowRunActionScopeRepetitionsClientGetOptions contains the optional parameters for the WorkflowRunActionScopeRepetitionsClient.Get -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - repetitionName - The workflow repetition. +// - options - WorkflowRunActionScopeRepetitionsClientGetOptions contains the optional parameters for the WorkflowRunActionScopeRepetitionsClient.Get +// method. func (client *WorkflowRunActionScopeRepetitionsClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionScopeRepetitionsClientGetOptions) (WorkflowRunActionScopeRepetitionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, runName, actionName, repetitionName, options) if err != nil { @@ -117,7 +118,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -133,15 +134,15 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getHandleResponse(resp *h } // NewListPager - List the workflow run action scoped repetitions. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// actionName - The workflow action name. -// options - WorkflowRunActionScopeRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionScopeRepetitionsClient.List -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - actionName - The workflow action name. +// - options - WorkflowRunActionScopeRepetitionsClientListOptions contains the optional parameters for the WorkflowRunActionScopeRepetitionsClient.NewListPager +// method. func (client *WorkflowRunActionScopeRepetitionsClient) NewListPager(resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionScopeRepetitionsClientListOptions) *runtime.Pager[WorkflowRunActionScopeRepetitionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunActionScopeRepetitionsClientListResponse]{ More: func(page WorkflowRunActionScopeRepetitionsClientListResponse) bool { @@ -202,7 +203,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) listCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go deleted file mode 100644 index c32fe56a4877..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go +++ /dev/null @@ -1,72 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionScopeRepetitions_List.json -func ExampleWorkflowRunActionScopeRepetitionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionScopeRepetitionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("testResourceGroup", - "test-name", - "testFlow", - "08586776228332053161046300351", - "for_each", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRunActionScopeRepetitions_Get.json -func ExampleWorkflowRunActionScopeRepetitionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunActionScopeRepetitionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testResourceGroup", - "test-name", - "testFlow", - "08586776228332053161046300351", - "for_each", - "000000", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go index 64bc205dc1f0..368185a3fd68 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go @@ -33,9 +33,9 @@ type WorkflowRunsClient struct { } // NewWorkflowRunsClient creates a new instance of WorkflowRunsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewWorkflowRunsClient(subscriptionID string, credential azcore.TokenCredent // Cancel - Cancels a workflow run. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// options - WorkflowRunsClientCancelOptions contains the optional parameters for the WorkflowRunsClient.Cancel method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - options - WorkflowRunsClientCancelOptions contains the optional parameters for the WorkflowRunsClient.Cancel method. func (client *WorkflowRunsClient) Cancel(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, options *WorkflowRunsClientCancelOptions) (WorkflowRunsClientCancelResponse, error) { req, err := client.cancelCreateRequest(ctx, resourceGroupName, name, workflowName, runName, options) if err != nil { @@ -107,7 +108,7 @@ func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,12 +116,13 @@ func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resou // Get - Gets a workflow run. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// runName - The workflow run name. -// options - WorkflowRunsClientGetOptions contains the optional parameters for the WorkflowRunsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - runName - The workflow run name. +// - options - WorkflowRunsClientGetOptions contains the optional parameters for the WorkflowRunsClient.Get method. func (client *WorkflowRunsClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, options *WorkflowRunsClientGetOptions) (WorkflowRunsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, runName, options) if err != nil { @@ -164,7 +166,7 @@ func (client *WorkflowRunsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,12 +182,12 @@ func (client *WorkflowRunsClient) getHandleResponse(resp *http.Response) (Workfl } // NewListPager - Gets a list of workflow runs. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// options - WorkflowRunsClientListOptions contains the optional parameters for the WorkflowRunsClient.List method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - options - WorkflowRunsClientListOptions contains the optional parameters for the WorkflowRunsClient.NewListPager method. func (client *WorkflowRunsClient) NewListPager(resourceGroupName string, name string, workflowName string, options *WorkflowRunsClientListOptions) *runtime.Pager[WorkflowRunsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowRunsClientListResponse]{ More: func(page WorkflowRunsClientListResponse) bool { @@ -238,7 +240,7 @@ func (client *WorkflowRunsClient) listCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } diff --git a/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go deleted file mode 100644 index bb88053ee7a6..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go +++ /dev/null @@ -1,92 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRuns_List.json -func ExampleWorkflowRunsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("test-resource-group", - "test-name", - "test-workflow", - &armappservice.WorkflowRunsClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRuns_Get.json -func ExampleWorkflowRunsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "08586676746934337772206998657CU22", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowRuns_Cancel.json -func ExampleWorkflowRunsClient_Cancel() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowRunsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Cancel(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "08586676746934337772206998657CU22", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflows_client.go b/sdk/resourcemanager/appservice/armappservice/workflows_client.go index a5e8403c1ff2..3f4fb9d510a9 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflows_client.go @@ -32,9 +32,9 @@ type WorkflowsClient struct { } // NewWorkflowsClient creates a new instance of WorkflowsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewWorkflowsClient(subscriptionID string, credential azcore.TokenCredential // RegenerateAccessKey - Regenerates the callback URL access key for request triggers. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// keyType - The access key type. -// options - WorkflowsClientRegenerateAccessKeyOptions contains the optional parameters for the WorkflowsClient.RegenerateAccessKey -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - keyType - The access key type. +// - options - WorkflowsClientRegenerateAccessKeyOptions contains the optional parameters for the WorkflowsClient.RegenerateAccessKey +// method. func (client *WorkflowsClient) RegenerateAccessKey(ctx context.Context, resourceGroupName string, name string, workflowName string, keyType RegenerateActionParameter, options *WorkflowsClientRegenerateAccessKeyOptions) (WorkflowsClientRegenerateAccessKeyResponse, error) { req, err := client.regenerateAccessKeyCreateRequest(ctx, resourceGroupName, name, workflowName, keyType, options) if err != nil { @@ -103,7 +104,7 @@ func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, keyType) @@ -111,12 +112,13 @@ func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Cont // Validate - Validates the workflow definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// validate - The workflow. -// options - WorkflowsClientValidateOptions contains the optional parameters for the WorkflowsClient.Validate method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - validate - The workflow. +// - options - WorkflowsClientValidateOptions contains the optional parameters for the WorkflowsClient.Validate method. func (client *WorkflowsClient) Validate(ctx context.Context, resourceGroupName string, name string, workflowName string, validate Workflow, options *WorkflowsClientValidateOptions) (WorkflowsClientValidateResponse, error) { req, err := client.validateCreateRequest(ctx, resourceGroupName, name, workflowName, validate, options) if err != nil { @@ -156,7 +158,7 @@ func (client *WorkflowsClient) validateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, validate) diff --git a/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go deleted file mode 100644 index 7e56e31bc85b..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go +++ /dev/null @@ -1,76 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Workflows_RegenerateAccessKey.json -func ExampleWorkflowsClient_RegenerateAccessKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.RegenerateAccessKey(ctx, - "testResourceGroup", - "test-name", - "testWorkflowName", - armappservice.RegenerateActionParameter{ - KeyType: to.Ptr(armappservice.KeyTypePrimary), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/Workflows_Validate.json -func ExampleWorkflowsClient_Validate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Validate(ctx, - "test-resource-group", - "test-name", - "test-workflow", - armappservice.Workflow{ - Properties: &armappservice.WorkflowProperties{ - Definition: map[string]interface{}{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]interface{}{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]interface{}{}, - "parameters": map[string]interface{}{}, - "triggers": map[string]interface{}{}, - }, - Kind: to.Ptr(armappservice.KindStateful), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go index 78b2e65cdedd..bc42d2aae492 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go @@ -33,9 +33,9 @@ type WorkflowTriggerHistoriesClient struct { } // NewWorkflowTriggerHistoriesClient creates a new instance of WorkflowTriggerHistoriesClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowTriggerHistoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowTriggerHistoriesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,14 +58,15 @@ func NewWorkflowTriggerHistoriesClient(subscriptionID string, credential azcore. // Get - Gets a workflow trigger history. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// historyName - The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. -// options - WorkflowTriggerHistoriesClientGetOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.Get -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - historyName - The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. +// - options - WorkflowTriggerHistoriesClientGetOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.Get +// method. func (client *WorkflowTriggerHistoriesClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *WorkflowTriggerHistoriesClientGetOptions) (WorkflowTriggerHistoriesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, triggerName, historyName, options) if err != nil { @@ -113,7 +114,7 @@ func (client *WorkflowTriggerHistoriesClient) getCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -129,14 +130,14 @@ func (client *WorkflowTriggerHistoriesClient) getHandleResponse(resp *http.Respo } // NewListPager - Gets a list of workflow trigger histories. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// options - WorkflowTriggerHistoriesClientListOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.List -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - options - WorkflowTriggerHistoriesClientListOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.NewListPager +// method. func (client *WorkflowTriggerHistoriesClient) NewListPager(resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggerHistoriesClientListOptions) *runtime.Pager[WorkflowTriggerHistoriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowTriggerHistoriesClientListResponse]{ More: func(page WorkflowTriggerHistoriesClientListResponse) bool { @@ -193,7 +194,7 @@ func (client *WorkflowTriggerHistoriesClient) listCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } @@ -216,14 +217,15 @@ func (client *WorkflowTriggerHistoriesClient) listHandleResponse(resp *http.Resp // BeginResubmit - Resubmits a workflow run based on the trigger history. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// historyName - The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. -// options - WorkflowTriggerHistoriesClientBeginResubmitOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.BeginResubmit -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - historyName - The workflow trigger history name. Corresponds to the run name for triggers that resulted in a run. +// - options - WorkflowTriggerHistoriesClientBeginResubmitOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.BeginResubmit +// method. func (client *WorkflowTriggerHistoriesClient) BeginResubmit(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *WorkflowTriggerHistoriesClientBeginResubmitOptions) (*runtime.Poller[WorkflowTriggerHistoriesClientResubmitResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.resubmit(ctx, resourceGroupName, name, workflowName, triggerName, historyName, options) @@ -238,7 +240,8 @@ func (client *WorkflowTriggerHistoriesClient) BeginResubmit(ctx context.Context, // Resubmit - Resubmits a workflow run based on the trigger history. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WorkflowTriggerHistoriesClient) resubmit(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *WorkflowTriggerHistoriesClientBeginResubmitOptions) (*http.Response, error) { req, err := client.resubmitCreateRequest(ctx, resourceGroupName, name, workflowName, triggerName, historyName, options) if err != nil { @@ -286,7 +289,7 @@ func (client *WorkflowTriggerHistoriesClient) resubmitCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go deleted file mode 100644 index 952b58a40ed5..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go +++ /dev/null @@ -1,99 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowTriggerHistories_List.json -func ExampleWorkflowTriggerHistoriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowTriggerHistoriesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("testResourceGroup", - "test-name", - "testWorkflowName", - "testTriggerName", - &armappservice.WorkflowTriggerHistoriesClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowTriggerHistories_Get.json -func ExampleWorkflowTriggerHistoriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowTriggerHistoriesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "testResourceGroup", - "test-name", - "testWorkflowName", - "testTriggerName", - "08586676746934337772206998657CU22", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowTriggerHistories_Resubmit.json -func ExampleWorkflowTriggerHistoriesClient_BeginResubmit() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowTriggerHistoriesClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginResubmit(ctx, - "testResourceGroup", - "test-name", - "testWorkflowName", - "testTriggerName", - "testHistoryName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go index 93fd0d967d14..97ec836cee21 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go @@ -33,9 +33,9 @@ type WorkflowTriggersClient struct { } // NewWorkflowTriggersClient creates a new instance of WorkflowTriggersClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowTriggersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowTriggersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewWorkflowTriggersClient(subscriptionID string, credential azcore.TokenCre // Get - Gets a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// options - WorkflowTriggersClientGetOptions contains the optional parameters for the WorkflowTriggersClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - options - WorkflowTriggersClientGetOptions contains the optional parameters for the WorkflowTriggersClient.Get method. func (client *WorkflowTriggersClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientGetOptions) (WorkflowTriggersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, triggerName, options) if err != nil { @@ -107,7 +108,7 @@ func (client *WorkflowTriggersClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -124,13 +125,14 @@ func (client *WorkflowTriggersClient) getHandleResponse(resp *http.Response) (Wo // GetSchemaJSON - Get the trigger schema as JSON. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// options - WorkflowTriggersClientGetSchemaJSONOptions contains the optional parameters for the WorkflowTriggersClient.GetSchemaJSON -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - options - WorkflowTriggersClientGetSchemaJSONOptions contains the optional parameters for the WorkflowTriggersClient.GetSchemaJSON +// method. func (client *WorkflowTriggersClient) GetSchemaJSON(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientGetSchemaJSONOptions) (WorkflowTriggersClientGetSchemaJSONResponse, error) { req, err := client.getSchemaJSONCreateRequest(ctx, resourceGroupName, name, workflowName, triggerName, options) if err != nil { @@ -174,7 +176,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -190,12 +192,13 @@ func (client *WorkflowTriggersClient) getSchemaJSONHandleResponse(resp *http.Res } // NewListPager - Gets a list of workflow triggers. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// options - WorkflowTriggersClientListOptions contains the optional parameters for the WorkflowTriggersClient.List method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - options - WorkflowTriggersClientListOptions contains the optional parameters for the WorkflowTriggersClient.NewListPager +// method. func (client *WorkflowTriggersClient) NewListPager(resourceGroupName string, name string, workflowName string, options *WorkflowTriggersClientListOptions) *runtime.Pager[WorkflowTriggersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowTriggersClientListResponse]{ More: func(page WorkflowTriggersClientListResponse) bool { @@ -248,7 +251,7 @@ func (client *WorkflowTriggersClient) listCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } @@ -271,13 +274,14 @@ func (client *WorkflowTriggersClient) listHandleResponse(resp *http.Response) (W // ListCallbackURL - Get the callback URL for a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// options - WorkflowTriggersClientListCallbackURLOptions contains the optional parameters for the WorkflowTriggersClient.ListCallbackURL -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - options - WorkflowTriggersClientListCallbackURLOptions contains the optional parameters for the WorkflowTriggersClient.ListCallbackURL +// method. func (client *WorkflowTriggersClient) ListCallbackURL(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientListCallbackURLOptions) (WorkflowTriggersClientListCallbackURLResponse, error) { req, err := client.listCallbackURLCreateRequest(ctx, resourceGroupName, name, workflowName, triggerName, options) if err != nil { @@ -321,7 +325,7 @@ func (client *WorkflowTriggersClient) listCallbackURLCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -338,13 +342,14 @@ func (client *WorkflowTriggersClient) listCallbackURLHandleResponse(resp *http.R // BeginRun - Runs a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// triggerName - The workflow trigger name. -// options - WorkflowTriggersClientBeginRunOptions contains the optional parameters for the WorkflowTriggersClient.BeginRun -// method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - triggerName - The workflow trigger name. +// - options - WorkflowTriggersClientBeginRunOptions contains the optional parameters for the WorkflowTriggersClient.BeginRun +// method. func (client *WorkflowTriggersClient) BeginRun(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientBeginRunOptions) (*runtime.Poller[WorkflowTriggersClientRunResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.run(ctx, resourceGroupName, name, workflowName, triggerName, options) @@ -359,7 +364,8 @@ func (client *WorkflowTriggersClient) BeginRun(ctx context.Context, resourceGrou // Run - Runs a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-09-01 func (client *WorkflowTriggersClient) run(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientBeginRunOptions) (*http.Response, error) { req, err := client.runCreateRequest(ctx, resourceGroupName, name, workflowName, triggerName, options) if err != nil { @@ -403,7 +409,7 @@ func (client *WorkflowTriggersClient) runCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go deleted file mode 100644 index dcc4844fd8f0..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go +++ /dev/null @@ -1,96 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowTriggers_List.json -func ExampleWorkflowTriggersClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowTriggersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("test-resource-group", - "test-name", - "test-workflow", - &armappservice.WorkflowTriggersClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowTriggers_Get.json -func ExampleWorkflowTriggersClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowTriggersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "manual", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowTriggers_Run.json -func ExampleWorkflowTriggersClient_BeginRun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowTriggersClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginRun(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "manual", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go index 01ccc17530eb..24d9106aa5da 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go @@ -33,9 +33,9 @@ type WorkflowVersionsClient struct { } // NewWorkflowVersionsClient creates a new instance of WorkflowVersionsClient with the specified values. -// subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkflowVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowVersionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewWorkflowVersionsClient(subscriptionID string, credential azcore.TokenCre // Get - Gets a workflow version. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// versionID - The workflow versionId. -// options - WorkflowVersionsClientGetOptions contains the optional parameters for the WorkflowVersionsClient.Get method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - versionID - The workflow versionId. +// - options - WorkflowVersionsClientGetOptions contains the optional parameters for the WorkflowVersionsClient.Get method. func (client *WorkflowVersionsClient) Get(ctx context.Context, resourceGroupName string, name string, workflowName string, versionID string, options *WorkflowVersionsClientGetOptions) (WorkflowVersionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, name, workflowName, versionID, options) if err != nil { @@ -107,7 +108,7 @@ func (client *WorkflowVersionsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -123,12 +124,13 @@ func (client *WorkflowVersionsClient) getHandleResponse(resp *http.Response) (Wo } // NewListPager - Gets a list of workflow versions. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// resourceGroupName - Name of the resource group to which the resource belongs. -// name - Site name. -// workflowName - The workflow name. -// options - WorkflowVersionsClientListOptions contains the optional parameters for the WorkflowVersionsClient.List method. +// +// Generated from API version 2022-09-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Site name. +// - workflowName - The workflow name. +// - options - WorkflowVersionsClientListOptions contains the optional parameters for the WorkflowVersionsClient.NewListPager +// method. func (client *WorkflowVersionsClient) NewListPager(resourceGroupName string, name string, workflowName string, options *WorkflowVersionsClientListOptions) *runtime.Pager[WorkflowVersionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkflowVersionsClientListResponse]{ More: func(page WorkflowVersionsClientListResponse) bool { @@ -181,7 +183,7 @@ func (client *WorkflowVersionsClient) listCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-09-01") if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } diff --git a/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go deleted file mode 100644 index 3a6d11c6e42a..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go +++ /dev/null @@ -1,68 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowVersions_List.json -func ExampleWorkflowVersionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowVersionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("test-resource-group", - "test-name", - "test-workflow", - &armappservice.WorkflowVersionsClientListOptions{Top: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/examples/WorkflowVersions_Get.json -func ExampleWorkflowVersionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armappservice.NewWorkflowVersionsClient("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-resource-group", - "test-name", - "test-workflow", - "08586676824806722526", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -}