From a9c340049eb67437ef9c67061609d20181bf219c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Feb 2025 01:20:20 +0000 Subject: [PATCH] CodeGen from PR 32190 in Azure/azure-rest-api-specs Merge 6c3972500e2898da3e106fc427cebf3f38f5a49c into 6261cf1fb6533df73756cd828796ac01522a9776 --- .../appservice/armappservice/CHANGELOG.md | 54 + .../appservice/armappservice/README.md | 2 +- .../appservice/armappservice/autorest.md | 7 +- .../armappservice/certificateorders_client.go | 127 +- .../certificateorders_client_example_test.go | 952 -- .../certificateordersdiagnostics_client.go | 13 +- ...teordersdiagnostics_client_example_test.go | 150 - .../certificateregistrationprovider_client.go | 9 +- ...egistrationprovider_client_example_test.go | 216 - .../armappservice/certificates_client.go | 37 +- .../certificates_client_example_test.go | 275 - .../armappservice/client_factory.go | 27 +- .../appservice/armappservice/constants.go | 101 +- .../armappservice/containerapps_client.go | 438 - .../containerapps_client_example_test.go | 400 - .../containerappsrevisions_client.go | 359 - ...tainerappsrevisions_client_example_test.go | 197 - .../armappservice/deletedwebapps_client.go | 21 +- .../deletedwebapps_client_example_test.go | 96 - .../armappservice/diagnostics_client.go | 121 +- .../diagnostics_client_example_test.go | 1474 -- .../domainregistrationprovider_client.go | 9 +- ...egistrationprovider_client_example_test.go | 136 - .../armappservice/domains_client.go | 99 +- .../domains_client_example_test.go | 1196 -- .../armappservice/environments_client.go | 305 +- .../environments_client_example_test.go | 2889 ---- .../fake/certificateorders_server.go | 132 +- .../certificateordersdiagnostics_server.go | 58 +- .../certificateregistrationprovider_server.go | 54 +- .../armappservice/fake/certificates_server.go | 74 +- .../fake/containerapps_server.go | 332 - .../fake/containerappsrevisions_server.go | 285 - .../fake/deletedwebapps_server.go | 62 +- .../armappservice/fake/diagnostics_server.go | 138 +- .../fake/domainregistrationprovider_server.go | 54 +- .../armappservice/fake/domains_server.go | 116 +- .../armappservice/fake/environments_server.go | 256 +- .../fake/getusagesinlocation_server.go | 54 +- .../armappservice/fake/global_server.go | 64 +- .../appservice/armappservice/fake/internal.go | 8 +- .../fake/kubeenvironments_server.go | 74 +- .../armappservice/fake/plans_server.go | 160 +- .../armappservice/fake/provider_server.go | 78 +- .../fake/recommendations_server.go | 112 +- .../fake/resourcehealthmetadata_server.go | 74 +- .../armappservice/fake/server_factory.go | 139 +- .../fake/sitecertificates_server.go | 564 + .../armappservice/fake/staticsites_server.go | 400 +- .../armappservice/fake/time_rfc3339.go | 6 +- .../fake/topleveldomains_server.go | 62 +- .../armappservice/fake/webapps_server.go | 1832 +-- .../fake/websitemanagement_server.go | 124 +- .../workflowrunactionrepetitions_server.go | 62 +- ...ctionrepetitionsrequesthistories_server.go | 58 +- .../fake/workflowrunactions_server.go | 62 +- ...orkflowrunactionscoperepetitions_server.go | 58 +- .../armappservice/fake/workflowruns_server.go | 62 +- .../armappservice/fake/workflows_server.go | 58 +- .../fake/workflowtriggerhistories_server.go | 68 +- .../fake/workflowtriggers_server.go | 76 +- .../fake/workflowversions_server.go | 58 +- .../getusagesinlocation_client.go | 9 +- ...getusagesinlocation_client_example_test.go | 55 - .../appservice/armappservice/global_client.go | 21 +- .../global_client_example_test.go | 99 - .../appservice/armappservice/go.mod | 14 +- .../appservice/armappservice/go.sum | 23 - .../armappservice/kubeenvironments_client.go | 43 +- .../kubeenvironments_client_example_test.go | 290 - .../appservice/armappservice/models.go | 233 +- .../appservice/armappservice/models_serde.go | 522 +- .../appservice/armappservice/options.go | 263 +- .../appservice/armappservice/plans_client.go | 159 +- .../plans_client_example_test.go | 348 - .../armappservice/provider_client.go | 33 +- .../provider_client_example_test.go | 13024 ---------------- .../armappservice/recommendations_client.go | 79 +- .../resourcehealthmetadata_client.go | 39 +- ...ourcehealthmetadata_client_example_test.go | 158 - .../appservice/armappservice/responses.go | 168 +- .../armappservice/responses_serde.go | 48 + .../armappservice/sitecertificates_client.go | 749 + .../armappservice/staticsites_client.go | 479 +- .../staticsites_client_example_test.go | 2501 --- .../appservice/armappservice/time_rfc3339.go | 6 +- .../armappservice/topleveldomains_client.go | 21 +- .../topleveldomains_client_example_test.go | 190 - .../armappservice/webapps_client.go | 2529 ++- .../webapps_client_example_test.go | 4792 ------ .../armappservice/websitemanagement_client.go | 105 +- .../websitemanagement_client_example_test.go | 223 - .../workflowrunactionrepetitions_client.go | 21 +- ...unactionrepetitions_client_example_test.go | 216 - ...ctionrepetitionsrequesthistories_client.go | 18 +- ...onsrequesthistories_client_example_test.go | 172 - .../workflowrunactions_client.go | 19 +- .../workflowrunactions_client_example_test.go | 147 - ...orkflowrunactionscoperepetitions_client.go | 15 +- ...ionscoperepetitions_client_example_test.go | 126 - .../armappservice/workflowruns_client.go | 19 +- .../workflowruns_client_example_test.go | 149 - .../armappservice/workflows_client.go | 15 +- .../workflows_client_example_test.go | 67 - .../workflowtriggerhistories_client.go | 21 +- ...lowtriggerhistories_client_example_test.go | 131 - .../armappservice/workflowtriggers_client.go | 33 +- .../workflowtriggers_client_example_test.go | 176 - .../armappservice/workflowversions_client.go | 13 +- .../workflowversions_client_example_test.go | 138 - 110 files changed, 6499 insertions(+), 37804 deletions(-) delete mode 100644 sdk/resourcemanager/appservice/armappservice/certificateorders_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.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.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/environments_client_example_test.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go create mode 100644 sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go delete mode 100644 sdk/resourcemanager/appservice/armappservice/getusagesinlocation_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/plans_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 create mode 100644 sdk/resourcemanager/appservice/armappservice/responses_serde.go create mode 100644 sdk/resourcemanager/appservice/armappservice/sitecertificates_client.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/websitemanagement_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 3086c7ad9c7b..0c4607c46267 100644 --- a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md +++ b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md @@ -1,5 +1,59 @@ # Release History +## 5.0.0 (2025-02-27) +### Breaking Changes + +- Enum `ActiveRevisionsMode` has been removed +- Enum `ContainerAppProvisioningState` has been removed +- Enum `IngressTransportMethod` has been removed +- Enum `RevisionHealthState` has been removed +- Enum `RevisionProvisioningState` has been removed +- Function `*ClientFactory.NewContainerAppsClient` has been removed +- Function `*ClientFactory.NewContainerAppsRevisionsClient` has been removed +- Function `NewContainerAppsClient` has been removed +- Function `*ContainerAppsClient.BeginCreateOrUpdate` has been removed +- Function `*ContainerAppsClient.BeginDelete` has been removed +- Function `*ContainerAppsClient.Get` has been removed +- Function `*ContainerAppsClient.NewListByResourceGroupPager` has been removed +- Function `*ContainerAppsClient.NewListBySubscriptionPager` has been removed +- Function `*ContainerAppsClient.ListSecrets` has been removed +- Function `NewContainerAppsRevisionsClient` has been removed +- Function `*ContainerAppsRevisionsClient.ActivateRevision` has been removed +- Function `*ContainerAppsRevisionsClient.DeactivateRevision` has been removed +- Function `*ContainerAppsRevisionsClient.GetRevision` has been removed +- Function `*ContainerAppsRevisionsClient.NewListRevisionsPager` has been removed +- Function `*ContainerAppsRevisionsClient.RestartRevision` has been removed +- Struct `Configuration` has been removed +- Struct `ContainerApp` has been removed +- Struct `ContainerAppCollection` has been removed +- Struct `ContainerAppProperties` has been removed +- Struct `ContainerAppSecret` has been removed +- Struct `Ingress` has been removed +- Struct `RegistryCredentials` has been removed +- Struct `Revision` has been removed +- Struct `RevisionCollection` has been removed +- Struct `RevisionProperties` has been removed +- Struct `Secret` has been removed +- Struct `SecretsCollection` has been removed +- Struct `TrafficWeight` has been removed + +### Features Added + +- New function `*ClientFactory.NewSiteCertificatesClient() *SiteCertificatesClient` +- New function `NewSiteCertificatesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*SiteCertificatesClient, error)` +- New function `*SiteCertificatesClient.CreateOrUpdate(context.Context, string, string, string, AppCertificate, *SiteCertificatesClientCreateOrUpdateOptions) (SiteCertificatesClientCreateOrUpdateResponse, error)` +- New function `*SiteCertificatesClient.CreateOrUpdateSlot(context.Context, string, string, string, string, AppCertificate, *SiteCertificatesClientCreateOrUpdateSlotOptions) (SiteCertificatesClientCreateOrUpdateSlotResponse, error)` +- New function `*SiteCertificatesClient.Delete(context.Context, string, string, string, *SiteCertificatesClientDeleteOptions) (SiteCertificatesClientDeleteResponse, error)` +- New function `*SiteCertificatesClient.DeleteSlot(context.Context, string, string, string, string, *SiteCertificatesClientDeleteSlotOptions) (SiteCertificatesClientDeleteSlotResponse, error)` +- New function `*SiteCertificatesClient.Get(context.Context, string, string, string, *SiteCertificatesClientGetOptions) (SiteCertificatesClientGetResponse, error)` +- New function `*SiteCertificatesClient.GetSlot(context.Context, string, string, string, string, *SiteCertificatesClientGetSlotOptions) (SiteCertificatesClientGetSlotResponse, error)` +- New function `*SiteCertificatesClient.NewListPager(string, string, *SiteCertificatesClientListOptions) *runtime.Pager[SiteCertificatesClientListResponse]` +- New function `*SiteCertificatesClient.NewListSlotPager(string, string, string, *SiteCertificatesClientListSlotOptions) *runtime.Pager[SiteCertificatesClientListSlotResponse]` +- New function `*SiteCertificatesClient.Update(context.Context, string, string, string, AppCertificatePatchResource, *SiteCertificatesClientUpdateOptions) (SiteCertificatesClientUpdateResponse, error)` +- New function `*SiteCertificatesClient.UpdateSlot(context.Context, string, string, string, string, AppCertificatePatchResource, *SiteCertificatesClientUpdateSlotOptions) (SiteCertificatesClientUpdateSlotResponse, error)` +- New field `InheritAppSettingsAndConnectionStrings` in struct `SiteContainerProperties` + + ## 4.1.0 (2024-11-20) ### Features Added diff --git a/sdk/resourcemanager/appservice/armappservice/README.md b/sdk/resourcemanager/appservice/armappservice/README.md index fce2005ef306..33168a406550 100644 --- a/sdk/resourcemanager/appservice/armappservice/README.md +++ b/sdk/resourcemanager/appservice/armappservice/README.md @@ -18,7 +18,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve Install the Azure App Service module: ```sh -go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4 +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5 ``` ## Authorization diff --git a/sdk/resourcemanager/appservice/armappservice/autorest.md b/sdk/resourcemanager/appservice/armappservice/autorest.md index e20a3b4b562c..b698caadf418 100644 --- a/sdk/resourcemanager/appservice/armappservice/autorest.md +++ b/sdk/resourcemanager/appservice/armappservice/autorest.md @@ -5,9 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/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: 4.1.0 -tag: package-2024-04 +module-version: 5.0.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 16196110f033..5c3b00018d68 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -72,7 +69,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *CertificateOrdersClient) createOrUpdate(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrder, options *CertificateOrdersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "CertificateOrdersClient.BeginCreateOrUpdate" @@ -95,7 +92,7 @@ func (client *CertificateOrdersClient) createOrUpdate(ctx context.Context, resou } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *CertificateOrdersClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrder, options *CertificateOrdersClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrder, _ *CertificateOrdersClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -114,7 +111,7 @@ func (client *CertificateOrdersClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateDistinguishedName); err != nil { @@ -126,7 +123,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - name - Name of the certificate. @@ -153,7 +150,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *CertificateOrdersClient) createOrUpdateCertificate(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificateResource, options *CertificateOrdersClientBeginCreateOrUpdateCertificateOptions) (*http.Response, error) { var err error const operationName = "CertificateOrdersClient.BeginCreateOrUpdateCertificate" @@ -176,7 +173,7 @@ func (client *CertificateOrdersClient) createOrUpdateCertificate(ctx context.Con } // createOrUpdateCertificateCreateRequest creates the CreateOrUpdateCertificate request. -func (client *CertificateOrdersClient) createOrUpdateCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificateResource, options *CertificateOrdersClientBeginCreateOrUpdateCertificateOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) createOrUpdateCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificateResource, _ *CertificateOrdersClientBeginCreateOrUpdateCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -199,7 +196,7 @@ func (client *CertificateOrdersClient) createOrUpdateCertificateCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, keyVaultCertificate); err != nil { @@ -211,7 +208,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -238,7 +235,7 @@ func (client *CertificateOrdersClient) Delete(ctx context.Context, resourceGroup } // deleteCreateRequest creates the Delete request. -func (client *CertificateOrdersClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientDeleteOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, _ *CertificateOrdersClientDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -257,7 +254,7 @@ func (client *CertificateOrdersClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -266,7 +263,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - name - Name of the certificate. @@ -294,7 +291,7 @@ func (client *CertificateOrdersClient) DeleteCertificate(ctx context.Context, re } // deleteCertificateCreateRequest creates the DeleteCertificate request. -func (client *CertificateOrdersClient) deleteCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, options *CertificateOrdersClientDeleteCertificateOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) deleteCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, _ *CertificateOrdersClientDeleteCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -317,7 +314,7 @@ func (client *CertificateOrdersClient) deleteCertificateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -326,7 +323,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -353,7 +350,7 @@ func (client *CertificateOrdersClient) Get(ctx context.Context, resourceGroupNam } // getCreateRequest creates the Get request. -func (client *CertificateOrdersClient) getCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientGetOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) getCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, _ *CertificateOrdersClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -372,7 +369,7 @@ func (client *CertificateOrdersClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -390,7 +387,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - name - Name of the certificate. @@ -419,7 +416,7 @@ func (client *CertificateOrdersClient) GetCertificate(ctx context.Context, resou } // getCertificateCreateRequest creates the GetCertificate request. -func (client *CertificateOrdersClient) getCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, options *CertificateOrdersClientGetCertificateOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) getCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, _ *CertificateOrdersClientGetCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -442,7 +439,7 @@ func (client *CertificateOrdersClient) getCertificateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -459,7 +456,7 @@ func (client *CertificateOrdersClient) getCertificateHandleResponse(resp *http.R // NewListPager - Description for List all certificate orders in a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - CertificateOrdersClientListOptions contains the optional parameters for the CertificateOrdersClient.NewListPager // method. func (client *CertificateOrdersClient) NewListPager(options *CertificateOrdersClientListOptions) *runtime.Pager[CertificateOrdersClientListResponse] { @@ -486,7 +483,7 @@ func (client *CertificateOrdersClient) NewListPager(options *CertificateOrdersCl } // listCreateRequest creates the List request. -func (client *CertificateOrdersClient) listCreateRequest(ctx context.Context, options *CertificateOrdersClientListOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) listCreateRequest(ctx context.Context, _ *CertificateOrdersClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -497,7 +494,7 @@ func (client *CertificateOrdersClient) listCreateRequest(ctx context.Context, op return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -514,7 +511,7 @@ func (client *CertificateOrdersClient) listHandleResponse(resp *http.Response) ( // NewListByResourceGroupPager - Description for Get certificate orders in a resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - CertificateOrdersClientListByResourceGroupOptions contains the optional parameters for the CertificateOrdersClient.NewListByResourceGroupPager // method. @@ -542,7 +539,7 @@ func (client *CertificateOrdersClient) NewListByResourceGroupPager(resourceGroup } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *CertificateOrdersClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *CertificateOrdersClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *CertificateOrdersClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -557,7 +554,7 @@ func (client *CertificateOrdersClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -574,7 +571,7 @@ func (client *CertificateOrdersClient) listByResourceGroupHandleResponse(resp *h // NewListCertificatesPager - Description for List all certificates associated with a certificate order. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -603,7 +600,7 @@ func (client *CertificateOrdersClient) NewListCertificatesPager(resourceGroupNam } // listCertificatesCreateRequest creates the ListCertificates request. -func (client *CertificateOrdersClient) listCertificatesCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientListCertificatesOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) listCertificatesCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, _ *CertificateOrdersClientListCertificatesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -622,7 +619,7 @@ func (client *CertificateOrdersClient) listCertificatesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -640,7 +637,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - reissueCertificateOrderRequest - Parameters for the reissue. @@ -668,7 +665,7 @@ func (client *CertificateOrdersClient) Reissue(ctx context.Context, resourceGrou } // reissueCreateRequest creates the Reissue request. -func (client *CertificateOrdersClient) reissueCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, reissueCertificateOrderRequest ReissueCertificateOrderRequest, options *CertificateOrdersClientReissueOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) reissueCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, reissueCertificateOrderRequest ReissueCertificateOrderRequest, _ *CertificateOrdersClientReissueOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -687,7 +684,7 @@ func (client *CertificateOrdersClient) reissueCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, reissueCertificateOrderRequest); err != nil { @@ -699,7 +696,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - renewCertificateOrderRequest - Renew parameters @@ -726,7 +723,7 @@ func (client *CertificateOrdersClient) Renew(ctx context.Context, resourceGroupN } // renewCreateRequest creates the Renew request. -func (client *CertificateOrdersClient) renewCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, renewCertificateOrderRequest RenewCertificateOrderRequest, options *CertificateOrdersClientRenewOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) renewCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, renewCertificateOrderRequest RenewCertificateOrderRequest, _ *CertificateOrdersClientRenewOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -745,7 +742,7 @@ func (client *CertificateOrdersClient) renewCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, renewCertificateOrderRequest); err != nil { @@ -757,7 +754,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -784,7 +781,7 @@ func (client *CertificateOrdersClient) ResendEmail(ctx context.Context, resource } // resendEmailCreateRequest creates the ResendEmail request. -func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientResendEmailOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, _ *CertificateOrdersClientResendEmailOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -803,7 +800,7 @@ func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -813,7 +810,7 @@ func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Cont // certificate order // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - nameIdentifier - Email address @@ -841,7 +838,7 @@ func (client *CertificateOrdersClient) ResendRequestEmails(ctx context.Context, } // resendRequestEmailsCreateRequest creates the ResendRequestEmails request. -func (client *CertificateOrdersClient) resendRequestEmailsCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, nameIdentifier NameIdentifier, options *CertificateOrdersClientResendRequestEmailsOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) resendRequestEmailsCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, nameIdentifier NameIdentifier, _ *CertificateOrdersClientResendRequestEmailsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -860,7 +857,7 @@ func (client *CertificateOrdersClient) resendRequestEmailsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, nameIdentifier); err != nil { @@ -872,7 +869,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -900,7 +897,7 @@ func (client *CertificateOrdersClient) RetrieveCertificateActions(ctx context.Co } // retrieveCertificateActionsCreateRequest creates the RetrieveCertificateActions request. -func (client *CertificateOrdersClient) retrieveCertificateActionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *CertificateOrdersClientRetrieveCertificateActionsOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) retrieveCertificateActionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *CertificateOrdersClientRetrieveCertificateActionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -919,7 +916,7 @@ func (client *CertificateOrdersClient) retrieveCertificateActionsCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -937,7 +934,7 @@ func (client *CertificateOrdersClient) retrieveCertificateActionsHandleResponse( // RetrieveCertificateEmailHistory - Description for Retrieve email history. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -965,7 +962,7 @@ func (client *CertificateOrdersClient) RetrieveCertificateEmailHistory(ctx conte } // retrieveCertificateEmailHistoryCreateRequest creates the RetrieveCertificateEmailHistory request. -func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryCreateRequest(ctx context.Context, resourceGroupName string, name string, options *CertificateOrdersClientRetrieveCertificateEmailHistoryOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *CertificateOrdersClientRetrieveCertificateEmailHistoryOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -984,7 +981,7 @@ func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1008,7 +1005,7 @@ func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryHandleResp // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - siteSealRequest - Site seal request. @@ -1037,7 +1034,7 @@ func (client *CertificateOrdersClient) RetrieveSiteSeal(ctx context.Context, res } // retrieveSiteSealCreateRequest creates the RetrieveSiteSeal request. -func (client *CertificateOrdersClient) retrieveSiteSealCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, siteSealRequest SiteSealRequest, options *CertificateOrdersClientRetrieveSiteSealOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) retrieveSiteSealCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, siteSealRequest SiteSealRequest, _ *CertificateOrdersClientRetrieveSiteSealOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1056,7 +1053,7 @@ func (client *CertificateOrdersClient) retrieveSiteSealCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSealRequest); err != nil { @@ -1077,7 +1074,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1106,7 +1103,7 @@ func (client *CertificateOrdersClient) Update(ctx context.Context, resourceGroup } // updateCreateRequest creates the Update request. -func (client *CertificateOrdersClient) updateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrderPatchResource, options *CertificateOrdersClientUpdateOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) updateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, certificateDistinguishedName CertificateOrderPatchResource, _ *CertificateOrdersClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1125,7 +1122,7 @@ func (client *CertificateOrdersClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateDistinguishedName); err != nil { @@ -1146,7 +1143,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - certificateOrderName - Name of the certificate order. // - name - Name of the certificate. @@ -1176,7 +1173,7 @@ func (client *CertificateOrdersClient) UpdateCertificate(ctx context.Context, re } // updateCertificateCreateRequest creates the UpdateCertificate request. -func (client *CertificateOrdersClient) updateCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificatePatchResource, options *CertificateOrdersClientUpdateCertificateOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) updateCertificateCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate CertificatePatchResource, _ *CertificateOrdersClientUpdateCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1199,7 +1196,7 @@ func (client *CertificateOrdersClient) updateCertificateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, keyVaultCertificate); err != nil { @@ -1220,7 +1217,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - appServiceCertificateOrder - Information for a certificate order. // - options - CertificateOrdersClientValidatePurchaseInformationOptions contains the optional parameters for the CertificateOrdersClient.ValidatePurchaseInformation // method. @@ -1246,7 +1243,7 @@ func (client *CertificateOrdersClient) ValidatePurchaseInformation(ctx context.C } // validatePurchaseInformationCreateRequest creates the ValidatePurchaseInformation request. -func (client *CertificateOrdersClient) validatePurchaseInformationCreateRequest(ctx context.Context, appServiceCertificateOrder CertificateOrder, options *CertificateOrdersClientValidatePurchaseInformationOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) validatePurchaseInformationCreateRequest(ctx context.Context, appServiceCertificateOrder CertificateOrder, _ *CertificateOrdersClientValidatePurchaseInformationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -1257,7 +1254,7 @@ func (client *CertificateOrdersClient) validatePurchaseInformationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appServiceCertificateOrder); err != nil { @@ -1269,7 +1266,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -1296,7 +1293,7 @@ func (client *CertificateOrdersClient) VerifyDomainOwnership(ctx context.Context } // verifyDomainOwnershipCreateRequest creates the VerifyDomainOwnership request. -func (client *CertificateOrdersClient) verifyDomainOwnershipCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersClientVerifyDomainOwnershipOptions) (*policy.Request, error) { +func (client *CertificateOrdersClient) verifyDomainOwnershipCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, _ *CertificateOrdersClientVerifyDomainOwnershipOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1315,7 +1312,7 @@ func (client *CertificateOrdersClient) verifyDomainOwnershipCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go deleted file mode 100644 index 63788014360e..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go +++ /dev/null @@ -1,952 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateOrderCollection = armappservice.CertificateOrderCollection{ - // Value: []*armappservice.CertificateOrder{ - // { - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateOrderCollection = armappservice.CertificateOrderCollection{ - // Value: []*armappservice.CertificateOrder{ - // { - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](123249), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().Get(ctx, "testrg123", "SampleCertificateOrderName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrder = armappservice.CertificateOrder{ - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewCertificateOrdersClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrder = armappservice.CertificateOrder{ - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrder = armappservice.CertificateOrder{ - // Name: to.Ptr("SampleCertificateOrderName"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName"), - // Location: to.Ptr("Global"), - // Properties: &armappservice.CertificateOrderProperties{ - // AppServiceCertificateNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // AutoRenew: to.Ptr(true), - // Certificates: map[string]*armappservice.Certificate{ - // "SampleCertName1": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName1"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // "SampleCertName2": &armappservice.Certificate{ - // KeyVaultID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"), - // KeyVaultSecretName: to.Ptr("SampleSecretName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // Contact: &armappservice.CertificateOrderContact{ - // Email: to.Ptr("contact@email.com"), - // NameFirst: to.Ptr("SampleFirstName"), - // NameLast: to.Ptr("SampleLastName"), - // Phone: to.Ptr("1-224-550-332"), - // }, - // Csr: to.Ptr("xdf!x|"), - // DistinguishedName: to.Ptr("CN=SampleCustomDomain.com"), - // DomainVerificationToken: to.Ptr("awe4163Br6d32r"), - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // Intermediate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("k45kad0024"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=IntermediateCertSubjectName"), - // Thumbprint: to.Ptr("RF3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](5589220), - // }, - // IsPrivateKeyExternal: to.Ptr(false), - // KeySize: to.Ptr[int32](2048), - // LastCertificateIssuanceTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // NextAutoRenewalTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // ProductType: to.Ptr(armappservice.CertificateProductTypeStandardDomainValidatedSSL), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Root: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("jkskd890ajdd00124"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=RootCertSubjectName"), - // Thumbprint: to.Ptr("ZD3D7411A44163B6D32B3343559B03E175886EBFE"), - // Version: to.Ptr[int32](3430921), - // }, - // SerialNumber: to.Ptr("12324325325"), - // SignedCertificate: &armappservice.CertificateDetails{ - // Issuer: to.Ptr("CACert"), - // NotAfter: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // NotBefore: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // SerialNumber: to.Ptr("sds12424k"), - // SignatureAlgorithm: to.Ptr("SHA"), - // Subject: to.Ptr("CN=CertSubjectName"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // Version: to.Ptr[int32](1232490), - // }, - // Status: to.Ptr(armappservice.CertificateOrderStatusIssued), - // ValidityInYears: to.Ptr[int32](2), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersClient().NewListCertificatesPager("testrg123", "SampleCertificateOrderName", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CertificateCollection = armappservice.CertificateCollection{ - // Value: []*armappservice.CertificateResource{ - // { - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // 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"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }, - // { - // Name: to.Ptr("SampleCertName2"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName2"), - // 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("SampleCertName2"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().GetCertificate(ctx, "testrg123", "SampleCertificateOrderName", "SampleCertName1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateResource = armappservice.CertificateResource{ - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // 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"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewCertificateOrdersClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateResource = armappservice.CertificateResource{ - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // 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"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateResource = armappservice.CertificateResource{ - // Name: to.Ptr("SampleCertName1"), - // Type: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/certificates/SampleCertName1"), - // 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"), - // ProvisioningState: to.Ptr(armappservice.KeyVaultSecretStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteSeal = armappservice.SiteSeal{ - // HTML: to.Ptr("SiteSeal"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificateOrdersClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().RetrieveCertificateActions(ctx, "testrg123", "SampleCertOrder", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateOrderActionArray = []*armappservice.CertificateOrderAction{ - // { - // ActionType: to.Ptr(armappservice.CertificateOrderActionTypeFraudDetected), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // }, - // { - // ActionType: to.Ptr(armappservice.CertificateOrderActionTypeCertificateRevoked), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // }, - // { - // ActionType: to.Ptr(armappservice.CertificateOrderActionTypeCertificateIssued), - // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersClient().RetrieveCertificateEmailHistory(ctx, "testrg123", "SampleCertOrder", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CertificateEmailArray = []*armappservice.CertificateEmail{ - // { - // EmailID: to.Ptr("customer@email.com"), - // TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-12T23:40:25.000Z"); return t}()), - // }, - // { - // EmailID: to.Ptr("customer@email.com"), - // TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-11-12T23:40:25.000Z"); return t}()), - // }} -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go index 99a9e84e54cf..3e7be75c602f 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -48,7 +45,7 @@ func NewCertificateOrdersDiagnosticsClient(subscriptionID string, credential azc // response from App Lens. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -100,7 +97,7 @@ func (client *CertificateOrdersDiagnosticsClient) getAppServiceCertificateOrderD return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -127,7 +124,7 @@ func (client *CertificateOrdersDiagnosticsClient) getAppServiceCertificateOrderD // NewListAppServiceCertificateOrderDetectorResponsePager - Description for Microsoft.CertificateRegistration to get the list // of detectors for this RP. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -156,7 +153,7 @@ func (client *CertificateOrdersDiagnosticsClient) NewListAppServiceCertificateOr } // listAppServiceCertificateOrderDetectorResponseCreateRequest creates the ListAppServiceCertificateOrderDetectorResponse request. -func (client *CertificateOrdersDiagnosticsClient) listAppServiceCertificateOrderDetectorResponseCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, options *CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions) (*policy.Request, error) { +func (client *CertificateOrdersDiagnosticsClient) listAppServiceCertificateOrderDetectorResponseCreateRequest(ctx context.Context, resourceGroupName string, certificateOrderName string, _ *CertificateOrdersDiagnosticsClientListAppServiceCertificateOrderDetectorResponseOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -175,7 +172,7 @@ func (client *CertificateOrdersDiagnosticsClient) listAppServiceCertificateOrder return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 e2e7a85db934..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go +++ /dev/null @@ -1,150 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateOrdersDiagnosticsClient().NewListAppServiceCertificateOrderDetectorResponsePager("Sample-WestUSResourceGroup", "SampleCertificateOrderName", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("CertsImport"), - // Type: to.Ptr("Microsoft.Web/certificateOrders/detectors"), - // ID: to.Ptr("/subscriptions/5700fc96-77b4-4f8d-afce-c353d8c443bd/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/detectors/CertsImport"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Name: to.Ptr("Certificates Import/Upload"), - // Author: to.Ptr(""), - // ID: to.Ptr("CertsImport"), - // }, - // Status: &armappservice.Status{ - // StatusID: to.Ptr(armappservice.InsightStatusNone), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificateOrdersDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("AutoRenewStatus"), - // ID: to.Ptr("/subscriptions/5700fc96-77b4-4f8d-afce-c353d8c443bd/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/detectors/AutoRenewStatus"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Type: to.Ptr(armappservice.RenderingTypeInsights), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("Status"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Message"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Data.Name"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Data.Value"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Expanded"), - // DataType: to.Ptr("String"), - // }, - // { - // ColumnName: to.Ptr("Solutions"), - // DataType: to.Ptr("String"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("Info"), - // to.Ptr("App Service Certificate name SampleCertificateOrderName"), - // to.Ptr("Certificate for"), - // to.Ptr("*.mysampledomain.com"), - // to.Ptr("False"), - // to.Ptr("null")}, - // []*string{ - // to.Ptr("Info"), - // to.Ptr("App Service Certificate name SampleCertificateOrderName"), - // to.Ptr("Certificate Status"), - // to.Ptr("Issued"), - // to.Ptr("False"), - // to.Ptr("null")}}, - // TableName: to.Ptr(""), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Name: to.Ptr("AutoRenewStatus"), - // Type: to.Ptr(armappservice.DetectorTypeDetector), - // Description: to.Ptr("Check auto renew status"), - // ID: to.Ptr("AutoRenewStatus"), - // Score: to.Ptr[float32](0), - // SupportTopicList: []*armappservice.SupportTopic{ - // }, - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go index c647ce2d92c9..377f460fca4b 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -40,7 +37,7 @@ func NewCertificateRegistrationProviderClient(credential azcore.TokenCredential, // NewListOperationsPager - Description for Implements Csm operations Api to exposes the list of available Csm Apis under // the resource provider // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - CertificateRegistrationProviderClientListOperationsOptions contains the optional parameters for the CertificateRegistrationProviderClient.NewListOperationsPager // method. func (client *CertificateRegistrationProviderClient) NewListOperationsPager(options *CertificateRegistrationProviderClientListOperationsOptions) *runtime.Pager[CertificateRegistrationProviderClientListOperationsResponse] { @@ -67,14 +64,14 @@ func (client *CertificateRegistrationProviderClient) NewListOperationsPager(opti } // listOperationsCreateRequest creates the ListOperations request. -func (client *CertificateRegistrationProviderClient) listOperationsCreateRequest(ctx context.Context, options *CertificateRegistrationProviderClientListOperationsOptions) (*policy.Request, error) { +func (client *CertificateRegistrationProviderClient) listOperationsCreateRequest(ctx context.Context, _ *CertificateRegistrationProviderClientListOperationsOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.CertificateRegistration/operations" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 f4101f3b6267..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go +++ /dev/null @@ -1,216 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificateRegistrationProviderClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmOperationCollection = armappservice.CsmOperationCollection{ - // Value: []*armappservice.CsmOperationDescription{ - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new certificate or update an existing one"), - // Operation: to.Ptr("Add or Update Certificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new certificateOrder or update an existing one"), - // Operation: to.Ptr("Add or Update AppServiceCertificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing certificate"), - // Operation: to.Ptr("Delete Certificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing AppServiceCertificate"), - // Operation: to.Ptr("Delete AppServiceCertificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of CertificateOrders"), - // Operation: to.Ptr("Get CertificateOrders"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/certificates/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of certificates"), - // Operation: to.Ptr("Get Certificates"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/reissue/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reissue an existing certificateorder"), - // Operation: to.Ptr("Reissue certificateorder"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/renew/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Renew an existing certificateorder"), - // Operation: to.Ptr("Renew certificateorder"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/retrieveCertificateActions/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve the list of certificate actions"), - // Operation: to.Ptr("Certificateorder actions"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/retrieveEmailHistory/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve certificate email history"), - // Operation: to.Ptr("Certificateorder email history"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/resendEmail/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Resend certificate email"), - // Operation: to.Ptr("Resend Certificateorder email"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/verifyDomainOwnership/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Verify domain ownership"), - // Operation: to.Ptr("Verify domain ownership"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/resendRequestEmails/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Resend request emails to another email address"), - // Operation: to.Ptr("Resend request emails to another email address"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/certificateOrders/resendRequestEmails/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve site seal for an issued App Service Certificate"), - // Operation: to.Ptr("Retrieve site seal for an issued App Service Certificate"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/provisionGlobalAppServicePrincipalInUserTenant/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Provision service principal for service app principal"), - // Operation: to.Ptr("Provision service principal"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/validateCertificateRegistrationInformation/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Validate certificate purchase object without submitting it"), - // Operation: to.Ptr("Certificate Purchase Info Validation"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("AppServiceCertificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.CertificateRegistration/register/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Register the Microsoft Certificates resource provider for the subscription"), - // Operation: to.Ptr("Register Microsoft Certificates resource provider"), - // Provider: to.Ptr("Microsoft Certificates"), - // Resource: to.Ptr("Microsoft Certificates resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/certificates_client.go b/sdk/resourcemanager/appservice/armappservice/certificates_client.go index 496c01c9ec8b..20b31f52be79 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificates_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -75,7 +72,7 @@ func (client *CertificatesClient) CreateOrUpdate(ctx context.Context, resourceGr } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateEnvelope AppCertificate, options *CertificatesClientCreateOrUpdateOptions) (*policy.Request, error) { +func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateEnvelope AppCertificate, _ *CertificatesClientCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -94,7 +91,7 @@ func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { @@ -115,7 +112,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -141,7 +138,7 @@ func (client *CertificatesClient) Delete(ctx context.Context, resourceGroupName } // deleteCreateRequest creates the Delete request. -func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *CertificatesClientDeleteOptions) (*policy.Request, error) { +func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *CertificatesClientDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -160,7 +157,7 @@ func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -169,7 +166,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -196,7 +193,7 @@ func (client *CertificatesClient) Get(ctx context.Context, resourceGroupName str } // getCreateRequest creates the Get request. -func (client *CertificatesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *CertificatesClientGetOptions) (*policy.Request, error) { +func (client *CertificatesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *CertificatesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -215,7 +212,7 @@ func (client *CertificatesClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -232,7 +229,7 @@ func (client *CertificatesClient) getHandleResponse(resp *http.Response) (Certif // NewListPager - Description for Get all certificates for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -269,7 +266,7 @@ func (client *CertificatesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -291,7 +288,7 @@ func (client *CertificatesClient) listHandleResponse(resp *http.Response) (Certi // NewListByResourceGroupPager - Description for Get all certificates in a resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - CertificatesClientListByResourceGroupOptions contains the optional parameters for the CertificatesClient.NewListByResourceGroupPager // method. @@ -319,7 +316,7 @@ func (client *CertificatesClient) NewListByResourceGroupPager(resourceGroupName } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *CertificatesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *CertificatesClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *CertificatesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *CertificatesClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -334,7 +331,7 @@ func (client *CertificatesClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -352,7 +349,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -380,7 +377,7 @@ func (client *CertificatesClient) Update(ctx context.Context, resourceGroupName } // updateCreateRequest creates the Update request. -func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateEnvelope AppCertificatePatchResource, options *CertificatesClientUpdateOptions) (*policy.Request, error) { +func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateEnvelope AppCertificatePatchResource, _ *CertificatesClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -399,7 +396,7 @@ func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { 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 46b33f736121..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go +++ /dev/null @@ -1,275 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificatesClient().NewListPager(&armappservice.CertificatesClientListOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AppCertificateCollection = armappservice.AppCertificateCollection{ - // Value: []*armappservice.AppCertificate{ - // { - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // }, - // { - // Name: to.Ptr("testc4912"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc4912"), - // Location: to.Ptr("West US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2040-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert2")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-12-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert2"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B0490D5886EBFE"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewCertificatesClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AppCertificateCollection = armappservice.AppCertificateCollection{ - // Value: []*armappservice.AppCertificate{ - // { - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // }, - // { - // Name: to.Ptr("testc4912"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc4912"), - // Location: to.Ptr("West US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2040-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert2")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-12-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert2"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B0490D5886EBFE"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificatesClient().Get(ctx, "testrg123", "testc6282", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AppCertificate = armappservice.AppCertificate{ - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificatesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AppCertificate = armappservice.AppCertificate{ - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewCertificatesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewCertificatesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AppCertificate = armappservice.AppCertificate{ - // Name: to.Ptr("testc6282"), - // Type: to.Ptr("Microsoft.Web/certificates"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.AppCertificateProperties{ - // ExpirationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2039-12-31T23:59:59.000Z"); return t}()), - // FriendlyName: to.Ptr(""), - // HostNames: []*string{ - // to.Ptr("ServerCert")}, - // IssueDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-11-12T23:40:25.000Z"); return t}()), - // Issuer: to.Ptr("CACert"), - // SubjectName: to.Ptr("ServerCert"), - // Thumbprint: to.Ptr("FE703D7411A44163B6D32B3AD9B03E175886EBFE"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/client_factory.go b/sdk/resourcemanager/appservice/armappservice/client_factory.go index 54d49f7c350b..6dea36b64b64 100644 --- a/sdk/resourcemanager/appservice/armappservice/client_factory.go +++ b/sdk/resourcemanager/appservice/armappservice/client_factory.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -67,22 +64,6 @@ func (c *ClientFactory) NewCertificatesClient() *CertificatesClient { } } -// NewContainerAppsClient creates a new instance of ContainerAppsClient. -func (c *ClientFactory) NewContainerAppsClient() *ContainerAppsClient { - return &ContainerAppsClient{ - subscriptionID: c.subscriptionID, - internal: c.internal, - } -} - -// NewContainerAppsRevisionsClient creates a new instance of ContainerAppsRevisionsClient. -func (c *ClientFactory) NewContainerAppsRevisionsClient() *ContainerAppsRevisionsClient { - return &ContainerAppsRevisionsClient{ - subscriptionID: c.subscriptionID, - internal: c.internal, - } -} - // NewDeletedWebAppsClient creates a new instance of DeletedWebAppsClient. func (c *ClientFactory) NewDeletedWebAppsClient() *DeletedWebAppsClient { return &DeletedWebAppsClient{ @@ -178,6 +159,14 @@ func (c *ClientFactory) NewResourceHealthMetadataClient() *ResourceHealthMetadat } } +// NewSiteCertificatesClient creates a new instance of SiteCertificatesClient. +func (c *ClientFactory) NewSiteCertificatesClient() *SiteCertificatesClient { + return &SiteCertificatesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + // NewStaticSitesClient creates a new instance of StaticSitesClient. func (c *ClientFactory) NewStaticSitesClient() *StaticSitesClient { return &StaticSitesClient{ diff --git a/sdk/resourcemanager/appservice/armappservice/constants.go b/sdk/resourcemanager/appservice/armappservice/constants.go index 91e6b485815f..7ed8783102bd 100644 --- a/sdk/resourcemanager/appservice/armappservice/constants.go +++ b/sdk/resourcemanager/appservice/armappservice/constants.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -10,27 +7,9 @@ package armappservice const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice" - moduleVersion = "v4.1.0" -) - -// ActiveRevisionsMode - ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple -// revisions can be active. If no value if provided, this is the defaultSingle: Only one revision -// can be active at a time. Revision weights can not be used in this mode -type ActiveRevisionsMode string - -const ( - ActiveRevisionsModeMultiple ActiveRevisionsMode = "multiple" - ActiveRevisionsModeSingle ActiveRevisionsMode = "single" + moduleVersion = "v5.0.0" ) -// PossibleActiveRevisionsModeValues returns the possible values for the ActiveRevisionsMode const type. -func PossibleActiveRevisionsModeValues() []ActiveRevisionsMode { - return []ActiveRevisionsMode{ - ActiveRevisionsModeMultiple, - ActiveRevisionsModeSingle, - } -} - // AppServicePlanRestrictions - App Service plans this offer is restricted to. type AppServicePlanRestrictions string @@ -550,26 +529,6 @@ func PossibleConnectionStringTypeValues() []ConnectionStringType { } } -// ContainerAppProvisioningState - Provisioning state of the Container App. -type ContainerAppProvisioningState string - -const ( - ContainerAppProvisioningStateCanceled ContainerAppProvisioningState = "Canceled" - ContainerAppProvisioningStateFailed ContainerAppProvisioningState = "Failed" - ContainerAppProvisioningStateInProgress ContainerAppProvisioningState = "InProgress" - ContainerAppProvisioningStateSucceeded ContainerAppProvisioningState = "Succeeded" -) - -// PossibleContainerAppProvisioningStateValues returns the possible values for the ContainerAppProvisioningState const type. -func PossibleContainerAppProvisioningStateValues() []ContainerAppProvisioningState { - return []ContainerAppProvisioningState{ - ContainerAppProvisioningStateCanceled, - ContainerAppProvisioningStateFailed, - ContainerAppProvisioningStateInProgress, - ContainerAppProvisioningStateSucceeded, - } -} - // ContinuousWebJobStatus - Job status. type ContinuousWebJobStatus string @@ -1144,24 +1103,6 @@ func PossibleInAvailabilityReasonTypeValues() []InAvailabilityReasonType { } } -// IngressTransportMethod - Ingress transport protocol -type IngressTransportMethod string - -const ( - IngressTransportMethodAuto IngressTransportMethod = "auto" - IngressTransportMethodHTTP IngressTransportMethod = "http" - IngressTransportMethodHTTP2 IngressTransportMethod = "http2" -) - -// PossibleIngressTransportMethodValues returns the possible values for the IngressTransportMethod const type. -func PossibleIngressTransportMethodValues() []IngressTransportMethod { - return []IngressTransportMethod{ - IngressTransportMethodAuto, - IngressTransportMethodHTTP, - IngressTransportMethodHTTP2, - } -} - // InsightStatus - Level of the most severe insight generated by the detector. type InsightStatus string @@ -1808,46 +1749,6 @@ func PossibleResourceScopeTypeValues() []ResourceScopeType { } } -// RevisionHealthState - Current health State of the revision -type RevisionHealthState string - -const ( - RevisionHealthStateHealthy RevisionHealthState = "Healthy" - RevisionHealthStateNone RevisionHealthState = "None" - RevisionHealthStateUnhealthy RevisionHealthState = "Unhealthy" -) - -// PossibleRevisionHealthStateValues returns the possible values for the RevisionHealthState const type. -func PossibleRevisionHealthStateValues() []RevisionHealthState { - return []RevisionHealthState{ - RevisionHealthStateHealthy, - RevisionHealthStateNone, - RevisionHealthStateUnhealthy, - } -} - -// RevisionProvisioningState - Current provisioning State of the revision -type RevisionProvisioningState string - -const ( - RevisionProvisioningStateDeprovisioned RevisionProvisioningState = "Deprovisioned" - RevisionProvisioningStateDeprovisioning RevisionProvisioningState = "Deprovisioning" - RevisionProvisioningStateFailed RevisionProvisioningState = "Failed" - RevisionProvisioningStateProvisioned RevisionProvisioningState = "Provisioned" - RevisionProvisioningStateProvisioning RevisionProvisioningState = "Provisioning" -) - -// PossibleRevisionProvisioningStateValues returns the possible values for the RevisionProvisioningState const type. -func PossibleRevisionProvisioningStateValues() []RevisionProvisioningState { - return []RevisionProvisioningState{ - RevisionProvisioningStateDeprovisioned, - RevisionProvisioningStateDeprovisioning, - RevisionProvisioningStateFailed, - RevisionProvisioningStateProvisioned, - RevisionProvisioningStateProvisioning, - } -} - // RouteType - The type of route this is: DEFAULT - By default, every app has routes to the local address ranges specified // by RFC1918 INHERITED - Routes inherited from the real Virtual Network routes STATIC - Static // route set on the app only diff --git a/sdk/resourcemanager/appservice/armappservice/containerapps_client.go b/sdk/resourcemanager/appservice/armappservice/containerapps_client.go deleted file mode 100644 index f2f497c7af89..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerapps_client.go +++ /dev/null @@ -1,438 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// ContainerAppsClient contains the methods for the ContainerApps group. -// Don't use this type directly, use NewContainerAppsClient() instead. -type ContainerAppsClient struct { - internal *arm.Client - subscriptionID string -} - -// 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. -func NewContainerAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsClient, error) { - cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) - if err != nil { - return nil, err - } - client := &ContainerAppsClient{ - subscriptionID: subscriptionID, - internal: cl, - } - return client, nil -} - -// BeginCreateOrUpdate - Description for Create or update a Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) - if err != nil { - return nil, err - } - poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientCreateOrUpdateResponse]{ - Tracer: client.internal.Tracer(), - }) - return poller, err - } else { - return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientCreateOrUpdateResponse]{ - Tracer: client.internal.Tracer(), - }) - } -} - -// CreateOrUpdate - Description for Create or update a Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-01 -func (client *ContainerAppsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*http.Response, error) { - var err error - const operationName = "ContainerAppsClient.BeginCreateOrUpdate" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, containerAppEnvelope, options) - if err != nil { - return nil, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { - err = runtime.NewResponseError(httpResp) - return nil, err - } - return httpResp, nil -} - -// createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *ContainerAppsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope ContainerApp, options *ContainerAppsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}" - 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.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - if err := runtime.MarshalAsJSON(req, containerAppEnvelope); err != nil { - return nil, err - } - return req, nil -} - -// BeginDelete - Description for Delete a Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) - if err != nil { - return nil, err - } - poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ContainerAppsClientDeleteResponse]{ - Tracer: client.internal.Tracer(), - }) - return poller, err - } else { - return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ContainerAppsClientDeleteResponse]{ - Tracer: client.internal.Tracer(), - }) - } -} - -// Delete - Description for Delete a Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-01 -func (client *ContainerAppsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientBeginDeleteOptions) (*http.Response, error) { - var err error - const operationName = "ContainerAppsClient.BeginDelete" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, options) - if err != nil { - return nil, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - err = runtime.NewResponseError(httpResp) - return nil, err - } - return httpResp, nil -} - -// deleteCreateRequest creates the Delete request. -func (client *ContainerAppsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientBeginDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}" - 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.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// Get - Get the properties of a Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) { - var err error - const operationName = "ContainerAppsClient.Get" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.getCreateRequest(ctx, resourceGroupName, name, options) - if err != nil { - return ContainerAppsClientGetResponse{}, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return ContainerAppsClientGetResponse{}, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { - err = runtime.NewResponseError(httpResp) - return ContainerAppsClientGetResponse{}, err - } - resp, err := client.getHandleResponse(httpResp) - return resp, err -} - -// getCreateRequest creates the Get request. -func (client *ContainerAppsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{name}" - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *ContainerAppsClient) getHandleResponse(resp *http.Response) (ContainerAppsClientGetResponse, error) { - result := ContainerAppsClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ContainerApp); err != nil { - return ContainerAppsClientGetResponse{}, err - } - return result, nil -} - -// NewListByResourceGroupPager - Get the Container Apps in a given resource group. -// -// Generated from API version 2024-04-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 { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *ContainerAppsClientListByResourceGroupResponse) (ContainerAppsClientListByResourceGroupResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsClient.NewListByResourceGroupPager") - nextLink := "" - if page != nil { - nextLink = *page.NextLink - } - resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { - return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - }, nil) - if err != nil { - return ContainerAppsClientListByResourceGroupResponse{}, err - } - return client.listByResourceGroupHandleResponse(resp) - }, - Tracer: client.internal.Tracer(), - }) -} - -// listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *ContainerAppsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ContainerAppsClientListByResourceGroupOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps" - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listByResourceGroupHandleResponse handles the ListByResourceGroup response. -func (client *ContainerAppsClient) listByResourceGroupHandleResponse(resp *http.Response) (ContainerAppsClientListByResourceGroupResponse, error) { - result := ContainerAppsClientListByResourceGroupResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ContainerAppCollection); err != nil { - return ContainerAppsClientListByResourceGroupResponse{}, err - } - return result, nil -} - -// NewListBySubscriptionPager - Get the Container Apps in a given subscription. -// -// Generated from API version 2024-04-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 { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *ContainerAppsClientListBySubscriptionResponse) (ContainerAppsClientListBySubscriptionResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsClient.NewListBySubscriptionPager") - nextLink := "" - if page != nil { - nextLink = *page.NextLink - } - resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { - return client.listBySubscriptionCreateRequest(ctx, options) - }, nil) - if err != nil { - return ContainerAppsClientListBySubscriptionResponse{}, err - } - return client.listBySubscriptionHandleResponse(resp) - }, - Tracer: client.internal.Tracer(), - }) -} - -// listBySubscriptionCreateRequest creates the ListBySubscription request. -func (client *ContainerAppsClient) listBySubscriptionCreateRequest(ctx context.Context, options *ContainerAppsClientListBySubscriptionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps" - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listBySubscriptionHandleResponse handles the ListBySubscription response. -func (client *ContainerAppsClient) listBySubscriptionHandleResponse(resp *http.Response) (ContainerAppsClientListBySubscriptionResponse, error) { - result := ContainerAppsClientListBySubscriptionResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ContainerAppCollection); err != nil { - return ContainerAppsClientListBySubscriptionResponse{}, err - } - return result, nil -} - -// ListSecrets - List secrets for a container app -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) { - var err error - const operationName = "ContainerAppsClient.ListSecrets" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.listSecretsCreateRequest(ctx, name, options) - if err != nil { - return ContainerAppsClientListSecretsResponse{}, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return ContainerAppsClientListSecretsResponse{}, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { - err = runtime.NewResponseError(httpResp) - return ContainerAppsClientListSecretsResponse{}, err - } - resp, err := client.listSecretsHandleResponse(httpResp) - return resp, err -} - -// listSecretsCreateRequest creates the ListSecrets request. -func (client *ContainerAppsClient) listSecretsCreateRequest(ctx context.Context, name string, options *ContainerAppsClientListSecretsOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/containerApps/{name}/listSecrets" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listSecretsHandleResponse handles the ListSecrets response. -func (client *ContainerAppsClient) listSecretsHandleResponse(resp *http.Response) (ContainerAppsClientListSecretsResponse, error) { - result := ContainerAppsClientListSecretsResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.SecretsCollection); err != nil { - return ContainerAppsClientListSecretsResponse{}, err - } - return result, 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 baef049067f8..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go +++ /dev/null @@ -1,400 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewContainerAppsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ContainerAppCollection = armappservice.ContainerAppCollection{ - // Value: []*armappservice.ContainerApp{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // 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"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewContainerAppsClient().NewListByResourceGroupPager("rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ContainerAppCollection = armappservice.ContainerAppCollection{ - // Value: []*armappservice.ContainerApp{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // 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"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewContainerAppsClient().Get(ctx, "rg", "testcontainerApp0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ContainerApp = armappservice.ContainerApp{ - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // 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"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewContainerAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ContainerApp = armappservice.ContainerApp{ - // Name: to.Ptr("testcontainerApp0"), - // Type: to.Ptr("Microsoft.Web/containerApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0"), - // Kind: to.Ptr("containerApp"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.ContainerAppProperties{ - // Configuration: &armappservice.Configuration{ - // Ingress: &armappservice.Ingress{ - // External: to.Ptr(true), - // Fqdn: to.Ptr("testcontainerApp0.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // TargetPort: to.Ptr[int32](3000), - // Transport: to.Ptr(armappservice.IngressTransportMethodAuto), - // }, - // }, - // KubeEnvironmentID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/kubeEnvironments/demokube"), - // LatestRevisionFqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // ProvisioningState: to.Ptr(armappservice.ContainerAppProvisioningStateSucceeded), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v4"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // 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"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewContainerAppsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewContainerAppsClient().ListSecrets(ctx, "testcontainerApp0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SecretsCollection = armappservice.SecretsCollection{ - // Value: []*armappservice.ContainerAppSecret{ - // { - // Name: to.Ptr("secret1"), - // Value: to.Ptr("value1"), - // }, - // { - // Name: to.Ptr("secret2"), - // Value: to.Ptr("value2"), - // }}, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go deleted file mode 100644 index a237dc02ce57..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go +++ /dev/null @@ -1,359 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armappservice - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// ContainerAppsRevisionsClient contains the methods for the ContainerAppsRevisions group. -// Don't use this type directly, use NewContainerAppsRevisionsClient() instead. -type ContainerAppsRevisionsClient struct { - internal *arm.Client - subscriptionID string -} - -// 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. -func NewContainerAppsRevisionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContainerAppsRevisionsClient, error) { - cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) - if err != nil { - return nil, err - } - client := &ContainerAppsRevisionsClient{ - subscriptionID: subscriptionID, - internal: cl, - } - return client, nil -} - -// ActivateRevision - Activates a revision for a Container App -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) { - var err error - const operationName = "ContainerAppsRevisionsClient.ActivateRevision" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.activateRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) - if err != nil { - return ContainerAppsRevisionsClientActivateRevisionResponse{}, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return ContainerAppsRevisionsClientActivateRevisionResponse{}, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { - err = runtime.NewResponseError(httpResp) - return ContainerAppsRevisionsClientActivateRevisionResponse{}, err - } - return ContainerAppsRevisionsClientActivateRevisionResponse{}, nil -} - -// activateRevisionCreateRequest creates the ActivateRevision request. -func (client *ContainerAppsRevisionsClient) activateRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientActivateRevisionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/activate" - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if containerAppName == "" { - return nil, errors.New("parameter containerAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// DeactivateRevision - Deactivates a revision for a Container App -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) { - var err error - const operationName = "ContainerAppsRevisionsClient.DeactivateRevision" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.deactivateRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) - if err != nil { - return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { - err = runtime.NewResponseError(httpResp) - return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, err - } - return ContainerAppsRevisionsClientDeactivateRevisionResponse{}, nil -} - -// deactivateRevisionCreateRequest creates the DeactivateRevision request. -func (client *ContainerAppsRevisionsClient) deactivateRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientDeactivateRevisionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/deactivate" - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if containerAppName == "" { - return nil, errors.New("parameter containerAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// GetRevision - Get a revision of a Container App. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) { - var err error - const operationName = "ContainerAppsRevisionsClient.GetRevision" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.getRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) - if err != nil { - return ContainerAppsRevisionsClientGetRevisionResponse{}, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return ContainerAppsRevisionsClientGetRevisionResponse{}, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { - err = runtime.NewResponseError(httpResp) - return ContainerAppsRevisionsClientGetRevisionResponse{}, err - } - resp, err := client.getRevisionHandleResponse(httpResp) - return resp, err -} - -// getRevisionCreateRequest creates the GetRevision request. -func (client *ContainerAppsRevisionsClient) getRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientGetRevisionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}" - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if containerAppName == "" { - return nil, errors.New("parameter containerAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getRevisionHandleResponse handles the GetRevision response. -func (client *ContainerAppsRevisionsClient) getRevisionHandleResponse(resp *http.Response) (ContainerAppsRevisionsClientGetRevisionResponse, error) { - result := ContainerAppsRevisionsClientGetRevisionResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.Revision); err != nil { - return ContainerAppsRevisionsClientGetRevisionResponse{}, err - } - return result, nil -} - -// NewListRevisionsPager - Get the Revisions for a given Container App. -// -// Generated from API version 2024-04-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 { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *ContainerAppsRevisionsClientListRevisionsResponse) (ContainerAppsRevisionsClientListRevisionsResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ContainerAppsRevisionsClient.NewListRevisionsPager") - nextLink := "" - if page != nil { - nextLink = *page.NextLink - } - resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { - return client.listRevisionsCreateRequest(ctx, resourceGroupName, containerAppName, options) - }, nil) - if err != nil { - return ContainerAppsRevisionsClientListRevisionsResponse{}, err - } - return client.listRevisionsHandleResponse(resp) - }, - Tracer: client.internal.Tracer(), - }) -} - -// listRevisionsCreateRequest creates the ListRevisions request. -func (client *ContainerAppsRevisionsClient) listRevisionsCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, options *ContainerAppsRevisionsClientListRevisionsOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions" - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if containerAppName == "" { - return nil, errors.New("parameter containerAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listRevisionsHandleResponse handles the ListRevisions response. -func (client *ContainerAppsRevisionsClient) listRevisionsHandleResponse(resp *http.Response) (ContainerAppsRevisionsClientListRevisionsResponse, error) { - result := ContainerAppsRevisionsClientListRevisionsResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.RevisionCollection); err != nil { - return ContainerAppsRevisionsClientListRevisionsResponse{}, err - } - return result, nil -} - -// RestartRevision - Restarts a revision for a Container App -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-04-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) { - var err error - const operationName = "ContainerAppsRevisionsClient.RestartRevision" - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) - ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) - defer func() { endSpan(err) }() - req, err := client.restartRevisionCreateRequest(ctx, resourceGroupName, containerAppName, name, options) - if err != nil { - return ContainerAppsRevisionsClientRestartRevisionResponse{}, err - } - httpResp, err := client.internal.Pipeline().Do(req) - if err != nil { - return ContainerAppsRevisionsClientRestartRevisionResponse{}, err - } - if !runtime.HasStatusCode(httpResp, http.StatusOK) { - err = runtime.NewResponseError(httpResp) - return ContainerAppsRevisionsClientRestartRevisionResponse{}, err - } - return ContainerAppsRevisionsClientRestartRevisionResponse{}, nil -} - -// restartRevisionCreateRequest creates the RestartRevision request. -func (client *ContainerAppsRevisionsClient) restartRevisionCreateRequest(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *ContainerAppsRevisionsClientRestartRevisionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/containerApps/{containerAppName}/revisions/{name}/restart" - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if containerAppName == "" { - return nil, errors.New("parameter containerAppName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerAppName}", url.PathEscape(containerAppName)) - 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.internal.Endpoint(), urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-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 8be9cf9c580c..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go +++ /dev/null @@ -1,197 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewContainerAppsRevisionsClient().NewListRevisionsPager("rg", "testcontainerApp0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RevisionCollection = armappservice.RevisionCollection{ - // Value: []*armappservice.Revision{ - // { - // Name: to.Ptr("testcontainerApp0-pjxhsye"), - // Type: to.Ptr("Microsoft.Web/containerApps/revisions"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/containerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.RevisionProperties{ - // Active: to.Ptr(true), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-24T21:24:22.000Z"); return t}()), - // Fqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerapps.k4apps.io"), - // Replicas: to.Ptr[int32](1), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v2"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // 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"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewContainerAppsRevisionsClient().GetRevision(ctx, "rg", "testcontainerApp0", "testcontainerApp0-pjxhsye", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Revision = armappservice.Revision{ - // Name: to.Ptr("testcontainerApp0-pjxhsye"), - // Type: to.Ptr("Microsoft.Web/containerApps/revisions"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.WebcontainerApps/testcontainerApp0/revisions/testcontainerApp0-pjxhsye"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.RevisionProperties{ - // Active: to.Ptr(true), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-24T21:24:22.000Z"); return t}()), - // Fqdn: to.Ptr("testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io"), - // Replicas: to.Ptr[int32](1), - // Template: &armappservice.Template{ - // Containers: []*armappservice.Container{ - // { - // Name: to.Ptr("testcontainerApp0"), - // Image: to.Ptr("repo/testcontainerApp0:v2"), - // Resources: &armappservice.ContainerResources{ - // CPU: to.Ptr[float64](0.2), - // Memory: to.Ptr("100Mi"), - // }, - // }}, - // 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"), - // HTTP: &armappservice.HTTPScaleRule{ - // Metadata: map[string]*string{ - // "concurrentRequests": to.Ptr("50"), - // }, - // }, - // }}, - // }, - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewContainerAppsRevisionsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewContainerAppsRevisionsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewContainerAppsRevisionsClient().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 3dd769b533e7..3c1a32ffd557 100644 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 // - options - DeletedWebAppsClientGetDeletedWebAppByLocationOptions contains the optional parameters for the DeletedWebAppsClient.GetDeletedWebAppByLocation // method. @@ -73,7 +70,7 @@ func (client *DeletedWebAppsClient) GetDeletedWebAppByLocation(ctx context.Conte } // getDeletedWebAppByLocationCreateRequest creates the GetDeletedWebAppByLocation request. -func (client *DeletedWebAppsClient) getDeletedWebAppByLocationCreateRequest(ctx context.Context, location string, deletedSiteID string, options *DeletedWebAppsClientGetDeletedWebAppByLocationOptions) (*policy.Request, error) { +func (client *DeletedWebAppsClient) getDeletedWebAppByLocationCreateRequest(ctx context.Context, location string, deletedSiteID string, _ *DeletedWebAppsClientGetDeletedWebAppByLocationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites/{deletedSiteId}" if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -92,7 +89,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -109,7 +106,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationHandleResponse(res // NewListPager - Description for Get all deleted apps for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -135,7 +132,7 @@ func (client *DeletedWebAppsClient) NewListPager(options *DeletedWebAppsClientLi } // listCreateRequest creates the List request. -func (client *DeletedWebAppsClient) listCreateRequest(ctx context.Context, options *DeletedWebAppsClientListOptions) (*policy.Request, error) { +func (client *DeletedWebAppsClient) listCreateRequest(ctx context.Context, _ *DeletedWebAppsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -146,7 +143,7 @@ func (client *DeletedWebAppsClient) listCreateRequest(ctx context.Context, optio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -163,7 +160,7 @@ func (client *DeletedWebAppsClient) listHandleResponse(resp *http.Response) (Del // NewListByLocationPager - Description for Get all deleted apps for a subscription at location // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - DeletedWebAppsClientListByLocationOptions contains the optional parameters for the DeletedWebAppsClient.NewListByLocationPager // method. func (client *DeletedWebAppsClient) NewListByLocationPager(location string, options *DeletedWebAppsClientListByLocationOptions) *runtime.Pager[DeletedWebAppsClientListByLocationResponse] { @@ -190,7 +187,7 @@ func (client *DeletedWebAppsClient) NewListByLocationPager(location string, opti } // listByLocationCreateRequest creates the ListByLocation request. -func (client *DeletedWebAppsClient) listByLocationCreateRequest(ctx context.Context, location string, options *DeletedWebAppsClientListByLocationOptions) (*policy.Request, error) { +func (client *DeletedWebAppsClient) listByLocationCreateRequest(ctx context.Context, location string, _ *DeletedWebAppsClientListByLocationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites" if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -205,7 +202,7 @@ func (client *DeletedWebAppsClient) listByLocationCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 2b34d24c8105..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDeletedWebAppsClient().NewListByLocationPager("West US 2", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DeletedWebAppCollection = armappservice.DeletedWebAppCollection{ - // Value: []*armappservice.DeletedSite{ - // { - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/locations/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6"), - // Properties: &armappservice.DeletedSiteProperties{ - // DeletedSiteID: to.Ptr[int32](9), - // DeletedSiteName: to.Ptr("wussite6"), - // DeletedTimestamp: to.Ptr("2019-05-09T22:29:05.1337007"), - // GeoRegionName: to.Ptr("West US 2"), - // Kind: to.Ptr("app"), - // ResourceGroup: to.Ptr("rg1"), - // Slot: to.Ptr("Production"), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDeletedWebAppsClient().GetDeletedWebAppByLocation(ctx, "West US 2", "9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DeletedSite = armappservice.DeletedSite{ - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/locations/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6"), - // Properties: &armappservice.DeletedSiteProperties{ - // DeletedSiteID: to.Ptr[int32](9), - // DeletedSiteName: to.Ptr("wussite6"), - // DeletedTimestamp: to.Ptr("2019-05-09T22:29:05.1337007"), - // GeoRegionName: to.Ptr("West US 2"), - // Kind: to.Ptr("app"), - // ResourceGroup: to.Ptr("rg1"), - // Slot: to.Ptr("Production"), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go index cbb77b1d3961..0fd42ae9cd0d 100644 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Category Name @@ -104,7 +101,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -131,7 +128,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Category Name @@ -193,7 +190,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -220,7 +217,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -277,7 +274,7 @@ func (client *DiagnosticsClient) executeSiteDetectorCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -304,7 +301,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -366,7 +363,7 @@ func (client *DiagnosticsClient) executeSiteDetectorSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -393,7 +390,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - App Service Environment Name // - detectorName - Detector Resource Name @@ -445,7 +442,7 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -472,7 +469,7 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseHandleResp // GetSiteAnalysis - Description for Get Site Analysis // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -502,7 +499,7 @@ func (client *DiagnosticsClient) GetSiteAnalysis(ctx context.Context, resourceGr } // getSiteAnalysisCreateRequest creates the GetSiteAnalysis request. -func (client *DiagnosticsClient) getSiteAnalysisCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, options *DiagnosticsClientGetSiteAnalysisOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) getSiteAnalysisCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, _ *DiagnosticsClientGetSiteAnalysisOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -529,7 +526,7 @@ func (client *DiagnosticsClient) getSiteAnalysisCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -547,7 +544,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -578,7 +575,7 @@ func (client *DiagnosticsClient) GetSiteAnalysisSlot(ctx context.Context, resour } // getSiteAnalysisSlotCreateRequest creates the GetSiteAnalysisSlot request. -func (client *DiagnosticsClient) getSiteAnalysisSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, slot string, options *DiagnosticsClientGetSiteAnalysisSlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) getSiteAnalysisSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, analysisName string, slot string, _ *DiagnosticsClientGetSiteAnalysisSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -609,7 +606,7 @@ func (client *DiagnosticsClient) getSiteAnalysisSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -627,7 +624,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -657,7 +654,7 @@ func (client *DiagnosticsClient) GetSiteDetector(ctx context.Context, resourceGr } // getSiteDetectorCreateRequest creates the GetSiteDetector request. -func (client *DiagnosticsClient) getSiteDetectorCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, options *DiagnosticsClientGetSiteDetectorOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) getSiteDetectorCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, _ *DiagnosticsClientGetSiteDetectorOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -684,7 +681,7 @@ func (client *DiagnosticsClient) getSiteDetectorCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -702,7 +699,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -754,7 +751,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -781,7 +778,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -838,7 +835,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -865,7 +862,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotHandleResponse(resp // GetSiteDetectorSlot - Description for Get Detector // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -896,7 +893,7 @@ func (client *DiagnosticsClient) GetSiteDetectorSlot(ctx context.Context, resour } // getSiteDetectorSlotCreateRequest creates the GetSiteDetectorSlot request. -func (client *DiagnosticsClient) getSiteDetectorSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, slot string, options *DiagnosticsClientGetSiteDetectorSlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) getSiteDetectorSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, detectorName string, slot string, _ *DiagnosticsClientGetSiteDetectorSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -927,7 +924,7 @@ func (client *DiagnosticsClient) getSiteDetectorSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -945,7 +942,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -974,7 +971,7 @@ func (client *DiagnosticsClient) GetSiteDiagnosticCategory(ctx context.Context, } // getSiteDiagnosticCategoryCreateRequest creates the GetSiteDiagnosticCategory request. -func (client *DiagnosticsClient) getSiteDiagnosticCategoryCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, options *DiagnosticsClientGetSiteDiagnosticCategoryOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) getSiteDiagnosticCategoryCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, _ *DiagnosticsClientGetSiteDiagnosticCategoryOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -997,7 +994,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategoryCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1015,7 +1012,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1045,7 +1042,7 @@ func (client *DiagnosticsClient) GetSiteDiagnosticCategorySlot(ctx context.Conte } // getSiteDiagnosticCategorySlotCreateRequest creates the GetSiteDiagnosticCategorySlot request. -func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, options *DiagnosticsClientGetSiteDiagnosticCategorySlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, _ *DiagnosticsClientGetSiteDiagnosticCategorySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1072,7 +1069,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1089,7 +1086,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotHandleResponse(res // NewListHostingEnvironmentDetectorResponsesPager - Description for List Hosting Environment Detector Responses // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1118,7 +1115,7 @@ func (client *DiagnosticsClient) NewListHostingEnvironmentDetectorResponsesPager } // listHostingEnvironmentDetectorResponsesCreateRequest creates the ListHostingEnvironmentDetectorResponses request. -func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1137,7 +1134,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1154,7 +1151,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesHandleRe // NewListSiteAnalysesPager - Description for Get Site Analyses // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1184,7 +1181,7 @@ func (client *DiagnosticsClient) NewListSiteAnalysesPager(resourceGroupName stri } // listSiteAnalysesCreateRequest creates the ListSiteAnalyses request. -func (client *DiagnosticsClient) listSiteAnalysesCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, options *DiagnosticsClientListSiteAnalysesOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteAnalysesCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, _ *DiagnosticsClientListSiteAnalysesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1207,7 +1204,7 @@ func (client *DiagnosticsClient) listSiteAnalysesCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1224,7 +1221,7 @@ func (client *DiagnosticsClient) listSiteAnalysesHandleResponse(resp *http.Respo // NewListSiteAnalysesSlotPager - Description for Get Site Analyses // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1255,7 +1252,7 @@ func (client *DiagnosticsClient) NewListSiteAnalysesSlotPager(resourceGroupName } // listSiteAnalysesSlotCreateRequest creates the ListSiteAnalysesSlot request. -func (client *DiagnosticsClient) listSiteAnalysesSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, options *DiagnosticsClientListSiteAnalysesSlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteAnalysesSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, _ *DiagnosticsClientListSiteAnalysesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1282,7 +1279,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1299,7 +1296,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotHandleResponse(resp *http.R // NewListSiteDetectorResponsesPager - Description for List Site Detector Responses // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1328,7 +1325,7 @@ func (client *DiagnosticsClient) NewListSiteDetectorResponsesPager(resourceGroup } // listSiteDetectorResponsesCreateRequest creates the ListSiteDetectorResponses request. -func (client *DiagnosticsClient) listSiteDetectorResponsesCreateRequest(ctx context.Context, resourceGroupName string, siteName string, options *DiagnosticsClientListSiteDetectorResponsesOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteDetectorResponsesCreateRequest(ctx context.Context, resourceGroupName string, siteName string, _ *DiagnosticsClientListSiteDetectorResponsesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1347,7 +1344,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1364,7 +1361,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesHandleResponse(resp *h // NewListSiteDetectorResponsesSlotPager - Description for List Site Detector Responses // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - slot - Slot Name @@ -1394,7 +1391,7 @@ func (client *DiagnosticsClient) NewListSiteDetectorResponsesSlotPager(resourceG } // listSiteDetectorResponsesSlotCreateRequest creates the ListSiteDetectorResponsesSlot request. -func (client *DiagnosticsClient) listSiteDetectorResponsesSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, slot string, options *DiagnosticsClientListSiteDetectorResponsesSlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteDetectorResponsesSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, slot string, _ *DiagnosticsClientListSiteDetectorResponsesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1417,7 +1414,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1434,7 +1431,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotHandleResponse(res // NewListSiteDetectorsPager - Description for Get Detectors // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1464,7 +1461,7 @@ func (client *DiagnosticsClient) NewListSiteDetectorsPager(resourceGroupName str } // listSiteDetectorsCreateRequest creates the ListSiteDetectors request. -func (client *DiagnosticsClient) listSiteDetectorsCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, options *DiagnosticsClientListSiteDetectorsOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteDetectorsCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, _ *DiagnosticsClientListSiteDetectorsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1487,7 +1484,7 @@ func (client *DiagnosticsClient) listSiteDetectorsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1504,7 +1501,7 @@ func (client *DiagnosticsClient) listSiteDetectorsHandleResponse(resp *http.Resp // NewListSiteDetectorsSlotPager - Description for Get Detectors // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1535,7 +1532,7 @@ func (client *DiagnosticsClient) NewListSiteDetectorsSlotPager(resourceGroupName } // listSiteDetectorsSlotCreateRequest creates the ListSiteDetectorsSlot request. -func (client *DiagnosticsClient) listSiteDetectorsSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, options *DiagnosticsClientListSiteDetectorsSlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteDetectorsSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, diagnosticCategory string, slot string, _ *DiagnosticsClientListSiteDetectorsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1562,7 +1559,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1579,7 +1576,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotHandleResponse(resp *http. // NewListSiteDiagnosticCategoriesPager - Description for Get Diagnostics Categories // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1608,7 +1605,7 @@ func (client *DiagnosticsClient) NewListSiteDiagnosticCategoriesPager(resourceGr } // listSiteDiagnosticCategoriesCreateRequest creates the ListSiteDiagnosticCategories request. -func (client *DiagnosticsClient) listSiteDiagnosticCategoriesCreateRequest(ctx context.Context, resourceGroupName string, siteName string, options *DiagnosticsClientListSiteDiagnosticCategoriesOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteDiagnosticCategoriesCreateRequest(ctx context.Context, resourceGroupName string, siteName string, _ *DiagnosticsClientListSiteDiagnosticCategoriesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1627,7 +1624,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1644,7 +1641,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesHandleResponse(resp // NewListSiteDiagnosticCategoriesSlotPager - Description for Get Diagnostics Categories // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - slot - Slot Name @@ -1674,7 +1671,7 @@ func (client *DiagnosticsClient) NewListSiteDiagnosticCategoriesSlotPager(resour } // listSiteDiagnosticCategoriesSlotCreateRequest creates the ListSiteDiagnosticCategoriesSlot request. -func (client *DiagnosticsClient) listSiteDiagnosticCategoriesSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, slot string, options *DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions) (*policy.Request, error) { +func (client *DiagnosticsClient) listSiteDiagnosticCategoriesSlotCreateRequest(ctx context.Context, resourceGroupName string, siteName string, slot string, _ *DiagnosticsClientListSiteDiagnosticCategoriesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1697,7 +1694,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 9828beb8d675..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go +++ /dev/null @@ -1,1474 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListHostingEnvironmentDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleAppServiceEnvironment", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/hostingEnvironments/SampleAppServiceEnvironment/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes all the requests to all applications running on this app service environment."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/hostingEnvironments/SampleAppServiceEnvironment/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Description: to.Ptr("This detector breaks down the number of requests that your apps on this app service environment received for each status code."), - // Title: to.Ptr("Requests by Status Code"), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("PreciseTimeStamp"), - // ColumnType: to.Ptr("datetime"), - // DataType: to.Ptr("DateTime"), - // }, - // { - // ColumnName: to.Ptr("count_Http2xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http3xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http4xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http5xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("2018-03-27T00:25:00Z"), - // to.Ptr("772705"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:30:00Z"), - // to.Ptr("787069"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:35:00Z"), - // to.Ptr("781627"), - // to.Ptr("0"), - // to.Ptr("1"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:40:00Z"), - // to.Ptr("785017"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:45:00Z"), - // to.Ptr("783518"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:50:00Z"), - // to.Ptr("785783"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:55:00Z"), - // to.Ptr("772874"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:00:00Z"), - // to.Ptr("787162"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:05:00Z"), - // to.Ptr("782036"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:10:00Z"), - // to.Ptr("784642"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}}, - // TableName: to.Ptr("Table_0"), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes all the requests to all applications running on this app service environment."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorResponses.json -func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppDetectorResponses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json -func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppSlotDetectorResponses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorResponsesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DetectorResponseCollection = armappservice.DetectorResponseCollection{ - // Value: []*armappservice.DetectorResponse{ - // { - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // }, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorResponse.json -func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Description: to.Ptr("This detector breaks down the number of requests that your app received for each status code."), - // Title: to.Ptr("Requests by Status Code"), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("PreciseTimeStamp"), - // ColumnType: to.Ptr("datetime"), - // DataType: to.Ptr("DateTime"), - // }, - // { - // ColumnName: to.Ptr("count_Http2xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http3xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http4xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http5xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("2018-03-27T00:25:00Z"), - // to.Ptr("772705"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:30:00Z"), - // to.Ptr("787069"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:35:00Z"), - // to.Ptr("781627"), - // to.Ptr("0"), - // to.Ptr("1"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:40:00Z"), - // to.Ptr("785017"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:45:00Z"), - // to.Ptr("783518"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:50:00Z"), - // to.Ptr("785783"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:55:00Z"), - // to.Ptr("772874"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:00:00Z"), - // to.Ptr("787162"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:05:00Z"), - // to.Ptr("782036"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:10:00Z"), - // to.Ptr("784642"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}}, - // TableName: to.Ptr("Table_0"), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json -func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppSlotDetectorResponse() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorResponse = armappservice.DetectorResponse{ - // Name: to.Ptr("runtimeavailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/detectors/runtimeavailability"), - // Properties: &armappservice.DetectorResponseProperties{ - // Dataset: []*armappservice.DiagnosticData{ - // { - // RenderingProperties: &armappservice.Rendering{ - // Description: to.Ptr("This detector breaks down the number of requests that your app received for each status code."), - // Title: to.Ptr("Requests by Status Code"), - // }, - // Table: &armappservice.DataTableResponseObject{ - // Columns: []*armappservice.DataTableResponseColumn{ - // { - // ColumnName: to.Ptr("PreciseTimeStamp"), - // ColumnType: to.Ptr("datetime"), - // DataType: to.Ptr("DateTime"), - // }, - // { - // ColumnName: to.Ptr("count_Http2xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http3xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http4xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }, - // { - // ColumnName: to.Ptr("count_Http5xx"), - // ColumnType: to.Ptr("long"), - // DataType: to.Ptr("Int64"), - // }}, - // Rows: [][]*string{ - // []*string{ - // to.Ptr("2018-03-27T00:25:00Z"), - // to.Ptr("772705"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:30:00Z"), - // to.Ptr("787069"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:35:00Z"), - // to.Ptr("781627"), - // to.Ptr("0"), - // to.Ptr("1"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:40:00Z"), - // to.Ptr("785017"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:45:00Z"), - // to.Ptr("783518"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:50:00Z"), - // to.Ptr("785783"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T00:55:00Z"), - // to.Ptr("772874"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:00:00Z"), - // to.Ptr("787162"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:05:00Z"), - // to.Ptr("782036"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}, - // []*string{ - // to.Ptr("2018-03-27T01:10:00Z"), - // to.Ptr("784642"), - // to.Ptr("0"), - // to.Ptr("0"), - // to.Ptr("0")}}, - // TableName: to.Ptr("Table_0"), - // }, - // }}, - // Metadata: &armappservice.DetectorInfo{ - // Description: to.Ptr("This detector analyzes the requests to your application."), - // Category: to.Ptr("Availability and Performance"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDiagnosticCategories.json -func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppDiagnosticCategories() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDiagnosticCategoriesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticCategoryCollection = armappservice.DiagnosticCategoryCollection{ - // Value: []*armappservice.DiagnosticCategory{ - // { - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json -func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppSlotDiagnosticCategories() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDiagnosticCategoriesPager("Sample-WestUSResourceGroup", "SampleApp", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticCategoryCollection = armappservice.DiagnosticCategoryCollection{ - // Value: []*armappservice.DiagnosticCategory{ - // { - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDiagnosticCategory.json -func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppDiagnosticCategory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDiagnosticCategory(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticCategory = armappservice.DiagnosticCategory{ - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json -func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppSlotDiagnosticCategory() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDiagnosticCategory(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticCategory = armappservice.DiagnosticCategory{ - // Name: to.Ptr("availability"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability"), - // Properties: &armappservice.DiagnosticCategoryProperties{ - // Description: to.Ptr("Availability and Perfomance Diagnostics"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteAnalyses.json -func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppAnalyses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteAnalysesPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticAnalysisCollection = armappservice.DiagnosticAnalysisCollection{ - // Value: []*armappservice.AnalysisDefinition{ - // { - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // }, - // { - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Find the reasons that your app restarted"), - // }, - // }, - // { - // Name: to.Ptr("memoryanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/memoryanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Detect issues with memory as well as suggest ways to troubleshoot memory problems"), - // }, - // }, - // { - // Name: to.Ptr("tcpconnectionsanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/tcpconnectionsanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Analyze port usage and find out if a high number of connections is causing problems for your web app"), - // }, - // }, - // { - // Name: to.Ptr("perfanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/perfanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of performance degredation as well as solutions for these problems"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteAnalysesSlot.json -func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppSlotAnalyses() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteAnalysesPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticAnalysisCollection = armappservice.DiagnosticAnalysisCollection{ - // Value: []*armappservice.AnalysisDefinition{ - // { - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // }, - // { - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Find the reasons that your app restarted"), - // }, - // }, - // { - // Name: to.Ptr("memoryanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/memoryanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Detect issues with memory as well as suggest ways to troubleshoot memory problems"), - // }, - // }, - // { - // Name: to.Ptr("tcpconnectionsanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/tcpconnectionsanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Analyze port usage and find out if a high number of connections is causing problems for your web app"), - // }, - // }, - // { - // Name: to.Ptr("perfanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/perfanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of performance degredation as well as solutions for these problems"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteAnalysis.json -func ExampleDiagnosticsClient_GetSiteAnalysis_getAppAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteAnalysis(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AnalysisDefinition = armappservice.AnalysisDefinition{ - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteAnalysisSlot.json -func ExampleDiagnosticsClient_GetSiteAnalysis_getAppSlotAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteAnalysis(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "appanalysis", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AnalysisDefinition = armappservice.AnalysisDefinition{ - // Name: to.Ptr("appanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/appanalysis"), - // Properties: &armappservice.AnalysisDefinitionProperties{ - // Description: to.Ptr("Determine causes of availability loss as well as solutions for these problems"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteAnalysis.json -func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticAnalysis = armappservice.DiagnosticAnalysis{ - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.DiagnosticAnalysisProperties{ - // AbnormalTimePeriods: []*armappservice.AbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // Events: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // Type: to.Ptr(armappservice.IssueTypeServiceIncident), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:48.000Z"); return t}()), - // Message: to.Ptr("Your application process was restarted as application environment variables changed. This can most likely occur due to update in app settings or swap operation. This event occurred multiple times during the day."), - // MetaData: [][]*armappservice.NameValuePair{ - // []*armappservice.NameValuePair{ - // { - // Name: to.Ptr("feature"), - // Value: to.Ptr("auditlogs"), - // }, - // { - // Name: to.Ptr("displayedName"), - // Value: to.Ptr("Check Audit Logs"), - // }}}, - // Priority: to.Ptr[float64](0), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:50.000Z"); return t}()), - // }}, - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // NonCorrelatedDetectors: []*armappservice.DetectorDefinition{ - // }, - // Payload: []*armappservice.AnalysisData{ - // { - // Data: [][]*armappservice.NameValuePair{ - // }, - // Metrics: []*armappservice.DiagnosticMetricSet{ - // { - // Name: to.Ptr("All Application Stop Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // RoleInstance: to.Ptr("RD00155D3C15BE"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C15C1"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3BE0FB"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00.000Z"); return t}()), - // Total: to.Ptr[float64](4), - // }}, - // }, - // { - // Name: to.Ptr("User Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Unit: to.Ptr(""), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](3), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C09FC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C2ADC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C214E"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](1), - // }}, - // }}, - // Source: to.Ptr("workerprocessrecycle"), - // }}, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json -func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteSlotAnalysis() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticAnalysis = armappservice.DiagnosticAnalysis{ - // Name: to.Ptr("apprestartanalysis"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/analyses/apprestartanalyses"), - // Properties: &armappservice.DiagnosticAnalysisProperties{ - // AbnormalTimePeriods: []*armappservice.AbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // Events: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // Type: to.Ptr(armappservice.IssueTypeServiceIncident), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:48.000Z"); return t}()), - // Message: to.Ptr("Your application process was restarted as application environment variables changed. This can most likely occur due to update in app settings or swap operation. This event occurred multiple times during the day."), - // MetaData: [][]*armappservice.NameValuePair{ - // []*armappservice.NameValuePair{ - // { - // Name: to.Ptr("feature"), - // Value: to.Ptr("auditlogs"), - // }, - // { - // Name: to.Ptr("displayedName"), - // Value: to.Ptr("Check Audit Logs"), - // }}}, - // Priority: to.Ptr[float64](0), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:21:50.000Z"); return t}()), - // }}, - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // NonCorrelatedDetectors: []*armappservice.DetectorDefinition{ - // }, - // Payload: []*armappservice.AnalysisData{ - // { - // Data: [][]*armappservice.NameValuePair{ - // }, - // Metrics: []*armappservice.DiagnosticMetricSet{ - // { - // Name: to.Ptr("All Application Stop Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // RoleInstance: to.Ptr("RD00155D3C15BE"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:00:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C15C1"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3BE0FB"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00.000Z"); return t}()), - // Total: to.Ptr[float64](2), - // }, - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T00:10:00.000Z"); return t}()), - // Total: to.Ptr[float64](4), - // }}, - // }, - // { - // Name: to.Ptr("User Events"), - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // TimeGrain: to.Ptr("00:05:00"), - // Unit: to.Ptr(""), - // Values: []*armappservice.DiagnosticMetricSample{ - // { - // IsAggregated: to.Ptr(true), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](3), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C09FC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C2ADC"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](1), - // }, - // { - // RoleInstance: to.Ptr("RD00155D3C214E"), - // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:20:00.000Z"); return t}()), - // Total: to.Ptr[float64](1), - // }}, - // }}, - // Source: to.Ptr("workerprocessrecycle"), - // }}, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectors.json -func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppDetectors() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorsPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticDetectorCollection = armappservice.DiagnosticDetectorCollection{ - // Value: []*armappservice.DetectorDefinitionResource{ - // { - // Name: to.Ptr("servicehealth"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/servicehealth"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Service Health"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](1), - // }, - // }, - // { - // Name: to.Ptr("siteswap"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/siteswap"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Swap Operations"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](8), - // }, - // }, - // { - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // }, - // { - // Name: to.Ptr("deployment"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/deployment"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Deployments"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](7), - // }, - // }, - // { - // Name: to.Ptr("sitecpuanalysis"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitecpuanalysis"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("CPU Analysis"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](3), - // }, - // }, - // { - // Name: to.Ptr("sitememoryanalysis"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitememoryanalysis"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Physical Memory Analysis"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](3), - // }, - // }, - // { - // Name: to.Ptr("committedmemoryusage"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/committedmemoryusage"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Committed Memory Usage"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](7), - // }, - // }, - // { - // Name: to.Ptr("pagefileoperations"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/pagefileoperations"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Page File Operations"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](3), - // }, - // }, - // { - // Name: to.Ptr("siterestartuserinitiated"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/siterestartuserinitiated"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("User Initiated Site Restarts"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](14), - // }, - // }, - // { - // Name: to.Ptr("siterestartsettingupdate"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/siterestartsettingupdate"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Config Update Site Restarts"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](12), - // }, - // }, - // { - // Name: to.Ptr("frebanalysis"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/frebanalysis"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Freb Logs Analysis"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](6), - // }, - // }, - // { - // Name: to.Ptr("workeravailability"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/workeravailability"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Worker Availability"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](11), - // }, - // }, - // { - // Name: to.Ptr("sitelatency"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitelatency"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Latency"), - // IsEnabled: to.Ptr(false), - // Rank: to.Ptr[float64](1005), - // }, - // }, - // { - // Name: to.Ptr("threadcount"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/threadcount"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Thread Count"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](23), - // }, - // }, - // { - // Name: to.Ptr("failedrequestsperuri"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/failedrequestsperuri"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Failed Requests Per URI"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](998), - // }, - // }, - // { - // Name: to.Ptr("autoheal"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/autoheal"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("AutoHeal"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](21), - // }, - // }, - // { - // Name: to.Ptr("loganalyzer"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/loganalyzer"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("PHP Log Analyzer"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](26), - // }, - // }, - // { - // Name: to.Ptr("aspnetcore"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/aspnetcore"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("ASP.NET Core"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](5), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorsSlot.json -func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppSlotDetectors() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDiagnosticsClient().NewListSiteDetectorsPager("Sample-WestUSResourceGroup", "SampleApp", "availability", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DiagnosticDetectorCollection = armappservice.DiagnosticDetectorCollection{ - // Value: []*armappservice.DetectorDefinitionResource{ - // { - // Name: to.Ptr("servicehealth"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/servicehealth"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Service Health"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](1), - // }, - // }, - // { - // Name: to.Ptr("siteswap"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/siteswap"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Swap Operations"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](8), - // }, - // }, - // { - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // }, - // { - // Name: to.Ptr("deployment"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/deployment"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Deployments"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](7), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetector.json -func ExampleDiagnosticsClient_GetSiteDetector_getAppDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDetector(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorDefinitionResource = armappservice.DetectorDefinitionResource{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorSlot.json -func ExampleDiagnosticsClient_GetSiteDetector_getAppSlotDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().GetSiteDetector(ctx, "Sample-WestUSResourceGroup", "SampleApp", "availability", "sitecrashes", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DetectorDefinitionResource = armappservice.DetectorDefinitionResource{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/ef90e930-9d7f-4a60-8a99-748e0eea69de/resourceGroups/Build2015DemoRG/providers/Microsoft.Web/sites/BuggyBakery/slots/staging/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DetectorDefinition{ - // DisplayName: to.Ptr("Site Crash Events"), - // IsEnabled: to.Ptr(true), - // Rank: to.Ptr[float64](9), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteDetector.json -func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticDetectorResponse = armappservice.DiagnosticDetectorResponse{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DiagnosticDetectorResponseProperties{ - // AbnormalTimePeriods: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json -func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteSlotDetector() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDiagnosticsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DiagnosticDetectorResponse = armappservice.DiagnosticDetectorResponse{ - // Name: to.Ptr("sitecrashes"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.Web/sites/SampleApp/slots/staging/diagnostics/availability/detectors/sitecrashes"), - // Properties: &armappservice.DiagnosticDetectorResponseProperties{ - // AbnormalTimePeriods: []*armappservice.DetectorAbnormalTimePeriod{ - // { - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // Solutions: []*armappservice.Solution{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }}, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-06T22:50:00.000Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-05T22:50:00.000Z"); return t}()), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go index 09e802c2c2f2..532bbc419d51 100644 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -40,7 +37,7 @@ 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 // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - DomainRegistrationProviderClientListOperationsOptions contains the optional parameters for the DomainRegistrationProviderClient.NewListOperationsPager // method. func (client *DomainRegistrationProviderClient) NewListOperationsPager(options *DomainRegistrationProviderClientListOperationsOptions) *runtime.Pager[DomainRegistrationProviderClientListOperationsResponse] { @@ -67,14 +64,14 @@ func (client *DomainRegistrationProviderClient) NewListOperationsPager(options * } // listOperationsCreateRequest creates the ListOperations request. -func (client *DomainRegistrationProviderClient) listOperationsCreateRequest(ctx context.Context, options *DomainRegistrationProviderClientListOperationsOptions) (*policy.Request, error) { +func (client *DomainRegistrationProviderClient) listOperationsCreateRequest(ctx context.Context, _ *DomainRegistrationProviderClientListOperationsOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.DomainRegistration/operations" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 5384ce9c1a51..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go +++ /dev/null @@ -1,136 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainRegistrationProviderClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmOperationCollection = armappservice.CsmOperationCollection{ - // Value: []*armappservice.CsmOperationDescription{ - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of domains"), - // Operation: to.Ptr("Get Domains"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new Domain or update an existing one"), - // Operation: to.Ptr("Add or Update Domain"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing domain."), - // Operation: to.Ptr("Delete Domain"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/domains/operationresults/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get a domain operation"), - // Operation: to.Ptr("Get Domain Operation"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain operation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/generateSsoRequest/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Generate a request for signing into domain control center."), - // Operation: to.Ptr("Generate Domain Control Center Single Sign On Request"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Control Center Single Sign On Request"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/validateDomainRegistrationInformation/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Validate domain purchase object without submitting it"), - // Operation: to.Ptr("Domain Purchase Info Validation"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Validation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/checkDomainAvailability/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if a domain is available for purchase"), - // Operation: to.Ptr("Check Domain Availability"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Availability Result"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/listDomainRecommendations/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Retrieve the list domain recommendations based on keywords"), - // Operation: to.Ptr("Retrieve Domain Recommendations"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Domain Recommendations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.DomainRegistration/register/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Register the Microsoft Domains resource provider for the subscription"), - // Operation: to.Ptr("Register Microsoft Domains resource provider"), - // Provider: to.Ptr("Microsoft Domains"), - // Resource: to.Ptr("Microsoft Domains resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/domains_client.go b/sdk/resourcemanager/appservice/armappservice/domains_client.go index 7942689ae402..8a742b093781 100644 --- a/sdk/resourcemanager/appservice/armappservice/domains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domains_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - identifier - Name of the domain. // - options - DomainsClientCheckAvailabilityOptions contains the optional parameters for the DomainsClient.CheckAvailability // method. @@ -74,7 +71,7 @@ func (client *DomainsClient) CheckAvailability(ctx context.Context, identifier N } // checkAvailabilityCreateRequest creates the CheckAvailability request. -func (client *DomainsClient) checkAvailabilityCreateRequest(ctx context.Context, identifier NameIdentifier, options *DomainsClientCheckAvailabilityOptions) (*policy.Request, error) { +func (client *DomainsClient) checkAvailabilityCreateRequest(ctx context.Context, identifier NameIdentifier, _ *DomainsClientCheckAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -85,7 +82,7 @@ func (client *DomainsClient) checkAvailabilityCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, identifier); err != nil { @@ -106,7 +103,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - domainName - Name of the domain. // - domain - Domain registration information. @@ -132,7 +129,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *DomainsClient) createOrUpdate(ctx context.Context, resourceGroupName string, domainName string, domain Domain, options *DomainsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "DomainsClient.BeginCreateOrUpdate" @@ -155,7 +152,7 @@ func (client *DomainsClient) createOrUpdate(ctx context.Context, resourceGroupNa } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, domainName string, domain Domain, options *DomainsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, domainName string, domain Domain, _ *DomainsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -174,7 +171,7 @@ func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domain); err != nil { @@ -187,7 +184,7 @@ func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, re // details for an existing identifier // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - domainName - Name of domain. // - name - Name of identifier. @@ -217,7 +214,7 @@ func (client *DomainsClient) CreateOrUpdateOwnershipIdentifier(ctx context.Conte } // createOrUpdateOwnershipIdentifierCreateRequest creates the CreateOrUpdateOwnershipIdentifier request. -func (client *DomainsClient) createOrUpdateOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier, options *DomainsClientCreateOrUpdateOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *DomainsClient) createOrUpdateOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier, _ *DomainsClientCreateOrUpdateOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -240,7 +237,7 @@ func (client *DomainsClient) createOrUpdateOwnershipIdentifierCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -261,7 +258,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -306,7 +303,7 @@ func (client *DomainsClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ForceHardDeleteDomain != nil { reqQP.Set("forceHardDeleteDomain", strconv.FormatBool(*options.ForceHardDeleteDomain)) } @@ -318,7 +315,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - domainName - Name of domain. // - name - Name of identifier. @@ -346,7 +343,7 @@ func (client *DomainsClient) DeleteOwnershipIdentifier(ctx context.Context, reso } // deleteOwnershipIdentifierCreateRequest creates the DeleteOwnershipIdentifier request. -func (client *DomainsClient) deleteOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, options *DomainsClientDeleteOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *DomainsClient) deleteOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, _ *DomainsClientDeleteOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -369,7 +366,7 @@ func (client *DomainsClient) deleteOwnershipIdentifierCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -378,7 +375,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -405,7 +402,7 @@ func (client *DomainsClient) Get(ctx context.Context, resourceGroupName string, } // getCreateRequest creates the Get request. -func (client *DomainsClient) getCreateRequest(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientGetOptions) (*policy.Request, error) { +func (client *DomainsClient) getCreateRequest(ctx context.Context, resourceGroupName string, domainName string, _ *DomainsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -424,7 +421,7 @@ func (client *DomainsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -442,7 +439,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - options - DomainsClientGetControlCenterSsoRequestOptions contains the optional parameters for the DomainsClient.GetControlCenterSsoRequest // method. func (client *DomainsClient) GetControlCenterSsoRequest(ctx context.Context, options *DomainsClientGetControlCenterSsoRequestOptions) (DomainsClientGetControlCenterSsoRequestResponse, error) { @@ -468,7 +465,7 @@ func (client *DomainsClient) GetControlCenterSsoRequest(ctx context.Context, opt } // getControlCenterSsoRequestCreateRequest creates the GetControlCenterSsoRequest request. -func (client *DomainsClient) getControlCenterSsoRequestCreateRequest(ctx context.Context, options *DomainsClientGetControlCenterSsoRequestOptions) (*policy.Request, error) { +func (client *DomainsClient) getControlCenterSsoRequestCreateRequest(ctx context.Context, _ *DomainsClientGetControlCenterSsoRequestOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -479,7 +476,7 @@ func (client *DomainsClient) getControlCenterSsoRequestCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -497,7 +494,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - domainName - Name of domain. // - name - Name of identifier. @@ -526,7 +523,7 @@ func (client *DomainsClient) GetOwnershipIdentifier(ctx context.Context, resourc } // getOwnershipIdentifierCreateRequest creates the GetOwnershipIdentifier request. -func (client *DomainsClient) getOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, options *DomainsClientGetOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *DomainsClient) getOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, _ *DomainsClientGetOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -549,7 +546,7 @@ func (client *DomainsClient) getOwnershipIdentifierCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -566,7 +563,7 @@ func (client *DomainsClient) getOwnershipIdentifierHandleResponse(resp *http.Res // NewListPager - Description for Get all domains in a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -592,7 +589,7 @@ func (client *DomainsClient) NewListPager(options *DomainsClientListOptions) *ru } // listCreateRequest creates the List request. -func (client *DomainsClient) listCreateRequest(ctx context.Context, options *DomainsClientListOptions) (*policy.Request, error) { +func (client *DomainsClient) listCreateRequest(ctx context.Context, _ *DomainsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -603,7 +600,7 @@ func (client *DomainsClient) listCreateRequest(ctx context.Context, options *Dom return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -620,7 +617,7 @@ func (client *DomainsClient) listHandleResponse(resp *http.Response) (DomainsCli // NewListByResourceGroupPager - Description for Get all domains in a resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - DomainsClientListByResourceGroupOptions contains the optional parameters for the DomainsClient.NewListByResourceGroupPager // method. @@ -648,7 +645,7 @@ func (client *DomainsClient) NewListByResourceGroupPager(resourceGroupName strin } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *DomainsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *DomainsClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *DomainsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *DomainsClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -663,7 +660,7 @@ func (client *DomainsClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -680,7 +677,7 @@ func (client *DomainsClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListOwnershipIdentifiersPager - Description for Lists domain ownership identifiers. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -709,7 +706,7 @@ func (client *DomainsClient) NewListOwnershipIdentifiersPager(resourceGroupName } // listOwnershipIdentifiersCreateRequest creates the ListOwnershipIdentifiers request. -func (client *DomainsClient) listOwnershipIdentifiersCreateRequest(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientListOwnershipIdentifiersOptions) (*policy.Request, error) { +func (client *DomainsClient) listOwnershipIdentifiersCreateRequest(ctx context.Context, resourceGroupName string, domainName string, _ *DomainsClientListOwnershipIdentifiersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -728,7 +725,7 @@ func (client *DomainsClient) listOwnershipIdentifiersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -745,7 +742,7 @@ func (client *DomainsClient) listOwnershipIdentifiersHandleResponse(resp *http.R // NewListRecommendationsPager - Description for Get domain name recommendations based on keywords. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - parameters - Search parameters for domain name recommendations. // - options - DomainsClientListRecommendationsOptions contains the optional parameters for the DomainsClient.NewListRecommendationsPager // method. @@ -773,7 +770,7 @@ func (client *DomainsClient) NewListRecommendationsPager(parameters DomainRecomm } // listRecommendationsCreateRequest creates the ListRecommendations request. -func (client *DomainsClient) listRecommendationsCreateRequest(ctx context.Context, parameters DomainRecommendationSearchParameters, options *DomainsClientListRecommendationsOptions) (*policy.Request, error) { +func (client *DomainsClient) listRecommendationsCreateRequest(ctx context.Context, parameters DomainRecommendationSearchParameters, _ *DomainsClientListRecommendationsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -784,7 +781,7 @@ func (client *DomainsClient) listRecommendationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -805,7 +802,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -831,7 +828,7 @@ func (client *DomainsClient) Renew(ctx context.Context, resourceGroupName string } // renewCreateRequest creates the Renew request. -func (client *DomainsClient) renewCreateRequest(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientRenewOptions) (*policy.Request, error) { +func (client *DomainsClient) renewCreateRequest(ctx context.Context, resourceGroupName string, domainName string, _ *DomainsClientRenewOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/renew" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -850,7 +847,7 @@ func (client *DomainsClient) renewCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -859,7 +856,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -886,7 +883,7 @@ func (client *DomainsClient) TransferOut(ctx context.Context, resourceGroupName } // transferOutCreateRequest creates the TransferOut request. -func (client *DomainsClient) transferOutCreateRequest(ctx context.Context, resourceGroupName string, domainName string, options *DomainsClientTransferOutOptions) (*policy.Request, error) { +func (client *DomainsClient) transferOutCreateRequest(ctx context.Context, resourceGroupName string, domainName string, _ *DomainsClientTransferOutOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -905,7 +902,7 @@ func (client *DomainsClient) transferOutCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -923,7 +920,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - domainName - Name of the domain. // - domain - Domain registration information. @@ -951,7 +948,7 @@ func (client *DomainsClient) Update(ctx context.Context, resourceGroupName strin } // updateCreateRequest creates the Update request. -func (client *DomainsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, domainName string, domain DomainPatchResource, options *DomainsClientUpdateOptions) (*policy.Request, error) { +func (client *DomainsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, domainName string, domain DomainPatchResource, _ *DomainsClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -970,7 +967,7 @@ func (client *DomainsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domain); err != nil { @@ -992,7 +989,7 @@ func (client *DomainsClient) updateHandleResponse(resp *http.Response) (DomainsC // for an existing identifier // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - domainName - Name of domain. // - name - Name of identifier. @@ -1022,7 +1019,7 @@ func (client *DomainsClient) UpdateOwnershipIdentifier(ctx context.Context, reso } // updateOwnershipIdentifierCreateRequest creates the UpdateOwnershipIdentifier request. -func (client *DomainsClient) updateOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier, options *DomainsClientUpdateOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *DomainsClient) updateOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier, _ *DomainsClientUpdateOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1045,7 +1042,7 @@ func (client *DomainsClient) updateOwnershipIdentifierCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { 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 308e0669eff4..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go +++ /dev/null @@ -1,1196 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().CheckAvailability(ctx, armappservice.NameIdentifier{ - Name: to.Ptr("abcd.com"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainAvailabilityCheckResult = armappservice.DomainAvailabilityCheckResult{ - // Name: to.Ptr("abcd.com"), - // Available: to.Ptr(true), - // DomainType: to.Ptr(armappservice.DomainTypeRegular), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DomainCollection = armappservice.DomainCollection{ - // Value: []*armappservice.Domain{ - // { - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // 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:53.000Z"); 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"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53.000Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53.000Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().GetControlCenterSsoRequest(ctx, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainControlCenterSsoRequest = armappservice.DomainControlCenterSsoRequest{ - // PostParameterKey: to.Ptr("saml"), - // PostParameterValue: to.Ptr("1242sds|k1340"), - // URL: to.Ptr("https://Reseller.provider.com/?xRequestId=sdsdsds&app=dcc"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListRecommendationsPager(armappservice.DomainRecommendationSearchParameters{ - Keywords: to.Ptr("example1"), - MaxDomainRecommendations: to.Ptr[int32](10), - }, nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.NameIdentifierCollection = armappservice.NameIdentifierCollection{ - // Value: []*armappservice.NameIdentifier{ - // { - // Name: to.Ptr("domainnamesuggestion1"), - // }, - // { - // Name: to.Ptr("domainnamesuggestion2"), - // }, - // { - // Name: to.Ptr("domainnamesuggestion3"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DomainCollection = armappservice.DomainCollection{ - // Value: []*armappservice.Domain{ - // { - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // 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:53.000Z"); 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"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53.000Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53.000Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().Get(ctx, "testrg123", "example.com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // 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:53.000Z"); 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"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53.000Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53.000Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewDomainsClient().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:53.000Z"); 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // 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:53.000Z"); 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"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53.000Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53.000Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDomainsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().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:53.000Z"); 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // 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:53.000Z"); 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"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53.000Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53.000Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewDomainsClient().NewListOwnershipIdentifiersPager("testrg123", "example.com", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DomainOwnershipIdentifierCollection = armappservice.DomainOwnershipIdentifierCollection{ - // Value: []*armappservice.DomainOwnershipIdentifier{ - // { - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().GetOwnershipIdentifier(ctx, "testrg123", "example.com", "SampleOwnershipId", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainOwnershipIdentifier = armappservice.DomainOwnershipIdentifier{ - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainOwnershipIdentifier = armappservice.DomainOwnershipIdentifier{ - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDomainsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DomainOwnershipIdentifier = armappservice.DomainOwnershipIdentifier{ - // Name: to.Ptr("SampleOwnershipId"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains/domainownershipidentifiers"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com/domainownershipidentifiers/SampleOwnershipId"), - // Properties: &armappservice.DomainOwnershipIdentifierProperties{ - // OwnershipID: to.Ptr("SampleOwnershipId"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewDomainsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewDomainsClient().TransferOut(ctx, "testrg123", "example.com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Domain = armappservice.Domain{ - // Name: to.Ptr("example.com"), - // Type: to.Ptr("Microsoft.DomainRegistration/domains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com"), - // 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:53.000Z"); 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"), - // }, - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-10T19:30:53.000Z"); return t}()), - // DNSType: to.Ptr(armappservice.DNSTypeDefaultDomainRegistrarDNS), - // DomainNotRenewableReasons: []*armappservice.ResourceNotRenewableReason{ - // to.Ptr(armappservice.ResourceNotRenewableReasonExpirationNotInRenewalTimeRange)}, - // ExpirationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-10T19:30:53.000Z"); return t}()), - // ManagedHostNames: []*armappservice.HostName{ - // }, - // NameServers: []*string{ - // to.Ptr("ns01.ote.domaincontrol.com"), - // to.Ptr("ns02.ote.domaincontrol.com")}, - // Privacy: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // ReadyForDNSRecordManagement: to.Ptr(true), - // RegistrationStatus: to.Ptr(armappservice.DomainStatusActive), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/environments_client.go b/sdk/resourcemanager/appservice/armappservice/environments_client.go index f9b2ea0e7776..7d217ce93174 100644 --- a/sdk/resourcemanager/appservice/armappservice/environments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/environments_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -72,7 +69,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection" @@ -95,7 +92,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnection(ctx c } // approveOrRejectPrivateEndpointConnectionCreateRequest creates the ApproveOrRejectPrivateEndpointConnection request. -func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, _ *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -118,7 +115,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -129,7 +126,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate // BeginChangeVnet - Description for Move an App Service Environment to a different VNET. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -172,7 +169,7 @@ func (client *EnvironmentsClient) BeginChangeVnet(ctx context.Context, resourceG // ChangeVnet - Description for Move an App Service Environment to a different VNET. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) changeVnet(ctx context.Context, resourceGroupName string, name string, vnetInfo VirtualNetworkProfile, options *EnvironmentsClientBeginChangeVnetOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginChangeVnet" @@ -195,7 +192,7 @@ func (client *EnvironmentsClient) changeVnet(ctx context.Context, resourceGroupN } // changeVnetCreateRequest creates the ChangeVnet request. -func (client *EnvironmentsClient) changeVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetInfo VirtualNetworkProfile, options *EnvironmentsClientBeginChangeVnetOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) changeVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetInfo VirtualNetworkProfile, _ *EnvironmentsClientBeginChangeVnetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/changeVirtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -214,7 +211,7 @@ func (client *EnvironmentsClient) changeVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, vnetInfo); err != nil { @@ -235,7 +232,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -261,7 +258,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentResource, options *EnvironmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginCreateOrUpdate" @@ -284,7 +281,7 @@ func (client *EnvironmentsClient) createOrUpdate(ctx context.Context, resourceGr } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentResource, options *EnvironmentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentResource, _ *EnvironmentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -303,7 +300,7 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostingEnvironmentEnvelope); err != nil { @@ -315,7 +312,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -341,7 +338,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) createOrUpdateMultiRolePool(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginCreateOrUpdateMultiRolePool" @@ -364,7 +361,7 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePool(ctx context.Contex } // createOrUpdateMultiRolePoolCreateRequest creates the CreateOrUpdateMultiRolePool request. -func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, _ *EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -383,7 +380,7 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, multiRolePoolEnvelope); err != nil { @@ -395,7 +392,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -422,7 +419,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) createOrUpdateWorkerPool(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginCreateOrUpdateWorkerPool" @@ -445,7 +442,7 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPool(ctx context.Context, } // createOrUpdateWorkerPoolCreateRequest creates the CreateOrUpdateWorkerPool request. -func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, options *EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, _ *EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -468,7 +465,7 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, workerPoolEnvelope); err != nil { @@ -480,7 +477,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -505,7 +502,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginDelete" @@ -547,7 +544,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ForceDelete != nil { reqQP.Set("forceDelete", strconv.FormatBool(*options.ForceDelete)) } @@ -559,7 +556,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -587,7 +584,7 @@ func (client *EnvironmentsClient) DeleteAseCustomDNSSuffixConfiguration(ctx cont } // deleteAseCustomDNSSuffixConfigurationCreateRequest creates the DeleteAseCustomDNSSuffixConfiguration request. -func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -606,7 +603,7 @@ func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -624,7 +621,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -649,7 +646,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginDeletePrivateEndpointConnection" @@ -672,7 +669,7 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnection(ctx context.Co } // deletePrivateEndpointConnectionCreateRequest creates the DeletePrivateEndpointConnection request. -func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, _ *EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -695,7 +692,7 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -704,7 +701,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -731,7 +728,7 @@ func (client *EnvironmentsClient) Get(ctx context.Context, resourceGroupName str } // getCreateRequest creates the Get request. -func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -750,7 +747,7 @@ func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -768,7 +765,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -796,7 +793,7 @@ func (client *EnvironmentsClient) GetAseCustomDNSSuffixConfiguration(ctx context } // getAseCustomDNSSuffixConfigurationCreateRequest creates the GetAseCustomDNSSuffixConfiguration request. -func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetAseCustomDNSSuffixConfigurationOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetAseCustomDNSSuffixConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -815,7 +812,7 @@ func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -833,7 +830,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -861,7 +858,7 @@ func (client *EnvironmentsClient) GetAseV3NetworkingConfiguration(ctx context.Co } // getAseV3NetworkingConfigurationCreateRequest creates the GetAseV3NetworkingConfiguration request. -func (client *EnvironmentsClient) getAseV3NetworkingConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetAseV3NetworkingConfigurationOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getAseV3NetworkingConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetAseV3NetworkingConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -880,7 +877,7 @@ func (client *EnvironmentsClient) getAseV3NetworkingConfigurationCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -898,7 +895,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -927,7 +924,7 @@ func (client *EnvironmentsClient) GetDiagnosticsItem(ctx context.Context, resour } // getDiagnosticsItemCreateRequest creates the GetDiagnosticsItem request. -func (client *EnvironmentsClient) getDiagnosticsItemCreateRequest(ctx context.Context, resourceGroupName string, name string, diagnosticsName string, options *EnvironmentsClientGetDiagnosticsItemOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getDiagnosticsItemCreateRequest(ctx context.Context, resourceGroupName string, name string, diagnosticsName string, _ *EnvironmentsClientGetDiagnosticsItemOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -950,7 +947,7 @@ func (client *EnvironmentsClient) getDiagnosticsItemCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -968,7 +965,7 @@ func (client *EnvironmentsClient) getDiagnosticsItemHandleResponse(resp *http.Re // NewGetInboundNetworkDependenciesEndpointsPager - Description for Get the network endpoints of all inbound dependencies // of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -997,7 +994,7 @@ func (client *EnvironmentsClient) NewGetInboundNetworkDependenciesEndpointsPager } // getInboundNetworkDependenciesEndpointsCreateRequest creates the GetInboundNetworkDependenciesEndpoints request. -func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1016,7 +1013,7 @@ func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1034,7 +1031,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -1062,7 +1059,7 @@ func (client *EnvironmentsClient) GetMultiRolePool(ctx context.Context, resource } // getMultiRolePoolCreateRequest creates the GetMultiRolePool request. -func (client *EnvironmentsClient) getMultiRolePoolCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetMultiRolePoolOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getMultiRolePoolCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetMultiRolePoolOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1081,7 +1078,7 @@ func (client *EnvironmentsClient) getMultiRolePoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1099,7 +1096,7 @@ func (client *EnvironmentsClient) getMultiRolePoolHandleResponse(resp *http.Resp // NewGetOutboundNetworkDependenciesEndpointsPager - Description for Get the network endpoints of all outbound dependencies // of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1128,7 +1125,7 @@ func (client *EnvironmentsClient) NewGetOutboundNetworkDependenciesEndpointsPage } // getOutboundNetworkDependenciesEndpointsCreateRequest creates the GetOutboundNetworkDependenciesEndpoints request. -func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1147,7 +1144,7 @@ func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1165,7 +1162,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1194,7 +1191,7 @@ func (client *EnvironmentsClient) GetPrivateEndpointConnection(ctx context.Conte } // getPrivateEndpointConnectionCreateRequest creates the GetPrivateEndpointConnection request. -func (client *EnvironmentsClient) getPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *EnvironmentsClientGetPrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, _ *EnvironmentsClientGetPrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1217,7 +1214,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1235,7 +1232,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionHandleResponse(res // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoints associated with a hosting // environment // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1264,7 +1261,7 @@ func (client *EnvironmentsClient) NewGetPrivateEndpointConnectionListPager(resou } // getPrivateEndpointConnectionListCreateRequest creates the GetPrivateEndpointConnectionList request. -func (client *EnvironmentsClient) getPrivateEndpointConnectionListCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetPrivateEndpointConnectionListOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getPrivateEndpointConnectionListCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetPrivateEndpointConnectionListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1283,7 +1280,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionListCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1301,7 +1298,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -1329,7 +1326,7 @@ func (client *EnvironmentsClient) GetPrivateLinkResources(ctx context.Context, r } // getPrivateLinkResourcesCreateRequest creates the GetPrivateLinkResources request. -func (client *EnvironmentsClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetPrivateLinkResourcesOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetPrivateLinkResourcesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateLinkResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1348,7 +1345,7 @@ func (client *EnvironmentsClient) getPrivateLinkResourcesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1366,7 +1363,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1393,7 +1390,7 @@ func (client *EnvironmentsClient) GetVipInfo(ctx context.Context, resourceGroupN } // getVipInfoCreateRequest creates the GetVipInfo request. -func (client *EnvironmentsClient) getVipInfoCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientGetVipInfoOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getVipInfoCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientGetVipInfoOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1412,7 +1409,7 @@ func (client *EnvironmentsClient) getVipInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1430,7 +1427,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1459,7 +1456,7 @@ func (client *EnvironmentsClient) GetWorkerPool(ctx context.Context, resourceGro } // getWorkerPoolCreateRequest creates the GetWorkerPool request. -func (client *EnvironmentsClient) getWorkerPoolCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientGetWorkerPoolOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) getWorkerPoolCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, _ *EnvironmentsClientGetWorkerPoolOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1482,7 +1479,7 @@ func (client *EnvironmentsClient) getWorkerPoolCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1499,7 +1496,7 @@ func (client *EnvironmentsClient) getWorkerPoolHandleResponse(resp *http.Respons // NewListPager - Description for Get all App Service Environments for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -1525,7 +1522,7 @@ func (client *EnvironmentsClient) NewListPager(options *EnvironmentsClientListOp } // listCreateRequest creates the List request. -func (client *EnvironmentsClient) listCreateRequest(ctx context.Context, options *EnvironmentsClientListOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listCreateRequest(ctx context.Context, _ *EnvironmentsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -1536,7 +1533,7 @@ func (client *EnvironmentsClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1553,7 +1550,7 @@ func (client *EnvironmentsClient) listHandleResponse(resp *http.Response) (Envir // NewListAppServicePlansPager - Description for Get all App Service plans in an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1582,7 +1579,7 @@ func (client *EnvironmentsClient) NewListAppServicePlansPager(resourceGroupName } // listAppServicePlansCreateRequest creates the ListAppServicePlans request. -func (client *EnvironmentsClient) listAppServicePlansCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListAppServicePlansOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listAppServicePlansCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListAppServicePlansOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/serverfarms" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1601,7 +1598,7 @@ func (client *EnvironmentsClient) listAppServicePlansCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1618,7 +1615,7 @@ func (client *EnvironmentsClient) listAppServicePlansHandleResponse(resp *http.R // NewListByResourceGroupPager - Description for Get all App Service Environments in a resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - EnvironmentsClientListByResourceGroupOptions contains the optional parameters for the EnvironmentsClient.NewListByResourceGroupPager // method. @@ -1646,7 +1643,7 @@ func (client *EnvironmentsClient) NewListByResourceGroupPager(resourceGroupName } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *EnvironmentsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *EnvironmentsClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *EnvironmentsClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1661,7 +1658,7 @@ func (client *EnvironmentsClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1678,7 +1675,7 @@ func (client *EnvironmentsClient) listByResourceGroupHandleResponse(resp *http.R // NewListCapacitiesPager - Description for Get the used, available, and total worker capacity an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1707,7 +1704,7 @@ func (client *EnvironmentsClient) NewListCapacitiesPager(resourceGroupName strin } // listCapacitiesCreateRequest creates the ListCapacities request. -func (client *EnvironmentsClient) listCapacitiesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListCapacitiesOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listCapacitiesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListCapacitiesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1726,7 +1723,7 @@ func (client *EnvironmentsClient) listCapacitiesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1744,7 +1741,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -1772,7 +1769,7 @@ func (client *EnvironmentsClient) ListDiagnostics(ctx context.Context, resourceG } // listDiagnosticsCreateRequest creates the ListDiagnostics request. -func (client *EnvironmentsClient) listDiagnosticsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListDiagnosticsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listDiagnosticsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListDiagnosticsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1791,7 +1788,7 @@ func (client *EnvironmentsClient) listDiagnosticsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1809,7 +1806,7 @@ func (client *EnvironmentsClient) listDiagnosticsHandleResponse(resp *http.Respo // NewListMultiRoleMetricDefinitionsPager - Description for Get metric definitions for a multi-role pool of an App Service // Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1838,7 +1835,7 @@ func (client *EnvironmentsClient) NewListMultiRoleMetricDefinitionsPager(resourc } // listMultiRoleMetricDefinitionsCreateRequest creates the ListMultiRoleMetricDefinitions request. -func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListMultiRoleMetricDefinitionsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListMultiRoleMetricDefinitionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1857,7 +1854,7 @@ func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1875,7 +1872,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -1905,7 +1902,7 @@ func (client *EnvironmentsClient) NewListMultiRolePoolInstanceMetricDefinitionsP } // listMultiRolePoolInstanceMetricDefinitionsCreateRequest creates the ListMultiRolePoolInstanceMetricDefinitions request. -func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, instance string, options *EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, instance string, _ *EnvironmentsClientListMultiRolePoolInstanceMetricDefinitionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1928,7 +1925,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1945,7 +1942,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsHand // NewListMultiRolePoolSKUsPager - Description for Get available SKUs for scaling a multi-role pool. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1974,7 +1971,7 @@ func (client *EnvironmentsClient) NewListMultiRolePoolSKUsPager(resourceGroupNam } // listMultiRolePoolSKUsCreateRequest creates the ListMultiRolePoolSKUs request. -func (client *EnvironmentsClient) listMultiRolePoolSKUsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListMultiRolePoolSKUsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listMultiRolePoolSKUsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListMultiRolePoolSKUsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/skus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1993,7 +1990,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2010,7 +2007,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsHandleResponse(resp *http // NewListMultiRolePoolsPager - Description for Get all multi-role pools. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2039,7 +2036,7 @@ func (client *EnvironmentsClient) NewListMultiRolePoolsPager(resourceGroupName s } // listMultiRolePoolsCreateRequest creates the ListMultiRolePools request. -func (client *EnvironmentsClient) listMultiRolePoolsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListMultiRolePoolsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listMultiRolePoolsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListMultiRolePoolsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2058,7 +2055,7 @@ func (client *EnvironmentsClient) listMultiRolePoolsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2075,7 +2072,7 @@ func (client *EnvironmentsClient) listMultiRolePoolsHandleResponse(resp *http.Re // NewListMultiRoleUsagesPager - Description for Get usage metrics for a multi-role pool of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2104,7 +2101,7 @@ func (client *EnvironmentsClient) NewListMultiRoleUsagesPager(resourceGroupName } // listMultiRoleUsagesCreateRequest creates the ListMultiRoleUsages request. -func (client *EnvironmentsClient) listMultiRoleUsagesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListMultiRoleUsagesOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listMultiRoleUsagesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListMultiRoleUsagesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/usages" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2123,7 +2120,7 @@ func (client *EnvironmentsClient) listMultiRoleUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2141,7 +2138,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -2169,7 +2166,7 @@ func (client *EnvironmentsClient) ListOperations(ctx context.Context, resourceGr } // listOperationsCreateRequest creates the ListOperations request. -func (client *EnvironmentsClient) listOperationsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListOperationsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listOperationsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListOperationsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2188,7 +2185,7 @@ func (client *EnvironmentsClient) listOperationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2205,7 +2202,7 @@ func (client *EnvironmentsClient) listOperationsHandleResponse(resp *http.Respon // NewListUsagesPager - Description for Get global usage metrics of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2253,7 +2250,7 @@ func (client *EnvironmentsClient) listUsagesCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -2275,7 +2272,7 @@ func (client *EnvironmentsClient) listUsagesHandleResponse(resp *http.Response) // NewListWebAppsPager - Description for Get all apps in an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2323,7 +2320,7 @@ func (client *EnvironmentsClient) listWebAppsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.PropertiesToInclude != nil { reqQP.Set("propertiesToInclude", *options.PropertiesToInclude) } @@ -2343,7 +2340,7 @@ func (client *EnvironmentsClient) listWebAppsHandleResponse(resp *http.Response) // NewListWebWorkerMetricDefinitionsPager - Description for Get metric definitions for a worker pool of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -2373,7 +2370,7 @@ func (client *EnvironmentsClient) NewListWebWorkerMetricDefinitionsPager(resourc } // listWebWorkerMetricDefinitionsCreateRequest creates the ListWebWorkerMetricDefinitions request. -func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientListWebWorkerMetricDefinitionsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, _ *EnvironmentsClientListWebWorkerMetricDefinitionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metricdefinitions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2396,7 +2393,7 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2413,7 +2410,7 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsHandleResponse(r // NewListWebWorkerUsagesPager - Description for Get usage metrics for a worker pool of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -2443,7 +2440,7 @@ func (client *EnvironmentsClient) NewListWebWorkerUsagesPager(resourceGroupName } // listWebWorkerUsagesCreateRequest creates the ListWebWorkerUsages request. -func (client *EnvironmentsClient) listWebWorkerUsagesCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientListWebWorkerUsagesOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listWebWorkerUsagesCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, _ *EnvironmentsClientListWebWorkerUsagesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/usages" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2466,7 +2463,7 @@ func (client *EnvironmentsClient) listWebWorkerUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2484,7 +2481,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -2515,7 +2512,7 @@ func (client *EnvironmentsClient) NewListWorkerPoolInstanceMetricDefinitionsPage } // listWorkerPoolInstanceMetricDefinitionsCreateRequest creates the ListWorkerPoolInstanceMetricDefinitions request. -func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, instance string, options *EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, instance string, _ *EnvironmentsClientListWorkerPoolInstanceMetricDefinitionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metricdefinitions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2542,7 +2539,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2559,7 +2556,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsHandleR // NewListWorkerPoolSKUsPager - Description for Get available SKUs for scaling a worker pool. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -2589,7 +2586,7 @@ func (client *EnvironmentsClient) NewListWorkerPoolSKUsPager(resourceGroupName s } // listWorkerPoolSKUsCreateRequest creates the ListWorkerPoolSKUs request. -func (client *EnvironmentsClient) listWorkerPoolSKUsCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, options *EnvironmentsClientListWorkerPoolSKUsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listWorkerPoolSKUsCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, _ *EnvironmentsClientListWorkerPoolSKUsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/skus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2612,7 +2609,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2629,7 +2626,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsHandleResponse(resp *http.Re // NewListWorkerPoolsPager - Description for Get all worker pools of an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2658,7 +2655,7 @@ func (client *EnvironmentsClient) NewListWorkerPoolsPager(resourceGroupName stri } // listWorkerPoolsCreateRequest creates the ListWorkerPools request. -func (client *EnvironmentsClient) listWorkerPoolsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientListWorkerPoolsOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) listWorkerPoolsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientListWorkerPoolsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2677,7 +2674,7 @@ func (client *EnvironmentsClient) listWorkerPoolsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2695,7 +2692,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -2721,7 +2718,7 @@ func (client *EnvironmentsClient) Reboot(ctx context.Context, resourceGroupName } // rebootCreateRequest creates the Reboot request. -func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientRebootOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientRebootOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/reboot" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2740,7 +2737,7 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2748,7 +2745,7 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou // BeginResume - Description for Resume an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2790,7 +2787,7 @@ func (client *EnvironmentsClient) BeginResume(ctx context.Context, resourceGroup // Resume - Description for Resume an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) resume(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginResumeOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginResume" @@ -2813,7 +2810,7 @@ func (client *EnvironmentsClient) resume(ctx context.Context, resourceGroupName } // resumeCreateRequest creates the Resume request. -func (client *EnvironmentsClient) resumeCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginResumeOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) resumeCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientBeginResumeOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/resume" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2832,7 +2829,7 @@ func (client *EnvironmentsClient) resumeCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2849,7 +2846,7 @@ func (client *EnvironmentsClient) resumeHandleResponse(resp *http.Response) (Env // BeginSuspend - Description for Suspend an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2891,7 +2888,7 @@ func (client *EnvironmentsClient) BeginSuspend(ctx context.Context, resourceGrou // Suspend - Description for Suspend an App Service Environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) suspend(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginSuspendOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginSuspend" @@ -2914,7 +2911,7 @@ func (client *EnvironmentsClient) suspend(ctx context.Context, resourceGroupName } // suspendCreateRequest creates the Suspend request. -func (client *EnvironmentsClient) suspendCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginSuspendOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) suspendCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientBeginSuspendOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/suspend" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2933,7 +2930,7 @@ func (client *EnvironmentsClient) suspendCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2951,7 +2948,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -2978,7 +2975,7 @@ func (client *EnvironmentsClient) TestUpgradeAvailableNotification(ctx context.C } // testUpgradeAvailableNotificationCreateRequest creates the TestUpgradeAvailableNotification request. -func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientTestUpgradeAvailableNotificationOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientTestUpgradeAvailableNotificationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/testUpgradeAvailableNotification" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2997,7 +2994,7 @@ func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3006,7 +3003,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3034,7 +3031,7 @@ func (client *EnvironmentsClient) Update(ctx context.Context, resourceGroupName } // updateCreateRequest creates the Update request. -func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentPatchResource, options *EnvironmentsClientUpdateOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, hostingEnvironmentEnvelope EnvironmentPatchResource, _ *EnvironmentsClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3053,7 +3050,7 @@ func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostingEnvironmentEnvelope); err != nil { @@ -3074,7 +3071,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3102,7 +3099,7 @@ func (client *EnvironmentsClient) UpdateAseCustomDNSSuffixConfiguration(ctx cont } // updateAseCustomDNSSuffixConfigurationCreateRequest creates the UpdateAseCustomDNSSuffixConfiguration request. -func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, customDNSSuffixConfiguration CustomDNSSuffixConfiguration, options *EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, customDNSSuffixConfiguration CustomDNSSuffixConfiguration, _ *EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/customdnssuffix" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3121,7 +3118,7 @@ func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, customDNSSuffixConfiguration); err != nil { @@ -3142,7 +3139,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3170,7 +3167,7 @@ func (client *EnvironmentsClient) UpdateAseNetworkingConfiguration(ctx context.C } // updateAseNetworkingConfigurationCreateRequest creates the UpdateAseNetworkingConfiguration request. -func (client *EnvironmentsClient) updateAseNetworkingConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, aseNetworkingConfiguration AseV3NetworkingConfiguration, options *EnvironmentsClientUpdateAseNetworkingConfigurationOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) updateAseNetworkingConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, aseNetworkingConfiguration AseV3NetworkingConfiguration, _ *EnvironmentsClientUpdateAseNetworkingConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3189,7 +3186,7 @@ func (client *EnvironmentsClient) updateAseNetworkingConfigurationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, aseNetworkingConfiguration); err != nil { @@ -3210,7 +3207,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3239,7 +3236,7 @@ func (client *EnvironmentsClient) UpdateMultiRolePool(ctx context.Context, resou } // updateMultiRolePoolCreateRequest creates the UpdateMultiRolePool request. -func (client *EnvironmentsClient) updateMultiRolePoolCreateRequest(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, options *EnvironmentsClientUpdateMultiRolePoolOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) updateMultiRolePoolCreateRequest(ctx context.Context, resourceGroupName string, name string, multiRolePoolEnvelope WorkerPoolResource, _ *EnvironmentsClientUpdateMultiRolePoolOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3258,7 +3255,7 @@ func (client *EnvironmentsClient) updateMultiRolePoolCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, multiRolePoolEnvelope); err != nil { @@ -3279,7 +3276,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3309,7 +3306,7 @@ func (client *EnvironmentsClient) UpdateWorkerPool(ctx context.Context, resource } // updateWorkerPoolCreateRequest creates the UpdateWorkerPool request. -func (client *EnvironmentsClient) updateWorkerPoolCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, options *EnvironmentsClientUpdateWorkerPoolOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) updateWorkerPoolCreateRequest(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope WorkerPoolResource, _ *EnvironmentsClientUpdateWorkerPoolOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3332,7 +3329,7 @@ func (client *EnvironmentsClient) updateWorkerPoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, workerPoolEnvelope); err != nil { @@ -3353,7 +3350,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3378,7 +3375,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *EnvironmentsClient) upgrade(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginUpgradeOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginUpgrade" @@ -3401,7 +3398,7 @@ func (client *EnvironmentsClient) upgrade(ctx context.Context, resourceGroupName } // upgradeCreateRequest creates the Upgrade request. -func (client *EnvironmentsClient) upgradeCreateRequest(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginUpgradeOptions) (*policy.Request, error) { +func (client *EnvironmentsClient) upgradeCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *EnvironmentsClientBeginUpgradeOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/upgrade" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3420,7 +3417,7 @@ func (client *EnvironmentsClient) upgradeCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go deleted file mode 100644 index a1da665e23eb..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go +++ /dev/null @@ -1,2889 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.EnvironmentCollection = armappservice.EnvironmentCollection{ - // Value: []*armappservice.EnvironmentResource{ - // { - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListByResourceGroupPager("test-rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.EnvironmentCollection = armappservice.EnvironmentCollection{ - // Value: []*armappservice.EnvironmentResource{ - // { - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().Get(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.EnvironmentResource = armappservice.EnvironmentResource{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.EnvironmentResource = armappservice.EnvironmentResource{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.EnvironmentResource = armappservice.EnvironmentResource{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // Kind: to.Ptr("ASEV3"), - // Location: to.Ptr("South Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.Environment{ - // DedicatedHostCount: to.Ptr[int32](0), - // DNSSuffix: to.Ptr("test-ase.p.azurewebsites.net"), - // FrontEndScaleFactor: to.Ptr[int32](15), - // HasLinuxWorkers: to.Ptr(true), - // InternalLoadBalancingMode: to.Ptr(armappservice.LoadBalancingModeNone), - // IpsslAddressCount: to.Ptr[int32](0), - // MaximumNumberOfMachines: to.Ptr[int32](250), - // MultiSize: to.Ptr("Standard_D2d_v4"), - // NetworkingConfiguration: &armappservice.AseV3NetworkingConfiguration{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // }, - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Status: to.Ptr(armappservice.HostingEnvironmentStatusReady), - // Suspended: to.Ptr(false), - // VirtualNetwork: &armappservice.VirtualNetworkProfile{ - // Name: to.Ptr("delegated"), - // Type: to.Ptr("Microsoft.Network/virtualNetworks/subnets"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"), - // Subnet: to.Ptr(""), - // }, - // ZoneRedundant: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListCapacitiesPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StampCapacityCollection = armappservice.StampCapacityCollection{ - // Value: []*armappservice.StampCapacity{ - // { - // AvailableCapacity: to.Ptr[int64](0), - // ComputeMode: to.Ptr(armappservice.ComputeModeOptionsDedicated), - // ExcludeFromCapacityAllocation: to.Ptr(false), - // IsApplicableForAllComputeModes: to.Ptr(false), - // IsLinux: to.Ptr(false), - // TotalCapacity: to.Ptr[int64](1), - // WorkerSizeID: to.Ptr[int32](0), - // }, - // { - // AvailableCapacity: to.Ptr[int64](0), - // ComputeMode: to.Ptr(armappservice.ComputeModeOptionsDedicated), - // ExcludeFromCapacityAllocation: to.Ptr(false), - // IsApplicableForAllComputeModes: to.Ptr(false), - // IsLinux: to.Ptr(false), - // TotalCapacity: to.Ptr[int64](1), - // WorkerSizeID: to.Ptr[int32](1), - // }, - // { - // AvailableCapacity: to.Ptr[int64](0), - // ComputeMode: to.Ptr(armappservice.ComputeModeOptionsDedicated), - // ExcludeFromCapacityAllocation: to.Ptr(false), - // IsApplicableForAllComputeModes: to.Ptr(false), - // IsLinux: to.Ptr(false), - // TotalCapacity: to.Ptr[int64](1), - // WorkerSizeID: to.Ptr[int32](2), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetVipInfo(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AddressResponse = armappservice.AddressResponse{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/capacities"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/Microsoft.Web/hostingEnvironments/test-ase/capacities/virtualip"), - // Properties: &armappservice.AddressResponseProperties{ - // OutboundIPAddresses: []*string{ - // to.Ptr("20.112.141.120")}, - // ServiceIPAddress: to.Ptr("20.112.141.120"), - // VipMappings: []*armappservice.VirtualIPMapping{ - // { - // InUse: to.Ptr(false), - // InternalHTTPPort: to.Ptr[int32](20003), - // InternalHTTPSPort: to.Ptr[int32](20001), - // VirtualIP: to.Ptr("20.112.141.135"), - // }, - // { - // InUse: to.Ptr(false), - // InternalHTTPPort: to.Ptr[int32](20004), - // InternalHTTPSPort: to.Ptr[int32](20002), - // VirtualIP: to.Ptr("20.112.141.150"), - // }}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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() { - page, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetAseCustomDnsSuffixConfiguration.json -func ExampleEnvironmentsClient_GetAseCustomDNSSuffixConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetAseCustomDNSSuffixConfiguration(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomDNSSuffixConfiguration = armappservice.CustomDNSSuffixConfiguration{ - // Name: to.Ptr("customDnsSuffix"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/customdnssuffix"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/customdnssuffix"), - // Properties: &armappservice.CustomDNSSuffixConfigurationProperties{ - // CertificateURL: to.Ptr("https://test-kv.vault.azure.net/secrets/contosocert"), - // DNSSuffix: to.Ptr("contoso.com"), - // KeyVaultReferenceIdentity: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"), - // ProvisioningState: to.Ptr(armappservice.CustomDNSSuffixProvisioningStateSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAseCustomDnsSuffixConfiguration.json -func ExampleEnvironmentsClient_UpdateAseCustomDNSSuffixConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().UpdateAseCustomDNSSuffixConfiguration(ctx, "test-rg", "test-ase", armappservice.CustomDNSSuffixConfiguration{ - Properties: &armappservice.CustomDNSSuffixConfigurationProperties{ - CertificateURL: to.Ptr("https://test-kv.vault.azure.net/secrets/contosocert"), - DNSSuffix: to.Ptr("contoso.com"), - KeyVaultReferenceIdentity: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomDNSSuffixConfiguration = armappservice.CustomDNSSuffixConfiguration{ - // Name: to.Ptr("customDnsSuffix"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/customdnssuffix"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/customdnssuffix"), - // Properties: &armappservice.CustomDNSSuffixConfigurationProperties{ - // CertificateURL: to.Ptr("https://test-kv.vault.azure.net/secrets/contosocert"), - // DNSSuffix: to.Ptr("contoso.com"), - // KeyVaultReferenceIdentity: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/test-rg/providers/microsoft.managedidentity/userassignedidentities/test-user-mi"), - // ProvisioningState: to.Ptr(armappservice.CustomDNSSuffixProvisioningStateSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteAseCustomDnsSuffixConfiguration.json -func ExampleEnvironmentsClient_DeleteAseCustomDNSSuffixConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().DeleteAseCustomDNSSuffixConfiguration(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetAseV3NetworkingConfiguration(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AseV3NetworkingConfiguration = armappservice.AseV3NetworkingConfiguration{ - // Name: to.Ptr("networking"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/networking"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(false), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(false), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AseV3NetworkingConfiguration = armappservice.AseV3NetworkingConfiguration{ - // Name: to.Ptr("networking"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/configurations/networking"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking"), - // Properties: &armappservice.AseV3NetworkingConfigurationProperties{ - // AllowNewPrivateEndpointConnections: to.Ptr(false), - // ExternalInboundIPAddresses: []*string{ - // to.Ptr("52.153.248.36")}, - // FtpEnabled: to.Ptr(true), - // InternalInboundIPAddresses: []*string{ - // }, - // LinuxOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // RemoteDebugEnabled: to.Ptr(true), - // WindowsOutboundIPAddresses: []*string{ - // to.Ptr("20.88.241.56"), - // to.Ptr("20.88.241.9")}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().ListDiagnostics(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HostingEnvironmentDiagnosticsArray = []*armappservice.HostingEnvironmentDiagnostics{} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetDiagnosticsItem(ctx, "test-rg", "test-ase", "test-diagnostic", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.HostingEnvironmentDiagnostics = armappservice.HostingEnvironmentDiagnostics{ - // Name: to.Ptr("test-diagnostic"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewGetInboundNetworkDependenciesEndpointsPager("Sample-WestUSResourceGroup", "SampleAse", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.InboundEnvironmentEndpointCollection = armappservice.InboundEnvironmentEndpointCollection{ - // Value: []*armappservice.InboundEnvironmentEndpoint{ - // { - // Description: to.Ptr("App Service management"), - // Endpoints: []*string{ - // to.Ptr("70.37.57.58/32"), - // to.Ptr("157.55.208.185/32"), - // to.Ptr("23.102.188.65/32"), - // to.Ptr("191.236.154.88/32"), - // to.Ptr("52.174.22.21/32"), - // to.Ptr("13.94.149.179/32"), - // to.Ptr("13.94.143.126/32"), - // to.Ptr("13.94.141.115/32"), - // to.Ptr("52.178.195.197/32"), - // to.Ptr("52.178.190.65/32"), - // to.Ptr("52.178.184.149/32"), - // to.Ptr("52.178.177.147/32"), - // to.Ptr("13.75.127.117/32"), - // to.Ptr("40.83.125.161/32"), - // to.Ptr("40.83.121.56/32"), - // to.Ptr("40.83.120.64/32"), - // to.Ptr("52.187.56.50/32"), - // to.Ptr("52.187.63.37/32"), - // to.Ptr("52.187.59.251/32"), - // to.Ptr("52.187.63.19/32"), - // to.Ptr("52.165.158.140/32"), - // to.Ptr("52.165.152.214/32"), - // to.Ptr("52.165.154.193/32"), - // to.Ptr("52.165.153.122/32"), - // to.Ptr("104.44.129.255/32"), - // to.Ptr("104.44.134.255/32"), - // to.Ptr("104.44.129.243/32"), - // to.Ptr("104.44.129.141/32"), - // to.Ptr("65.52.193.203/32"), - // to.Ptr("70.37.89.222/32"), - // to.Ptr("13.64.115.203/32"), - // to.Ptr("52.225.177.153/32"), - // to.Ptr("65.52.172.237/32")}, - // Ports: []*string{ - // to.Ptr("454"), - // to.Ptr("455")}, - // }, - // { - // Description: to.Ptr("App Service Environment VIP"), - // Endpoints: []*string{ - // to.Ptr("52.247.209.18/32")}, - // Ports: []*string{ - // to.Ptr("454"), - // to.Ptr("455"), - // to.Ptr("16001")}, - // }, - // { - // Description: to.Ptr("App Service Environment subnet"), - // Endpoints: []*string{ - // to.Ptr("192.168.250.0/24")}, - // Ports: []*string{ - // to.Ptr("All")}, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRolePoolsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkerPoolCollection = armappservice.WorkerPoolCollection{ - // Value: []*armappservice.WorkerPoolResource{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/multiRolePools/default"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // to.Ptr("10.7.1.8"), - // to.Ptr("10.7.1.9")}, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Standard_D1_V2"), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q1"), - // Capacity: to.Ptr[int32](2), - // Family: to.Ptr("Q"), - // Size: to.Ptr("Q1"), - // Tier: to.Ptr("Quantum"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetMultiRolePool(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/multiRolePools/default"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // to.Ptr("10.7.1.8"), - // to.Ptr("10.7.1.9")}, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Standard_D1_V2"), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q1"), - // Capacity: to.Ptr[int32](2), - // Family: to.Ptr("Q"), - // Size: to.Ptr("Q1"), - // Tier: to.Ptr("Quantum"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRolePoolInstanceMetricDefinitionsPager("test-rg", "test-ase", "10.7.1.8", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/cpupercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/HttpQueueLength"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesReceived"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesSent"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRoleMetricDefinitionsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/cpupercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/HttpQueueLength"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesReceived"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/metricdefinitions/BytesSent"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json -func ExampleEnvironmentsClient_NewListMultiRolePoolSKUsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRolePoolSKUsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SKUInfoCollection = armappservice.SKUInfoCollection{ - // Value: []*armappservice.SKUInfo{ - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S2"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S3"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S4"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O2"), - // Tier: to.Ptr("Optimized"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O3"), - // Tier: to.Ptr("Optimized"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O4"), - // Tier: to.Ptr("Optimized"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q1"), - // Tier: to.Ptr("Quantum"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q2"), - // Tier: to.Ptr("Quantum"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q3"), - // Tier: to.Ptr("Quantum"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](247), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Q4"), - // Tier: to.Ptr("Quantum"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewEnvironmentsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListMultiRoleUsagesPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.UsageCollection = armappservice.UsageCollection{ - // Value: []*armappservice.Usage{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().ListOperations(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.OperationArray = []*armappservice.Operation{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewGetOutboundNetworkDependenciesEndpointsPager("Sample-WestUSResourceGroup", "SampleAse", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.OutboundEnvironmentEndpointCollection = armappservice.OutboundEnvironmentEndpointCollection{ - // Value: []*armappservice.OutboundEnvironmentEndpoint{ - // { - // Category: to.Ptr("Azure Storage"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.36"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](42.0469), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.36"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](41.7038), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](37.326), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](37.513600000000004), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](32.789), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.8702), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.183.104.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](36.7378), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("52.183.104.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](36.7108), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](4.0261000000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.8264), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](40.8523), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](40.7501), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.2071), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](38.2975), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](59.383700000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](60.0775), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.5512), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.6777), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.5204), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.8193), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2720000000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.0147), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2387), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2804), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.16"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](43.025200000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.16"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](43.1683), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](41.8598), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.25"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](41.9805), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](30.542900000000003), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.26"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](0.9832000000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.176.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](35.9562), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.66.176.28"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](36.0643), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2829), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.3393), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.4103000000000003), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](4.1032), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.1141), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.0247), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.834), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.8198000000000003), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.3855000000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.0594000000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.4717000000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.4827), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.395), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.1701), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.4308), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](22.5866), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("blob.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.5372), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.64"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.4626), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("queue.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.7873), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.73"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](4.1911000000000005), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("table.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.9162000000000003), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.74"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](2.7896), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("file.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](26.723100000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("13.77.184.76"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](26.735200000000003), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure SQL Database"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("database.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.226.202"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](1.5964), - // Port: to.Ptr[int32](1433), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure Management"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("management.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.102.135.246"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](46.5764), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("admin.core.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.102.135.247"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](47.408), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("management.azure.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("52.151.25.45"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.9529), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Azure Active Directory"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("graph.windows.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("20.190.133.83"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("20.190.133.81"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("20.190.133.67"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("40.126.5.34"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.2264), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("Regional Service"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("gr-prod-mwh.cloudapp.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("13.66.225.188"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](3.3826), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("az-prod.metrics.nsatc.net"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("40.77.24.27"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](38.5647), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }, - // { - // Category: to.Ptr("SSL Certificate Verification"), - // Endpoints: []*armappservice.EndpointDependency{ - // { - // DomainName: to.Ptr("ocsp.msocsp.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("104.18.25.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.0651), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.25.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](12.888), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("104.18.24.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.0651), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.24.243"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](12.888), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("mscrl.microsoft.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("152.199.4.33"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.742900000000001), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("152.199.4.33"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](7.436100000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("crl.microsoft.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.215.102.10"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.136200000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("23.215.102.10"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.0085), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("23.215.102.42"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.136200000000002), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("23.215.102.42"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](25.0085), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("www.microsoft.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("23.49.13.56"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](7.9229), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("23.49.13.56"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](8.4871), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("crl3.digicert.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](5.4074), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](5.577), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("ocsp.digicert.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](6.8989), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("72.21.91.29"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](5.667400000000001), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("cacerts.digicert.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("104.18.11.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.772400000000001), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.11.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.7705), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("104.18.10.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.772400000000001), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("104.18.10.39"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](10.7705), - // Port: to.Ptr[int32](443), - // }}, - // }, - // { - // DomainName: to.Ptr("www.thawte.com"), - // EndpointDetails: []*armappservice.EndpointDetail{ - // { - // IPAddress: to.Ptr("54.69.98.161"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](47.532900000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("54.69.98.161"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](48.5362), - // Port: to.Ptr[int32](443), - // }, - // { - // IPAddress: to.Ptr("35.167.62.148"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](47.532900000000005), - // Port: to.Ptr[int32](80), - // }, - // { - // IPAddress: to.Ptr("35.167.62.148"), - // IsAccessible: to.Ptr(true), - // Latency: to.Ptr[float64](48.5362), - // Port: to.Ptr[int32](443), - // }}, - // }}, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewGetPrivateEndpointConnectionListPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PrivateEndpointConnectionCollection = armappservice.PrivateEndpointConnectionCollection{ - // Value: []*armappservice.RemotePrivateEndpointConnectionARMResource{ - // { - // Name: to.Ptr("fa38656c-034e-43d8-adce-fe06ce039c98"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/privateEndpointConnections/fa38656c-034e-43d8-adce-fe06ce039c98"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // IPAddresses: []*string{ - // }, - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/test-privateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Please approve my connection, thanks!"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Disconnecting"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetPrivateEndpointConnection(ctx, "test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("fa38656c-034e-43d8-adce-fe06ce039c98"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/privateEndpointConnections/fa38656c-034e-43d8-adce-fe06ce039c98"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // IPAddresses: []*string{ - // }, - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/test-privateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Please approve my connection, thanks!"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Disconnecting"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().BeginApproveOrRejectPrivateEndpointConnection(ctx, "test-rg", "test-ase", "fa38656c-034e-43d8-adce-fe06ce039c98", armappservice.RemotePrivateEndpointConnectionARMResource{ - Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("fa38656c-034e-43d8-adce-fe06ce039c98"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/privateEndpointConnections/fa38656c-034e-43d8-adce-fe06ce039c98"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // IPAddresses: []*string{ - // }, - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/test-privateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by johndoe@company.com"), - // ActionsRequired: to.Ptr("None"), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetPrivateLinkResources(ctx, "test-rg", "test-ase", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewEnvironmentsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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() { - page, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListAppServicePlansPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PlanCollection = armappservice.PlanCollection{ - // Value: []*armappservice.Plan{ - // { - // Name: to.Ptr("test-asp"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/serverfarms/test-asp"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("Central US EUAP"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.PlanProperties{ - // ElasticScaleEnabled: to.Ptr(false), - // GeoRegion: to.Ptr("Central US EUAP"), - // HostingEnvironmentProfile: &armappservice.HostingEnvironmentProfile{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // }, - // HyperV: to.Ptr(false), - // IsSpot: to.Ptr(false), - // IsXenon: to.Ptr(false), - // MaximumElasticWorkerCount: to.Ptr[int32](0), - // MaximumNumberOfWorkers: to.Ptr[int32](100), - // NumberOfSites: to.Ptr[int32](0), - // PerSiteScaling: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("test-rg"), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // TargetWorkerCount: to.Ptr[int32](1), - // TargetWorkerSizeID: to.Ptr[int32](0), - // ZoneRedundant: to.Ptr(false), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("I1"), - // Capacity: to.Ptr[int32](0), - // Family: to.Ptr("I"), - // Size: to.Ptr("I1"), - // Tier: to.Ptr("Isolated"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWebAppsPager("test-rg", "test-ase", &armappservice.EnvironmentsClientListWebAppsOptions{PropertiesToInclude: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("test-site"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-site"), - // Location: to.Ptr("Central US EUAP"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("2982A67AD520FBCD070650FC77814FB03B62927C6EFCA2F5FF3BF5DC60088845"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("test-site.test-ase.p.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("test-site.test-ase.p.azurewebsites.net"), - // to.Ptr("test-site.scm.test-ase.p.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("test-site.test-ase.p.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("test-site.scm.test-ase.p.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("test-site.test-ase.p.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HostingEnvironmentProfile: &armappservice.HostingEnvironmentProfile{ - // Name: to.Ptr("test-ase"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase"), - // }, - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-08T12:41:04.123Z"); return t}()), - // OutboundIPAddresses: to.Ptr("20.112.141.120"), - // PossibleOutboundIPAddresses: to.Ptr("20.112.141.120"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("test-site"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("test-rg"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/serverfarms/test-serverfarm"), - // SiteConfig: &armappservice.SiteConfig{ - // FunctionAppScaleLimit: to.Ptr[int32](0), - // LinuxFxVersion: to.Ptr(""), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NumberOfWorkers: to.Ptr[int32](1), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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() { - page, err := res.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListUsagesPager("test-rg", "test-ase", &armappservice.EnvironmentsClientListUsagesOptions{Filter: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmUsageQuotaCollection = armappservice.CsmUsageQuotaCollection{ - // Value: []*armappservice.CsmUsageQuota{ - // { - // Name: &armappservice.LocalizableString{ - // LocalizedValue: to.Ptr("File System Storage"), - // Value: to.Ptr("FileSystemStorage"), - // }, - // CurrentValue: to.Ptr[int64](37888), - // Limit: to.Ptr[int64](1099511627776), - // NextResetTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "9999-12-31T23:59:59.999Z"); return t}()), - // Unit: to.Ptr("Bytes"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWorkerPoolsPager("test-rg", "test-ase", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkerPoolCollection = armappservice.WorkerPoolCollection{ - // Value: []*armappservice.WorkerPoolResource{ - // { - // Name: to.Ptr("workerPool1"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool1"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](0), - // }, - // }, - // { - // Name: to.Ptr("workerPool2"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool2"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](0), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](1), - // }, - // }, - // { - // Name: to.Ptr("workerPool3"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool3"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](0), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](2), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewEnvironmentsClient().GetWorkerPool(ctx, "test-rg", "test-ase", "workerPool1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // Name: to.Ptr("workerPool1"), - // Type: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/workerPool1"), - // Kind: to.Ptr("ASEV1"), - // Properties: &armappservice.WorkerPool{ - // InstanceNames: []*string{ - // }, - // WorkerCount: to.Ptr[int32](2), - // WorkerSize: to.Ptr("Small"), - // WorkerSizeID: to.Ptr[int32](0), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkerPoolResource = armappservice.WorkerPoolResource{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWorkerPoolInstanceMetricDefinitionsPager("test-rg", "test-ase", "0", "10.8.0.7", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/CpuPercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/HttpQueueLength"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWebWorkerMetricDefinitionsPager("test-rg", "test-ase", "0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceMetricDefinitionCollection = armappservice.ResourceMetricDefinitionCollection{ - // Value: []*armappservice.ResourceMetricDefinition{ - // { - // Name: to.Ptr("CpuPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/CpuPercentage"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/MemoryPercentage"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/DiskQueueLength"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/workerPools/0/metricDefinitions/HttpQueueLength"), - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json -func ExampleEnvironmentsClient_NewListWorkerPoolSKUsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWorkerPoolSKUsPager("test-rg", "test-ase", "workerPool1", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SKUInfoCollection = armappservice.SKUInfoCollection{ - // Value: []*armappservice.SKUInfo{ - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S1"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S2"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S3"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("S4"), - // Tier: to.Ptr("Standard"), - // }, - // }, - // { - // Capacity: &armappservice.SKUCapacity{ - // Default: to.Ptr[int32](2), - // Maximum: to.Ptr[int32](53), - // Minimum: to.Ptr[int32](2), - // ScaleType: to.Ptr("automatic"), - // }, - // ResourceType: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools"), - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("O1"), - // Tier: to.Ptr("Optimized"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewEnvironmentsClient().NewListWebWorkerUsagesPager("test-rg", "test-ase", "0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.UsageCollection = armappservice.UsageCollection{ - // Value: []*armappservice.Usage{ - // }, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go index c80991ddea1f..c64d688992e3 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -138,59 +135,78 @@ func (c *CertificateOrdersServerTransport) Do(req *http.Request) (*http.Response return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "CertificateOrdersClient.BeginCreateOrUpdate": - resp, err = c.dispatchBeginCreateOrUpdate(req) - case "CertificateOrdersClient.BeginCreateOrUpdateCertificate": - resp, err = c.dispatchBeginCreateOrUpdateCertificate(req) - case "CertificateOrdersClient.Delete": - resp, err = c.dispatchDelete(req) - case "CertificateOrdersClient.DeleteCertificate": - resp, err = c.dispatchDeleteCertificate(req) - case "CertificateOrdersClient.Get": - resp, err = c.dispatchGet(req) - case "CertificateOrdersClient.GetCertificate": - resp, err = c.dispatchGetCertificate(req) - case "CertificateOrdersClient.NewListPager": - resp, err = c.dispatchNewListPager(req) - case "CertificateOrdersClient.NewListByResourceGroupPager": - resp, err = c.dispatchNewListByResourceGroupPager(req) - case "CertificateOrdersClient.NewListCertificatesPager": - resp, err = c.dispatchNewListCertificatesPager(req) - case "CertificateOrdersClient.Reissue": - resp, err = c.dispatchReissue(req) - case "CertificateOrdersClient.Renew": - resp, err = c.dispatchRenew(req) - case "CertificateOrdersClient.ResendEmail": - resp, err = c.dispatchResendEmail(req) - case "CertificateOrdersClient.ResendRequestEmails": - resp, err = c.dispatchResendRequestEmails(req) - case "CertificateOrdersClient.RetrieveCertificateActions": - resp, err = c.dispatchRetrieveCertificateActions(req) - case "CertificateOrdersClient.RetrieveCertificateEmailHistory": - resp, err = c.dispatchRetrieveCertificateEmailHistory(req) - case "CertificateOrdersClient.RetrieveSiteSeal": - resp, err = c.dispatchRetrieveSiteSeal(req) - case "CertificateOrdersClient.Update": - resp, err = c.dispatchUpdate(req) - case "CertificateOrdersClient.UpdateCertificate": - resp, err = c.dispatchUpdateCertificate(req) - case "CertificateOrdersClient.ValidatePurchaseInformation": - resp, err = c.dispatchValidatePurchaseInformation(req) - case "CertificateOrdersClient.VerifyDomainOwnership": - resp, err = c.dispatchVerifyDomainOwnership(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return c.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err - } +func (c *CertificateOrdersServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - return resp, nil + go func() { + var intercepted bool + var res result + if certificateOrdersServerTransportInterceptor != nil { + res.resp, res.err, intercepted = certificateOrdersServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "CertificateOrdersClient.BeginCreateOrUpdate": + res.resp, res.err = c.dispatchBeginCreateOrUpdate(req) + case "CertificateOrdersClient.BeginCreateOrUpdateCertificate": + res.resp, res.err = c.dispatchBeginCreateOrUpdateCertificate(req) + case "CertificateOrdersClient.Delete": + res.resp, res.err = c.dispatchDelete(req) + case "CertificateOrdersClient.DeleteCertificate": + res.resp, res.err = c.dispatchDeleteCertificate(req) + case "CertificateOrdersClient.Get": + res.resp, res.err = c.dispatchGet(req) + case "CertificateOrdersClient.GetCertificate": + res.resp, res.err = c.dispatchGetCertificate(req) + case "CertificateOrdersClient.NewListPager": + res.resp, res.err = c.dispatchNewListPager(req) + case "CertificateOrdersClient.NewListByResourceGroupPager": + res.resp, res.err = c.dispatchNewListByResourceGroupPager(req) + case "CertificateOrdersClient.NewListCertificatesPager": + res.resp, res.err = c.dispatchNewListCertificatesPager(req) + case "CertificateOrdersClient.Reissue": + res.resp, res.err = c.dispatchReissue(req) + case "CertificateOrdersClient.Renew": + res.resp, res.err = c.dispatchRenew(req) + case "CertificateOrdersClient.ResendEmail": + res.resp, res.err = c.dispatchResendEmail(req) + case "CertificateOrdersClient.ResendRequestEmails": + res.resp, res.err = c.dispatchResendRequestEmails(req) + case "CertificateOrdersClient.RetrieveCertificateActions": + res.resp, res.err = c.dispatchRetrieveCertificateActions(req) + case "CertificateOrdersClient.RetrieveCertificateEmailHistory": + res.resp, res.err = c.dispatchRetrieveCertificateEmailHistory(req) + case "CertificateOrdersClient.RetrieveSiteSeal": + res.resp, res.err = c.dispatchRetrieveSiteSeal(req) + case "CertificateOrdersClient.Update": + res.resp, res.err = c.dispatchUpdate(req) + case "CertificateOrdersClient.UpdateCertificate": + res.resp, res.err = c.dispatchUpdateCertificate(req) + case "CertificateOrdersClient.ValidatePurchaseInformation": + res.resp, res.err = c.dispatchValidatePurchaseInformation(req) + case "CertificateOrdersClient.VerifyDomainOwnership": + res.resp, res.err = c.dispatchVerifyDomainOwnership(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (c *CertificateOrdersServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { @@ -930,3 +946,9 @@ func (c *CertificateOrdersServerTransport) dispatchVerifyDomainOwnership(req *ht } return resp, nil } + +// set this to conditionally intercept incoming requests to CertificateOrdersServerTransport +var certificateOrdersServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go index 2c6e1f2ff709..c09dce008a7c 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -59,23 +56,42 @@ func (c *CertificateOrdersDiagnosticsServerTransport) Do(req *http.Request) (*ht return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return c.dispatchToMethodFake(req, method) +} - switch method { - case "CertificateOrdersDiagnosticsClient.GetAppServiceCertificateOrderDetectorResponse": - resp, err = c.dispatchGetAppServiceCertificateOrderDetectorResponse(req) - case "CertificateOrdersDiagnosticsClient.NewListAppServiceCertificateOrderDetectorResponsePager": - resp, err = c.dispatchNewListAppServiceCertificateOrderDetectorResponsePager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (c *CertificateOrdersDiagnosticsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if certificateOrdersDiagnosticsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = certificateOrdersDiagnosticsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "CertificateOrdersDiagnosticsClient.GetAppServiceCertificateOrderDetectorResponse": + res.resp, res.err = c.dispatchGetAppServiceCertificateOrderDetectorResponse(req) + case "CertificateOrdersDiagnosticsClient.NewListAppServiceCertificateOrderDetectorResponsePager": + res.resp, res.err = c.dispatchNewListAppServiceCertificateOrderDetectorResponsePager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (c *CertificateOrdersDiagnosticsServerTransport) dispatchGetAppServiceCertificateOrderDetectorResponse(req *http.Request) (*http.Response, error) { @@ -185,3 +201,9 @@ func (c *CertificateOrdersDiagnosticsServerTransport) dispatchNewListAppServiceC } return resp, nil } + +// set this to conditionally intercept incoming requests to CertificateOrdersDiagnosticsServerTransport +var certificateOrdersDiagnosticsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go index fab9a92f7082..2fcdc6af8040 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" ) @@ -51,21 +48,40 @@ func (c *CertificateRegistrationProviderServerTransport) Do(req *http.Request) ( return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return c.dispatchToMethodFake(req, method) +} - switch method { - case "CertificateRegistrationProviderClient.NewListOperationsPager": - resp, err = c.dispatchNewListOperationsPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (c *CertificateRegistrationProviderServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if certificateRegistrationProviderServerTransportInterceptor != nil { + res.resp, res.err, intercepted = certificateRegistrationProviderServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "CertificateRegistrationProviderClient.NewListOperationsPager": + res.resp, res.err = c.dispatchNewListOperationsPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (c *CertificateRegistrationProviderServerTransport) dispatchNewListOperationsPager(req *http.Request) (*http.Response, error) { @@ -94,3 +110,9 @@ func (c *CertificateRegistrationProviderServerTransport) dispatchNewListOperatio } return resp, nil } + +// set this to conditionally intercept incoming requests to CertificateRegistrationProviderServerTransport +var certificateRegistrationProviderServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go index 715684e400cb..45bbc9bc225b 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -76,31 +73,50 @@ func (c *CertificatesServerTransport) Do(req *http.Request) (*http.Response, err return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return c.dispatchToMethodFake(req, method) +} - switch method { - case "CertificatesClient.CreateOrUpdate": - resp, err = c.dispatchCreateOrUpdate(req) - case "CertificatesClient.Delete": - resp, err = c.dispatchDelete(req) - case "CertificatesClient.Get": - resp, err = c.dispatchGet(req) - case "CertificatesClient.NewListPager": - resp, err = c.dispatchNewListPager(req) - case "CertificatesClient.NewListByResourceGroupPager": - resp, err = c.dispatchNewListByResourceGroupPager(req) - case "CertificatesClient.Update": - resp, err = c.dispatchUpdate(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (c *CertificatesServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if certificatesServerTransportInterceptor != nil { + res.resp, res.err, intercepted = certificatesServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "CertificatesClient.CreateOrUpdate": + res.resp, res.err = c.dispatchCreateOrUpdate(req) + case "CertificatesClient.Delete": + res.resp, res.err = c.dispatchDelete(req) + case "CertificatesClient.Get": + res.resp, res.err = c.dispatchGet(req) + case "CertificatesClient.NewListPager": + res.resp, res.err = c.dispatchNewListPager(req) + case "CertificatesClient.NewListByResourceGroupPager": + res.resp, res.err = c.dispatchNewListByResourceGroupPager(req) + case "CertificatesClient.Update": + res.resp, res.err = c.dispatchUpdate(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (c *CertificatesServerTransport) dispatchCreateOrUpdate(req *http.Request) (*http.Response, error) { @@ -324,3 +340,9 @@ func (c *CertificatesServerTransport) dispatchUpdate(req *http.Request) (*http.R } return resp, nil } + +// set this to conditionally intercept incoming requests to CertificatesServerTransport +var certificatesServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go deleted file mode 100644 index abf0440fa9f3..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go +++ /dev/null @@ -1,332 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package fake - -import ( - "context" - "errors" - "fmt" - azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" - "net/http" - "net/url" - "regexp" -) - -// ContainerAppsServer is a fake server for instances of the armappservice.ContainerAppsClient type. -type ContainerAppsServer struct { - // BeginCreateOrUpdate is the fake for method ContainerAppsClient.BeginCreateOrUpdate - // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated - BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, name string, containerAppEnvelope armappservice.ContainerApp, options *armappservice.ContainerAppsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armappservice.ContainerAppsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) - - // BeginDelete is the fake for method ContainerAppsClient.BeginDelete - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent - BeginDelete func(ctx context.Context, resourceGroupName string, name string, options *armappservice.ContainerAppsClientBeginDeleteOptions) (resp azfake.PollerResponder[armappservice.ContainerAppsClientDeleteResponse], errResp azfake.ErrorResponder) - - // Get is the fake for method ContainerAppsClient.Get - // HTTP status codes to indicate success: http.StatusOK - Get func(ctx context.Context, resourceGroupName string, name string, options *armappservice.ContainerAppsClientGetOptions) (resp azfake.Responder[armappservice.ContainerAppsClientGetResponse], errResp azfake.ErrorResponder) - - // NewListByResourceGroupPager is the fake for method ContainerAppsClient.NewListByResourceGroupPager - // HTTP status codes to indicate success: http.StatusOK - NewListByResourceGroupPager func(resourceGroupName string, options *armappservice.ContainerAppsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armappservice.ContainerAppsClientListByResourceGroupResponse]) - - // NewListBySubscriptionPager is the fake for method ContainerAppsClient.NewListBySubscriptionPager - // HTTP status codes to indicate success: http.StatusOK - NewListBySubscriptionPager func(options *armappservice.ContainerAppsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armappservice.ContainerAppsClientListBySubscriptionResponse]) - - // ListSecrets is the fake for method ContainerAppsClient.ListSecrets - // HTTP status codes to indicate success: http.StatusOK - ListSecrets func(ctx context.Context, name string, options *armappservice.ContainerAppsClientListSecretsOptions) (resp azfake.Responder[armappservice.ContainerAppsClientListSecretsResponse], errResp azfake.ErrorResponder) -} - -// NewContainerAppsServerTransport creates a new instance of ContainerAppsServerTransport with the provided implementation. -// The returned ContainerAppsServerTransport instance is connected to an instance of armappservice.ContainerAppsClient via the -// azcore.ClientOptions.Transporter field in the client's constructor parameters. -func NewContainerAppsServerTransport(srv *ContainerAppsServer) *ContainerAppsServerTransport { - return &ContainerAppsServerTransport{ - srv: srv, - beginCreateOrUpdate: newTracker[azfake.PollerResponder[armappservice.ContainerAppsClientCreateOrUpdateResponse]](), - beginDelete: newTracker[azfake.PollerResponder[armappservice.ContainerAppsClientDeleteResponse]](), - newListByResourceGroupPager: newTracker[azfake.PagerResponder[armappservice.ContainerAppsClientListByResourceGroupResponse]](), - newListBySubscriptionPager: newTracker[azfake.PagerResponder[armappservice.ContainerAppsClientListBySubscriptionResponse]](), - } -} - -// ContainerAppsServerTransport connects instances of armappservice.ContainerAppsClient to instances of ContainerAppsServer. -// Don't use this type directly, use NewContainerAppsServerTransport instead. -type ContainerAppsServerTransport struct { - srv *ContainerAppsServer - beginCreateOrUpdate *tracker[azfake.PollerResponder[armappservice.ContainerAppsClientCreateOrUpdateResponse]] - beginDelete *tracker[azfake.PollerResponder[armappservice.ContainerAppsClientDeleteResponse]] - newListByResourceGroupPager *tracker[azfake.PagerResponder[armappservice.ContainerAppsClientListByResourceGroupResponse]] - newListBySubscriptionPager *tracker[azfake.PagerResponder[armappservice.ContainerAppsClientListBySubscriptionResponse]] -} - -// Do implements the policy.Transporter interface for ContainerAppsServerTransport. -func (c *ContainerAppsServerTransport) Do(req *http.Request) (*http.Response, error) { - rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) - method, ok := rawMethod.(string) - if !ok { - return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} - } - - var resp *http.Response - var err error - - switch method { - case "ContainerAppsClient.BeginCreateOrUpdate": - resp, err = c.dispatchBeginCreateOrUpdate(req) - case "ContainerAppsClient.BeginDelete": - resp, err = c.dispatchBeginDelete(req) - case "ContainerAppsClient.Get": - resp, err = c.dispatchGet(req) - case "ContainerAppsClient.NewListByResourceGroupPager": - resp, err = c.dispatchNewListByResourceGroupPager(req) - case "ContainerAppsClient.NewListBySubscriptionPager": - resp, err = c.dispatchNewListBySubscriptionPager(req) - case "ContainerAppsClient.ListSecrets": - resp, err = c.dispatchListSecrets(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } - - if err != nil { - return nil, err - } - - return resp, nil -} - -func (c *ContainerAppsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { - if c.srv.BeginCreateOrUpdate == nil { - return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} - } - beginCreateOrUpdate := c.beginCreateOrUpdate.get(req) - if beginCreateOrUpdate == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - body, err := server.UnmarshalRequestAsJSON[armappservice.ContainerApp](req) - if err != nil { - return nil, err - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, nameParam, body, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - beginCreateOrUpdate = &respr - c.beginCreateOrUpdate.add(req, beginCreateOrUpdate) - } - - resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) - if err != nil { - return nil, err - } - - if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { - c.beginCreateOrUpdate.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} - } - if !server.PollerResponderMore(beginCreateOrUpdate) { - c.beginCreateOrUpdate.remove(req) - } - - return resp, nil -} - -func (c *ContainerAppsServerTransport) dispatchBeginDelete(req *http.Request) (*http.Response, error) { - if c.srv.BeginDelete == nil { - return nil, &nonRetriableError{errors.New("fake for method BeginDelete not implemented")} - } - beginDelete := c.beginDelete.get(req) - if beginDelete == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.BeginDelete(req.Context(), resourceGroupNameParam, nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - beginDelete = &respr - c.beginDelete.add(req, beginDelete) - } - - resp, err := server.PollerResponderNext(beginDelete, req) - if err != nil { - return nil, err - } - - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { - c.beginDelete.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} - } - if !server.PollerResponderMore(beginDelete) { - c.beginDelete.remove(req) - } - - return resp, nil -} - -func (c *ContainerAppsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { - if c.srv.Get == nil { - return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} - } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.Get(req.Context(), resourceGroupNameParam, nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} - } - resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).ContainerApp, req) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *ContainerAppsServerTransport) dispatchNewListByResourceGroupPager(req *http.Request) (*http.Response, error) { - if c.srv.NewListByResourceGroupPager == nil { - return nil, &nonRetriableError{errors.New("fake for method NewListByResourceGroupPager not implemented")} - } - newListByResourceGroupPager := c.newListByResourceGroupPager.get(req) - if newListByResourceGroupPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - resp := c.srv.NewListByResourceGroupPager(resourceGroupNameParam, nil) - newListByResourceGroupPager = &resp - c.newListByResourceGroupPager.add(req, newListByResourceGroupPager) - server.PagerResponderInjectNextLinks(newListByResourceGroupPager, req, func(page *armappservice.ContainerAppsClientListByResourceGroupResponse, createLink func() string) { - page.NextLink = to.Ptr(createLink()) - }) - } - resp, err := server.PagerResponderNext(newListByResourceGroupPager, req) - if err != nil { - return nil, err - } - if !contains([]int{http.StatusOK}, resp.StatusCode) { - c.newListByResourceGroupPager.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} - } - if !server.PagerResponderMore(newListByResourceGroupPager) { - c.newListByResourceGroupPager.remove(req) - } - return resp, nil -} - -func (c *ContainerAppsServerTransport) dispatchNewListBySubscriptionPager(req *http.Request) (*http.Response, error) { - if c.srv.NewListBySubscriptionPager == nil { - return nil, &nonRetriableError{errors.New("fake for method NewListBySubscriptionPager not implemented")} - } - newListBySubscriptionPager := c.newListBySubscriptionPager.get(req) - if newListBySubscriptionPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resp := c.srv.NewListBySubscriptionPager(nil) - newListBySubscriptionPager = &resp - c.newListBySubscriptionPager.add(req, newListBySubscriptionPager) - server.PagerResponderInjectNextLinks(newListBySubscriptionPager, req, func(page *armappservice.ContainerAppsClientListBySubscriptionResponse, createLink func() string) { - page.NextLink = to.Ptr(createLink()) - }) - } - resp, err := server.PagerResponderNext(newListBySubscriptionPager, req) - if err != nil { - return nil, err - } - if !contains([]int{http.StatusOK}, resp.StatusCode) { - c.newListBySubscriptionPager.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} - } - if !server.PagerResponderMore(newListBySubscriptionPager) { - c.newListBySubscriptionPager.remove(req) - } - return resp, nil -} - -func (c *ContainerAppsServerTransport) dispatchListSecrets(req *http.Request) (*http.Response, error) { - if c.srv.ListSecrets == nil { - return nil, &nonRetriableError{errors.New("fake for method ListSecrets not implemented")} - } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listSecrets` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.ListSecrets(req.Context(), nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} - } - resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).SecretsCollection, req) - if err != nil { - return nil, err - } - return resp, nil -} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go deleted file mode 100644 index d3204b9f60bb..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go +++ /dev/null @@ -1,285 +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. DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package fake - -import ( - "context" - "errors" - "fmt" - azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" - "net/http" - "net/url" - "regexp" -) - -// ContainerAppsRevisionsServer is a fake server for instances of the armappservice.ContainerAppsRevisionsClient type. -type ContainerAppsRevisionsServer struct { - // ActivateRevision is the fake for method ContainerAppsRevisionsClient.ActivateRevision - // HTTP status codes to indicate success: http.StatusOK - ActivateRevision func(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *armappservice.ContainerAppsRevisionsClientActivateRevisionOptions) (resp azfake.Responder[armappservice.ContainerAppsRevisionsClientActivateRevisionResponse], errResp azfake.ErrorResponder) - - // DeactivateRevision is the fake for method ContainerAppsRevisionsClient.DeactivateRevision - // HTTP status codes to indicate success: http.StatusOK - DeactivateRevision func(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *armappservice.ContainerAppsRevisionsClientDeactivateRevisionOptions) (resp azfake.Responder[armappservice.ContainerAppsRevisionsClientDeactivateRevisionResponse], errResp azfake.ErrorResponder) - - // GetRevision is the fake for method ContainerAppsRevisionsClient.GetRevision - // HTTP status codes to indicate success: http.StatusOK - GetRevision func(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *armappservice.ContainerAppsRevisionsClientGetRevisionOptions) (resp azfake.Responder[armappservice.ContainerAppsRevisionsClientGetRevisionResponse], errResp azfake.ErrorResponder) - - // NewListRevisionsPager is the fake for method ContainerAppsRevisionsClient.NewListRevisionsPager - // HTTP status codes to indicate success: http.StatusOK - NewListRevisionsPager func(resourceGroupName string, containerAppName string, options *armappservice.ContainerAppsRevisionsClientListRevisionsOptions) (resp azfake.PagerResponder[armappservice.ContainerAppsRevisionsClientListRevisionsResponse]) - - // RestartRevision is the fake for method ContainerAppsRevisionsClient.RestartRevision - // HTTP status codes to indicate success: http.StatusOK - RestartRevision func(ctx context.Context, resourceGroupName string, containerAppName string, name string, options *armappservice.ContainerAppsRevisionsClientRestartRevisionOptions) (resp azfake.Responder[armappservice.ContainerAppsRevisionsClientRestartRevisionResponse], errResp azfake.ErrorResponder) -} - -// NewContainerAppsRevisionsServerTransport creates a new instance of ContainerAppsRevisionsServerTransport with the provided implementation. -// The returned ContainerAppsRevisionsServerTransport instance is connected to an instance of armappservice.ContainerAppsRevisionsClient via the -// azcore.ClientOptions.Transporter field in the client's constructor parameters. -func NewContainerAppsRevisionsServerTransport(srv *ContainerAppsRevisionsServer) *ContainerAppsRevisionsServerTransport { - return &ContainerAppsRevisionsServerTransport{ - srv: srv, - newListRevisionsPager: newTracker[azfake.PagerResponder[armappservice.ContainerAppsRevisionsClientListRevisionsResponse]](), - } -} - -// ContainerAppsRevisionsServerTransport connects instances of armappservice.ContainerAppsRevisionsClient to instances of ContainerAppsRevisionsServer. -// Don't use this type directly, use NewContainerAppsRevisionsServerTransport instead. -type ContainerAppsRevisionsServerTransport struct { - srv *ContainerAppsRevisionsServer - newListRevisionsPager *tracker[azfake.PagerResponder[armappservice.ContainerAppsRevisionsClientListRevisionsResponse]] -} - -// Do implements the policy.Transporter interface for ContainerAppsRevisionsServerTransport. -func (c *ContainerAppsRevisionsServerTransport) Do(req *http.Request) (*http.Response, error) { - rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) - method, ok := rawMethod.(string) - if !ok { - return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} - } - - var resp *http.Response - var err error - - switch method { - case "ContainerAppsRevisionsClient.ActivateRevision": - resp, err = c.dispatchActivateRevision(req) - case "ContainerAppsRevisionsClient.DeactivateRevision": - resp, err = c.dispatchDeactivateRevision(req) - case "ContainerAppsRevisionsClient.GetRevision": - resp, err = c.dispatchGetRevision(req) - case "ContainerAppsRevisionsClient.NewListRevisionsPager": - resp, err = c.dispatchNewListRevisionsPager(req) - case "ContainerAppsRevisionsClient.RestartRevision": - resp, err = c.dispatchRestartRevision(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } - - if err != nil { - return nil, err - } - - return resp, nil -} - -func (c *ContainerAppsRevisionsServerTransport) dispatchActivateRevision(req *http.Request) (*http.Response, error) { - if c.srv.ActivateRevision == nil { - return nil, &nonRetriableError{errors.New("fake for method ActivateRevision not implemented")} - } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/revisions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/activate` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - containerAppNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("containerAppName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.ActivateRevision(req.Context(), resourceGroupNameParam, containerAppNameParam, nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} - } - resp, err := server.NewResponse(respContent, req, nil) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *ContainerAppsRevisionsServerTransport) dispatchDeactivateRevision(req *http.Request) (*http.Response, error) { - if c.srv.DeactivateRevision == nil { - return nil, &nonRetriableError{errors.New("fake for method DeactivateRevision not implemented")} - } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/revisions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deactivate` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - containerAppNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("containerAppName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.DeactivateRevision(req.Context(), resourceGroupNameParam, containerAppNameParam, nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} - } - resp, err := server.NewResponse(respContent, req, nil) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *ContainerAppsRevisionsServerTransport) dispatchGetRevision(req *http.Request) (*http.Response, error) { - if c.srv.GetRevision == nil { - return nil, &nonRetriableError{errors.New("fake for method GetRevision not implemented")} - } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/revisions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - containerAppNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("containerAppName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.GetRevision(req.Context(), resourceGroupNameParam, containerAppNameParam, nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} - } - resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Revision, req) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *ContainerAppsRevisionsServerTransport) dispatchNewListRevisionsPager(req *http.Request) (*http.Response, error) { - if c.srv.NewListRevisionsPager == nil { - return nil, &nonRetriableError{errors.New("fake for method NewListRevisionsPager not implemented")} - } - newListRevisionsPager := c.newListRevisionsPager.get(req) - if newListRevisionsPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/revisions` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - containerAppNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("containerAppName")]) - if err != nil { - return nil, err - } - resp := c.srv.NewListRevisionsPager(resourceGroupNameParam, containerAppNameParam, nil) - newListRevisionsPager = &resp - c.newListRevisionsPager.add(req, newListRevisionsPager) - server.PagerResponderInjectNextLinks(newListRevisionsPager, req, func(page *armappservice.ContainerAppsRevisionsClientListRevisionsResponse, createLink func() string) { - page.NextLink = to.Ptr(createLink()) - }) - } - resp, err := server.PagerResponderNext(newListRevisionsPager, req) - if err != nil { - return nil, err - } - if !contains([]int{http.StatusOK}, resp.StatusCode) { - c.newListRevisionsPager.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} - } - if !server.PagerResponderMore(newListRevisionsPager) { - c.newListRevisionsPager.remove(req) - } - return resp, nil -} - -func (c *ContainerAppsRevisionsServerTransport) dispatchRestartRevision(req *http.Request) (*http.Response, error) { - if c.srv.RestartRevision == nil { - return nil, &nonRetriableError{errors.New("fake for method RestartRevision not implemented")} - } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/containerApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/revisions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restart` - regex := regexp.MustCompile(regexStr) - matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { - return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) - } - resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) - if err != nil { - return nil, err - } - containerAppNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("containerAppName")]) - if err != nil { - return nil, err - } - nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) - if err != nil { - return nil, err - } - respr, errRespr := c.srv.RestartRevision(req.Context(), resourceGroupNameParam, containerAppNameParam, nameParam, nil) - if respErr := server.GetError(errRespr, req); respErr != nil { - return nil, respErr - } - respContent := server.GetResponseContent(respr) - if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} - } - resp, err := server.NewResponse(respContent, req, nil) - if err != nil { - return nil, err - } - return resp, nil -} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go index f7781d506eee..f0fb07798cfd 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -64,25 +61,44 @@ func (d *DeletedWebAppsServerTransport) Do(req *http.Request) (*http.Response, e return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return d.dispatchToMethodFake(req, method) +} - switch method { - case "DeletedWebAppsClient.GetDeletedWebAppByLocation": - resp, err = d.dispatchGetDeletedWebAppByLocation(req) - case "DeletedWebAppsClient.NewListPager": - resp, err = d.dispatchNewListPager(req) - case "DeletedWebAppsClient.NewListByLocationPager": - resp, err = d.dispatchNewListByLocationPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (d *DeletedWebAppsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if deletedWebAppsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = deletedWebAppsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "DeletedWebAppsClient.GetDeletedWebAppByLocation": + res.resp, res.err = d.dispatchGetDeletedWebAppByLocation(req) + case "DeletedWebAppsClient.NewListPager": + res.resp, res.err = d.dispatchNewListPager(req) + case "DeletedWebAppsClient.NewListByLocationPager": + res.resp, res.err = d.dispatchNewListByLocationPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (d *DeletedWebAppsServerTransport) dispatchGetDeletedWebAppByLocation(req *http.Request) (*http.Response, error) { @@ -187,3 +203,9 @@ func (d *DeletedWebAppsServerTransport) dispatchNewListByLocationPager(req *http } return resp, nil } + +// set this to conditionally intercept incoming requests to DeletedWebAppsServerTransport +var deletedWebAppsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go b/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go index be90d15c4371..d657de751029 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -155,63 +152,82 @@ func (d *DiagnosticsServerTransport) Do(req *http.Request) (*http.Response, erro return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return d.dispatchToMethodFake(req, method) +} - switch method { - case "DiagnosticsClient.ExecuteSiteAnalysis": - resp, err = d.dispatchExecuteSiteAnalysis(req) - case "DiagnosticsClient.ExecuteSiteAnalysisSlot": - resp, err = d.dispatchExecuteSiteAnalysisSlot(req) - case "DiagnosticsClient.ExecuteSiteDetector": - resp, err = d.dispatchExecuteSiteDetector(req) - case "DiagnosticsClient.ExecuteSiteDetectorSlot": - resp, err = d.dispatchExecuteSiteDetectorSlot(req) - case "DiagnosticsClient.GetHostingEnvironmentDetectorResponse": - resp, err = d.dispatchGetHostingEnvironmentDetectorResponse(req) - case "DiagnosticsClient.GetSiteAnalysis": - resp, err = d.dispatchGetSiteAnalysis(req) - case "DiagnosticsClient.GetSiteAnalysisSlot": - resp, err = d.dispatchGetSiteAnalysisSlot(req) - case "DiagnosticsClient.GetSiteDetector": - resp, err = d.dispatchGetSiteDetector(req) - case "DiagnosticsClient.GetSiteDetectorResponse": - resp, err = d.dispatchGetSiteDetectorResponse(req) - case "DiagnosticsClient.GetSiteDetectorResponseSlot": - resp, err = d.dispatchGetSiteDetectorResponseSlot(req) - case "DiagnosticsClient.GetSiteDetectorSlot": - resp, err = d.dispatchGetSiteDetectorSlot(req) - case "DiagnosticsClient.GetSiteDiagnosticCategory": - resp, err = d.dispatchGetSiteDiagnosticCategory(req) - case "DiagnosticsClient.GetSiteDiagnosticCategorySlot": - resp, err = d.dispatchGetSiteDiagnosticCategorySlot(req) - case "DiagnosticsClient.NewListHostingEnvironmentDetectorResponsesPager": - resp, err = d.dispatchNewListHostingEnvironmentDetectorResponsesPager(req) - case "DiagnosticsClient.NewListSiteAnalysesPager": - resp, err = d.dispatchNewListSiteAnalysesPager(req) - case "DiagnosticsClient.NewListSiteAnalysesSlotPager": - resp, err = d.dispatchNewListSiteAnalysesSlotPager(req) - case "DiagnosticsClient.NewListSiteDetectorResponsesPager": - resp, err = d.dispatchNewListSiteDetectorResponsesPager(req) - case "DiagnosticsClient.NewListSiteDetectorResponsesSlotPager": - resp, err = d.dispatchNewListSiteDetectorResponsesSlotPager(req) - case "DiagnosticsClient.NewListSiteDetectorsPager": - resp, err = d.dispatchNewListSiteDetectorsPager(req) - case "DiagnosticsClient.NewListSiteDetectorsSlotPager": - resp, err = d.dispatchNewListSiteDetectorsSlotPager(req) - case "DiagnosticsClient.NewListSiteDiagnosticCategoriesPager": - resp, err = d.dispatchNewListSiteDiagnosticCategoriesPager(req) - case "DiagnosticsClient.NewListSiteDiagnosticCategoriesSlotPager": - resp, err = d.dispatchNewListSiteDiagnosticCategoriesSlotPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (d *DiagnosticsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if diagnosticsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = diagnosticsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "DiagnosticsClient.ExecuteSiteAnalysis": + res.resp, res.err = d.dispatchExecuteSiteAnalysis(req) + case "DiagnosticsClient.ExecuteSiteAnalysisSlot": + res.resp, res.err = d.dispatchExecuteSiteAnalysisSlot(req) + case "DiagnosticsClient.ExecuteSiteDetector": + res.resp, res.err = d.dispatchExecuteSiteDetector(req) + case "DiagnosticsClient.ExecuteSiteDetectorSlot": + res.resp, res.err = d.dispatchExecuteSiteDetectorSlot(req) + case "DiagnosticsClient.GetHostingEnvironmentDetectorResponse": + res.resp, res.err = d.dispatchGetHostingEnvironmentDetectorResponse(req) + case "DiagnosticsClient.GetSiteAnalysis": + res.resp, res.err = d.dispatchGetSiteAnalysis(req) + case "DiagnosticsClient.GetSiteAnalysisSlot": + res.resp, res.err = d.dispatchGetSiteAnalysisSlot(req) + case "DiagnosticsClient.GetSiteDetector": + res.resp, res.err = d.dispatchGetSiteDetector(req) + case "DiagnosticsClient.GetSiteDetectorResponse": + res.resp, res.err = d.dispatchGetSiteDetectorResponse(req) + case "DiagnosticsClient.GetSiteDetectorResponseSlot": + res.resp, res.err = d.dispatchGetSiteDetectorResponseSlot(req) + case "DiagnosticsClient.GetSiteDetectorSlot": + res.resp, res.err = d.dispatchGetSiteDetectorSlot(req) + case "DiagnosticsClient.GetSiteDiagnosticCategory": + res.resp, res.err = d.dispatchGetSiteDiagnosticCategory(req) + case "DiagnosticsClient.GetSiteDiagnosticCategorySlot": + res.resp, res.err = d.dispatchGetSiteDiagnosticCategorySlot(req) + case "DiagnosticsClient.NewListHostingEnvironmentDetectorResponsesPager": + res.resp, res.err = d.dispatchNewListHostingEnvironmentDetectorResponsesPager(req) + case "DiagnosticsClient.NewListSiteAnalysesPager": + res.resp, res.err = d.dispatchNewListSiteAnalysesPager(req) + case "DiagnosticsClient.NewListSiteAnalysesSlotPager": + res.resp, res.err = d.dispatchNewListSiteAnalysesSlotPager(req) + case "DiagnosticsClient.NewListSiteDetectorResponsesPager": + res.resp, res.err = d.dispatchNewListSiteDetectorResponsesPager(req) + case "DiagnosticsClient.NewListSiteDetectorResponsesSlotPager": + res.resp, res.err = d.dispatchNewListSiteDetectorResponsesSlotPager(req) + case "DiagnosticsClient.NewListSiteDetectorsPager": + res.resp, res.err = d.dispatchNewListSiteDetectorsPager(req) + case "DiagnosticsClient.NewListSiteDetectorsSlotPager": + res.resp, res.err = d.dispatchNewListSiteDetectorsSlotPager(req) + case "DiagnosticsClient.NewListSiteDiagnosticCategoriesPager": + res.resp, res.err = d.dispatchNewListSiteDiagnosticCategoriesPager(req) + case "DiagnosticsClient.NewListSiteDiagnosticCategoriesSlotPager": + res.resp, res.err = d.dispatchNewListSiteDiagnosticCategoriesSlotPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (d *DiagnosticsServerTransport) dispatchExecuteSiteAnalysis(req *http.Request) (*http.Response, error) { @@ -1361,3 +1377,9 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDiagnosticCategoriesSlot } return resp, nil } + +// set this to conditionally intercept incoming requests to DiagnosticsServerTransport +var diagnosticsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go index 84657f77dd42..6c97c46dd7e9 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" ) @@ -51,21 +48,40 @@ func (d *DomainRegistrationProviderServerTransport) Do(req *http.Request) (*http return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return d.dispatchToMethodFake(req, method) +} - switch method { - case "DomainRegistrationProviderClient.NewListOperationsPager": - resp, err = d.dispatchNewListOperationsPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (d *DomainRegistrationProviderServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if domainRegistrationProviderServerTransportInterceptor != nil { + res.resp, res.err, intercepted = domainRegistrationProviderServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "DomainRegistrationProviderClient.NewListOperationsPager": + res.resp, res.err = d.dispatchNewListOperationsPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (d *DomainRegistrationProviderServerTransport) dispatchNewListOperationsPager(req *http.Request) (*http.Response, error) { @@ -94,3 +110,9 @@ func (d *DomainRegistrationProviderServerTransport) dispatchNewListOperationsPag } return resp, nil } + +// set this to conditionally intercept incoming requests to DomainRegistrationProviderServerTransport +var domainRegistrationProviderServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go b/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go index e4dbda23df4e..ef0ef025ad19 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -123,51 +120,70 @@ func (d *DomainsServerTransport) Do(req *http.Request) (*http.Response, error) { return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "DomainsClient.CheckAvailability": - resp, err = d.dispatchCheckAvailability(req) - case "DomainsClient.BeginCreateOrUpdate": - resp, err = d.dispatchBeginCreateOrUpdate(req) - case "DomainsClient.CreateOrUpdateOwnershipIdentifier": - resp, err = d.dispatchCreateOrUpdateOwnershipIdentifier(req) - case "DomainsClient.Delete": - resp, err = d.dispatchDelete(req) - case "DomainsClient.DeleteOwnershipIdentifier": - resp, err = d.dispatchDeleteOwnershipIdentifier(req) - case "DomainsClient.Get": - resp, err = d.dispatchGet(req) - case "DomainsClient.GetControlCenterSsoRequest": - resp, err = d.dispatchGetControlCenterSsoRequest(req) - case "DomainsClient.GetOwnershipIdentifier": - resp, err = d.dispatchGetOwnershipIdentifier(req) - case "DomainsClient.NewListPager": - resp, err = d.dispatchNewListPager(req) - case "DomainsClient.NewListByResourceGroupPager": - resp, err = d.dispatchNewListByResourceGroupPager(req) - case "DomainsClient.NewListOwnershipIdentifiersPager": - resp, err = d.dispatchNewListOwnershipIdentifiersPager(req) - case "DomainsClient.NewListRecommendationsPager": - resp, err = d.dispatchNewListRecommendationsPager(req) - case "DomainsClient.Renew": - resp, err = d.dispatchRenew(req) - case "DomainsClient.TransferOut": - resp, err = d.dispatchTransferOut(req) - case "DomainsClient.Update": - resp, err = d.dispatchUpdate(req) - case "DomainsClient.UpdateOwnershipIdentifier": - resp, err = d.dispatchUpdateOwnershipIdentifier(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return d.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err - } +func (d *DomainsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - return resp, nil + go func() { + var intercepted bool + var res result + if domainsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = domainsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "DomainsClient.CheckAvailability": + res.resp, res.err = d.dispatchCheckAvailability(req) + case "DomainsClient.BeginCreateOrUpdate": + res.resp, res.err = d.dispatchBeginCreateOrUpdate(req) + case "DomainsClient.CreateOrUpdateOwnershipIdentifier": + res.resp, res.err = d.dispatchCreateOrUpdateOwnershipIdentifier(req) + case "DomainsClient.Delete": + res.resp, res.err = d.dispatchDelete(req) + case "DomainsClient.DeleteOwnershipIdentifier": + res.resp, res.err = d.dispatchDeleteOwnershipIdentifier(req) + case "DomainsClient.Get": + res.resp, res.err = d.dispatchGet(req) + case "DomainsClient.GetControlCenterSsoRequest": + res.resp, res.err = d.dispatchGetControlCenterSsoRequest(req) + case "DomainsClient.GetOwnershipIdentifier": + res.resp, res.err = d.dispatchGetOwnershipIdentifier(req) + case "DomainsClient.NewListPager": + res.resp, res.err = d.dispatchNewListPager(req) + case "DomainsClient.NewListByResourceGroupPager": + res.resp, res.err = d.dispatchNewListByResourceGroupPager(req) + case "DomainsClient.NewListOwnershipIdentifiersPager": + res.resp, res.err = d.dispatchNewListOwnershipIdentifiersPager(req) + case "DomainsClient.NewListRecommendationsPager": + res.resp, res.err = d.dispatchNewListRecommendationsPager(req) + case "DomainsClient.Renew": + res.resp, res.err = d.dispatchRenew(req) + case "DomainsClient.TransferOut": + res.resp, res.err = d.dispatchTransferOut(req) + case "DomainsClient.Update": + res.resp, res.err = d.dispatchUpdate(req) + case "DomainsClient.UpdateOwnershipIdentifier": + res.resp, res.err = d.dispatchUpdateOwnershipIdentifier(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (d *DomainsServerTransport) dispatchCheckAvailability(req *http.Request) (*http.Response, error) { @@ -759,3 +775,9 @@ func (d *DomainsServerTransport) dispatchUpdateOwnershipIdentifier(req *http.Req } return resp, nil } + +// set this to conditionally intercept incoming requests to DomainsServerTransport +var domainsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go b/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go index fa8598c3f6eb..f5173cc8e325 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -46,7 +43,7 @@ type EnvironmentsServer struct { BeginCreateOrUpdateWorkerPool func(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope armappservice.WorkerPoolResource, options *armappservice.EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions) (resp azfake.PollerResponder[armappservice.EnvironmentsClientCreateOrUpdateWorkerPoolResponse], errResp azfake.ErrorResponder) // BeginDelete is the fake for method EnvironmentsClient.BeginDelete - // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginDelete func(ctx context.Context, resourceGroupName string, name string, options *armappservice.EnvironmentsClientBeginDeleteOptions) (resp azfake.PollerResponder[armappservice.EnvironmentsClientDeleteResponse], errResp azfake.ErrorResponder) // DeleteAseCustomDNSSuffixConfiguration is the fake for method EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration @@ -214,7 +211,7 @@ type EnvironmentsServer struct { UpdateWorkerPool func(ctx context.Context, resourceGroupName string, name string, workerPoolName string, workerPoolEnvelope armappservice.WorkerPoolResource, options *armappservice.EnvironmentsClientUpdateWorkerPoolOptions) (resp azfake.Responder[armappservice.EnvironmentsClientUpdateWorkerPoolResponse], errResp azfake.ErrorResponder) // BeginUpgrade is the fake for method EnvironmentsClient.BeginUpgrade - // HTTP status codes to indicate success: http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginUpgrade func(ctx context.Context, resourceGroupName string, name string, options *armappservice.EnvironmentsClientBeginUpgradeOptions) (resp azfake.PollerResponder[armappservice.EnvironmentsClientUpgradeResponse], errResp azfake.ErrorResponder) } @@ -299,115 +296,134 @@ func (e *EnvironmentsServerTransport) Do(req *http.Request) (*http.Response, err return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection": - resp, err = e.dispatchBeginApproveOrRejectPrivateEndpointConnection(req) - case "EnvironmentsClient.BeginChangeVnet": - resp, err = e.dispatchBeginChangeVnet(req) - case "EnvironmentsClient.BeginCreateOrUpdate": - resp, err = e.dispatchBeginCreateOrUpdate(req) - case "EnvironmentsClient.BeginCreateOrUpdateMultiRolePool": - resp, err = e.dispatchBeginCreateOrUpdateMultiRolePool(req) - case "EnvironmentsClient.BeginCreateOrUpdateWorkerPool": - resp, err = e.dispatchBeginCreateOrUpdateWorkerPool(req) - case "EnvironmentsClient.BeginDelete": - resp, err = e.dispatchBeginDelete(req) - case "EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration": - resp, err = e.dispatchDeleteAseCustomDNSSuffixConfiguration(req) - case "EnvironmentsClient.BeginDeletePrivateEndpointConnection": - resp, err = e.dispatchBeginDeletePrivateEndpointConnection(req) - case "EnvironmentsClient.Get": - resp, err = e.dispatchGet(req) - case "EnvironmentsClient.GetAseCustomDNSSuffixConfiguration": - resp, err = e.dispatchGetAseCustomDNSSuffixConfiguration(req) - case "EnvironmentsClient.GetAseV3NetworkingConfiguration": - resp, err = e.dispatchGetAseV3NetworkingConfiguration(req) - case "EnvironmentsClient.GetDiagnosticsItem": - resp, err = e.dispatchGetDiagnosticsItem(req) - case "EnvironmentsClient.NewGetInboundNetworkDependenciesEndpointsPager": - resp, err = e.dispatchNewGetInboundNetworkDependenciesEndpointsPager(req) - case "EnvironmentsClient.GetMultiRolePool": - resp, err = e.dispatchGetMultiRolePool(req) - case "EnvironmentsClient.NewGetOutboundNetworkDependenciesEndpointsPager": - resp, err = e.dispatchNewGetOutboundNetworkDependenciesEndpointsPager(req) - case "EnvironmentsClient.GetPrivateEndpointConnection": - resp, err = e.dispatchGetPrivateEndpointConnection(req) - case "EnvironmentsClient.NewGetPrivateEndpointConnectionListPager": - resp, err = e.dispatchNewGetPrivateEndpointConnectionListPager(req) - case "EnvironmentsClient.GetPrivateLinkResources": - resp, err = e.dispatchGetPrivateLinkResources(req) - case "EnvironmentsClient.GetVipInfo": - resp, err = e.dispatchGetVipInfo(req) - case "EnvironmentsClient.GetWorkerPool": - resp, err = e.dispatchGetWorkerPool(req) - case "EnvironmentsClient.NewListPager": - resp, err = e.dispatchNewListPager(req) - case "EnvironmentsClient.NewListAppServicePlansPager": - resp, err = e.dispatchNewListAppServicePlansPager(req) - case "EnvironmentsClient.NewListByResourceGroupPager": - resp, err = e.dispatchNewListByResourceGroupPager(req) - case "EnvironmentsClient.NewListCapacitiesPager": - resp, err = e.dispatchNewListCapacitiesPager(req) - case "EnvironmentsClient.ListDiagnostics": - resp, err = e.dispatchListDiagnostics(req) - case "EnvironmentsClient.NewListMultiRoleMetricDefinitionsPager": - resp, err = e.dispatchNewListMultiRoleMetricDefinitionsPager(req) - case "EnvironmentsClient.NewListMultiRolePoolInstanceMetricDefinitionsPager": - resp, err = e.dispatchNewListMultiRolePoolInstanceMetricDefinitionsPager(req) - case "EnvironmentsClient.NewListMultiRolePoolSKUsPager": - resp, err = e.dispatchNewListMultiRolePoolSKUsPager(req) - case "EnvironmentsClient.NewListMultiRolePoolsPager": - resp, err = e.dispatchNewListMultiRolePoolsPager(req) - case "EnvironmentsClient.NewListMultiRoleUsagesPager": - resp, err = e.dispatchNewListMultiRoleUsagesPager(req) - case "EnvironmentsClient.ListOperations": - resp, err = e.dispatchListOperations(req) - case "EnvironmentsClient.NewListUsagesPager": - resp, err = e.dispatchNewListUsagesPager(req) - case "EnvironmentsClient.NewListWebAppsPager": - resp, err = e.dispatchNewListWebAppsPager(req) - case "EnvironmentsClient.NewListWebWorkerMetricDefinitionsPager": - resp, err = e.dispatchNewListWebWorkerMetricDefinitionsPager(req) - case "EnvironmentsClient.NewListWebWorkerUsagesPager": - resp, err = e.dispatchNewListWebWorkerUsagesPager(req) - case "EnvironmentsClient.NewListWorkerPoolInstanceMetricDefinitionsPager": - resp, err = e.dispatchNewListWorkerPoolInstanceMetricDefinitionsPager(req) - case "EnvironmentsClient.NewListWorkerPoolSKUsPager": - resp, err = e.dispatchNewListWorkerPoolSKUsPager(req) - case "EnvironmentsClient.NewListWorkerPoolsPager": - resp, err = e.dispatchNewListWorkerPoolsPager(req) - case "EnvironmentsClient.Reboot": - resp, err = e.dispatchReboot(req) - case "EnvironmentsClient.BeginResume": - resp, err = e.dispatchBeginResume(req) - case "EnvironmentsClient.BeginSuspend": - resp, err = e.dispatchBeginSuspend(req) - case "EnvironmentsClient.TestUpgradeAvailableNotification": - resp, err = e.dispatchTestUpgradeAvailableNotification(req) - case "EnvironmentsClient.Update": - resp, err = e.dispatchUpdate(req) - case "EnvironmentsClient.UpdateAseCustomDNSSuffixConfiguration": - resp, err = e.dispatchUpdateAseCustomDNSSuffixConfiguration(req) - case "EnvironmentsClient.UpdateAseNetworkingConfiguration": - resp, err = e.dispatchUpdateAseNetworkingConfiguration(req) - case "EnvironmentsClient.UpdateMultiRolePool": - resp, err = e.dispatchUpdateMultiRolePool(req) - case "EnvironmentsClient.UpdateWorkerPool": - resp, err = e.dispatchUpdateWorkerPool(req) - case "EnvironmentsClient.BeginUpgrade": - resp, err = e.dispatchBeginUpgrade(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return e.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err - } +func (e *EnvironmentsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if environmentsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = environmentsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection": + res.resp, res.err = e.dispatchBeginApproveOrRejectPrivateEndpointConnection(req) + case "EnvironmentsClient.BeginChangeVnet": + res.resp, res.err = e.dispatchBeginChangeVnet(req) + case "EnvironmentsClient.BeginCreateOrUpdate": + res.resp, res.err = e.dispatchBeginCreateOrUpdate(req) + case "EnvironmentsClient.BeginCreateOrUpdateMultiRolePool": + res.resp, res.err = e.dispatchBeginCreateOrUpdateMultiRolePool(req) + case "EnvironmentsClient.BeginCreateOrUpdateWorkerPool": + res.resp, res.err = e.dispatchBeginCreateOrUpdateWorkerPool(req) + case "EnvironmentsClient.BeginDelete": + res.resp, res.err = e.dispatchBeginDelete(req) + case "EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration": + res.resp, res.err = e.dispatchDeleteAseCustomDNSSuffixConfiguration(req) + case "EnvironmentsClient.BeginDeletePrivateEndpointConnection": + res.resp, res.err = e.dispatchBeginDeletePrivateEndpointConnection(req) + case "EnvironmentsClient.Get": + res.resp, res.err = e.dispatchGet(req) + case "EnvironmentsClient.GetAseCustomDNSSuffixConfiguration": + res.resp, res.err = e.dispatchGetAseCustomDNSSuffixConfiguration(req) + case "EnvironmentsClient.GetAseV3NetworkingConfiguration": + res.resp, res.err = e.dispatchGetAseV3NetworkingConfiguration(req) + case "EnvironmentsClient.GetDiagnosticsItem": + res.resp, res.err = e.dispatchGetDiagnosticsItem(req) + case "EnvironmentsClient.NewGetInboundNetworkDependenciesEndpointsPager": + res.resp, res.err = e.dispatchNewGetInboundNetworkDependenciesEndpointsPager(req) + case "EnvironmentsClient.GetMultiRolePool": + res.resp, res.err = e.dispatchGetMultiRolePool(req) + case "EnvironmentsClient.NewGetOutboundNetworkDependenciesEndpointsPager": + res.resp, res.err = e.dispatchNewGetOutboundNetworkDependenciesEndpointsPager(req) + case "EnvironmentsClient.GetPrivateEndpointConnection": + res.resp, res.err = e.dispatchGetPrivateEndpointConnection(req) + case "EnvironmentsClient.NewGetPrivateEndpointConnectionListPager": + res.resp, res.err = e.dispatchNewGetPrivateEndpointConnectionListPager(req) + case "EnvironmentsClient.GetPrivateLinkResources": + res.resp, res.err = e.dispatchGetPrivateLinkResources(req) + case "EnvironmentsClient.GetVipInfo": + res.resp, res.err = e.dispatchGetVipInfo(req) + case "EnvironmentsClient.GetWorkerPool": + res.resp, res.err = e.dispatchGetWorkerPool(req) + case "EnvironmentsClient.NewListPager": + res.resp, res.err = e.dispatchNewListPager(req) + case "EnvironmentsClient.NewListAppServicePlansPager": + res.resp, res.err = e.dispatchNewListAppServicePlansPager(req) + case "EnvironmentsClient.NewListByResourceGroupPager": + res.resp, res.err = e.dispatchNewListByResourceGroupPager(req) + case "EnvironmentsClient.NewListCapacitiesPager": + res.resp, res.err = e.dispatchNewListCapacitiesPager(req) + case "EnvironmentsClient.ListDiagnostics": + res.resp, res.err = e.dispatchListDiagnostics(req) + case "EnvironmentsClient.NewListMultiRoleMetricDefinitionsPager": + res.resp, res.err = e.dispatchNewListMultiRoleMetricDefinitionsPager(req) + case "EnvironmentsClient.NewListMultiRolePoolInstanceMetricDefinitionsPager": + res.resp, res.err = e.dispatchNewListMultiRolePoolInstanceMetricDefinitionsPager(req) + case "EnvironmentsClient.NewListMultiRolePoolSKUsPager": + res.resp, res.err = e.dispatchNewListMultiRolePoolSKUsPager(req) + case "EnvironmentsClient.NewListMultiRolePoolsPager": + res.resp, res.err = e.dispatchNewListMultiRolePoolsPager(req) + case "EnvironmentsClient.NewListMultiRoleUsagesPager": + res.resp, res.err = e.dispatchNewListMultiRoleUsagesPager(req) + case "EnvironmentsClient.ListOperations": + res.resp, res.err = e.dispatchListOperations(req) + case "EnvironmentsClient.NewListUsagesPager": + res.resp, res.err = e.dispatchNewListUsagesPager(req) + case "EnvironmentsClient.NewListWebAppsPager": + res.resp, res.err = e.dispatchNewListWebAppsPager(req) + case "EnvironmentsClient.NewListWebWorkerMetricDefinitionsPager": + res.resp, res.err = e.dispatchNewListWebWorkerMetricDefinitionsPager(req) + case "EnvironmentsClient.NewListWebWorkerUsagesPager": + res.resp, res.err = e.dispatchNewListWebWorkerUsagesPager(req) + case "EnvironmentsClient.NewListWorkerPoolInstanceMetricDefinitionsPager": + res.resp, res.err = e.dispatchNewListWorkerPoolInstanceMetricDefinitionsPager(req) + case "EnvironmentsClient.NewListWorkerPoolSKUsPager": + res.resp, res.err = e.dispatchNewListWorkerPoolSKUsPager(req) + case "EnvironmentsClient.NewListWorkerPoolsPager": + res.resp, res.err = e.dispatchNewListWorkerPoolsPager(req) + case "EnvironmentsClient.Reboot": + res.resp, res.err = e.dispatchReboot(req) + case "EnvironmentsClient.BeginResume": + res.resp, res.err = e.dispatchBeginResume(req) + case "EnvironmentsClient.BeginSuspend": + res.resp, res.err = e.dispatchBeginSuspend(req) + case "EnvironmentsClient.TestUpgradeAvailableNotification": + res.resp, res.err = e.dispatchTestUpgradeAvailableNotification(req) + case "EnvironmentsClient.Update": + res.resp, res.err = e.dispatchUpdate(req) + case "EnvironmentsClient.UpdateAseCustomDNSSuffixConfiguration": + res.resp, res.err = e.dispatchUpdateAseCustomDNSSuffixConfiguration(req) + case "EnvironmentsClient.UpdateAseNetworkingConfiguration": + res.resp, res.err = e.dispatchUpdateAseNetworkingConfiguration(req) + case "EnvironmentsClient.UpdateMultiRolePool": + res.resp, res.err = e.dispatchUpdateMultiRolePool(req) + case "EnvironmentsClient.UpdateWorkerPool": + res.resp, res.err = e.dispatchUpdateWorkerPool(req) + case "EnvironmentsClient.BeginUpgrade": + res.resp, res.err = e.dispatchBeginUpgrade(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (e *EnvironmentsServerTransport) dispatchBeginApproveOrRejectPrivateEndpointConnection(req *http.Request) (*http.Response, error) { @@ -706,9 +722,9 @@ func (e *EnvironmentsServerTransport) dispatchBeginDelete(req *http.Request) (*h return nil, err } - if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { e.beginDelete.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginDelete) { e.beginDelete.remove(req) @@ -2364,9 +2380,9 @@ func (e *EnvironmentsServerTransport) dispatchBeginUpgrade(req *http.Request) (* return nil, err } - if !contains([]int{http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { e.beginUpgrade.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginUpgrade) { e.beginUpgrade.remove(req) @@ -2374,3 +2390,9 @@ func (e *EnvironmentsServerTransport) dispatchBeginUpgrade(req *http.Request) (* return resp, nil } + +// set this to conditionally intercept incoming requests to EnvironmentsServerTransport +var environmentsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go b/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go index ef05f106c3f8..db24c357f972 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -53,21 +50,40 @@ func (g *GetUsagesInLocationServerTransport) Do(req *http.Request) (*http.Respon return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return g.dispatchToMethodFake(req, method) +} - switch method { - case "GetUsagesInLocationClient.NewListPager": - resp, err = g.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (g *GetUsagesInLocationServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if getUsagesInLocationServerTransportInterceptor != nil { + res.resp, res.err, intercepted = getUsagesInLocationServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "GetUsagesInLocationClient.NewListPager": + res.resp, res.err = g.dispatchNewListPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (g *GetUsagesInLocationServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { @@ -106,3 +122,9 @@ func (g *GetUsagesInLocationServerTransport) dispatchNewListPager(req *http.Requ } return resp, nil } + +// set this to conditionally intercept incoming requests to GetUsagesInLocationServerTransport +var getUsagesInLocationServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/global_server.go b/sdk/resourcemanager/appservice/armappservice/fake/global_server.go index 24be75f9d3b2..f2e73c3732f8 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/global_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/global_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,7 +12,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -57,25 +54,44 @@ func (g *GlobalServerTransport) Do(req *http.Request) (*http.Response, error) { return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "GlobalClient.GetDeletedWebApp": - resp, err = g.dispatchGetDeletedWebApp(req) - case "GlobalClient.GetDeletedWebAppSnapshots": - resp, err = g.dispatchGetDeletedWebAppSnapshots(req) - case "GlobalClient.GetSubscriptionOperationWithAsyncResponse": - resp, err = g.dispatchGetSubscriptionOperationWithAsyncResponse(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return g.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err +func (g *GlobalServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if globalServerTransportInterceptor != nil { + res.resp, res.err, intercepted = globalServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "GlobalClient.GetDeletedWebApp": + res.resp, res.err = g.dispatchGetDeletedWebApp(req) + case "GlobalClient.GetDeletedWebAppSnapshots": + res.resp, res.err = g.dispatchGetDeletedWebAppSnapshots(req) + case "GlobalClient.GetSubscriptionOperationWithAsyncResponse": + res.resp, res.err = g.dispatchGetSubscriptionOperationWithAsyncResponse(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err } - - return resp, nil } func (g *GlobalServerTransport) dispatchGetDeletedWebApp(req *http.Request) (*http.Response, error) { @@ -168,3 +184,9 @@ func (g *GlobalServerTransport) dispatchGetSubscriptionOperationWithAsyncRespons } return resp, nil } + +// set this to conditionally intercept incoming requests to GlobalServerTransport +var globalServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/internal.go b/sdk/resourcemanager/appservice/armappservice/fake/internal.go index 72f540f217a1..d186c1b38a18 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/internal.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/internal.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,6 +12,11 @@ import ( "sync" ) +type result struct { + resp *http.Response + err error +} + type nonRetriableError struct { error } diff --git a/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go b/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go index 9afda8468b41..9f3673fd2058 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -80,31 +77,50 @@ func (k *KubeEnvironmentsServerTransport) Do(req *http.Request) (*http.Response, return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return k.dispatchToMethodFake(req, method) +} - switch method { - case "KubeEnvironmentsClient.BeginCreateOrUpdate": - resp, err = k.dispatchBeginCreateOrUpdate(req) - case "KubeEnvironmentsClient.BeginDelete": - resp, err = k.dispatchBeginDelete(req) - case "KubeEnvironmentsClient.Get": - resp, err = k.dispatchGet(req) - case "KubeEnvironmentsClient.NewListByResourceGroupPager": - resp, err = k.dispatchNewListByResourceGroupPager(req) - case "KubeEnvironmentsClient.NewListBySubscriptionPager": - resp, err = k.dispatchNewListBySubscriptionPager(req) - case "KubeEnvironmentsClient.Update": - resp, err = k.dispatchUpdate(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (k *KubeEnvironmentsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if kubeEnvironmentsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = kubeEnvironmentsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "KubeEnvironmentsClient.BeginCreateOrUpdate": + res.resp, res.err = k.dispatchBeginCreateOrUpdate(req) + case "KubeEnvironmentsClient.BeginDelete": + res.resp, res.err = k.dispatchBeginDelete(req) + case "KubeEnvironmentsClient.Get": + res.resp, res.err = k.dispatchGet(req) + case "KubeEnvironmentsClient.NewListByResourceGroupPager": + res.resp, res.err = k.dispatchNewListByResourceGroupPager(req) + case "KubeEnvironmentsClient.NewListBySubscriptionPager": + res.resp, res.err = k.dispatchNewListBySubscriptionPager(req) + case "KubeEnvironmentsClient.Update": + res.resp, res.err = k.dispatchUpdate(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (k *KubeEnvironmentsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { @@ -338,3 +354,9 @@ func (k *KubeEnvironmentsServerTransport) dispatchUpdate(req *http.Request) (*ht } return resp, nil } + +// set this to conditionally intercept incoming requests to KubeEnvironmentsServerTransport +var kubeEnvironmentsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go b/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go index ebe4c895691e..6bdc1d0d3713 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -171,73 +168,92 @@ func (p *PlansServerTransport) Do(req *http.Request) (*http.Response, error) { return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "PlansClient.BeginCreateOrUpdate": - resp, err = p.dispatchBeginCreateOrUpdate(req) - case "PlansClient.CreateOrUpdateVnetRoute": - resp, err = p.dispatchCreateOrUpdateVnetRoute(req) - case "PlansClient.Delete": - resp, err = p.dispatchDelete(req) - case "PlansClient.DeleteHybridConnection": - resp, err = p.dispatchDeleteHybridConnection(req) - case "PlansClient.DeleteVnetRoute": - resp, err = p.dispatchDeleteVnetRoute(req) - case "PlansClient.Get": - resp, err = p.dispatchGet(req) - case "PlansClient.GetHybridConnection": - resp, err = p.dispatchGetHybridConnection(req) - case "PlansClient.GetHybridConnectionPlanLimit": - resp, err = p.dispatchGetHybridConnectionPlanLimit(req) - case "PlansClient.GetRouteForVnet": - resp, err = p.dispatchGetRouteForVnet(req) - case "PlansClient.GetServerFarmSKUs": - resp, err = p.dispatchGetServerFarmSKUs(req) - case "PlansClient.GetVnetFromServerFarm": - resp, err = p.dispatchGetVnetFromServerFarm(req) - case "PlansClient.GetVnetGateway": - resp, err = p.dispatchGetVnetGateway(req) - case "PlansClient.NewListPager": - resp, err = p.dispatchNewListPager(req) - case "PlansClient.NewListByResourceGroupPager": - resp, err = p.dispatchNewListByResourceGroupPager(req) - case "PlansClient.ListCapabilities": - resp, err = p.dispatchListCapabilities(req) - case "PlansClient.ListHybridConnectionKeys": - resp, err = p.dispatchListHybridConnectionKeys(req) - case "PlansClient.NewListHybridConnectionsPager": - resp, err = p.dispatchNewListHybridConnectionsPager(req) - case "PlansClient.ListRoutesForVnet": - resp, err = p.dispatchListRoutesForVnet(req) - case "PlansClient.NewListUsagesPager": - resp, err = p.dispatchNewListUsagesPager(req) - case "PlansClient.ListVnets": - resp, err = p.dispatchListVnets(req) - case "PlansClient.NewListWebAppsPager": - resp, err = p.dispatchNewListWebAppsPager(req) - case "PlansClient.NewListWebAppsByHybridConnectionPager": - resp, err = p.dispatchNewListWebAppsByHybridConnectionPager(req) - case "PlansClient.RebootWorker": - resp, err = p.dispatchRebootWorker(req) - case "PlansClient.RestartWebApps": - resp, err = p.dispatchRestartWebApps(req) - case "PlansClient.Update": - resp, err = p.dispatchUpdate(req) - case "PlansClient.UpdateVnetGateway": - resp, err = p.dispatchUpdateVnetGateway(req) - case "PlansClient.UpdateVnetRoute": - resp, err = p.dispatchUpdateVnetRoute(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return p.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err - } +func (p *PlansServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - return resp, nil + go func() { + var intercepted bool + var res result + if plansServerTransportInterceptor != nil { + res.resp, res.err, intercepted = plansServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "PlansClient.BeginCreateOrUpdate": + res.resp, res.err = p.dispatchBeginCreateOrUpdate(req) + case "PlansClient.CreateOrUpdateVnetRoute": + res.resp, res.err = p.dispatchCreateOrUpdateVnetRoute(req) + case "PlansClient.Delete": + res.resp, res.err = p.dispatchDelete(req) + case "PlansClient.DeleteHybridConnection": + res.resp, res.err = p.dispatchDeleteHybridConnection(req) + case "PlansClient.DeleteVnetRoute": + res.resp, res.err = p.dispatchDeleteVnetRoute(req) + case "PlansClient.Get": + res.resp, res.err = p.dispatchGet(req) + case "PlansClient.GetHybridConnection": + res.resp, res.err = p.dispatchGetHybridConnection(req) + case "PlansClient.GetHybridConnectionPlanLimit": + res.resp, res.err = p.dispatchGetHybridConnectionPlanLimit(req) + case "PlansClient.GetRouteForVnet": + res.resp, res.err = p.dispatchGetRouteForVnet(req) + case "PlansClient.GetServerFarmSKUs": + res.resp, res.err = p.dispatchGetServerFarmSKUs(req) + case "PlansClient.GetVnetFromServerFarm": + res.resp, res.err = p.dispatchGetVnetFromServerFarm(req) + case "PlansClient.GetVnetGateway": + res.resp, res.err = p.dispatchGetVnetGateway(req) + case "PlansClient.NewListPager": + res.resp, res.err = p.dispatchNewListPager(req) + case "PlansClient.NewListByResourceGroupPager": + res.resp, res.err = p.dispatchNewListByResourceGroupPager(req) + case "PlansClient.ListCapabilities": + res.resp, res.err = p.dispatchListCapabilities(req) + case "PlansClient.ListHybridConnectionKeys": + res.resp, res.err = p.dispatchListHybridConnectionKeys(req) + case "PlansClient.NewListHybridConnectionsPager": + res.resp, res.err = p.dispatchNewListHybridConnectionsPager(req) + case "PlansClient.ListRoutesForVnet": + res.resp, res.err = p.dispatchListRoutesForVnet(req) + case "PlansClient.NewListUsagesPager": + res.resp, res.err = p.dispatchNewListUsagesPager(req) + case "PlansClient.ListVnets": + res.resp, res.err = p.dispatchListVnets(req) + case "PlansClient.NewListWebAppsPager": + res.resp, res.err = p.dispatchNewListWebAppsPager(req) + case "PlansClient.NewListWebAppsByHybridConnectionPager": + res.resp, res.err = p.dispatchNewListWebAppsByHybridConnectionPager(req) + case "PlansClient.RebootWorker": + res.resp, res.err = p.dispatchRebootWorker(req) + case "PlansClient.RestartWebApps": + res.resp, res.err = p.dispatchRestartWebApps(req) + case "PlansClient.Update": + res.resp, res.err = p.dispatchUpdate(req) + case "PlansClient.UpdateVnetGateway": + res.resp, res.err = p.dispatchUpdateVnetGateway(req) + case "PlansClient.UpdateVnetRoute": + res.resp, res.err = p.dispatchUpdateVnetRoute(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (p *PlansServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { @@ -1355,3 +1371,9 @@ func (p *PlansServerTransport) dispatchUpdateVnetRoute(req *http.Request) (*http } return resp, nil } + +// set this to conditionally intercept incoming requests to PlansServerTransport +var plansServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go index 5132c647400c..e7f9cc84fa53 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -89,33 +86,52 @@ func (p *ProviderServerTransport) Do(req *http.Request) (*http.Response, error) return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return p.dispatchToMethodFake(req, method) +} - switch method { - case "ProviderClient.NewGetAvailableStacksPager": - resp, err = p.dispatchNewGetAvailableStacksPager(req) - case "ProviderClient.NewGetAvailableStacksOnPremPager": - resp, err = p.dispatchNewGetAvailableStacksOnPremPager(req) - case "ProviderClient.NewGetFunctionAppStacksPager": - resp, err = p.dispatchNewGetFunctionAppStacksPager(req) - case "ProviderClient.NewGetFunctionAppStacksForLocationPager": - resp, err = p.dispatchNewGetFunctionAppStacksForLocationPager(req) - case "ProviderClient.NewGetWebAppStacksPager": - resp, err = p.dispatchNewGetWebAppStacksPager(req) - case "ProviderClient.NewGetWebAppStacksForLocationPager": - resp, err = p.dispatchNewGetWebAppStacksForLocationPager(req) - case "ProviderClient.NewListOperationsPager": - resp, err = p.dispatchNewListOperationsPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (p *ProviderServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if providerServerTransportInterceptor != nil { + res.resp, res.err, intercepted = providerServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "ProviderClient.NewGetAvailableStacksPager": + res.resp, res.err = p.dispatchNewGetAvailableStacksPager(req) + case "ProviderClient.NewGetAvailableStacksOnPremPager": + res.resp, res.err = p.dispatchNewGetAvailableStacksOnPremPager(req) + case "ProviderClient.NewGetFunctionAppStacksPager": + res.resp, res.err = p.dispatchNewGetFunctionAppStacksPager(req) + case "ProviderClient.NewGetFunctionAppStacksForLocationPager": + res.resp, res.err = p.dispatchNewGetFunctionAppStacksForLocationPager(req) + case "ProviderClient.NewGetWebAppStacksPager": + res.resp, res.err = p.dispatchNewGetWebAppStacksPager(req) + case "ProviderClient.NewGetWebAppStacksForLocationPager": + res.resp, res.err = p.dispatchNewGetWebAppStacksForLocationPager(req) + case "ProviderClient.NewListOperationsPager": + res.resp, res.err = p.dispatchNewListOperationsPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (p *ProviderServerTransport) dispatchNewGetAvailableStacksPager(req *http.Request) (*http.Response, error) { @@ -404,3 +420,9 @@ func (p *ProviderServerTransport) dispatchNewListOperationsPager(req *http.Reque } return resp, nil } + +// set this to conditionally intercept incoming requests to ProviderServerTransport +var providerServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go b/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go index 7ede912023b4..59b4ea01ebb9 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -119,49 +116,68 @@ func (r *RecommendationsServerTransport) Do(req *http.Request) (*http.Response, return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "RecommendationsClient.DisableAllForHostingEnvironment": - resp, err = r.dispatchDisableAllForHostingEnvironment(req) - case "RecommendationsClient.DisableAllForWebApp": - resp, err = r.dispatchDisableAllForWebApp(req) - case "RecommendationsClient.DisableRecommendationForHostingEnvironment": - resp, err = r.dispatchDisableRecommendationForHostingEnvironment(req) - case "RecommendationsClient.DisableRecommendationForSite": - resp, err = r.dispatchDisableRecommendationForSite(req) - case "RecommendationsClient.DisableRecommendationForSubscription": - resp, err = r.dispatchDisableRecommendationForSubscription(req) - case "RecommendationsClient.GetRuleDetailsByHostingEnvironment": - resp, err = r.dispatchGetRuleDetailsByHostingEnvironment(req) - case "RecommendationsClient.GetRuleDetailsByWebApp": - resp, err = r.dispatchGetRuleDetailsByWebApp(req) - case "RecommendationsClient.NewListPager": - resp, err = r.dispatchNewListPager(req) - case "RecommendationsClient.NewListHistoryForHostingEnvironmentPager": - resp, err = r.dispatchNewListHistoryForHostingEnvironmentPager(req) - case "RecommendationsClient.NewListHistoryForWebAppPager": - resp, err = r.dispatchNewListHistoryForWebAppPager(req) - case "RecommendationsClient.NewListRecommendedRulesForHostingEnvironmentPager": - resp, err = r.dispatchNewListRecommendedRulesForHostingEnvironmentPager(req) - case "RecommendationsClient.NewListRecommendedRulesForWebAppPager": - resp, err = r.dispatchNewListRecommendedRulesForWebAppPager(req) - case "RecommendationsClient.ResetAllFilters": - resp, err = r.dispatchResetAllFilters(req) - case "RecommendationsClient.ResetAllFiltersForHostingEnvironment": - resp, err = r.dispatchResetAllFiltersForHostingEnvironment(req) - case "RecommendationsClient.ResetAllFiltersForWebApp": - resp, err = r.dispatchResetAllFiltersForWebApp(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return r.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err - } +func (r *RecommendationsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if recommendationsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = recommendationsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "RecommendationsClient.DisableAllForHostingEnvironment": + res.resp, res.err = r.dispatchDisableAllForHostingEnvironment(req) + case "RecommendationsClient.DisableAllForWebApp": + res.resp, res.err = r.dispatchDisableAllForWebApp(req) + case "RecommendationsClient.DisableRecommendationForHostingEnvironment": + res.resp, res.err = r.dispatchDisableRecommendationForHostingEnvironment(req) + case "RecommendationsClient.DisableRecommendationForSite": + res.resp, res.err = r.dispatchDisableRecommendationForSite(req) + case "RecommendationsClient.DisableRecommendationForSubscription": + res.resp, res.err = r.dispatchDisableRecommendationForSubscription(req) + case "RecommendationsClient.GetRuleDetailsByHostingEnvironment": + res.resp, res.err = r.dispatchGetRuleDetailsByHostingEnvironment(req) + case "RecommendationsClient.GetRuleDetailsByWebApp": + res.resp, res.err = r.dispatchGetRuleDetailsByWebApp(req) + case "RecommendationsClient.NewListPager": + res.resp, res.err = r.dispatchNewListPager(req) + case "RecommendationsClient.NewListHistoryForHostingEnvironmentPager": + res.resp, res.err = r.dispatchNewListHistoryForHostingEnvironmentPager(req) + case "RecommendationsClient.NewListHistoryForWebAppPager": + res.resp, res.err = r.dispatchNewListHistoryForWebAppPager(req) + case "RecommendationsClient.NewListRecommendedRulesForHostingEnvironmentPager": + res.resp, res.err = r.dispatchNewListRecommendedRulesForHostingEnvironmentPager(req) + case "RecommendationsClient.NewListRecommendedRulesForWebAppPager": + res.resp, res.err = r.dispatchNewListRecommendedRulesForWebAppPager(req) + case "RecommendationsClient.ResetAllFilters": + res.resp, res.err = r.dispatchResetAllFilters(req) + case "RecommendationsClient.ResetAllFiltersForHostingEnvironment": + res.resp, res.err = r.dispatchResetAllFiltersForHostingEnvironment(req) + case "RecommendationsClient.ResetAllFiltersForWebApp": + res.resp, res.err = r.dispatchResetAllFiltersForWebApp(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (r *RecommendationsServerTransport) dispatchDisableAllForHostingEnvironment(req *http.Request) (*http.Response, error) { @@ -856,3 +872,9 @@ func (r *RecommendationsServerTransport) dispatchResetAllFiltersForWebApp(req *h } return resp, nil } + +// set this to conditionally intercept incoming requests to RecommendationsServerTransport +var recommendationsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go b/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go index 3be20b938529..c4113dc159ca 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -80,31 +77,50 @@ func (r *ResourceHealthMetadataServerTransport) Do(req *http.Request) (*http.Res return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return r.dispatchToMethodFake(req, method) +} - switch method { - case "ResourceHealthMetadataClient.GetBySite": - resp, err = r.dispatchGetBySite(req) - case "ResourceHealthMetadataClient.GetBySiteSlot": - resp, err = r.dispatchGetBySiteSlot(req) - case "ResourceHealthMetadataClient.NewListPager": - resp, err = r.dispatchNewListPager(req) - case "ResourceHealthMetadataClient.NewListByResourceGroupPager": - resp, err = r.dispatchNewListByResourceGroupPager(req) - case "ResourceHealthMetadataClient.NewListBySitePager": - resp, err = r.dispatchNewListBySitePager(req) - case "ResourceHealthMetadataClient.NewListBySiteSlotPager": - resp, err = r.dispatchNewListBySiteSlotPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (r *ResourceHealthMetadataServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if resourceHealthMetadataServerTransportInterceptor != nil { + res.resp, res.err, intercepted = resourceHealthMetadataServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "ResourceHealthMetadataClient.GetBySite": + res.resp, res.err = r.dispatchGetBySite(req) + case "ResourceHealthMetadataClient.GetBySiteSlot": + res.resp, res.err = r.dispatchGetBySiteSlot(req) + case "ResourceHealthMetadataClient.NewListPager": + res.resp, res.err = r.dispatchNewListPager(req) + case "ResourceHealthMetadataClient.NewListByResourceGroupPager": + res.resp, res.err = r.dispatchNewListByResourceGroupPager(req) + case "ResourceHealthMetadataClient.NewListBySitePager": + res.resp, res.err = r.dispatchNewListBySitePager(req) + case "ResourceHealthMetadataClient.NewListBySiteSlotPager": + res.resp, res.err = r.dispatchNewListBySiteSlotPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (r *ResourceHealthMetadataServerTransport) dispatchGetBySite(req *http.Request) (*http.Response, error) { @@ -332,3 +348,9 @@ func (r *ResourceHealthMetadataServerTransport) dispatchNewListBySiteSlotPager(r } return resp, nil } + +// set this to conditionally intercept incoming requests to ResourceHealthMetadataServerTransport +var resourceHealthMetadataServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go b/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go index b55da94c6d22..6dd9fbd37dc5 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -19,37 +16,95 @@ import ( // ServerFactory is a fake server for instances of the armappservice.ClientFactory type. type ServerFactory struct { - CertificateOrdersServer CertificateOrdersServer - CertificateOrdersDiagnosticsServer CertificateOrdersDiagnosticsServer - CertificateRegistrationProviderServer CertificateRegistrationProviderServer - CertificatesServer CertificatesServer - ContainerAppsServer ContainerAppsServer - ContainerAppsRevisionsServer ContainerAppsRevisionsServer - DeletedWebAppsServer DeletedWebAppsServer - DiagnosticsServer DiagnosticsServer - DomainRegistrationProviderServer DomainRegistrationProviderServer - DomainsServer DomainsServer - EnvironmentsServer EnvironmentsServer - GetUsagesInLocationServer GetUsagesInLocationServer - GlobalServer GlobalServer - KubeEnvironmentsServer KubeEnvironmentsServer - PlansServer PlansServer - ProviderServer ProviderServer - RecommendationsServer RecommendationsServer - ResourceHealthMetadataServer ResourceHealthMetadataServer - StaticSitesServer StaticSitesServer - TopLevelDomainsServer TopLevelDomainsServer - WebAppsServer WebAppsServer - WebSiteManagementServer WebSiteManagementServer - WorkflowRunActionRepetitionsServer WorkflowRunActionRepetitionsServer + // CertificateOrdersServer contains the fakes for client CertificateOrdersClient + CertificateOrdersServer CertificateOrdersServer + + // CertificateOrdersDiagnosticsServer contains the fakes for client CertificateOrdersDiagnosticsClient + CertificateOrdersDiagnosticsServer CertificateOrdersDiagnosticsServer + + // CertificateRegistrationProviderServer contains the fakes for client CertificateRegistrationProviderClient + CertificateRegistrationProviderServer CertificateRegistrationProviderServer + + // CertificatesServer contains the fakes for client CertificatesClient + CertificatesServer CertificatesServer + + // DeletedWebAppsServer contains the fakes for client DeletedWebAppsClient + DeletedWebAppsServer DeletedWebAppsServer + + // DiagnosticsServer contains the fakes for client DiagnosticsClient + DiagnosticsServer DiagnosticsServer + + // DomainRegistrationProviderServer contains the fakes for client DomainRegistrationProviderClient + DomainRegistrationProviderServer DomainRegistrationProviderServer + + // DomainsServer contains the fakes for client DomainsClient + DomainsServer DomainsServer + + // EnvironmentsServer contains the fakes for client EnvironmentsClient + EnvironmentsServer EnvironmentsServer + + // GetUsagesInLocationServer contains the fakes for client GetUsagesInLocationClient + GetUsagesInLocationServer GetUsagesInLocationServer + + // GlobalServer contains the fakes for client GlobalClient + GlobalServer GlobalServer + + // KubeEnvironmentsServer contains the fakes for client KubeEnvironmentsClient + KubeEnvironmentsServer KubeEnvironmentsServer + + // PlansServer contains the fakes for client PlansClient + PlansServer PlansServer + + // ProviderServer contains the fakes for client ProviderClient + ProviderServer ProviderServer + + // RecommendationsServer contains the fakes for client RecommendationsClient + RecommendationsServer RecommendationsServer + + // ResourceHealthMetadataServer contains the fakes for client ResourceHealthMetadataClient + ResourceHealthMetadataServer ResourceHealthMetadataServer + + // SiteCertificatesServer contains the fakes for client SiteCertificatesClient + SiteCertificatesServer SiteCertificatesServer + + // StaticSitesServer contains the fakes for client StaticSitesClient + StaticSitesServer StaticSitesServer + + // TopLevelDomainsServer contains the fakes for client TopLevelDomainsClient + TopLevelDomainsServer TopLevelDomainsServer + + // WebAppsServer contains the fakes for client WebAppsClient + WebAppsServer WebAppsServer + + // WebSiteManagementServer contains the fakes for client WebSiteManagementClient + WebSiteManagementServer WebSiteManagementServer + + // WorkflowRunActionRepetitionsServer contains the fakes for client WorkflowRunActionRepetitionsClient + WorkflowRunActionRepetitionsServer WorkflowRunActionRepetitionsServer + + // WorkflowRunActionRepetitionsRequestHistoriesServer contains the fakes for client WorkflowRunActionRepetitionsRequestHistoriesClient WorkflowRunActionRepetitionsRequestHistoriesServer WorkflowRunActionRepetitionsRequestHistoriesServer - WorkflowRunActionScopeRepetitionsServer WorkflowRunActionScopeRepetitionsServer - WorkflowRunActionsServer WorkflowRunActionsServer - WorkflowRunsServer WorkflowRunsServer - WorkflowTriggerHistoriesServer WorkflowTriggerHistoriesServer - WorkflowTriggersServer WorkflowTriggersServer - WorkflowVersionsServer WorkflowVersionsServer - WorkflowsServer WorkflowsServer + + // WorkflowRunActionScopeRepetitionsServer contains the fakes for client WorkflowRunActionScopeRepetitionsClient + WorkflowRunActionScopeRepetitionsServer WorkflowRunActionScopeRepetitionsServer + + // WorkflowRunActionsServer contains the fakes for client WorkflowRunActionsClient + WorkflowRunActionsServer WorkflowRunActionsServer + + // WorkflowRunsServer contains the fakes for client WorkflowRunsClient + WorkflowRunsServer WorkflowRunsServer + + // WorkflowTriggerHistoriesServer contains the fakes for client WorkflowTriggerHistoriesClient + WorkflowTriggerHistoriesServer WorkflowTriggerHistoriesServer + + // WorkflowTriggersServer contains the fakes for client WorkflowTriggersClient + WorkflowTriggersServer WorkflowTriggersServer + + // WorkflowVersionsServer contains the fakes for client WorkflowVersionsClient + WorkflowVersionsServer WorkflowVersionsServer + + // WorkflowsServer contains the fakes for client WorkflowsClient + WorkflowsServer WorkflowsServer } // NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. @@ -70,8 +125,6 @@ type ServerFactoryTransport struct { trCertificateOrdersDiagnosticsServer *CertificateOrdersDiagnosticsServerTransport trCertificateRegistrationProviderServer *CertificateRegistrationProviderServerTransport trCertificatesServer *CertificatesServerTransport - trContainerAppsServer *ContainerAppsServerTransport - trContainerAppsRevisionsServer *ContainerAppsRevisionsServerTransport trDeletedWebAppsServer *DeletedWebAppsServerTransport trDiagnosticsServer *DiagnosticsServerTransport trDomainRegistrationProviderServer *DomainRegistrationProviderServerTransport @@ -84,6 +137,7 @@ type ServerFactoryTransport struct { trProviderServer *ProviderServerTransport trRecommendationsServer *RecommendationsServerTransport trResourceHealthMetadataServer *ResourceHealthMetadataServerTransport + trSiteCertificatesServer *SiteCertificatesServerTransport trStaticSitesServer *StaticSitesServerTransport trTopLevelDomainsServer *TopLevelDomainsServerTransport trWebAppsServer *WebAppsServerTransport @@ -130,16 +184,6 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { case "CertificatesClient": initServer(s, &s.trCertificatesServer, func() *CertificatesServerTransport { return NewCertificatesServerTransport(&s.srv.CertificatesServer) }) resp, err = s.trCertificatesServer.Do(req) - case "ContainerAppsClient": - initServer(s, &s.trContainerAppsServer, func() *ContainerAppsServerTransport { - return NewContainerAppsServerTransport(&s.srv.ContainerAppsServer) - }) - resp, err = s.trContainerAppsServer.Do(req) - case "ContainerAppsRevisionsClient": - initServer(s, &s.trContainerAppsRevisionsServer, func() *ContainerAppsRevisionsServerTransport { - return NewContainerAppsRevisionsServerTransport(&s.srv.ContainerAppsRevisionsServer) - }) - resp, err = s.trContainerAppsRevisionsServer.Do(req) case "DeletedWebAppsClient": initServer(s, &s.trDeletedWebAppsServer, func() *DeletedWebAppsServerTransport { return NewDeletedWebAppsServerTransport(&s.srv.DeletedWebAppsServer) @@ -188,6 +232,11 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewResourceHealthMetadataServerTransport(&s.srv.ResourceHealthMetadataServer) }) resp, err = s.trResourceHealthMetadataServer.Do(req) + case "SiteCertificatesClient": + initServer(s, &s.trSiteCertificatesServer, func() *SiteCertificatesServerTransport { + return NewSiteCertificatesServerTransport(&s.srv.SiteCertificatesServer) + }) + resp, err = s.trSiteCertificatesServer.Do(req) case "StaticSitesClient": initServer(s, &s.trStaticSitesServer, func() *StaticSitesServerTransport { return NewStaticSitesServerTransport(&s.srv.StaticSitesServer) }) resp, err = s.trStaticSitesServer.Do(req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go b/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go new file mode 100644 index 000000000000..799ebcbb5310 --- /dev/null +++ b/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go @@ -0,0 +1,564 @@ +// 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. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "net/http" + "net/url" + "regexp" +) + +// SiteCertificatesServer is a fake server for instances of the armappservice.SiteCertificatesClient type. +type SiteCertificatesServer struct { + // CreateOrUpdate is the fake for method SiteCertificatesClient.CreateOrUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + CreateOrUpdate func(ctx context.Context, resourceGroupName string, name string, certificateName string, certificateEnvelope armappservice.AppCertificate, options *armappservice.SiteCertificatesClientCreateOrUpdateOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + + // CreateOrUpdateSlot is the fake for method SiteCertificatesClient.CreateOrUpdateSlot + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + CreateOrUpdateSlot func(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, certificateEnvelope armappservice.AppCertificate, options *armappservice.SiteCertificatesClientCreateOrUpdateSlotOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientCreateOrUpdateSlotResponse], errResp azfake.ErrorResponder) + + // Delete is the fake for method SiteCertificatesClient.Delete + // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent + Delete func(ctx context.Context, resourceGroupName string, name string, certificateName string, options *armappservice.SiteCertificatesClientDeleteOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientDeleteResponse], errResp azfake.ErrorResponder) + + // DeleteSlot is the fake for method SiteCertificatesClient.DeleteSlot + // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent + DeleteSlot func(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, options *armappservice.SiteCertificatesClientDeleteSlotOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientDeleteSlotResponse], errResp azfake.ErrorResponder) + + // Get is the fake for method SiteCertificatesClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, name string, certificateName string, options *armappservice.SiteCertificatesClientGetOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientGetResponse], errResp azfake.ErrorResponder) + + // GetSlot is the fake for method SiteCertificatesClient.GetSlot + // HTTP status codes to indicate success: http.StatusOK + GetSlot func(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, options *armappservice.SiteCertificatesClientGetSlotOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientGetSlotResponse], errResp azfake.ErrorResponder) + + // NewListPager is the fake for method SiteCertificatesClient.NewListPager + // HTTP status codes to indicate success: http.StatusOK + NewListPager func(resourceGroupName string, name string, options *armappservice.SiteCertificatesClientListOptions) (resp azfake.PagerResponder[armappservice.SiteCertificatesClientListResponse]) + + // NewListSlotPager is the fake for method SiteCertificatesClient.NewListSlotPager + // HTTP status codes to indicate success: http.StatusOK + NewListSlotPager func(resourceGroupName string, name string, slot string, options *armappservice.SiteCertificatesClientListSlotOptions) (resp azfake.PagerResponder[armappservice.SiteCertificatesClientListSlotResponse]) + + // Update is the fake for method SiteCertificatesClient.Update + // HTTP status codes to indicate success: http.StatusOK + Update func(ctx context.Context, resourceGroupName string, name string, certificateName string, certificateEnvelope armappservice.AppCertificatePatchResource, options *armappservice.SiteCertificatesClientUpdateOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientUpdateResponse], errResp azfake.ErrorResponder) + + // UpdateSlot is the fake for method SiteCertificatesClient.UpdateSlot + // HTTP status codes to indicate success: http.StatusOK + UpdateSlot func(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, certificateEnvelope armappservice.AppCertificatePatchResource, options *armappservice.SiteCertificatesClientUpdateSlotOptions) (resp azfake.Responder[armappservice.SiteCertificatesClientUpdateSlotResponse], errResp azfake.ErrorResponder) +} + +// NewSiteCertificatesServerTransport creates a new instance of SiteCertificatesServerTransport with the provided implementation. +// The returned SiteCertificatesServerTransport instance is connected to an instance of armappservice.SiteCertificatesClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewSiteCertificatesServerTransport(srv *SiteCertificatesServer) *SiteCertificatesServerTransport { + return &SiteCertificatesServerTransport{ + srv: srv, + newListPager: newTracker[azfake.PagerResponder[armappservice.SiteCertificatesClientListResponse]](), + newListSlotPager: newTracker[azfake.PagerResponder[armappservice.SiteCertificatesClientListSlotResponse]](), + } +} + +// SiteCertificatesServerTransport connects instances of armappservice.SiteCertificatesClient to instances of SiteCertificatesServer. +// Don't use this type directly, use NewSiteCertificatesServerTransport instead. +type SiteCertificatesServerTransport struct { + srv *SiteCertificatesServer + newListPager *tracker[azfake.PagerResponder[armappservice.SiteCertificatesClientListResponse]] + newListSlotPager *tracker[azfake.PagerResponder[armappservice.SiteCertificatesClientListSlotResponse]] +} + +// Do implements the policy.Transporter interface for SiteCertificatesServerTransport. +func (s *SiteCertificatesServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + return s.dispatchToMethodFake(req, method) +} + +func (s *SiteCertificatesServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if siteCertificatesServerTransportInterceptor != nil { + res.resp, res.err, intercepted = siteCertificatesServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "SiteCertificatesClient.CreateOrUpdate": + res.resp, res.err = s.dispatchCreateOrUpdate(req) + case "SiteCertificatesClient.CreateOrUpdateSlot": + res.resp, res.err = s.dispatchCreateOrUpdateSlot(req) + case "SiteCertificatesClient.Delete": + res.resp, res.err = s.dispatchDelete(req) + case "SiteCertificatesClient.DeleteSlot": + res.resp, res.err = s.dispatchDeleteSlot(req) + case "SiteCertificatesClient.Get": + res.resp, res.err = s.dispatchGet(req) + case "SiteCertificatesClient.GetSlot": + res.resp, res.err = s.dispatchGetSlot(req) + case "SiteCertificatesClient.NewListPager": + res.resp, res.err = s.dispatchNewListPager(req) + case "SiteCertificatesClient.NewListSlotPager": + res.resp, res.err = s.dispatchNewListSlotPager(req) + case "SiteCertificatesClient.Update": + res.resp, res.err = s.dispatchUpdate(req) + case "SiteCertificatesClient.UpdateSlot": + res.resp, res.err = s.dispatchUpdateSlot(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } +} + +func (s *SiteCertificatesServerTransport) dispatchCreateOrUpdate(req *http.Request) (*http.Response, error) { + if s.srv.CreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method CreateOrUpdate not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificate](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.CreateOrUpdate(req.Context(), resourceGroupNameParam, nameParam, certificateNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusCreated}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).AppCertificate, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchCreateOrUpdateSlot(req *http.Request) (*http.Response, error) { + if s.srv.CreateOrUpdateSlot == nil { + return nil, &nonRetriableError{errors.New("fake for method CreateOrUpdateSlot not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 5 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificate](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + slotParam, err := url.PathUnescape(matches[regex.SubexpIndex("slot")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.CreateOrUpdateSlot(req.Context(), resourceGroupNameParam, nameParam, slotParam, certificateNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusCreated}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).AppCertificate, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchDelete(req *http.Request) (*http.Response, error) { + if s.srv.Delete == nil { + return nil, &nonRetriableError{errors.New("fake for method Delete not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.Delete(req.Context(), resourceGroupNameParam, nameParam, certificateNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusNoContent}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusNoContent", respContent.HTTPStatus)} + } + resp, err := server.NewResponse(respContent, req, nil) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchDeleteSlot(req *http.Request) (*http.Response, error) { + if s.srv.DeleteSlot == nil { + return nil, &nonRetriableError{errors.New("fake for method DeleteSlot not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 5 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + slotParam, err := url.PathUnescape(matches[regex.SubexpIndex("slot")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.DeleteSlot(req.Context(), resourceGroupNameParam, nameParam, slotParam, certificateNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusNoContent}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusNoContent", respContent.HTTPStatus)} + } + resp, err := server.NewResponse(respContent, req, nil) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if s.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.Get(req.Context(), resourceGroupNameParam, nameParam, certificateNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).AppCertificate, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchGetSlot(req *http.Request) (*http.Response, error) { + if s.srv.GetSlot == nil { + return nil, &nonRetriableError{errors.New("fake for method GetSlot not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 5 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + slotParam, err := url.PathUnescape(matches[regex.SubexpIndex("slot")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.GetSlot(req.Context(), resourceGroupNameParam, nameParam, slotParam, certificateNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).AppCertificate, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { + if s.srv.NewListPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListPager not implemented")} + } + newListPager := s.newListPager.get(req) + if newListPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + resp := s.srv.NewListPager(resourceGroupNameParam, nameParam, nil) + newListPager = &resp + s.newListPager.add(req, newListPager) + server.PagerResponderInjectNextLinks(newListPager, req, func(page *armappservice.SiteCertificatesClientListResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + s.newListPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListPager) { + s.newListPager.remove(req) + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchNewListSlotPager(req *http.Request) (*http.Response, error) { + if s.srv.NewListSlotPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListSlotPager not implemented")} + } + newListSlotPager := s.newListSlotPager.get(req) + if newListSlotPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + slotParam, err := url.PathUnescape(matches[regex.SubexpIndex("slot")]) + if err != nil { + return nil, err + } + resp := s.srv.NewListSlotPager(resourceGroupNameParam, nameParam, slotParam, nil) + newListSlotPager = &resp + s.newListSlotPager.add(req, newListSlotPager) + server.PagerResponderInjectNextLinks(newListSlotPager, req, func(page *armappservice.SiteCertificatesClientListSlotResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListSlotPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + s.newListSlotPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListSlotPager) { + s.newListSlotPager.remove(req) + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchUpdate(req *http.Request) (*http.Response, error) { + if s.srv.Update == nil { + return nil, &nonRetriableError{errors.New("fake for method Update not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificatePatchResource](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.Update(req.Context(), resourceGroupNameParam, nameParam, certificateNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).AppCertificate, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SiteCertificatesServerTransport) dispatchUpdateSlot(req *http.Request) (*http.Response, error) { + if s.srv.UpdateSlot == nil { + return nil, &nonRetriableError{errors.New("fake for method UpdateSlot not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 5 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificatePatchResource](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) + if err != nil { + return nil, err + } + slotParam, err := url.PathUnescape(matches[regex.SubexpIndex("slot")]) + if err != nil { + return nil, err + } + certificateNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("certificateName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.UpdateSlot(req.Context(), resourceGroupNameParam, nameParam, slotParam, certificateNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).AppCertificate, req) + if err != nil { + return nil, err + } + return resp, nil +} + +// set this to conditionally intercept incoming requests to SiteCertificatesServerTransport +var siteCertificatesServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go b/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go index a4f57a09892c..48096e71fd88 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -70,11 +67,11 @@ type StaticSitesServer struct { CreateUserRolesInvitationLink func(ctx context.Context, resourceGroupName string, name string, staticSiteUserRolesInvitationEnvelope armappservice.StaticSiteUserInvitationRequestResource, options *armappservice.StaticSitesClientCreateUserRolesInvitationLinkOptions) (resp azfake.Responder[armappservice.StaticSitesClientCreateUserRolesInvitationLinkResponse], errResp azfake.ErrorResponder) // BeginCreateZipDeploymentForStaticSite is the fake for method StaticSitesClient.BeginCreateZipDeploymentForStaticSite - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginCreateZipDeploymentForStaticSite func(ctx context.Context, resourceGroupName string, name string, staticSiteZipDeploymentEnvelope armappservice.StaticSiteZipDeploymentARMResource, options *armappservice.StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientCreateZipDeploymentForStaticSiteResponse], errResp azfake.ErrorResponder) // BeginCreateZipDeploymentForStaticSiteBuild is the fake for method StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginCreateZipDeploymentForStaticSiteBuild func(ctx context.Context, resourceGroupName string, name string, environmentName string, staticSiteZipDeploymentEnvelope armappservice.StaticSiteZipDeploymentARMResource, options *armappservice.StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientCreateZipDeploymentForStaticSiteBuildResponse], errResp azfake.ErrorResponder) // DeleteBuildDatabaseConnection is the fake for method StaticSitesClient.DeleteBuildDatabaseConnection @@ -90,7 +87,7 @@ type StaticSitesServer struct { BeginDeletePrivateEndpointConnection func(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *armappservice.StaticSitesClientBeginDeletePrivateEndpointConnectionOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientDeletePrivateEndpointConnectionResponse], errResp azfake.ErrorResponder) // BeginDeleteStaticSite is the fake for method StaticSitesClient.BeginDeleteStaticSite - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginDeleteStaticSite func(ctx context.Context, resourceGroupName string, name string, options *armappservice.StaticSitesClientBeginDeleteStaticSiteOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientDeleteStaticSiteResponse], errResp azfake.ErrorResponder) // BeginDeleteStaticSiteBuild is the fake for method StaticSitesClient.BeginDeleteStaticSiteBuild @@ -98,7 +95,7 @@ type StaticSitesServer struct { BeginDeleteStaticSiteBuild func(ctx context.Context, resourceGroupName string, name string, environmentName string, options *armappservice.StaticSitesClientBeginDeleteStaticSiteBuildOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientDeleteStaticSiteBuildResponse], errResp azfake.ErrorResponder) // BeginDeleteStaticSiteCustomDomain is the fake for method StaticSitesClient.BeginDeleteStaticSiteCustomDomain - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginDeleteStaticSiteCustomDomain func(ctx context.Context, resourceGroupName string, name string, domainName string, options *armappservice.StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientDeleteStaticSiteCustomDomainResponse], errResp azfake.ErrorResponder) // DeleteStaticSiteUser is the fake for method StaticSitesClient.DeleteStaticSiteUser @@ -106,7 +103,7 @@ type StaticSitesServer struct { DeleteStaticSiteUser func(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, options *armappservice.StaticSitesClientDeleteStaticSiteUserOptions) (resp azfake.Responder[armappservice.StaticSitesClientDeleteStaticSiteUserResponse], errResp azfake.ErrorResponder) // BeginDetachStaticSite is the fake for method StaticSitesClient.BeginDetachStaticSite - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginDetachStaticSite func(ctx context.Context, resourceGroupName string, name string, options *armappservice.StaticSitesClientBeginDetachStaticSiteOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientDetachStaticSiteResponse], errResp azfake.ErrorResponder) // DetachUserProvidedFunctionAppFromStaticSite is the fake for method StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSite @@ -314,15 +311,15 @@ type StaticSitesServer struct { UpdateStaticSiteUser func(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, staticSiteUserEnvelope armappservice.StaticSiteUserARMResource, options *armappservice.StaticSitesClientUpdateStaticSiteUserOptions) (resp azfake.Responder[armappservice.StaticSitesClientUpdateStaticSiteUserResponse], errResp azfake.ErrorResponder) // BeginValidateBackend is the fake for method StaticSitesClient.BeginValidateBackend - // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginValidateBackend func(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope armappservice.StaticSiteLinkedBackendARMResource, options *armappservice.StaticSitesClientBeginValidateBackendOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientValidateBackendResponse], errResp azfake.ErrorResponder) // BeginValidateBackendForBuild is the fake for method StaticSitesClient.BeginValidateBackendForBuild - // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginValidateBackendForBuild func(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope armappservice.StaticSiteLinkedBackendARMResource, options *armappservice.StaticSitesClientBeginValidateBackendForBuildOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientValidateBackendForBuildResponse], errResp azfake.ErrorResponder) // BeginValidateCustomDomainCanBeAddedToStaticSite is the fake for method StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginValidateCustomDomainCanBeAddedToStaticSite func(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope armappservice.StaticSiteCustomDomainRequestPropertiesARMResource, options *armappservice.StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions) (resp azfake.PollerResponder[armappservice.StaticSitesClientValidateCustomDomainCanBeAddedToStaticSiteResponse], errResp azfake.ErrorResponder) } @@ -417,169 +414,188 @@ func (s *StaticSitesServerTransport) Do(req *http.Request) (*http.Response, erro return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection": - resp, err = s.dispatchBeginApproveOrRejectPrivateEndpointConnection(req) - case "StaticSitesClient.CreateOrUpdateBasicAuth": - resp, err = s.dispatchCreateOrUpdateBasicAuth(req) - case "StaticSitesClient.CreateOrUpdateBuildDatabaseConnection": - resp, err = s.dispatchCreateOrUpdateBuildDatabaseConnection(req) - case "StaticSitesClient.CreateOrUpdateDatabaseConnection": - resp, err = s.dispatchCreateOrUpdateDatabaseConnection(req) - case "StaticSitesClient.BeginCreateOrUpdateStaticSite": - resp, err = s.dispatchBeginCreateOrUpdateStaticSite(req) - case "StaticSitesClient.CreateOrUpdateStaticSiteAppSettings": - resp, err = s.dispatchCreateOrUpdateStaticSiteAppSettings(req) - case "StaticSitesClient.CreateOrUpdateStaticSiteBuildAppSettings": - resp, err = s.dispatchCreateOrUpdateStaticSiteBuildAppSettings(req) - case "StaticSitesClient.CreateOrUpdateStaticSiteBuildFunctionAppSettings": - resp, err = s.dispatchCreateOrUpdateStaticSiteBuildFunctionAppSettings(req) - case "StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain": - resp, err = s.dispatchBeginCreateOrUpdateStaticSiteCustomDomain(req) - case "StaticSitesClient.CreateOrUpdateStaticSiteFunctionAppSettings": - resp, err = s.dispatchCreateOrUpdateStaticSiteFunctionAppSettings(req) - case "StaticSitesClient.CreateUserRolesInvitationLink": - resp, err = s.dispatchCreateUserRolesInvitationLink(req) - case "StaticSitesClient.BeginCreateZipDeploymentForStaticSite": - resp, err = s.dispatchBeginCreateZipDeploymentForStaticSite(req) - case "StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild": - resp, err = s.dispatchBeginCreateZipDeploymentForStaticSiteBuild(req) - case "StaticSitesClient.DeleteBuildDatabaseConnection": - resp, err = s.dispatchDeleteBuildDatabaseConnection(req) - case "StaticSitesClient.DeleteDatabaseConnection": - resp, err = s.dispatchDeleteDatabaseConnection(req) - case "StaticSitesClient.BeginDeletePrivateEndpointConnection": - resp, err = s.dispatchBeginDeletePrivateEndpointConnection(req) - case "StaticSitesClient.BeginDeleteStaticSite": - resp, err = s.dispatchBeginDeleteStaticSite(req) - case "StaticSitesClient.BeginDeleteStaticSiteBuild": - resp, err = s.dispatchBeginDeleteStaticSiteBuild(req) - case "StaticSitesClient.BeginDeleteStaticSiteCustomDomain": - resp, err = s.dispatchBeginDeleteStaticSiteCustomDomain(req) - case "StaticSitesClient.DeleteStaticSiteUser": - resp, err = s.dispatchDeleteStaticSiteUser(req) - case "StaticSitesClient.BeginDetachStaticSite": - resp, err = s.dispatchBeginDetachStaticSite(req) - case "StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSite": - resp, err = s.dispatchDetachUserProvidedFunctionAppFromStaticSite(req) - case "StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSiteBuild": - resp, err = s.dispatchDetachUserProvidedFunctionAppFromStaticSiteBuild(req) - case "StaticSitesClient.GetBasicAuth": - resp, err = s.dispatchGetBasicAuth(req) - case "StaticSitesClient.GetBuildDatabaseConnection": - resp, err = s.dispatchGetBuildDatabaseConnection(req) - case "StaticSitesClient.GetBuildDatabaseConnectionWithDetails": - resp, err = s.dispatchGetBuildDatabaseConnectionWithDetails(req) - case "StaticSitesClient.NewGetBuildDatabaseConnectionsPager": - resp, err = s.dispatchNewGetBuildDatabaseConnectionsPager(req) - case "StaticSitesClient.NewGetBuildDatabaseConnectionsWithDetailsPager": - resp, err = s.dispatchNewGetBuildDatabaseConnectionsWithDetailsPager(req) - case "StaticSitesClient.GetDatabaseConnection": - resp, err = s.dispatchGetDatabaseConnection(req) - case "StaticSitesClient.GetDatabaseConnectionWithDetails": - resp, err = s.dispatchGetDatabaseConnectionWithDetails(req) - case "StaticSitesClient.NewGetDatabaseConnectionsPager": - resp, err = s.dispatchNewGetDatabaseConnectionsPager(req) - case "StaticSitesClient.NewGetDatabaseConnectionsWithDetailsPager": - resp, err = s.dispatchNewGetDatabaseConnectionsWithDetailsPager(req) - case "StaticSitesClient.GetLinkedBackend": - resp, err = s.dispatchGetLinkedBackend(req) - case "StaticSitesClient.GetLinkedBackendForBuild": - resp, err = s.dispatchGetLinkedBackendForBuild(req) - case "StaticSitesClient.NewGetLinkedBackendsPager": - resp, err = s.dispatchNewGetLinkedBackendsPager(req) - case "StaticSitesClient.NewGetLinkedBackendsForBuildPager": - resp, err = s.dispatchNewGetLinkedBackendsForBuildPager(req) - case "StaticSitesClient.GetPrivateEndpointConnection": - resp, err = s.dispatchGetPrivateEndpointConnection(req) - case "StaticSitesClient.NewGetPrivateEndpointConnectionListPager": - resp, err = s.dispatchNewGetPrivateEndpointConnectionListPager(req) - case "StaticSitesClient.GetPrivateLinkResources": - resp, err = s.dispatchGetPrivateLinkResources(req) - case "StaticSitesClient.GetStaticSite": - resp, err = s.dispatchGetStaticSite(req) - case "StaticSitesClient.GetStaticSiteBuild": - resp, err = s.dispatchGetStaticSiteBuild(req) - case "StaticSitesClient.NewGetStaticSiteBuildsPager": - resp, err = s.dispatchNewGetStaticSiteBuildsPager(req) - case "StaticSitesClient.GetStaticSiteCustomDomain": - resp, err = s.dispatchGetStaticSiteCustomDomain(req) - case "StaticSitesClient.NewGetStaticSitesByResourceGroupPager": - resp, err = s.dispatchNewGetStaticSitesByResourceGroupPager(req) - case "StaticSitesClient.GetUserProvidedFunctionAppForStaticSite": - resp, err = s.dispatchGetUserProvidedFunctionAppForStaticSite(req) - case "StaticSitesClient.GetUserProvidedFunctionAppForStaticSiteBuild": - resp, err = s.dispatchGetUserProvidedFunctionAppForStaticSiteBuild(req) - case "StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSitePager": - resp, err = s.dispatchNewGetUserProvidedFunctionAppsForStaticSitePager(req) - case "StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSiteBuildPager": - resp, err = s.dispatchNewGetUserProvidedFunctionAppsForStaticSiteBuildPager(req) - case "StaticSitesClient.BeginLinkBackend": - resp, err = s.dispatchBeginLinkBackend(req) - case "StaticSitesClient.BeginLinkBackendToBuild": - resp, err = s.dispatchBeginLinkBackendToBuild(req) - case "StaticSitesClient.NewListPager": - resp, err = s.dispatchNewListPager(req) - case "StaticSitesClient.NewListBasicAuthPager": - resp, err = s.dispatchNewListBasicAuthPager(req) - case "StaticSitesClient.ListStaticSiteAppSettings": - resp, err = s.dispatchListStaticSiteAppSettings(req) - case "StaticSitesClient.ListStaticSiteBuildAppSettings": - resp, err = s.dispatchListStaticSiteBuildAppSettings(req) - case "StaticSitesClient.ListStaticSiteBuildFunctionAppSettings": - resp, err = s.dispatchListStaticSiteBuildFunctionAppSettings(req) - case "StaticSitesClient.NewListStaticSiteBuildFunctionsPager": - resp, err = s.dispatchNewListStaticSiteBuildFunctionsPager(req) - case "StaticSitesClient.ListStaticSiteConfiguredRoles": - resp, err = s.dispatchListStaticSiteConfiguredRoles(req) - case "StaticSitesClient.NewListStaticSiteCustomDomainsPager": - resp, err = s.dispatchNewListStaticSiteCustomDomainsPager(req) - case "StaticSitesClient.ListStaticSiteFunctionAppSettings": - resp, err = s.dispatchListStaticSiteFunctionAppSettings(req) - case "StaticSitesClient.NewListStaticSiteFunctionsPager": - resp, err = s.dispatchNewListStaticSiteFunctionsPager(req) - case "StaticSitesClient.ListStaticSiteSecrets": - resp, err = s.dispatchListStaticSiteSecrets(req) - case "StaticSitesClient.NewListStaticSiteUsersPager": - resp, err = s.dispatchNewListStaticSiteUsersPager(req) - case "StaticSitesClient.PreviewWorkflow": - resp, err = s.dispatchPreviewWorkflow(req) - case "StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSite": - resp, err = s.dispatchBeginRegisterUserProvidedFunctionAppWithStaticSite(req) - case "StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild": - resp, err = s.dispatchBeginRegisterUserProvidedFunctionAppWithStaticSiteBuild(req) - case "StaticSitesClient.ResetStaticSiteAPIKey": - resp, err = s.dispatchResetStaticSiteAPIKey(req) - case "StaticSitesClient.UnlinkBackend": - resp, err = s.dispatchUnlinkBackend(req) - case "StaticSitesClient.UnlinkBackendFromBuild": - resp, err = s.dispatchUnlinkBackendFromBuild(req) - case "StaticSitesClient.UpdateBuildDatabaseConnection": - resp, err = s.dispatchUpdateBuildDatabaseConnection(req) - case "StaticSitesClient.UpdateDatabaseConnection": - resp, err = s.dispatchUpdateDatabaseConnection(req) - case "StaticSitesClient.UpdateStaticSite": - resp, err = s.dispatchUpdateStaticSite(req) - case "StaticSitesClient.UpdateStaticSiteUser": - resp, err = s.dispatchUpdateStaticSiteUser(req) - case "StaticSitesClient.BeginValidateBackend": - resp, err = s.dispatchBeginValidateBackend(req) - case "StaticSitesClient.BeginValidateBackendForBuild": - resp, err = s.dispatchBeginValidateBackendForBuild(req) - case "StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite": - resp, err = s.dispatchBeginValidateCustomDomainCanBeAddedToStaticSite(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return s.dispatchToMethodFake(req, method) +} + +func (s *StaticSitesServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if staticSitesServerTransportInterceptor != nil { + res.resp, res.err, intercepted = staticSitesServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection": + res.resp, res.err = s.dispatchBeginApproveOrRejectPrivateEndpointConnection(req) + case "StaticSitesClient.CreateOrUpdateBasicAuth": + res.resp, res.err = s.dispatchCreateOrUpdateBasicAuth(req) + case "StaticSitesClient.CreateOrUpdateBuildDatabaseConnection": + res.resp, res.err = s.dispatchCreateOrUpdateBuildDatabaseConnection(req) + case "StaticSitesClient.CreateOrUpdateDatabaseConnection": + res.resp, res.err = s.dispatchCreateOrUpdateDatabaseConnection(req) + case "StaticSitesClient.BeginCreateOrUpdateStaticSite": + res.resp, res.err = s.dispatchBeginCreateOrUpdateStaticSite(req) + case "StaticSitesClient.CreateOrUpdateStaticSiteAppSettings": + res.resp, res.err = s.dispatchCreateOrUpdateStaticSiteAppSettings(req) + case "StaticSitesClient.CreateOrUpdateStaticSiteBuildAppSettings": + res.resp, res.err = s.dispatchCreateOrUpdateStaticSiteBuildAppSettings(req) + case "StaticSitesClient.CreateOrUpdateStaticSiteBuildFunctionAppSettings": + res.resp, res.err = s.dispatchCreateOrUpdateStaticSiteBuildFunctionAppSettings(req) + case "StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain": + res.resp, res.err = s.dispatchBeginCreateOrUpdateStaticSiteCustomDomain(req) + case "StaticSitesClient.CreateOrUpdateStaticSiteFunctionAppSettings": + res.resp, res.err = s.dispatchCreateOrUpdateStaticSiteFunctionAppSettings(req) + case "StaticSitesClient.CreateUserRolesInvitationLink": + res.resp, res.err = s.dispatchCreateUserRolesInvitationLink(req) + case "StaticSitesClient.BeginCreateZipDeploymentForStaticSite": + res.resp, res.err = s.dispatchBeginCreateZipDeploymentForStaticSite(req) + case "StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild": + res.resp, res.err = s.dispatchBeginCreateZipDeploymentForStaticSiteBuild(req) + case "StaticSitesClient.DeleteBuildDatabaseConnection": + res.resp, res.err = s.dispatchDeleteBuildDatabaseConnection(req) + case "StaticSitesClient.DeleteDatabaseConnection": + res.resp, res.err = s.dispatchDeleteDatabaseConnection(req) + case "StaticSitesClient.BeginDeletePrivateEndpointConnection": + res.resp, res.err = s.dispatchBeginDeletePrivateEndpointConnection(req) + case "StaticSitesClient.BeginDeleteStaticSite": + res.resp, res.err = s.dispatchBeginDeleteStaticSite(req) + case "StaticSitesClient.BeginDeleteStaticSiteBuild": + res.resp, res.err = s.dispatchBeginDeleteStaticSiteBuild(req) + case "StaticSitesClient.BeginDeleteStaticSiteCustomDomain": + res.resp, res.err = s.dispatchBeginDeleteStaticSiteCustomDomain(req) + case "StaticSitesClient.DeleteStaticSiteUser": + res.resp, res.err = s.dispatchDeleteStaticSiteUser(req) + case "StaticSitesClient.BeginDetachStaticSite": + res.resp, res.err = s.dispatchBeginDetachStaticSite(req) + case "StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSite": + res.resp, res.err = s.dispatchDetachUserProvidedFunctionAppFromStaticSite(req) + case "StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSiteBuild": + res.resp, res.err = s.dispatchDetachUserProvidedFunctionAppFromStaticSiteBuild(req) + case "StaticSitesClient.GetBasicAuth": + res.resp, res.err = s.dispatchGetBasicAuth(req) + case "StaticSitesClient.GetBuildDatabaseConnection": + res.resp, res.err = s.dispatchGetBuildDatabaseConnection(req) + case "StaticSitesClient.GetBuildDatabaseConnectionWithDetails": + res.resp, res.err = s.dispatchGetBuildDatabaseConnectionWithDetails(req) + case "StaticSitesClient.NewGetBuildDatabaseConnectionsPager": + res.resp, res.err = s.dispatchNewGetBuildDatabaseConnectionsPager(req) + case "StaticSitesClient.NewGetBuildDatabaseConnectionsWithDetailsPager": + res.resp, res.err = s.dispatchNewGetBuildDatabaseConnectionsWithDetailsPager(req) + case "StaticSitesClient.GetDatabaseConnection": + res.resp, res.err = s.dispatchGetDatabaseConnection(req) + case "StaticSitesClient.GetDatabaseConnectionWithDetails": + res.resp, res.err = s.dispatchGetDatabaseConnectionWithDetails(req) + case "StaticSitesClient.NewGetDatabaseConnectionsPager": + res.resp, res.err = s.dispatchNewGetDatabaseConnectionsPager(req) + case "StaticSitesClient.NewGetDatabaseConnectionsWithDetailsPager": + res.resp, res.err = s.dispatchNewGetDatabaseConnectionsWithDetailsPager(req) + case "StaticSitesClient.GetLinkedBackend": + res.resp, res.err = s.dispatchGetLinkedBackend(req) + case "StaticSitesClient.GetLinkedBackendForBuild": + res.resp, res.err = s.dispatchGetLinkedBackendForBuild(req) + case "StaticSitesClient.NewGetLinkedBackendsPager": + res.resp, res.err = s.dispatchNewGetLinkedBackendsPager(req) + case "StaticSitesClient.NewGetLinkedBackendsForBuildPager": + res.resp, res.err = s.dispatchNewGetLinkedBackendsForBuildPager(req) + case "StaticSitesClient.GetPrivateEndpointConnection": + res.resp, res.err = s.dispatchGetPrivateEndpointConnection(req) + case "StaticSitesClient.NewGetPrivateEndpointConnectionListPager": + res.resp, res.err = s.dispatchNewGetPrivateEndpointConnectionListPager(req) + case "StaticSitesClient.GetPrivateLinkResources": + res.resp, res.err = s.dispatchGetPrivateLinkResources(req) + case "StaticSitesClient.GetStaticSite": + res.resp, res.err = s.dispatchGetStaticSite(req) + case "StaticSitesClient.GetStaticSiteBuild": + res.resp, res.err = s.dispatchGetStaticSiteBuild(req) + case "StaticSitesClient.NewGetStaticSiteBuildsPager": + res.resp, res.err = s.dispatchNewGetStaticSiteBuildsPager(req) + case "StaticSitesClient.GetStaticSiteCustomDomain": + res.resp, res.err = s.dispatchGetStaticSiteCustomDomain(req) + case "StaticSitesClient.NewGetStaticSitesByResourceGroupPager": + res.resp, res.err = s.dispatchNewGetStaticSitesByResourceGroupPager(req) + case "StaticSitesClient.GetUserProvidedFunctionAppForStaticSite": + res.resp, res.err = s.dispatchGetUserProvidedFunctionAppForStaticSite(req) + case "StaticSitesClient.GetUserProvidedFunctionAppForStaticSiteBuild": + res.resp, res.err = s.dispatchGetUserProvidedFunctionAppForStaticSiteBuild(req) + case "StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSitePager": + res.resp, res.err = s.dispatchNewGetUserProvidedFunctionAppsForStaticSitePager(req) + case "StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSiteBuildPager": + res.resp, res.err = s.dispatchNewGetUserProvidedFunctionAppsForStaticSiteBuildPager(req) + case "StaticSitesClient.BeginLinkBackend": + res.resp, res.err = s.dispatchBeginLinkBackend(req) + case "StaticSitesClient.BeginLinkBackendToBuild": + res.resp, res.err = s.dispatchBeginLinkBackendToBuild(req) + case "StaticSitesClient.NewListPager": + res.resp, res.err = s.dispatchNewListPager(req) + case "StaticSitesClient.NewListBasicAuthPager": + res.resp, res.err = s.dispatchNewListBasicAuthPager(req) + case "StaticSitesClient.ListStaticSiteAppSettings": + res.resp, res.err = s.dispatchListStaticSiteAppSettings(req) + case "StaticSitesClient.ListStaticSiteBuildAppSettings": + res.resp, res.err = s.dispatchListStaticSiteBuildAppSettings(req) + case "StaticSitesClient.ListStaticSiteBuildFunctionAppSettings": + res.resp, res.err = s.dispatchListStaticSiteBuildFunctionAppSettings(req) + case "StaticSitesClient.NewListStaticSiteBuildFunctionsPager": + res.resp, res.err = s.dispatchNewListStaticSiteBuildFunctionsPager(req) + case "StaticSitesClient.ListStaticSiteConfiguredRoles": + res.resp, res.err = s.dispatchListStaticSiteConfiguredRoles(req) + case "StaticSitesClient.NewListStaticSiteCustomDomainsPager": + res.resp, res.err = s.dispatchNewListStaticSiteCustomDomainsPager(req) + case "StaticSitesClient.ListStaticSiteFunctionAppSettings": + res.resp, res.err = s.dispatchListStaticSiteFunctionAppSettings(req) + case "StaticSitesClient.NewListStaticSiteFunctionsPager": + res.resp, res.err = s.dispatchNewListStaticSiteFunctionsPager(req) + case "StaticSitesClient.ListStaticSiteSecrets": + res.resp, res.err = s.dispatchListStaticSiteSecrets(req) + case "StaticSitesClient.NewListStaticSiteUsersPager": + res.resp, res.err = s.dispatchNewListStaticSiteUsersPager(req) + case "StaticSitesClient.PreviewWorkflow": + res.resp, res.err = s.dispatchPreviewWorkflow(req) + case "StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSite": + res.resp, res.err = s.dispatchBeginRegisterUserProvidedFunctionAppWithStaticSite(req) + case "StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild": + res.resp, res.err = s.dispatchBeginRegisterUserProvidedFunctionAppWithStaticSiteBuild(req) + case "StaticSitesClient.ResetStaticSiteAPIKey": + res.resp, res.err = s.dispatchResetStaticSiteAPIKey(req) + case "StaticSitesClient.UnlinkBackend": + res.resp, res.err = s.dispatchUnlinkBackend(req) + case "StaticSitesClient.UnlinkBackendFromBuild": + res.resp, res.err = s.dispatchUnlinkBackendFromBuild(req) + case "StaticSitesClient.UpdateBuildDatabaseConnection": + res.resp, res.err = s.dispatchUpdateBuildDatabaseConnection(req) + case "StaticSitesClient.UpdateDatabaseConnection": + res.resp, res.err = s.dispatchUpdateDatabaseConnection(req) + case "StaticSitesClient.UpdateStaticSite": + res.resp, res.err = s.dispatchUpdateStaticSite(req) + case "StaticSitesClient.UpdateStaticSiteUser": + res.resp, res.err = s.dispatchUpdateStaticSiteUser(req) + case "StaticSitesClient.BeginValidateBackend": + res.resp, res.err = s.dispatchBeginValidateBackend(req) + case "StaticSitesClient.BeginValidateBackendForBuild": + res.resp, res.err = s.dispatchBeginValidateBackendForBuild(req) + case "StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite": + res.resp, res.err = s.dispatchBeginValidateCustomDomainCanBeAddedToStaticSite(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - if err != nil { - return nil, err - } + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() - return resp, nil + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (s *StaticSitesServerTransport) dispatchBeginApproveOrRejectPrivateEndpointConnection(req *http.Request) (*http.Response, error) { @@ -1097,9 +1113,9 @@ func (s *StaticSitesServerTransport) dispatchBeginCreateZipDeploymentForStaticSi return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginCreateZipDeploymentForStaticSite.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateZipDeploymentForStaticSite) { s.beginCreateZipDeploymentForStaticSite.remove(req) @@ -1149,9 +1165,9 @@ func (s *StaticSitesServerTransport) dispatchBeginCreateZipDeploymentForStaticSi return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginCreateZipDeploymentForStaticSiteBuild.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateZipDeploymentForStaticSiteBuild) { s.beginCreateZipDeploymentForStaticSiteBuild.remove(req) @@ -1319,9 +1335,9 @@ func (s *StaticSitesServerTransport) dispatchBeginDeleteStaticSite(req *http.Req return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginDeleteStaticSite.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginDeleteStaticSite) { s.beginDeleteStaticSite.remove(req) @@ -1415,9 +1431,9 @@ func (s *StaticSitesServerTransport) dispatchBeginDeleteStaticSiteCustomDomain(r return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginDeleteStaticSiteCustomDomain.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginDeleteStaticSiteCustomDomain) { s.beginDeleteStaticSiteCustomDomain.remove(req) @@ -1500,9 +1516,9 @@ func (s *StaticSitesServerTransport) dispatchBeginDetachStaticSite(req *http.Req return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginDetachStaticSite.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginDetachStaticSite) { s.beginDetachStaticSite.remove(req) @@ -3669,9 +3685,9 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateBackend(req *http.Requ return nil, err } - if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginValidateBackend.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginValidateBackend) { s.beginValidateBackend.remove(req) @@ -3725,9 +3741,9 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateBackendForBuild(req *h return nil, err } - if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginValidateBackendForBuild.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginValidateBackendForBuild) { s.beginValidateBackendForBuild.remove(req) @@ -3777,9 +3793,9 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateCustomDomainCanBeAdded return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { s.beginValidateCustomDomainCanBeAddedToStaticSite.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginValidateCustomDomainCanBeAddedToStaticSite) { s.beginValidateCustomDomainCanBeAddedToStaticSite.remove(req) @@ -3787,3 +3803,9 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateCustomDomainCanBeAdded return resp, nil } + +// set this to conditionally intercept incoming requests to StaticSitesServerTransport +var staticSitesServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/time_rfc3339.go b/sdk/resourcemanager/appservice/armappservice/fake/time_rfc3339.go index 81f308b0d343..7691a451714b 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/time_rfc3339.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/time_rfc3339.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -60,6 +57,9 @@ func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { } func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } tzOffset := tzOffsetRegex.Match(data) hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") var layout string diff --git a/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go b/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go index 245c53dd4ab4..31c337477dc9 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -64,25 +61,44 @@ func (t *TopLevelDomainsServerTransport) Do(req *http.Request) (*http.Response, return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return t.dispatchToMethodFake(req, method) +} - switch method { - case "TopLevelDomainsClient.Get": - resp, err = t.dispatchGet(req) - case "TopLevelDomainsClient.NewListPager": - resp, err = t.dispatchNewListPager(req) - case "TopLevelDomainsClient.NewListAgreementsPager": - resp, err = t.dispatchNewListAgreementsPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (t *TopLevelDomainsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if topLevelDomainsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = topLevelDomainsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "TopLevelDomainsClient.Get": + res.resp, res.err = t.dispatchGet(req) + case "TopLevelDomainsClient.NewListPager": + res.resp, res.err = t.dispatchNewListPager(req) + case "TopLevelDomainsClient.NewListAgreementsPager": + res.resp, res.err = t.dispatchNewListAgreementsPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (t *TopLevelDomainsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -187,3 +203,9 @@ func (t *TopLevelDomainsServerTransport) dispatchNewListAgreementsPager(req *htt } return resp, nil } + +// set this to conditionally intercept incoming requests to TopLevelDomainsServerTransport +var topLevelDomainsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go index c3e17e433497..c34b5c46e564 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "reflect" @@ -75,27 +72,27 @@ type WebAppsServer struct { CreateDeploymentSlot func(ctx context.Context, resourceGroupName string, name string, id string, slot string, deployment armappservice.Deployment, options *armappservice.WebAppsClientCreateDeploymentSlotOptions) (resp azfake.Responder[armappservice.WebAppsClientCreateDeploymentSlotResponse], errResp azfake.ErrorResponder) // BeginCreateFunction is the fake for method WebAppsClient.BeginCreateFunction - // HTTP status codes to indicate success: http.StatusCreated + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateFunction func(ctx context.Context, resourceGroupName string, name string, functionName string, functionEnvelope armappservice.FunctionEnvelope, options *armappservice.WebAppsClientBeginCreateFunctionOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientCreateFunctionResponse], errResp azfake.ErrorResponder) // BeginCreateInstanceFunctionSlot is the fake for method WebAppsClient.BeginCreateInstanceFunctionSlot - // HTTP status codes to indicate success: http.StatusCreated + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateInstanceFunctionSlot func(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, functionEnvelope armappservice.FunctionEnvelope, options *armappservice.WebAppsClientBeginCreateInstanceFunctionSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientCreateInstanceFunctionSlotResponse], errResp azfake.ErrorResponder) // BeginCreateInstanceMSDeployOperation is the fake for method WebAppsClient.BeginCreateInstanceMSDeployOperation - // HTTP status codes to indicate success: http.StatusCreated + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateInstanceMSDeployOperation func(ctx context.Context, resourceGroupName string, name string, instanceID string, msDeploy armappservice.MSDeploy, options *armappservice.WebAppsClientBeginCreateInstanceMSDeployOperationOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientCreateInstanceMSDeployOperationResponse], errResp azfake.ErrorResponder) // BeginCreateInstanceMSDeployOperationSlot is the fake for method WebAppsClient.BeginCreateInstanceMSDeployOperationSlot - // HTTP status codes to indicate success: http.StatusCreated + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateInstanceMSDeployOperationSlot func(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, msDeploy armappservice.MSDeploy, options *armappservice.WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientCreateInstanceMSDeployOperationSlotResponse], errResp azfake.ErrorResponder) // BeginCreateMSDeployOperation is the fake for method WebAppsClient.BeginCreateMSDeployOperation - // HTTP status codes to indicate success: http.StatusCreated + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateMSDeployOperation func(ctx context.Context, resourceGroupName string, name string, msDeploy armappservice.MSDeploy, options *armappservice.WebAppsClientBeginCreateMSDeployOperationOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientCreateMSDeployOperationResponse], errResp azfake.ErrorResponder) // BeginCreateMSDeployOperationSlot is the fake for method WebAppsClient.BeginCreateMSDeployOperationSlot - // HTTP status codes to indicate success: http.StatusCreated + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateMSDeployOperationSlot func(ctx context.Context, resourceGroupName string, name string, slot string, msDeploy armappservice.MSDeploy, options *armappservice.WebAppsClientBeginCreateMSDeployOperationSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientCreateMSDeployOperationSlotResponse], errResp azfake.ErrorResponder) // CreateOneDeployOperation is the fake for method WebAppsClient.CreateOneDeployOperation @@ -1371,35 +1368,35 @@ type WebAppsServer struct { RestartSlot func(ctx context.Context, resourceGroupName string, name string, slot string, options *armappservice.WebAppsClientRestartSlotOptions) (resp azfake.Responder[armappservice.WebAppsClientRestartSlotResponse], errResp azfake.ErrorResponder) // BeginRestore is the fake for method WebAppsClient.BeginRestore - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestore func(ctx context.Context, resourceGroupName string, name string, backupID string, request armappservice.RestoreRequest, options *armappservice.WebAppsClientBeginRestoreOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreResponse], errResp azfake.ErrorResponder) // BeginRestoreFromBackupBlob is the fake for method WebAppsClient.BeginRestoreFromBackupBlob - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreFromBackupBlob func(ctx context.Context, resourceGroupName string, name string, request armappservice.RestoreRequest, options *armappservice.WebAppsClientBeginRestoreFromBackupBlobOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreFromBackupBlobResponse], errResp azfake.ErrorResponder) // BeginRestoreFromBackupBlobSlot is the fake for method WebAppsClient.BeginRestoreFromBackupBlobSlot - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreFromBackupBlobSlot func(ctx context.Context, resourceGroupName string, name string, slot string, request armappservice.RestoreRequest, options *armappservice.WebAppsClientBeginRestoreFromBackupBlobSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreFromBackupBlobSlotResponse], errResp azfake.ErrorResponder) // BeginRestoreFromDeletedApp is the fake for method WebAppsClient.BeginRestoreFromDeletedApp - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreFromDeletedApp func(ctx context.Context, resourceGroupName string, name string, restoreRequest armappservice.DeletedAppRestoreRequest, options *armappservice.WebAppsClientBeginRestoreFromDeletedAppOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreFromDeletedAppResponse], errResp azfake.ErrorResponder) // BeginRestoreFromDeletedAppSlot is the fake for method WebAppsClient.BeginRestoreFromDeletedAppSlot - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreFromDeletedAppSlot func(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest armappservice.DeletedAppRestoreRequest, options *armappservice.WebAppsClientBeginRestoreFromDeletedAppSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreFromDeletedAppSlotResponse], errResp azfake.ErrorResponder) // BeginRestoreSlot is the fake for method WebAppsClient.BeginRestoreSlot - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreSlot func(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request armappservice.RestoreRequest, options *armappservice.WebAppsClientBeginRestoreSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreSlotResponse], errResp azfake.ErrorResponder) // BeginRestoreSnapshot is the fake for method WebAppsClient.BeginRestoreSnapshot - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreSnapshot func(ctx context.Context, resourceGroupName string, name string, restoreRequest armappservice.SnapshotRestoreRequest, options *armappservice.WebAppsClientBeginRestoreSnapshotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreSnapshotResponse], errResp azfake.ErrorResponder) // BeginRestoreSnapshotSlot is the fake for method WebAppsClient.BeginRestoreSnapshotSlot - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRestoreSnapshotSlot func(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest armappservice.SnapshotRestoreRequest, options *armappservice.WebAppsClientBeginRestoreSnapshotSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientRestoreSnapshotSlotResponse], errResp azfake.ErrorResponder) // RunTriggeredWebJob is the fake for method WebAppsClient.RunTriggeredWebJob @@ -1483,11 +1480,11 @@ type WebAppsServer struct { StopWebSiteNetworkTraceSlot func(ctx context.Context, resourceGroupName string, name string, slot string, options *armappservice.WebAppsClientStopWebSiteNetworkTraceSlotOptions) (resp azfake.Responder[armappservice.WebAppsClientStopWebSiteNetworkTraceSlotResponse], errResp azfake.ErrorResponder) // BeginSwapSlot is the fake for method WebAppsClient.BeginSwapSlot - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginSwapSlot func(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity armappservice.CsmSlotEntity, options *armappservice.WebAppsClientBeginSwapSlotOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientSwapSlotResponse], errResp azfake.ErrorResponder) // BeginSwapSlotWithProduction is the fake for method WebAppsClient.BeginSwapSlotWithProduction - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginSwapSlotWithProduction func(ctx context.Context, resourceGroupName string, name string, slotSwapEntity armappservice.CsmSlotEntity, options *armappservice.WebAppsClientBeginSwapSlotWithProductionOptions) (resp azfake.PollerResponder[armappservice.WebAppsClientSwapSlotWithProductionResponse], errResp azfake.ErrorResponder) // SyncFunctionTriggers is the fake for method WebAppsClient.SyncFunctionTriggers @@ -1924,851 +1921,870 @@ func (w *WebAppsServerTransport) Do(req *http.Request) (*http.Response, error) { return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "WebAppsClient.AddPremierAddOn": - resp, err = w.dispatchAddPremierAddOn(req) - case "WebAppsClient.AddPremierAddOnSlot": - resp, err = w.dispatchAddPremierAddOnSlot(req) - case "WebAppsClient.AnalyzeCustomHostname": - resp, err = w.dispatchAnalyzeCustomHostname(req) - case "WebAppsClient.AnalyzeCustomHostnameSlot": - resp, err = w.dispatchAnalyzeCustomHostnameSlot(req) - case "WebAppsClient.ApplySlotConfigToProduction": - resp, err = w.dispatchApplySlotConfigToProduction(req) - case "WebAppsClient.ApplySlotConfigurationSlot": - resp, err = w.dispatchApplySlotConfigurationSlot(req) - case "WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection": - resp, err = w.dispatchBeginApproveOrRejectPrivateEndpointConnection(req) - case "WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot": - resp, err = w.dispatchBeginApproveOrRejectPrivateEndpointConnectionSlot(req) - case "WebAppsClient.Backup": - resp, err = w.dispatchBackup(req) - case "WebAppsClient.BackupSlot": - resp, err = w.dispatchBackupSlot(req) - case "WebAppsClient.CreateDeployment": - resp, err = w.dispatchCreateDeployment(req) - case "WebAppsClient.CreateDeploymentSlot": - resp, err = w.dispatchCreateDeploymentSlot(req) - case "WebAppsClient.BeginCreateFunction": - resp, err = w.dispatchBeginCreateFunction(req) - case "WebAppsClient.BeginCreateInstanceFunctionSlot": - resp, err = w.dispatchBeginCreateInstanceFunctionSlot(req) - case "WebAppsClient.BeginCreateInstanceMSDeployOperation": - resp, err = w.dispatchBeginCreateInstanceMSDeployOperation(req) - case "WebAppsClient.BeginCreateInstanceMSDeployOperationSlot": - resp, err = w.dispatchBeginCreateInstanceMSDeployOperationSlot(req) - case "WebAppsClient.BeginCreateMSDeployOperation": - resp, err = w.dispatchBeginCreateMSDeployOperation(req) - case "WebAppsClient.BeginCreateMSDeployOperationSlot": - resp, err = w.dispatchBeginCreateMSDeployOperationSlot(req) - case "WebAppsClient.CreateOneDeployOperation": - resp, err = w.dispatchCreateOneDeployOperation(req) - case "WebAppsClient.BeginCreateOrUpdate": - resp, err = w.dispatchBeginCreateOrUpdate(req) - case "WebAppsClient.CreateOrUpdateConfiguration": - resp, err = w.dispatchCreateOrUpdateConfiguration(req) - case "WebAppsClient.CreateOrUpdateConfigurationSlot": - resp, err = w.dispatchCreateOrUpdateConfigurationSlot(req) - case "WebAppsClient.CreateOrUpdateDomainOwnershipIdentifier": - resp, err = w.dispatchCreateOrUpdateDomainOwnershipIdentifier(req) - case "WebAppsClient.CreateOrUpdateDomainOwnershipIdentifierSlot": - resp, err = w.dispatchCreateOrUpdateDomainOwnershipIdentifierSlot(req) - case "WebAppsClient.CreateOrUpdateFunctionSecret": - resp, err = w.dispatchCreateOrUpdateFunctionSecret(req) - case "WebAppsClient.CreateOrUpdateFunctionSecretSlot": - resp, err = w.dispatchCreateOrUpdateFunctionSecretSlot(req) - case "WebAppsClient.CreateOrUpdateHostNameBinding": - resp, err = w.dispatchCreateOrUpdateHostNameBinding(req) - case "WebAppsClient.CreateOrUpdateHostNameBindingSlot": - resp, err = w.dispatchCreateOrUpdateHostNameBindingSlot(req) - case "WebAppsClient.CreateOrUpdateHostSecret": - resp, err = w.dispatchCreateOrUpdateHostSecret(req) - case "WebAppsClient.CreateOrUpdateHostSecretSlot": - resp, err = w.dispatchCreateOrUpdateHostSecretSlot(req) - case "WebAppsClient.CreateOrUpdateHybridConnection": - resp, err = w.dispatchCreateOrUpdateHybridConnection(req) - case "WebAppsClient.CreateOrUpdateHybridConnectionSlot": - resp, err = w.dispatchCreateOrUpdateHybridConnectionSlot(req) - case "WebAppsClient.CreateOrUpdatePublicCertificate": - resp, err = w.dispatchCreateOrUpdatePublicCertificate(req) - case "WebAppsClient.CreateOrUpdatePublicCertificateSlot": - resp, err = w.dispatchCreateOrUpdatePublicCertificateSlot(req) - case "WebAppsClient.CreateOrUpdateRelayServiceConnection": - resp, err = w.dispatchCreateOrUpdateRelayServiceConnection(req) - case "WebAppsClient.CreateOrUpdateRelayServiceConnectionSlot": - resp, err = w.dispatchCreateOrUpdateRelayServiceConnectionSlot(req) - case "WebAppsClient.CreateOrUpdateSiteContainer": - resp, err = w.dispatchCreateOrUpdateSiteContainer(req) - case "WebAppsClient.CreateOrUpdateSiteContainerSlot": - resp, err = w.dispatchCreateOrUpdateSiteContainerSlot(req) - case "WebAppsClient.BeginCreateOrUpdateSlot": - resp, err = w.dispatchBeginCreateOrUpdateSlot(req) - case "WebAppsClient.BeginCreateOrUpdateSourceControl": - resp, err = w.dispatchBeginCreateOrUpdateSourceControl(req) - case "WebAppsClient.BeginCreateOrUpdateSourceControlSlot": - resp, err = w.dispatchBeginCreateOrUpdateSourceControlSlot(req) - case "WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck": - resp, err = w.dispatchCreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(req) - case "WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot": - resp, err = w.dispatchCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot(req) - case "WebAppsClient.CreateOrUpdateVnetConnection": - resp, err = w.dispatchCreateOrUpdateVnetConnection(req) - case "WebAppsClient.CreateOrUpdateVnetConnectionGateway": - resp, err = w.dispatchCreateOrUpdateVnetConnectionGateway(req) - case "WebAppsClient.CreateOrUpdateVnetConnectionGatewaySlot": - resp, err = w.dispatchCreateOrUpdateVnetConnectionGatewaySlot(req) - case "WebAppsClient.CreateOrUpdateVnetConnectionSlot": - resp, err = w.dispatchCreateOrUpdateVnetConnectionSlot(req) - case "WebAppsClient.Delete": - resp, err = w.dispatchDelete(req) - case "WebAppsClient.DeleteBackup": - resp, err = w.dispatchDeleteBackup(req) - case "WebAppsClient.DeleteBackupConfiguration": - resp, err = w.dispatchDeleteBackupConfiguration(req) - case "WebAppsClient.DeleteBackupConfigurationSlot": - resp, err = w.dispatchDeleteBackupConfigurationSlot(req) - case "WebAppsClient.DeleteBackupSlot": - resp, err = w.dispatchDeleteBackupSlot(req) - case "WebAppsClient.DeleteContinuousWebJob": - resp, err = w.dispatchDeleteContinuousWebJob(req) - case "WebAppsClient.DeleteContinuousWebJobSlot": - resp, err = w.dispatchDeleteContinuousWebJobSlot(req) - case "WebAppsClient.DeleteDeployment": - resp, err = w.dispatchDeleteDeployment(req) - case "WebAppsClient.DeleteDeploymentSlot": - resp, err = w.dispatchDeleteDeploymentSlot(req) - case "WebAppsClient.DeleteDomainOwnershipIdentifier": - resp, err = w.dispatchDeleteDomainOwnershipIdentifier(req) - case "WebAppsClient.DeleteDomainOwnershipIdentifierSlot": - resp, err = w.dispatchDeleteDomainOwnershipIdentifierSlot(req) - case "WebAppsClient.DeleteFunction": - resp, err = w.dispatchDeleteFunction(req) - case "WebAppsClient.DeleteFunctionSecret": - resp, err = w.dispatchDeleteFunctionSecret(req) - case "WebAppsClient.DeleteFunctionSecretSlot": - resp, err = w.dispatchDeleteFunctionSecretSlot(req) - case "WebAppsClient.DeleteHostNameBinding": - resp, err = w.dispatchDeleteHostNameBinding(req) - case "WebAppsClient.DeleteHostNameBindingSlot": - resp, err = w.dispatchDeleteHostNameBindingSlot(req) - case "WebAppsClient.DeleteHostSecret": - resp, err = w.dispatchDeleteHostSecret(req) - case "WebAppsClient.DeleteHostSecretSlot": - resp, err = w.dispatchDeleteHostSecretSlot(req) - case "WebAppsClient.DeleteHybridConnection": - resp, err = w.dispatchDeleteHybridConnection(req) - case "WebAppsClient.DeleteHybridConnectionSlot": - resp, err = w.dispatchDeleteHybridConnectionSlot(req) - case "WebAppsClient.DeleteInstanceFunctionSlot": - resp, err = w.dispatchDeleteInstanceFunctionSlot(req) - case "WebAppsClient.DeleteInstanceProcess": - resp, err = w.dispatchDeleteInstanceProcess(req) - case "WebAppsClient.DeleteInstanceProcessSlot": - resp, err = w.dispatchDeleteInstanceProcessSlot(req) - case "WebAppsClient.DeletePremierAddOn": - resp, err = w.dispatchDeletePremierAddOn(req) - case "WebAppsClient.DeletePremierAddOnSlot": - resp, err = w.dispatchDeletePremierAddOnSlot(req) - case "WebAppsClient.BeginDeletePrivateEndpointConnection": - resp, err = w.dispatchBeginDeletePrivateEndpointConnection(req) - case "WebAppsClient.BeginDeletePrivateEndpointConnectionSlot": - resp, err = w.dispatchBeginDeletePrivateEndpointConnectionSlot(req) - case "WebAppsClient.DeleteProcess": - resp, err = w.dispatchDeleteProcess(req) - case "WebAppsClient.DeleteProcessSlot": - resp, err = w.dispatchDeleteProcessSlot(req) - case "WebAppsClient.DeletePublicCertificate": - resp, err = w.dispatchDeletePublicCertificate(req) - case "WebAppsClient.DeletePublicCertificateSlot": - resp, err = w.dispatchDeletePublicCertificateSlot(req) - case "WebAppsClient.DeleteRelayServiceConnection": - resp, err = w.dispatchDeleteRelayServiceConnection(req) - case "WebAppsClient.DeleteRelayServiceConnectionSlot": - resp, err = w.dispatchDeleteRelayServiceConnectionSlot(req) - case "WebAppsClient.DeleteSiteContainer": - resp, err = w.dispatchDeleteSiteContainer(req) - case "WebAppsClient.DeleteSiteContainerSlot": - resp, err = w.dispatchDeleteSiteContainerSlot(req) - case "WebAppsClient.DeleteSiteExtension": - resp, err = w.dispatchDeleteSiteExtension(req) - case "WebAppsClient.DeleteSiteExtensionSlot": - resp, err = w.dispatchDeleteSiteExtensionSlot(req) - case "WebAppsClient.DeleteSlot": - resp, err = w.dispatchDeleteSlot(req) - case "WebAppsClient.DeleteSourceControl": - resp, err = w.dispatchDeleteSourceControl(req) - case "WebAppsClient.DeleteSourceControlSlot": - resp, err = w.dispatchDeleteSourceControlSlot(req) - case "WebAppsClient.DeleteSwiftVirtualNetwork": - resp, err = w.dispatchDeleteSwiftVirtualNetwork(req) - case "WebAppsClient.DeleteSwiftVirtualNetworkSlot": - resp, err = w.dispatchDeleteSwiftVirtualNetworkSlot(req) - case "WebAppsClient.DeleteTriggeredWebJob": - resp, err = w.dispatchDeleteTriggeredWebJob(req) - case "WebAppsClient.DeleteTriggeredWebJobSlot": - resp, err = w.dispatchDeleteTriggeredWebJobSlot(req) - case "WebAppsClient.DeleteVnetConnection": - resp, err = w.dispatchDeleteVnetConnection(req) - case "WebAppsClient.DeleteVnetConnectionSlot": - resp, err = w.dispatchDeleteVnetConnectionSlot(req) - case "WebAppsClient.DeployWorkflowArtifacts": - resp, err = w.dispatchDeployWorkflowArtifacts(req) - case "WebAppsClient.DeployWorkflowArtifactsSlot": - resp, err = w.dispatchDeployWorkflowArtifactsSlot(req) - case "WebAppsClient.DiscoverBackup": - resp, err = w.dispatchDiscoverBackup(req) - case "WebAppsClient.DiscoverBackupSlot": - resp, err = w.dispatchDiscoverBackupSlot(req) - case "WebAppsClient.GenerateNewSitePublishingPassword": - resp, err = w.dispatchGenerateNewSitePublishingPassword(req) - case "WebAppsClient.GenerateNewSitePublishingPasswordSlot": - resp, err = w.dispatchGenerateNewSitePublishingPasswordSlot(req) - case "WebAppsClient.Get": - resp, err = w.dispatchGet(req) - case "WebAppsClient.GetAppSettingKeyVaultReference": - resp, err = w.dispatchGetAppSettingKeyVaultReference(req) - case "WebAppsClient.GetAppSettingKeyVaultReferenceSlot": - resp, err = w.dispatchGetAppSettingKeyVaultReferenceSlot(req) - case "WebAppsClient.NewGetAppSettingsKeyVaultReferencesPager": - resp, err = w.dispatchNewGetAppSettingsKeyVaultReferencesPager(req) - case "WebAppsClient.NewGetAppSettingsKeyVaultReferencesSlotPager": - resp, err = w.dispatchNewGetAppSettingsKeyVaultReferencesSlotPager(req) - case "WebAppsClient.GetAuthSettings": - resp, err = w.dispatchGetAuthSettings(req) - case "WebAppsClient.GetAuthSettingsSlot": - resp, err = w.dispatchGetAuthSettingsSlot(req) - case "WebAppsClient.GetAuthSettingsV2": - resp, err = w.dispatchGetAuthSettingsV2(req) - case "WebAppsClient.GetAuthSettingsV2Slot": - resp, err = w.dispatchGetAuthSettingsV2Slot(req) - case "WebAppsClient.GetAuthSettingsV2WithoutSecrets": - resp, err = w.dispatchGetAuthSettingsV2WithoutSecrets(req) - case "WebAppsClient.GetAuthSettingsV2WithoutSecretsSlot": - resp, err = w.dispatchGetAuthSettingsV2WithoutSecretsSlot(req) - case "WebAppsClient.GetBackupConfiguration": - resp, err = w.dispatchGetBackupConfiguration(req) - case "WebAppsClient.GetBackupConfigurationSlot": - resp, err = w.dispatchGetBackupConfigurationSlot(req) - case "WebAppsClient.GetBackupStatus": - resp, err = w.dispatchGetBackupStatus(req) - case "WebAppsClient.GetBackupStatusSlot": - resp, err = w.dispatchGetBackupStatusSlot(req) - case "WebAppsClient.GetConfiguration": - resp, err = w.dispatchGetConfiguration(req) - case "WebAppsClient.GetConfigurationSlot": - resp, err = w.dispatchGetConfigurationSlot(req) - case "WebAppsClient.GetConfigurationSnapshot": - resp, err = w.dispatchGetConfigurationSnapshot(req) - case "WebAppsClient.GetConfigurationSnapshotSlot": - resp, err = w.dispatchGetConfigurationSnapshotSlot(req) - case "WebAppsClient.GetContainerLogsZip": - resp, err = w.dispatchGetContainerLogsZip(req) - case "WebAppsClient.GetContainerLogsZipSlot": - resp, err = w.dispatchGetContainerLogsZipSlot(req) - case "WebAppsClient.GetContinuousWebJob": - resp, err = w.dispatchGetContinuousWebJob(req) - case "WebAppsClient.GetContinuousWebJobSlot": - resp, err = w.dispatchGetContinuousWebJobSlot(req) - case "WebAppsClient.GetDeployment": - resp, err = w.dispatchGetDeployment(req) - case "WebAppsClient.GetDeploymentSlot": - resp, err = w.dispatchGetDeploymentSlot(req) - case "WebAppsClient.GetDiagnosticLogsConfiguration": - resp, err = w.dispatchGetDiagnosticLogsConfiguration(req) - case "WebAppsClient.GetDiagnosticLogsConfigurationSlot": - resp, err = w.dispatchGetDiagnosticLogsConfigurationSlot(req) - case "WebAppsClient.GetDomainOwnershipIdentifier": - resp, err = w.dispatchGetDomainOwnershipIdentifier(req) - case "WebAppsClient.GetDomainOwnershipIdentifierSlot": - resp, err = w.dispatchGetDomainOwnershipIdentifierSlot(req) - case "WebAppsClient.GetFtpAllowed": - resp, err = w.dispatchGetFtpAllowed(req) - case "WebAppsClient.GetFtpAllowedSlot": - resp, err = w.dispatchGetFtpAllowedSlot(req) - case "WebAppsClient.GetFunction": - resp, err = w.dispatchGetFunction(req) - case "WebAppsClient.GetFunctionsAdminToken": - resp, err = w.dispatchGetFunctionsAdminToken(req) - case "WebAppsClient.GetFunctionsAdminTokenSlot": - resp, err = w.dispatchGetFunctionsAdminTokenSlot(req) - case "WebAppsClient.GetHostNameBinding": - resp, err = w.dispatchGetHostNameBinding(req) - case "WebAppsClient.GetHostNameBindingSlot": - resp, err = w.dispatchGetHostNameBindingSlot(req) - case "WebAppsClient.GetHybridConnection": - resp, err = w.dispatchGetHybridConnection(req) - case "WebAppsClient.GetHybridConnectionSlot": - resp, err = w.dispatchGetHybridConnectionSlot(req) - case "WebAppsClient.GetInstanceFunctionSlot": - resp, err = w.dispatchGetInstanceFunctionSlot(req) - case "WebAppsClient.GetInstanceInfo": - resp, err = w.dispatchGetInstanceInfo(req) - case "WebAppsClient.GetInstanceInfoSlot": - resp, err = w.dispatchGetInstanceInfoSlot(req) - case "WebAppsClient.GetInstanceMSDeployLog": - resp, err = w.dispatchGetInstanceMSDeployLog(req) - case "WebAppsClient.GetInstanceMSDeployLogSlot": - resp, err = w.dispatchGetInstanceMSDeployLogSlot(req) - case "WebAppsClient.GetInstanceMsDeployStatus": - resp, err = w.dispatchGetInstanceMsDeployStatus(req) - case "WebAppsClient.GetInstanceMsDeployStatusSlot": - resp, err = w.dispatchGetInstanceMsDeployStatusSlot(req) - case "WebAppsClient.GetInstanceProcess": - resp, err = w.dispatchGetInstanceProcess(req) - case "WebAppsClient.GetInstanceProcessDump": - resp, err = w.dispatchGetInstanceProcessDump(req) - case "WebAppsClient.GetInstanceProcessDumpSlot": - resp, err = w.dispatchGetInstanceProcessDumpSlot(req) - case "WebAppsClient.GetInstanceProcessModule": - resp, err = w.dispatchGetInstanceProcessModule(req) - case "WebAppsClient.GetInstanceProcessModuleSlot": - resp, err = w.dispatchGetInstanceProcessModuleSlot(req) - case "WebAppsClient.GetInstanceProcessSlot": - resp, err = w.dispatchGetInstanceProcessSlot(req) - case "WebAppsClient.GetInstanceWorkflowSlot": - resp, err = w.dispatchGetInstanceWorkflowSlot(req) - case "WebAppsClient.GetMSDeployLog": - resp, err = w.dispatchGetMSDeployLog(req) - case "WebAppsClient.GetMSDeployLogSlot": - resp, err = w.dispatchGetMSDeployLogSlot(req) - case "WebAppsClient.GetMSDeployStatus": - resp, err = w.dispatchGetMSDeployStatus(req) - case "WebAppsClient.GetMSDeployStatusSlot": - resp, err = w.dispatchGetMSDeployStatusSlot(req) - case "WebAppsClient.GetMigrateMySQLStatus": - resp, err = w.dispatchGetMigrateMySQLStatus(req) - case "WebAppsClient.GetMigrateMySQLStatusSlot": - resp, err = w.dispatchGetMigrateMySQLStatusSlot(req) - case "WebAppsClient.GetNetworkTraceOperation": - resp, err = w.dispatchGetNetworkTraceOperation(req) - case "WebAppsClient.GetNetworkTraceOperationSlot": - resp, err = w.dispatchGetNetworkTraceOperationSlot(req) - case "WebAppsClient.GetNetworkTraceOperationSlotV2": - resp, err = w.dispatchGetNetworkTraceOperationSlotV2(req) - case "WebAppsClient.GetNetworkTraceOperationV2": - resp, err = w.dispatchGetNetworkTraceOperationV2(req) - case "WebAppsClient.GetNetworkTraces": - resp, err = w.dispatchGetNetworkTraces(req) - case "WebAppsClient.GetNetworkTracesSlot": - resp, err = w.dispatchGetNetworkTracesSlot(req) - case "WebAppsClient.GetNetworkTracesSlotV2": - resp, err = w.dispatchGetNetworkTracesSlotV2(req) - case "WebAppsClient.GetNetworkTracesV2": - resp, err = w.dispatchGetNetworkTracesV2(req) - case "WebAppsClient.GetOneDeployStatus": - resp, err = w.dispatchGetOneDeployStatus(req) - case "WebAppsClient.GetPremierAddOn": - resp, err = w.dispatchGetPremierAddOn(req) - case "WebAppsClient.GetPremierAddOnSlot": - resp, err = w.dispatchGetPremierAddOnSlot(req) - case "WebAppsClient.GetPrivateAccess": - resp, err = w.dispatchGetPrivateAccess(req) - case "WebAppsClient.GetPrivateAccessSlot": - resp, err = w.dispatchGetPrivateAccessSlot(req) - case "WebAppsClient.GetPrivateEndpointConnection": - resp, err = w.dispatchGetPrivateEndpointConnection(req) - case "WebAppsClient.NewGetPrivateEndpointConnectionListPager": - resp, err = w.dispatchNewGetPrivateEndpointConnectionListPager(req) - case "WebAppsClient.NewGetPrivateEndpointConnectionListSlotPager": - resp, err = w.dispatchNewGetPrivateEndpointConnectionListSlotPager(req) - case "WebAppsClient.GetPrivateEndpointConnectionSlot": - resp, err = w.dispatchGetPrivateEndpointConnectionSlot(req) - case "WebAppsClient.GetPrivateLinkResources": - resp, err = w.dispatchGetPrivateLinkResources(req) - case "WebAppsClient.GetPrivateLinkResourcesSlot": - resp, err = w.dispatchGetPrivateLinkResourcesSlot(req) - case "WebAppsClient.GetProcess": - resp, err = w.dispatchGetProcess(req) - case "WebAppsClient.GetProcessDump": - resp, err = w.dispatchGetProcessDump(req) - case "WebAppsClient.GetProcessDumpSlot": - resp, err = w.dispatchGetProcessDumpSlot(req) - case "WebAppsClient.GetProcessModule": - resp, err = w.dispatchGetProcessModule(req) - case "WebAppsClient.GetProcessModuleSlot": - resp, err = w.dispatchGetProcessModuleSlot(req) - case "WebAppsClient.GetProcessSlot": - resp, err = w.dispatchGetProcessSlot(req) - case "WebAppsClient.BeginGetProductionSiteDeploymentStatus": - resp, err = w.dispatchBeginGetProductionSiteDeploymentStatus(req) - case "WebAppsClient.GetPublicCertificate": - resp, err = w.dispatchGetPublicCertificate(req) - case "WebAppsClient.GetPublicCertificateSlot": - resp, err = w.dispatchGetPublicCertificateSlot(req) - case "WebAppsClient.GetRelayServiceConnection": - resp, err = w.dispatchGetRelayServiceConnection(req) - case "WebAppsClient.GetRelayServiceConnectionSlot": - resp, err = w.dispatchGetRelayServiceConnectionSlot(req) - case "WebAppsClient.GetScmAllowed": - resp, err = w.dispatchGetScmAllowed(req) - case "WebAppsClient.GetScmAllowedSlot": - resp, err = w.dispatchGetScmAllowedSlot(req) - case "WebAppsClient.GetSiteConnectionStringKeyVaultReference": - resp, err = w.dispatchGetSiteConnectionStringKeyVaultReference(req) - case "WebAppsClient.GetSiteConnectionStringKeyVaultReferenceSlot": - resp, err = w.dispatchGetSiteConnectionStringKeyVaultReferenceSlot(req) - case "WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesPager": - resp, err = w.dispatchNewGetSiteConnectionStringKeyVaultReferencesPager(req) - case "WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesSlotPager": - resp, err = w.dispatchNewGetSiteConnectionStringKeyVaultReferencesSlotPager(req) - case "WebAppsClient.GetSiteContainer": - resp, err = w.dispatchGetSiteContainer(req) - case "WebAppsClient.GetSiteContainerSlot": - resp, err = w.dispatchGetSiteContainerSlot(req) - case "WebAppsClient.GetSiteExtension": - resp, err = w.dispatchGetSiteExtension(req) - case "WebAppsClient.GetSiteExtensionSlot": - resp, err = w.dispatchGetSiteExtensionSlot(req) - case "WebAppsClient.GetSitePhpErrorLogFlag": - resp, err = w.dispatchGetSitePhpErrorLogFlag(req) - case "WebAppsClient.GetSitePhpErrorLogFlagSlot": - resp, err = w.dispatchGetSitePhpErrorLogFlagSlot(req) - case "WebAppsClient.GetSlot": - resp, err = w.dispatchGetSlot(req) - case "WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot": - resp, err = w.dispatchBeginGetSlotSiteDeploymentStatusSlot(req) - case "WebAppsClient.GetSourceControl": - resp, err = w.dispatchGetSourceControl(req) - case "WebAppsClient.GetSourceControlSlot": - resp, err = w.dispatchGetSourceControlSlot(req) - case "WebAppsClient.GetSwiftVirtualNetworkConnection": - resp, err = w.dispatchGetSwiftVirtualNetworkConnection(req) - case "WebAppsClient.GetSwiftVirtualNetworkConnectionSlot": - resp, err = w.dispatchGetSwiftVirtualNetworkConnectionSlot(req) - case "WebAppsClient.GetTriggeredWebJob": - resp, err = w.dispatchGetTriggeredWebJob(req) - case "WebAppsClient.GetTriggeredWebJobHistory": - resp, err = w.dispatchGetTriggeredWebJobHistory(req) - case "WebAppsClient.GetTriggeredWebJobHistorySlot": - resp, err = w.dispatchGetTriggeredWebJobHistorySlot(req) - case "WebAppsClient.GetTriggeredWebJobSlot": - resp, err = w.dispatchGetTriggeredWebJobSlot(req) - case "WebAppsClient.GetVnetConnection": - resp, err = w.dispatchGetVnetConnection(req) - case "WebAppsClient.GetVnetConnectionGateway": - resp, err = w.dispatchGetVnetConnectionGateway(req) - case "WebAppsClient.GetVnetConnectionGatewaySlot": - resp, err = w.dispatchGetVnetConnectionGatewaySlot(req) - case "WebAppsClient.GetVnetConnectionSlot": - resp, err = w.dispatchGetVnetConnectionSlot(req) - case "WebAppsClient.GetWebJob": - resp, err = w.dispatchGetWebJob(req) - case "WebAppsClient.GetWebJobSlot": - resp, err = w.dispatchGetWebJobSlot(req) - case "WebAppsClient.GetWebSiteContainerLogs": - resp, err = w.dispatchGetWebSiteContainerLogs(req) - case "WebAppsClient.GetWebSiteContainerLogsSlot": - resp, err = w.dispatchGetWebSiteContainerLogsSlot(req) - case "WebAppsClient.GetWorkflow": - resp, err = w.dispatchGetWorkflow(req) - case "WebAppsClient.BeginInstallSiteExtension": - resp, err = w.dispatchBeginInstallSiteExtension(req) - case "WebAppsClient.BeginInstallSiteExtensionSlot": - resp, err = w.dispatchBeginInstallSiteExtensionSlot(req) - case "WebAppsClient.IsCloneable": - resp, err = w.dispatchIsCloneable(req) - case "WebAppsClient.IsCloneableSlot": - resp, err = w.dispatchIsCloneableSlot(req) - case "WebAppsClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - case "WebAppsClient.ListApplicationSettings": - resp, err = w.dispatchListApplicationSettings(req) - case "WebAppsClient.ListApplicationSettingsSlot": - resp, err = w.dispatchListApplicationSettingsSlot(req) - case "WebAppsClient.ListAzureStorageAccounts": - resp, err = w.dispatchListAzureStorageAccounts(req) - case "WebAppsClient.ListAzureStorageAccountsSlot": - resp, err = w.dispatchListAzureStorageAccountsSlot(req) - case "WebAppsClient.ListBackupStatusSecrets": - resp, err = w.dispatchListBackupStatusSecrets(req) - case "WebAppsClient.ListBackupStatusSecretsSlot": - resp, err = w.dispatchListBackupStatusSecretsSlot(req) - case "WebAppsClient.NewListBackupsPager": - resp, err = w.dispatchNewListBackupsPager(req) - case "WebAppsClient.NewListBackupsSlotPager": - resp, err = w.dispatchNewListBackupsSlotPager(req) - case "WebAppsClient.NewListBasicPublishingCredentialsPoliciesPager": - resp, err = w.dispatchNewListBasicPublishingCredentialsPoliciesPager(req) - case "WebAppsClient.NewListBasicPublishingCredentialsPoliciesSlotPager": - resp, err = w.dispatchNewListBasicPublishingCredentialsPoliciesSlotPager(req) - case "WebAppsClient.NewListByResourceGroupPager": - resp, err = w.dispatchNewListByResourceGroupPager(req) - case "WebAppsClient.NewListConfigurationSnapshotInfoPager": - resp, err = w.dispatchNewListConfigurationSnapshotInfoPager(req) - case "WebAppsClient.NewListConfigurationSnapshotInfoSlotPager": - resp, err = w.dispatchNewListConfigurationSnapshotInfoSlotPager(req) - case "WebAppsClient.NewListConfigurationsPager": - resp, err = w.dispatchNewListConfigurationsPager(req) - case "WebAppsClient.NewListConfigurationsSlotPager": - resp, err = w.dispatchNewListConfigurationsSlotPager(req) - case "WebAppsClient.ListConnectionStrings": - resp, err = w.dispatchListConnectionStrings(req) - case "WebAppsClient.ListConnectionStringsSlot": - resp, err = w.dispatchListConnectionStringsSlot(req) - case "WebAppsClient.NewListContinuousWebJobsPager": - resp, err = w.dispatchNewListContinuousWebJobsPager(req) - case "WebAppsClient.NewListContinuousWebJobsSlotPager": - resp, err = w.dispatchNewListContinuousWebJobsSlotPager(req) - case "WebAppsClient.ListDeploymentLog": - resp, err = w.dispatchListDeploymentLog(req) - case "WebAppsClient.ListDeploymentLogSlot": - resp, err = w.dispatchListDeploymentLogSlot(req) - case "WebAppsClient.NewListDeploymentsPager": - resp, err = w.dispatchNewListDeploymentsPager(req) - case "WebAppsClient.NewListDeploymentsSlotPager": - resp, err = w.dispatchNewListDeploymentsSlotPager(req) - case "WebAppsClient.NewListDomainOwnershipIdentifiersPager": - resp, err = w.dispatchNewListDomainOwnershipIdentifiersPager(req) - case "WebAppsClient.NewListDomainOwnershipIdentifiersSlotPager": - resp, err = w.dispatchNewListDomainOwnershipIdentifiersSlotPager(req) - case "WebAppsClient.ListFunctionKeys": - resp, err = w.dispatchListFunctionKeys(req) - case "WebAppsClient.ListFunctionKeysSlot": - resp, err = w.dispatchListFunctionKeysSlot(req) - case "WebAppsClient.ListFunctionSecrets": - resp, err = w.dispatchListFunctionSecrets(req) - case "WebAppsClient.ListFunctionSecretsSlot": - resp, err = w.dispatchListFunctionSecretsSlot(req) - case "WebAppsClient.NewListFunctionsPager": - resp, err = w.dispatchNewListFunctionsPager(req) - case "WebAppsClient.ListHostKeys": - resp, err = w.dispatchListHostKeys(req) - case "WebAppsClient.ListHostKeysSlot": - resp, err = w.dispatchListHostKeysSlot(req) - case "WebAppsClient.NewListHostNameBindingsPager": - resp, err = w.dispatchNewListHostNameBindingsPager(req) - case "WebAppsClient.NewListHostNameBindingsSlotPager": - resp, err = w.dispatchNewListHostNameBindingsSlotPager(req) - case "WebAppsClient.ListHybridConnections": - resp, err = w.dispatchListHybridConnections(req) - case "WebAppsClient.ListHybridConnectionsSlot": - resp, err = w.dispatchListHybridConnectionsSlot(req) - case "WebAppsClient.NewListInstanceFunctionsSlotPager": - resp, err = w.dispatchNewListInstanceFunctionsSlotPager(req) - case "WebAppsClient.NewListInstanceIdentifiersPager": - resp, err = w.dispatchNewListInstanceIdentifiersPager(req) - case "WebAppsClient.NewListInstanceIdentifiersSlotPager": - resp, err = w.dispatchNewListInstanceIdentifiersSlotPager(req) - case "WebAppsClient.NewListInstanceProcessModulesPager": - resp, err = w.dispatchNewListInstanceProcessModulesPager(req) - case "WebAppsClient.NewListInstanceProcessModulesSlotPager": - resp, err = w.dispatchNewListInstanceProcessModulesSlotPager(req) - case "WebAppsClient.NewListInstanceProcessThreadsPager": - resp, err = w.dispatchNewListInstanceProcessThreadsPager(req) - case "WebAppsClient.NewListInstanceProcessThreadsSlotPager": - resp, err = w.dispatchNewListInstanceProcessThreadsSlotPager(req) - case "WebAppsClient.NewListInstanceProcessesPager": - resp, err = w.dispatchNewListInstanceProcessesPager(req) - case "WebAppsClient.NewListInstanceProcessesSlotPager": - resp, err = w.dispatchNewListInstanceProcessesSlotPager(req) - case "WebAppsClient.NewListInstanceWorkflowsSlotPager": - resp, err = w.dispatchNewListInstanceWorkflowsSlotPager(req) - case "WebAppsClient.ListMetadata": - resp, err = w.dispatchListMetadata(req) - case "WebAppsClient.ListMetadataSlot": - resp, err = w.dispatchListMetadataSlot(req) - case "WebAppsClient.ListNetworkFeatures": - resp, err = w.dispatchListNetworkFeatures(req) - case "WebAppsClient.ListNetworkFeaturesSlot": - resp, err = w.dispatchListNetworkFeaturesSlot(req) - case "WebAppsClient.NewListPerfMonCountersPager": - resp, err = w.dispatchNewListPerfMonCountersPager(req) - case "WebAppsClient.NewListPerfMonCountersSlotPager": - resp, err = w.dispatchNewListPerfMonCountersSlotPager(req) - case "WebAppsClient.ListPremierAddOns": - resp, err = w.dispatchListPremierAddOns(req) - case "WebAppsClient.ListPremierAddOnsSlot": - resp, err = w.dispatchListPremierAddOnsSlot(req) - case "WebAppsClient.NewListProcessModulesPager": - resp, err = w.dispatchNewListProcessModulesPager(req) - case "WebAppsClient.NewListProcessModulesSlotPager": - resp, err = w.dispatchNewListProcessModulesSlotPager(req) - case "WebAppsClient.NewListProcessThreadsPager": - resp, err = w.dispatchNewListProcessThreadsPager(req) - case "WebAppsClient.NewListProcessThreadsSlotPager": - resp, err = w.dispatchNewListProcessThreadsSlotPager(req) - case "WebAppsClient.NewListProcessesPager": - resp, err = w.dispatchNewListProcessesPager(req) - case "WebAppsClient.NewListProcessesSlotPager": - resp, err = w.dispatchNewListProcessesSlotPager(req) - case "WebAppsClient.NewListProductionSiteDeploymentStatusesPager": - resp, err = w.dispatchNewListProductionSiteDeploymentStatusesPager(req) - case "WebAppsClient.NewListPublicCertificatesPager": - resp, err = w.dispatchNewListPublicCertificatesPager(req) - case "WebAppsClient.NewListPublicCertificatesSlotPager": - resp, err = w.dispatchNewListPublicCertificatesSlotPager(req) - case "WebAppsClient.BeginListPublishingCredentials": - resp, err = w.dispatchBeginListPublishingCredentials(req) - case "WebAppsClient.BeginListPublishingCredentialsSlot": - resp, err = w.dispatchBeginListPublishingCredentialsSlot(req) - case "WebAppsClient.ListPublishingProfileXMLWithSecrets": - resp, err = w.dispatchListPublishingProfileXMLWithSecrets(req) - case "WebAppsClient.ListPublishingProfileXMLWithSecretsSlot": - resp, err = w.dispatchListPublishingProfileXMLWithSecretsSlot(req) - case "WebAppsClient.ListRelayServiceConnections": - resp, err = w.dispatchListRelayServiceConnections(req) - case "WebAppsClient.ListRelayServiceConnectionsSlot": - resp, err = w.dispatchListRelayServiceConnectionsSlot(req) - case "WebAppsClient.NewListSiteBackupsPager": - resp, err = w.dispatchNewListSiteBackupsPager(req) - case "WebAppsClient.NewListSiteBackupsSlotPager": - resp, err = w.dispatchNewListSiteBackupsSlotPager(req) - case "WebAppsClient.NewListSiteContainersPager": - resp, err = w.dispatchNewListSiteContainersPager(req) - case "WebAppsClient.NewListSiteContainersSlotPager": - resp, err = w.dispatchNewListSiteContainersSlotPager(req) - case "WebAppsClient.NewListSiteExtensionsPager": - resp, err = w.dispatchNewListSiteExtensionsPager(req) - case "WebAppsClient.NewListSiteExtensionsSlotPager": - resp, err = w.dispatchNewListSiteExtensionsSlotPager(req) - case "WebAppsClient.ListSitePushSettings": - resp, err = w.dispatchListSitePushSettings(req) - case "WebAppsClient.ListSitePushSettingsSlot": - resp, err = w.dispatchListSitePushSettingsSlot(req) - case "WebAppsClient.ListSlotConfigurationNames": - resp, err = w.dispatchListSlotConfigurationNames(req) - case "WebAppsClient.NewListSlotDifferencesFromProductionPager": - resp, err = w.dispatchNewListSlotDifferencesFromProductionPager(req) - case "WebAppsClient.NewListSlotDifferencesSlotPager": - resp, err = w.dispatchNewListSlotDifferencesSlotPager(req) - case "WebAppsClient.NewListSlotSiteDeploymentStatusesSlotPager": - resp, err = w.dispatchNewListSlotSiteDeploymentStatusesSlotPager(req) - case "WebAppsClient.NewListSlotsPager": - resp, err = w.dispatchNewListSlotsPager(req) - case "WebAppsClient.NewListSnapshotsPager": - resp, err = w.dispatchNewListSnapshotsPager(req) - case "WebAppsClient.NewListSnapshotsFromDRSecondaryPager": - resp, err = w.dispatchNewListSnapshotsFromDRSecondaryPager(req) - case "WebAppsClient.NewListSnapshotsFromDRSecondarySlotPager": - resp, err = w.dispatchNewListSnapshotsFromDRSecondarySlotPager(req) - case "WebAppsClient.NewListSnapshotsSlotPager": - resp, err = w.dispatchNewListSnapshotsSlotPager(req) - case "WebAppsClient.ListSyncFunctionTriggers": - resp, err = w.dispatchListSyncFunctionTriggers(req) - case "WebAppsClient.ListSyncFunctionTriggersSlot": - resp, err = w.dispatchListSyncFunctionTriggersSlot(req) - case "WebAppsClient.ListSyncStatus": - resp, err = w.dispatchListSyncStatus(req) - case "WebAppsClient.ListSyncStatusSlot": - resp, err = w.dispatchListSyncStatusSlot(req) - case "WebAppsClient.NewListTriggeredWebJobHistoryPager": - resp, err = w.dispatchNewListTriggeredWebJobHistoryPager(req) - case "WebAppsClient.NewListTriggeredWebJobHistorySlotPager": - resp, err = w.dispatchNewListTriggeredWebJobHistorySlotPager(req) - case "WebAppsClient.NewListTriggeredWebJobsPager": - resp, err = w.dispatchNewListTriggeredWebJobsPager(req) - case "WebAppsClient.NewListTriggeredWebJobsSlotPager": - resp, err = w.dispatchNewListTriggeredWebJobsSlotPager(req) - case "WebAppsClient.NewListUsagesPager": - resp, err = w.dispatchNewListUsagesPager(req) - case "WebAppsClient.NewListUsagesSlotPager": - resp, err = w.dispatchNewListUsagesSlotPager(req) - case "WebAppsClient.ListVnetConnections": - resp, err = w.dispatchListVnetConnections(req) - case "WebAppsClient.ListVnetConnectionsSlot": - resp, err = w.dispatchListVnetConnectionsSlot(req) - case "WebAppsClient.NewListWebJobsPager": - resp, err = w.dispatchNewListWebJobsPager(req) - case "WebAppsClient.NewListWebJobsSlotPager": - resp, err = w.dispatchNewListWebJobsSlotPager(req) - case "WebAppsClient.NewListWorkflowsPager": - resp, err = w.dispatchNewListWorkflowsPager(req) - case "WebAppsClient.ListWorkflowsConnections": - resp, err = w.dispatchListWorkflowsConnections(req) - case "WebAppsClient.ListWorkflowsConnectionsSlot": - resp, err = w.dispatchListWorkflowsConnectionsSlot(req) - case "WebAppsClient.BeginMigrateMySQL": - resp, err = w.dispatchBeginMigrateMySQL(req) - case "WebAppsClient.BeginMigrateStorage": - resp, err = w.dispatchBeginMigrateStorage(req) - case "WebAppsClient.PutPrivateAccessVnet": - resp, err = w.dispatchPutPrivateAccessVnet(req) - case "WebAppsClient.PutPrivateAccessVnetSlot": - resp, err = w.dispatchPutPrivateAccessVnetSlot(req) - case "WebAppsClient.RecoverSiteConfigurationSnapshot": - resp, err = w.dispatchRecoverSiteConfigurationSnapshot(req) - case "WebAppsClient.RecoverSiteConfigurationSnapshotSlot": - resp, err = w.dispatchRecoverSiteConfigurationSnapshotSlot(req) - case "WebAppsClient.ResetProductionSlotConfig": - resp, err = w.dispatchResetProductionSlotConfig(req) - case "WebAppsClient.ResetSlotConfigurationSlot": - resp, err = w.dispatchResetSlotConfigurationSlot(req) - case "WebAppsClient.Restart": - resp, err = w.dispatchRestart(req) - case "WebAppsClient.RestartSlot": - resp, err = w.dispatchRestartSlot(req) - case "WebAppsClient.BeginRestore": - resp, err = w.dispatchBeginRestore(req) - case "WebAppsClient.BeginRestoreFromBackupBlob": - resp, err = w.dispatchBeginRestoreFromBackupBlob(req) - case "WebAppsClient.BeginRestoreFromBackupBlobSlot": - resp, err = w.dispatchBeginRestoreFromBackupBlobSlot(req) - case "WebAppsClient.BeginRestoreFromDeletedApp": - resp, err = w.dispatchBeginRestoreFromDeletedApp(req) - case "WebAppsClient.BeginRestoreFromDeletedAppSlot": - resp, err = w.dispatchBeginRestoreFromDeletedAppSlot(req) - case "WebAppsClient.BeginRestoreSlot": - resp, err = w.dispatchBeginRestoreSlot(req) - case "WebAppsClient.BeginRestoreSnapshot": - resp, err = w.dispatchBeginRestoreSnapshot(req) - case "WebAppsClient.BeginRestoreSnapshotSlot": - resp, err = w.dispatchBeginRestoreSnapshotSlot(req) - case "WebAppsClient.RunTriggeredWebJob": - resp, err = w.dispatchRunTriggeredWebJob(req) - case "WebAppsClient.RunTriggeredWebJobSlot": - resp, err = w.dispatchRunTriggeredWebJobSlot(req) - case "WebAppsClient.Start": - resp, err = w.dispatchStart(req) - case "WebAppsClient.StartContinuousWebJob": - resp, err = w.dispatchStartContinuousWebJob(req) - case "WebAppsClient.StartContinuousWebJobSlot": - resp, err = w.dispatchStartContinuousWebJobSlot(req) - case "WebAppsClient.BeginStartNetworkTrace": - resp, err = w.dispatchBeginStartNetworkTrace(req) - case "WebAppsClient.BeginStartNetworkTraceSlot": - resp, err = w.dispatchBeginStartNetworkTraceSlot(req) - case "WebAppsClient.StartSlot": - resp, err = w.dispatchStartSlot(req) - case "WebAppsClient.StartWebSiteNetworkTrace": - resp, err = w.dispatchStartWebSiteNetworkTrace(req) - case "WebAppsClient.BeginStartWebSiteNetworkTraceOperation": - resp, err = w.dispatchBeginStartWebSiteNetworkTraceOperation(req) - case "WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot": - resp, err = w.dispatchBeginStartWebSiteNetworkTraceOperationSlot(req) - case "WebAppsClient.StartWebSiteNetworkTraceSlot": - resp, err = w.dispatchStartWebSiteNetworkTraceSlot(req) - case "WebAppsClient.Stop": - resp, err = w.dispatchStop(req) - case "WebAppsClient.StopContinuousWebJob": - resp, err = w.dispatchStopContinuousWebJob(req) - case "WebAppsClient.StopContinuousWebJobSlot": - resp, err = w.dispatchStopContinuousWebJobSlot(req) - case "WebAppsClient.StopNetworkTrace": - resp, err = w.dispatchStopNetworkTrace(req) - case "WebAppsClient.StopNetworkTraceSlot": - resp, err = w.dispatchStopNetworkTraceSlot(req) - case "WebAppsClient.StopSlot": - resp, err = w.dispatchStopSlot(req) - case "WebAppsClient.StopWebSiteNetworkTrace": - resp, err = w.dispatchStopWebSiteNetworkTrace(req) - case "WebAppsClient.StopWebSiteNetworkTraceSlot": - resp, err = w.dispatchStopWebSiteNetworkTraceSlot(req) - case "WebAppsClient.BeginSwapSlot": - resp, err = w.dispatchBeginSwapSlot(req) - case "WebAppsClient.BeginSwapSlotWithProduction": - resp, err = w.dispatchBeginSwapSlotWithProduction(req) - case "WebAppsClient.SyncFunctionTriggers": - resp, err = w.dispatchSyncFunctionTriggers(req) - case "WebAppsClient.SyncFunctionTriggersSlot": - resp, err = w.dispatchSyncFunctionTriggersSlot(req) - case "WebAppsClient.SyncFunctions": - resp, err = w.dispatchSyncFunctions(req) - case "WebAppsClient.SyncFunctionsSlot": - resp, err = w.dispatchSyncFunctionsSlot(req) - case "WebAppsClient.SyncRepository": - resp, err = w.dispatchSyncRepository(req) - case "WebAppsClient.SyncRepositorySlot": - resp, err = w.dispatchSyncRepositorySlot(req) - case "WebAppsClient.Update": - resp, err = w.dispatchUpdate(req) - case "WebAppsClient.UpdateApplicationSettings": - resp, err = w.dispatchUpdateApplicationSettings(req) - case "WebAppsClient.UpdateApplicationSettingsSlot": - resp, err = w.dispatchUpdateApplicationSettingsSlot(req) - case "WebAppsClient.UpdateAuthSettings": - resp, err = w.dispatchUpdateAuthSettings(req) - case "WebAppsClient.UpdateAuthSettingsSlot": - resp, err = w.dispatchUpdateAuthSettingsSlot(req) - case "WebAppsClient.UpdateAuthSettingsV2": - resp, err = w.dispatchUpdateAuthSettingsV2(req) - case "WebAppsClient.UpdateAuthSettingsV2Slot": - resp, err = w.dispatchUpdateAuthSettingsV2Slot(req) - case "WebAppsClient.UpdateAzureStorageAccounts": - resp, err = w.dispatchUpdateAzureStorageAccounts(req) - case "WebAppsClient.UpdateAzureStorageAccountsSlot": - resp, err = w.dispatchUpdateAzureStorageAccountsSlot(req) - case "WebAppsClient.UpdateBackupConfiguration": - resp, err = w.dispatchUpdateBackupConfiguration(req) - case "WebAppsClient.UpdateBackupConfigurationSlot": - resp, err = w.dispatchUpdateBackupConfigurationSlot(req) - case "WebAppsClient.UpdateConfiguration": - resp, err = w.dispatchUpdateConfiguration(req) - case "WebAppsClient.UpdateConfigurationSlot": - resp, err = w.dispatchUpdateConfigurationSlot(req) - case "WebAppsClient.UpdateConnectionStrings": - resp, err = w.dispatchUpdateConnectionStrings(req) - case "WebAppsClient.UpdateConnectionStringsSlot": - resp, err = w.dispatchUpdateConnectionStringsSlot(req) - case "WebAppsClient.UpdateDiagnosticLogsConfig": - resp, err = w.dispatchUpdateDiagnosticLogsConfig(req) - case "WebAppsClient.UpdateDiagnosticLogsConfigSlot": - resp, err = w.dispatchUpdateDiagnosticLogsConfigSlot(req) - case "WebAppsClient.UpdateDomainOwnershipIdentifier": - resp, err = w.dispatchUpdateDomainOwnershipIdentifier(req) - case "WebAppsClient.UpdateDomainOwnershipIdentifierSlot": - resp, err = w.dispatchUpdateDomainOwnershipIdentifierSlot(req) - case "WebAppsClient.UpdateFtpAllowed": - resp, err = w.dispatchUpdateFtpAllowed(req) - case "WebAppsClient.UpdateFtpAllowedSlot": - resp, err = w.dispatchUpdateFtpAllowedSlot(req) - case "WebAppsClient.UpdateHybridConnection": - resp, err = w.dispatchUpdateHybridConnection(req) - case "WebAppsClient.UpdateHybridConnectionSlot": - resp, err = w.dispatchUpdateHybridConnectionSlot(req) - case "WebAppsClient.UpdateMachineKey": - resp, err = w.dispatchUpdateMachineKey(req) - case "WebAppsClient.UpdateMetadata": - resp, err = w.dispatchUpdateMetadata(req) - case "WebAppsClient.UpdateMetadataSlot": - resp, err = w.dispatchUpdateMetadataSlot(req) - case "WebAppsClient.UpdatePremierAddOn": - resp, err = w.dispatchUpdatePremierAddOn(req) - case "WebAppsClient.UpdatePremierAddOnSlot": - resp, err = w.dispatchUpdatePremierAddOnSlot(req) - case "WebAppsClient.UpdateRelayServiceConnection": - resp, err = w.dispatchUpdateRelayServiceConnection(req) - case "WebAppsClient.UpdateRelayServiceConnectionSlot": - resp, err = w.dispatchUpdateRelayServiceConnectionSlot(req) - case "WebAppsClient.UpdateScmAllowed": - resp, err = w.dispatchUpdateScmAllowed(req) - case "WebAppsClient.UpdateScmAllowedSlot": - resp, err = w.dispatchUpdateScmAllowedSlot(req) - case "WebAppsClient.UpdateSitePushSettings": - resp, err = w.dispatchUpdateSitePushSettings(req) - case "WebAppsClient.UpdateSitePushSettingsSlot": - resp, err = w.dispatchUpdateSitePushSettingsSlot(req) - case "WebAppsClient.UpdateSlot": - resp, err = w.dispatchUpdateSlot(req) - case "WebAppsClient.UpdateSlotConfigurationNames": - resp, err = w.dispatchUpdateSlotConfigurationNames(req) - case "WebAppsClient.UpdateSourceControl": - resp, err = w.dispatchUpdateSourceControl(req) - case "WebAppsClient.UpdateSourceControlSlot": - resp, err = w.dispatchUpdateSourceControlSlot(req) - case "WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheck": - resp, err = w.dispatchUpdateSwiftVirtualNetworkConnectionWithCheck(req) - case "WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheckSlot": - resp, err = w.dispatchUpdateSwiftVirtualNetworkConnectionWithCheckSlot(req) - case "WebAppsClient.UpdateVnetConnection": - resp, err = w.dispatchUpdateVnetConnection(req) - case "WebAppsClient.UpdateVnetConnectionGateway": - resp, err = w.dispatchUpdateVnetConnectionGateway(req) - case "WebAppsClient.UpdateVnetConnectionGatewaySlot": - resp, err = w.dispatchUpdateVnetConnectionGatewaySlot(req) - case "WebAppsClient.UpdateVnetConnectionSlot": - resp, err = w.dispatchUpdateVnetConnectionSlot(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return w.dispatchToMethodFake(req, method) +} + +func (w *WebAppsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) + + go func() { + var intercepted bool + var res result + if webAppsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = webAppsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WebAppsClient.AddPremierAddOn": + res.resp, res.err = w.dispatchAddPremierAddOn(req) + case "WebAppsClient.AddPremierAddOnSlot": + res.resp, res.err = w.dispatchAddPremierAddOnSlot(req) + case "WebAppsClient.AnalyzeCustomHostname": + res.resp, res.err = w.dispatchAnalyzeCustomHostname(req) + case "WebAppsClient.AnalyzeCustomHostnameSlot": + res.resp, res.err = w.dispatchAnalyzeCustomHostnameSlot(req) + case "WebAppsClient.ApplySlotConfigToProduction": + res.resp, res.err = w.dispatchApplySlotConfigToProduction(req) + case "WebAppsClient.ApplySlotConfigurationSlot": + res.resp, res.err = w.dispatchApplySlotConfigurationSlot(req) + case "WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection": + res.resp, res.err = w.dispatchBeginApproveOrRejectPrivateEndpointConnection(req) + case "WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot": + res.resp, res.err = w.dispatchBeginApproveOrRejectPrivateEndpointConnectionSlot(req) + case "WebAppsClient.Backup": + res.resp, res.err = w.dispatchBackup(req) + case "WebAppsClient.BackupSlot": + res.resp, res.err = w.dispatchBackupSlot(req) + case "WebAppsClient.CreateDeployment": + res.resp, res.err = w.dispatchCreateDeployment(req) + case "WebAppsClient.CreateDeploymentSlot": + res.resp, res.err = w.dispatchCreateDeploymentSlot(req) + case "WebAppsClient.BeginCreateFunction": + res.resp, res.err = w.dispatchBeginCreateFunction(req) + case "WebAppsClient.BeginCreateInstanceFunctionSlot": + res.resp, res.err = w.dispatchBeginCreateInstanceFunctionSlot(req) + case "WebAppsClient.BeginCreateInstanceMSDeployOperation": + res.resp, res.err = w.dispatchBeginCreateInstanceMSDeployOperation(req) + case "WebAppsClient.BeginCreateInstanceMSDeployOperationSlot": + res.resp, res.err = w.dispatchBeginCreateInstanceMSDeployOperationSlot(req) + case "WebAppsClient.BeginCreateMSDeployOperation": + res.resp, res.err = w.dispatchBeginCreateMSDeployOperation(req) + case "WebAppsClient.BeginCreateMSDeployOperationSlot": + res.resp, res.err = w.dispatchBeginCreateMSDeployOperationSlot(req) + case "WebAppsClient.CreateOneDeployOperation": + res.resp, res.err = w.dispatchCreateOneDeployOperation(req) + case "WebAppsClient.BeginCreateOrUpdate": + res.resp, res.err = w.dispatchBeginCreateOrUpdate(req) + case "WebAppsClient.CreateOrUpdateConfiguration": + res.resp, res.err = w.dispatchCreateOrUpdateConfiguration(req) + case "WebAppsClient.CreateOrUpdateConfigurationSlot": + res.resp, res.err = w.dispatchCreateOrUpdateConfigurationSlot(req) + case "WebAppsClient.CreateOrUpdateDomainOwnershipIdentifier": + res.resp, res.err = w.dispatchCreateOrUpdateDomainOwnershipIdentifier(req) + case "WebAppsClient.CreateOrUpdateDomainOwnershipIdentifierSlot": + res.resp, res.err = w.dispatchCreateOrUpdateDomainOwnershipIdentifierSlot(req) + case "WebAppsClient.CreateOrUpdateFunctionSecret": + res.resp, res.err = w.dispatchCreateOrUpdateFunctionSecret(req) + case "WebAppsClient.CreateOrUpdateFunctionSecretSlot": + res.resp, res.err = w.dispatchCreateOrUpdateFunctionSecretSlot(req) + case "WebAppsClient.CreateOrUpdateHostNameBinding": + res.resp, res.err = w.dispatchCreateOrUpdateHostNameBinding(req) + case "WebAppsClient.CreateOrUpdateHostNameBindingSlot": + res.resp, res.err = w.dispatchCreateOrUpdateHostNameBindingSlot(req) + case "WebAppsClient.CreateOrUpdateHostSecret": + res.resp, res.err = w.dispatchCreateOrUpdateHostSecret(req) + case "WebAppsClient.CreateOrUpdateHostSecretSlot": + res.resp, res.err = w.dispatchCreateOrUpdateHostSecretSlot(req) + case "WebAppsClient.CreateOrUpdateHybridConnection": + res.resp, res.err = w.dispatchCreateOrUpdateHybridConnection(req) + case "WebAppsClient.CreateOrUpdateHybridConnectionSlot": + res.resp, res.err = w.dispatchCreateOrUpdateHybridConnectionSlot(req) + case "WebAppsClient.CreateOrUpdatePublicCertificate": + res.resp, res.err = w.dispatchCreateOrUpdatePublicCertificate(req) + case "WebAppsClient.CreateOrUpdatePublicCertificateSlot": + res.resp, res.err = w.dispatchCreateOrUpdatePublicCertificateSlot(req) + case "WebAppsClient.CreateOrUpdateRelayServiceConnection": + res.resp, res.err = w.dispatchCreateOrUpdateRelayServiceConnection(req) + case "WebAppsClient.CreateOrUpdateRelayServiceConnectionSlot": + res.resp, res.err = w.dispatchCreateOrUpdateRelayServiceConnectionSlot(req) + case "WebAppsClient.CreateOrUpdateSiteContainer": + res.resp, res.err = w.dispatchCreateOrUpdateSiteContainer(req) + case "WebAppsClient.CreateOrUpdateSiteContainerSlot": + res.resp, res.err = w.dispatchCreateOrUpdateSiteContainerSlot(req) + case "WebAppsClient.BeginCreateOrUpdateSlot": + res.resp, res.err = w.dispatchBeginCreateOrUpdateSlot(req) + case "WebAppsClient.BeginCreateOrUpdateSourceControl": + res.resp, res.err = w.dispatchBeginCreateOrUpdateSourceControl(req) + case "WebAppsClient.BeginCreateOrUpdateSourceControlSlot": + res.resp, res.err = w.dispatchBeginCreateOrUpdateSourceControlSlot(req) + case "WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck": + res.resp, res.err = w.dispatchCreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(req) + case "WebAppsClient.CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot": + res.resp, res.err = w.dispatchCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot(req) + case "WebAppsClient.CreateOrUpdateVnetConnection": + res.resp, res.err = w.dispatchCreateOrUpdateVnetConnection(req) + case "WebAppsClient.CreateOrUpdateVnetConnectionGateway": + res.resp, res.err = w.dispatchCreateOrUpdateVnetConnectionGateway(req) + case "WebAppsClient.CreateOrUpdateVnetConnectionGatewaySlot": + res.resp, res.err = w.dispatchCreateOrUpdateVnetConnectionGatewaySlot(req) + case "WebAppsClient.CreateOrUpdateVnetConnectionSlot": + res.resp, res.err = w.dispatchCreateOrUpdateVnetConnectionSlot(req) + case "WebAppsClient.Delete": + res.resp, res.err = w.dispatchDelete(req) + case "WebAppsClient.DeleteBackup": + res.resp, res.err = w.dispatchDeleteBackup(req) + case "WebAppsClient.DeleteBackupConfiguration": + res.resp, res.err = w.dispatchDeleteBackupConfiguration(req) + case "WebAppsClient.DeleteBackupConfigurationSlot": + res.resp, res.err = w.dispatchDeleteBackupConfigurationSlot(req) + case "WebAppsClient.DeleteBackupSlot": + res.resp, res.err = w.dispatchDeleteBackupSlot(req) + case "WebAppsClient.DeleteContinuousWebJob": + res.resp, res.err = w.dispatchDeleteContinuousWebJob(req) + case "WebAppsClient.DeleteContinuousWebJobSlot": + res.resp, res.err = w.dispatchDeleteContinuousWebJobSlot(req) + case "WebAppsClient.DeleteDeployment": + res.resp, res.err = w.dispatchDeleteDeployment(req) + case "WebAppsClient.DeleteDeploymentSlot": + res.resp, res.err = w.dispatchDeleteDeploymentSlot(req) + case "WebAppsClient.DeleteDomainOwnershipIdentifier": + res.resp, res.err = w.dispatchDeleteDomainOwnershipIdentifier(req) + case "WebAppsClient.DeleteDomainOwnershipIdentifierSlot": + res.resp, res.err = w.dispatchDeleteDomainOwnershipIdentifierSlot(req) + case "WebAppsClient.DeleteFunction": + res.resp, res.err = w.dispatchDeleteFunction(req) + case "WebAppsClient.DeleteFunctionSecret": + res.resp, res.err = w.dispatchDeleteFunctionSecret(req) + case "WebAppsClient.DeleteFunctionSecretSlot": + res.resp, res.err = w.dispatchDeleteFunctionSecretSlot(req) + case "WebAppsClient.DeleteHostNameBinding": + res.resp, res.err = w.dispatchDeleteHostNameBinding(req) + case "WebAppsClient.DeleteHostNameBindingSlot": + res.resp, res.err = w.dispatchDeleteHostNameBindingSlot(req) + case "WebAppsClient.DeleteHostSecret": + res.resp, res.err = w.dispatchDeleteHostSecret(req) + case "WebAppsClient.DeleteHostSecretSlot": + res.resp, res.err = w.dispatchDeleteHostSecretSlot(req) + case "WebAppsClient.DeleteHybridConnection": + res.resp, res.err = w.dispatchDeleteHybridConnection(req) + case "WebAppsClient.DeleteHybridConnectionSlot": + res.resp, res.err = w.dispatchDeleteHybridConnectionSlot(req) + case "WebAppsClient.DeleteInstanceFunctionSlot": + res.resp, res.err = w.dispatchDeleteInstanceFunctionSlot(req) + case "WebAppsClient.DeleteInstanceProcess": + res.resp, res.err = w.dispatchDeleteInstanceProcess(req) + case "WebAppsClient.DeleteInstanceProcessSlot": + res.resp, res.err = w.dispatchDeleteInstanceProcessSlot(req) + case "WebAppsClient.DeletePremierAddOn": + res.resp, res.err = w.dispatchDeletePremierAddOn(req) + case "WebAppsClient.DeletePremierAddOnSlot": + res.resp, res.err = w.dispatchDeletePremierAddOnSlot(req) + case "WebAppsClient.BeginDeletePrivateEndpointConnection": + res.resp, res.err = w.dispatchBeginDeletePrivateEndpointConnection(req) + case "WebAppsClient.BeginDeletePrivateEndpointConnectionSlot": + res.resp, res.err = w.dispatchBeginDeletePrivateEndpointConnectionSlot(req) + case "WebAppsClient.DeleteProcess": + res.resp, res.err = w.dispatchDeleteProcess(req) + case "WebAppsClient.DeleteProcessSlot": + res.resp, res.err = w.dispatchDeleteProcessSlot(req) + case "WebAppsClient.DeletePublicCertificate": + res.resp, res.err = w.dispatchDeletePublicCertificate(req) + case "WebAppsClient.DeletePublicCertificateSlot": + res.resp, res.err = w.dispatchDeletePublicCertificateSlot(req) + case "WebAppsClient.DeleteRelayServiceConnection": + res.resp, res.err = w.dispatchDeleteRelayServiceConnection(req) + case "WebAppsClient.DeleteRelayServiceConnectionSlot": + res.resp, res.err = w.dispatchDeleteRelayServiceConnectionSlot(req) + case "WebAppsClient.DeleteSiteContainer": + res.resp, res.err = w.dispatchDeleteSiteContainer(req) + case "WebAppsClient.DeleteSiteContainerSlot": + res.resp, res.err = w.dispatchDeleteSiteContainerSlot(req) + case "WebAppsClient.DeleteSiteExtension": + res.resp, res.err = w.dispatchDeleteSiteExtension(req) + case "WebAppsClient.DeleteSiteExtensionSlot": + res.resp, res.err = w.dispatchDeleteSiteExtensionSlot(req) + case "WebAppsClient.DeleteSlot": + res.resp, res.err = w.dispatchDeleteSlot(req) + case "WebAppsClient.DeleteSourceControl": + res.resp, res.err = w.dispatchDeleteSourceControl(req) + case "WebAppsClient.DeleteSourceControlSlot": + res.resp, res.err = w.dispatchDeleteSourceControlSlot(req) + case "WebAppsClient.DeleteSwiftVirtualNetwork": + res.resp, res.err = w.dispatchDeleteSwiftVirtualNetwork(req) + case "WebAppsClient.DeleteSwiftVirtualNetworkSlot": + res.resp, res.err = w.dispatchDeleteSwiftVirtualNetworkSlot(req) + case "WebAppsClient.DeleteTriggeredWebJob": + res.resp, res.err = w.dispatchDeleteTriggeredWebJob(req) + case "WebAppsClient.DeleteTriggeredWebJobSlot": + res.resp, res.err = w.dispatchDeleteTriggeredWebJobSlot(req) + case "WebAppsClient.DeleteVnetConnection": + res.resp, res.err = w.dispatchDeleteVnetConnection(req) + case "WebAppsClient.DeleteVnetConnectionSlot": + res.resp, res.err = w.dispatchDeleteVnetConnectionSlot(req) + case "WebAppsClient.DeployWorkflowArtifacts": + res.resp, res.err = w.dispatchDeployWorkflowArtifacts(req) + case "WebAppsClient.DeployWorkflowArtifactsSlot": + res.resp, res.err = w.dispatchDeployWorkflowArtifactsSlot(req) + case "WebAppsClient.DiscoverBackup": + res.resp, res.err = w.dispatchDiscoverBackup(req) + case "WebAppsClient.DiscoverBackupSlot": + res.resp, res.err = w.dispatchDiscoverBackupSlot(req) + case "WebAppsClient.GenerateNewSitePublishingPassword": + res.resp, res.err = w.dispatchGenerateNewSitePublishingPassword(req) + case "WebAppsClient.GenerateNewSitePublishingPasswordSlot": + res.resp, res.err = w.dispatchGenerateNewSitePublishingPasswordSlot(req) + case "WebAppsClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WebAppsClient.GetAppSettingKeyVaultReference": + res.resp, res.err = w.dispatchGetAppSettingKeyVaultReference(req) + case "WebAppsClient.GetAppSettingKeyVaultReferenceSlot": + res.resp, res.err = w.dispatchGetAppSettingKeyVaultReferenceSlot(req) + case "WebAppsClient.NewGetAppSettingsKeyVaultReferencesPager": + res.resp, res.err = w.dispatchNewGetAppSettingsKeyVaultReferencesPager(req) + case "WebAppsClient.NewGetAppSettingsKeyVaultReferencesSlotPager": + res.resp, res.err = w.dispatchNewGetAppSettingsKeyVaultReferencesSlotPager(req) + case "WebAppsClient.GetAuthSettings": + res.resp, res.err = w.dispatchGetAuthSettings(req) + case "WebAppsClient.GetAuthSettingsSlot": + res.resp, res.err = w.dispatchGetAuthSettingsSlot(req) + case "WebAppsClient.GetAuthSettingsV2": + res.resp, res.err = w.dispatchGetAuthSettingsV2(req) + case "WebAppsClient.GetAuthSettingsV2Slot": + res.resp, res.err = w.dispatchGetAuthSettingsV2Slot(req) + case "WebAppsClient.GetAuthSettingsV2WithoutSecrets": + res.resp, res.err = w.dispatchGetAuthSettingsV2WithoutSecrets(req) + case "WebAppsClient.GetAuthSettingsV2WithoutSecretsSlot": + res.resp, res.err = w.dispatchGetAuthSettingsV2WithoutSecretsSlot(req) + case "WebAppsClient.GetBackupConfiguration": + res.resp, res.err = w.dispatchGetBackupConfiguration(req) + case "WebAppsClient.GetBackupConfigurationSlot": + res.resp, res.err = w.dispatchGetBackupConfigurationSlot(req) + case "WebAppsClient.GetBackupStatus": + res.resp, res.err = w.dispatchGetBackupStatus(req) + case "WebAppsClient.GetBackupStatusSlot": + res.resp, res.err = w.dispatchGetBackupStatusSlot(req) + case "WebAppsClient.GetConfiguration": + res.resp, res.err = w.dispatchGetConfiguration(req) + case "WebAppsClient.GetConfigurationSlot": + res.resp, res.err = w.dispatchGetConfigurationSlot(req) + case "WebAppsClient.GetConfigurationSnapshot": + res.resp, res.err = w.dispatchGetConfigurationSnapshot(req) + case "WebAppsClient.GetConfigurationSnapshotSlot": + res.resp, res.err = w.dispatchGetConfigurationSnapshotSlot(req) + case "WebAppsClient.GetContainerLogsZip": + res.resp, res.err = w.dispatchGetContainerLogsZip(req) + case "WebAppsClient.GetContainerLogsZipSlot": + res.resp, res.err = w.dispatchGetContainerLogsZipSlot(req) + case "WebAppsClient.GetContinuousWebJob": + res.resp, res.err = w.dispatchGetContinuousWebJob(req) + case "WebAppsClient.GetContinuousWebJobSlot": + res.resp, res.err = w.dispatchGetContinuousWebJobSlot(req) + case "WebAppsClient.GetDeployment": + res.resp, res.err = w.dispatchGetDeployment(req) + case "WebAppsClient.GetDeploymentSlot": + res.resp, res.err = w.dispatchGetDeploymentSlot(req) + case "WebAppsClient.GetDiagnosticLogsConfiguration": + res.resp, res.err = w.dispatchGetDiagnosticLogsConfiguration(req) + case "WebAppsClient.GetDiagnosticLogsConfigurationSlot": + res.resp, res.err = w.dispatchGetDiagnosticLogsConfigurationSlot(req) + case "WebAppsClient.GetDomainOwnershipIdentifier": + res.resp, res.err = w.dispatchGetDomainOwnershipIdentifier(req) + case "WebAppsClient.GetDomainOwnershipIdentifierSlot": + res.resp, res.err = w.dispatchGetDomainOwnershipIdentifierSlot(req) + case "WebAppsClient.GetFtpAllowed": + res.resp, res.err = w.dispatchGetFtpAllowed(req) + case "WebAppsClient.GetFtpAllowedSlot": + res.resp, res.err = w.dispatchGetFtpAllowedSlot(req) + case "WebAppsClient.GetFunction": + res.resp, res.err = w.dispatchGetFunction(req) + case "WebAppsClient.GetFunctionsAdminToken": + res.resp, res.err = w.dispatchGetFunctionsAdminToken(req) + case "WebAppsClient.GetFunctionsAdminTokenSlot": + res.resp, res.err = w.dispatchGetFunctionsAdminTokenSlot(req) + case "WebAppsClient.GetHostNameBinding": + res.resp, res.err = w.dispatchGetHostNameBinding(req) + case "WebAppsClient.GetHostNameBindingSlot": + res.resp, res.err = w.dispatchGetHostNameBindingSlot(req) + case "WebAppsClient.GetHybridConnection": + res.resp, res.err = w.dispatchGetHybridConnection(req) + case "WebAppsClient.GetHybridConnectionSlot": + res.resp, res.err = w.dispatchGetHybridConnectionSlot(req) + case "WebAppsClient.GetInstanceFunctionSlot": + res.resp, res.err = w.dispatchGetInstanceFunctionSlot(req) + case "WebAppsClient.GetInstanceInfo": + res.resp, res.err = w.dispatchGetInstanceInfo(req) + case "WebAppsClient.GetInstanceInfoSlot": + res.resp, res.err = w.dispatchGetInstanceInfoSlot(req) + case "WebAppsClient.GetInstanceMSDeployLog": + res.resp, res.err = w.dispatchGetInstanceMSDeployLog(req) + case "WebAppsClient.GetInstanceMSDeployLogSlot": + res.resp, res.err = w.dispatchGetInstanceMSDeployLogSlot(req) + case "WebAppsClient.GetInstanceMsDeployStatus": + res.resp, res.err = w.dispatchGetInstanceMsDeployStatus(req) + case "WebAppsClient.GetInstanceMsDeployStatusSlot": + res.resp, res.err = w.dispatchGetInstanceMsDeployStatusSlot(req) + case "WebAppsClient.GetInstanceProcess": + res.resp, res.err = w.dispatchGetInstanceProcess(req) + case "WebAppsClient.GetInstanceProcessDump": + res.resp, res.err = w.dispatchGetInstanceProcessDump(req) + case "WebAppsClient.GetInstanceProcessDumpSlot": + res.resp, res.err = w.dispatchGetInstanceProcessDumpSlot(req) + case "WebAppsClient.GetInstanceProcessModule": + res.resp, res.err = w.dispatchGetInstanceProcessModule(req) + case "WebAppsClient.GetInstanceProcessModuleSlot": + res.resp, res.err = w.dispatchGetInstanceProcessModuleSlot(req) + case "WebAppsClient.GetInstanceProcessSlot": + res.resp, res.err = w.dispatchGetInstanceProcessSlot(req) + case "WebAppsClient.GetInstanceWorkflowSlot": + res.resp, res.err = w.dispatchGetInstanceWorkflowSlot(req) + case "WebAppsClient.GetMSDeployLog": + res.resp, res.err = w.dispatchGetMSDeployLog(req) + case "WebAppsClient.GetMSDeployLogSlot": + res.resp, res.err = w.dispatchGetMSDeployLogSlot(req) + case "WebAppsClient.GetMSDeployStatus": + res.resp, res.err = w.dispatchGetMSDeployStatus(req) + case "WebAppsClient.GetMSDeployStatusSlot": + res.resp, res.err = w.dispatchGetMSDeployStatusSlot(req) + case "WebAppsClient.GetMigrateMySQLStatus": + res.resp, res.err = w.dispatchGetMigrateMySQLStatus(req) + case "WebAppsClient.GetMigrateMySQLStatusSlot": + res.resp, res.err = w.dispatchGetMigrateMySQLStatusSlot(req) + case "WebAppsClient.GetNetworkTraceOperation": + res.resp, res.err = w.dispatchGetNetworkTraceOperation(req) + case "WebAppsClient.GetNetworkTraceOperationSlot": + res.resp, res.err = w.dispatchGetNetworkTraceOperationSlot(req) + case "WebAppsClient.GetNetworkTraceOperationSlotV2": + res.resp, res.err = w.dispatchGetNetworkTraceOperationSlotV2(req) + case "WebAppsClient.GetNetworkTraceOperationV2": + res.resp, res.err = w.dispatchGetNetworkTraceOperationV2(req) + case "WebAppsClient.GetNetworkTraces": + res.resp, res.err = w.dispatchGetNetworkTraces(req) + case "WebAppsClient.GetNetworkTracesSlot": + res.resp, res.err = w.dispatchGetNetworkTracesSlot(req) + case "WebAppsClient.GetNetworkTracesSlotV2": + res.resp, res.err = w.dispatchGetNetworkTracesSlotV2(req) + case "WebAppsClient.GetNetworkTracesV2": + res.resp, res.err = w.dispatchGetNetworkTracesV2(req) + case "WebAppsClient.GetOneDeployStatus": + res.resp, res.err = w.dispatchGetOneDeployStatus(req) + case "WebAppsClient.GetPremierAddOn": + res.resp, res.err = w.dispatchGetPremierAddOn(req) + case "WebAppsClient.GetPremierAddOnSlot": + res.resp, res.err = w.dispatchGetPremierAddOnSlot(req) + case "WebAppsClient.GetPrivateAccess": + res.resp, res.err = w.dispatchGetPrivateAccess(req) + case "WebAppsClient.GetPrivateAccessSlot": + res.resp, res.err = w.dispatchGetPrivateAccessSlot(req) + case "WebAppsClient.GetPrivateEndpointConnection": + res.resp, res.err = w.dispatchGetPrivateEndpointConnection(req) + case "WebAppsClient.NewGetPrivateEndpointConnectionListPager": + res.resp, res.err = w.dispatchNewGetPrivateEndpointConnectionListPager(req) + case "WebAppsClient.NewGetPrivateEndpointConnectionListSlotPager": + res.resp, res.err = w.dispatchNewGetPrivateEndpointConnectionListSlotPager(req) + case "WebAppsClient.GetPrivateEndpointConnectionSlot": + res.resp, res.err = w.dispatchGetPrivateEndpointConnectionSlot(req) + case "WebAppsClient.GetPrivateLinkResources": + res.resp, res.err = w.dispatchGetPrivateLinkResources(req) + case "WebAppsClient.GetPrivateLinkResourcesSlot": + res.resp, res.err = w.dispatchGetPrivateLinkResourcesSlot(req) + case "WebAppsClient.GetProcess": + res.resp, res.err = w.dispatchGetProcess(req) + case "WebAppsClient.GetProcessDump": + res.resp, res.err = w.dispatchGetProcessDump(req) + case "WebAppsClient.GetProcessDumpSlot": + res.resp, res.err = w.dispatchGetProcessDumpSlot(req) + case "WebAppsClient.GetProcessModule": + res.resp, res.err = w.dispatchGetProcessModule(req) + case "WebAppsClient.GetProcessModuleSlot": + res.resp, res.err = w.dispatchGetProcessModuleSlot(req) + case "WebAppsClient.GetProcessSlot": + res.resp, res.err = w.dispatchGetProcessSlot(req) + case "WebAppsClient.BeginGetProductionSiteDeploymentStatus": + res.resp, res.err = w.dispatchBeginGetProductionSiteDeploymentStatus(req) + case "WebAppsClient.GetPublicCertificate": + res.resp, res.err = w.dispatchGetPublicCertificate(req) + case "WebAppsClient.GetPublicCertificateSlot": + res.resp, res.err = w.dispatchGetPublicCertificateSlot(req) + case "WebAppsClient.GetRelayServiceConnection": + res.resp, res.err = w.dispatchGetRelayServiceConnection(req) + case "WebAppsClient.GetRelayServiceConnectionSlot": + res.resp, res.err = w.dispatchGetRelayServiceConnectionSlot(req) + case "WebAppsClient.GetScmAllowed": + res.resp, res.err = w.dispatchGetScmAllowed(req) + case "WebAppsClient.GetScmAllowedSlot": + res.resp, res.err = w.dispatchGetScmAllowedSlot(req) + case "WebAppsClient.GetSiteConnectionStringKeyVaultReference": + res.resp, res.err = w.dispatchGetSiteConnectionStringKeyVaultReference(req) + case "WebAppsClient.GetSiteConnectionStringKeyVaultReferenceSlot": + res.resp, res.err = w.dispatchGetSiteConnectionStringKeyVaultReferenceSlot(req) + case "WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesPager": + res.resp, res.err = w.dispatchNewGetSiteConnectionStringKeyVaultReferencesPager(req) + case "WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesSlotPager": + res.resp, res.err = w.dispatchNewGetSiteConnectionStringKeyVaultReferencesSlotPager(req) + case "WebAppsClient.GetSiteContainer": + res.resp, res.err = w.dispatchGetSiteContainer(req) + case "WebAppsClient.GetSiteContainerSlot": + res.resp, res.err = w.dispatchGetSiteContainerSlot(req) + case "WebAppsClient.GetSiteExtension": + res.resp, res.err = w.dispatchGetSiteExtension(req) + case "WebAppsClient.GetSiteExtensionSlot": + res.resp, res.err = w.dispatchGetSiteExtensionSlot(req) + case "WebAppsClient.GetSitePhpErrorLogFlag": + res.resp, res.err = w.dispatchGetSitePhpErrorLogFlag(req) + case "WebAppsClient.GetSitePhpErrorLogFlagSlot": + res.resp, res.err = w.dispatchGetSitePhpErrorLogFlagSlot(req) + case "WebAppsClient.GetSlot": + res.resp, res.err = w.dispatchGetSlot(req) + case "WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot": + res.resp, res.err = w.dispatchBeginGetSlotSiteDeploymentStatusSlot(req) + case "WebAppsClient.GetSourceControl": + res.resp, res.err = w.dispatchGetSourceControl(req) + case "WebAppsClient.GetSourceControlSlot": + res.resp, res.err = w.dispatchGetSourceControlSlot(req) + case "WebAppsClient.GetSwiftVirtualNetworkConnection": + res.resp, res.err = w.dispatchGetSwiftVirtualNetworkConnection(req) + case "WebAppsClient.GetSwiftVirtualNetworkConnectionSlot": + res.resp, res.err = w.dispatchGetSwiftVirtualNetworkConnectionSlot(req) + case "WebAppsClient.GetTriggeredWebJob": + res.resp, res.err = w.dispatchGetTriggeredWebJob(req) + case "WebAppsClient.GetTriggeredWebJobHistory": + res.resp, res.err = w.dispatchGetTriggeredWebJobHistory(req) + case "WebAppsClient.GetTriggeredWebJobHistorySlot": + res.resp, res.err = w.dispatchGetTriggeredWebJobHistorySlot(req) + case "WebAppsClient.GetTriggeredWebJobSlot": + res.resp, res.err = w.dispatchGetTriggeredWebJobSlot(req) + case "WebAppsClient.GetVnetConnection": + res.resp, res.err = w.dispatchGetVnetConnection(req) + case "WebAppsClient.GetVnetConnectionGateway": + res.resp, res.err = w.dispatchGetVnetConnectionGateway(req) + case "WebAppsClient.GetVnetConnectionGatewaySlot": + res.resp, res.err = w.dispatchGetVnetConnectionGatewaySlot(req) + case "WebAppsClient.GetVnetConnectionSlot": + res.resp, res.err = w.dispatchGetVnetConnectionSlot(req) + case "WebAppsClient.GetWebJob": + res.resp, res.err = w.dispatchGetWebJob(req) + case "WebAppsClient.GetWebJobSlot": + res.resp, res.err = w.dispatchGetWebJobSlot(req) + case "WebAppsClient.GetWebSiteContainerLogs": + res.resp, res.err = w.dispatchGetWebSiteContainerLogs(req) + case "WebAppsClient.GetWebSiteContainerLogsSlot": + res.resp, res.err = w.dispatchGetWebSiteContainerLogsSlot(req) + case "WebAppsClient.GetWorkflow": + res.resp, res.err = w.dispatchGetWorkflow(req) + case "WebAppsClient.BeginInstallSiteExtension": + res.resp, res.err = w.dispatchBeginInstallSiteExtension(req) + case "WebAppsClient.BeginInstallSiteExtensionSlot": + res.resp, res.err = w.dispatchBeginInstallSiteExtensionSlot(req) + case "WebAppsClient.IsCloneable": + res.resp, res.err = w.dispatchIsCloneable(req) + case "WebAppsClient.IsCloneableSlot": + res.resp, res.err = w.dispatchIsCloneableSlot(req) + case "WebAppsClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + case "WebAppsClient.ListApplicationSettings": + res.resp, res.err = w.dispatchListApplicationSettings(req) + case "WebAppsClient.ListApplicationSettingsSlot": + res.resp, res.err = w.dispatchListApplicationSettingsSlot(req) + case "WebAppsClient.ListAzureStorageAccounts": + res.resp, res.err = w.dispatchListAzureStorageAccounts(req) + case "WebAppsClient.ListAzureStorageAccountsSlot": + res.resp, res.err = w.dispatchListAzureStorageAccountsSlot(req) + case "WebAppsClient.ListBackupStatusSecrets": + res.resp, res.err = w.dispatchListBackupStatusSecrets(req) + case "WebAppsClient.ListBackupStatusSecretsSlot": + res.resp, res.err = w.dispatchListBackupStatusSecretsSlot(req) + case "WebAppsClient.NewListBackupsPager": + res.resp, res.err = w.dispatchNewListBackupsPager(req) + case "WebAppsClient.NewListBackupsSlotPager": + res.resp, res.err = w.dispatchNewListBackupsSlotPager(req) + case "WebAppsClient.NewListBasicPublishingCredentialsPoliciesPager": + res.resp, res.err = w.dispatchNewListBasicPublishingCredentialsPoliciesPager(req) + case "WebAppsClient.NewListBasicPublishingCredentialsPoliciesSlotPager": + res.resp, res.err = w.dispatchNewListBasicPublishingCredentialsPoliciesSlotPager(req) + case "WebAppsClient.NewListByResourceGroupPager": + res.resp, res.err = w.dispatchNewListByResourceGroupPager(req) + case "WebAppsClient.NewListConfigurationSnapshotInfoPager": + res.resp, res.err = w.dispatchNewListConfigurationSnapshotInfoPager(req) + case "WebAppsClient.NewListConfigurationSnapshotInfoSlotPager": + res.resp, res.err = w.dispatchNewListConfigurationSnapshotInfoSlotPager(req) + case "WebAppsClient.NewListConfigurationsPager": + res.resp, res.err = w.dispatchNewListConfigurationsPager(req) + case "WebAppsClient.NewListConfigurationsSlotPager": + res.resp, res.err = w.dispatchNewListConfigurationsSlotPager(req) + case "WebAppsClient.ListConnectionStrings": + res.resp, res.err = w.dispatchListConnectionStrings(req) + case "WebAppsClient.ListConnectionStringsSlot": + res.resp, res.err = w.dispatchListConnectionStringsSlot(req) + case "WebAppsClient.NewListContinuousWebJobsPager": + res.resp, res.err = w.dispatchNewListContinuousWebJobsPager(req) + case "WebAppsClient.NewListContinuousWebJobsSlotPager": + res.resp, res.err = w.dispatchNewListContinuousWebJobsSlotPager(req) + case "WebAppsClient.ListDeploymentLog": + res.resp, res.err = w.dispatchListDeploymentLog(req) + case "WebAppsClient.ListDeploymentLogSlot": + res.resp, res.err = w.dispatchListDeploymentLogSlot(req) + case "WebAppsClient.NewListDeploymentsPager": + res.resp, res.err = w.dispatchNewListDeploymentsPager(req) + case "WebAppsClient.NewListDeploymentsSlotPager": + res.resp, res.err = w.dispatchNewListDeploymentsSlotPager(req) + case "WebAppsClient.NewListDomainOwnershipIdentifiersPager": + res.resp, res.err = w.dispatchNewListDomainOwnershipIdentifiersPager(req) + case "WebAppsClient.NewListDomainOwnershipIdentifiersSlotPager": + res.resp, res.err = w.dispatchNewListDomainOwnershipIdentifiersSlotPager(req) + case "WebAppsClient.ListFunctionKeys": + res.resp, res.err = w.dispatchListFunctionKeys(req) + case "WebAppsClient.ListFunctionKeysSlot": + res.resp, res.err = w.dispatchListFunctionKeysSlot(req) + case "WebAppsClient.ListFunctionSecrets": + res.resp, res.err = w.dispatchListFunctionSecrets(req) + case "WebAppsClient.ListFunctionSecretsSlot": + res.resp, res.err = w.dispatchListFunctionSecretsSlot(req) + case "WebAppsClient.NewListFunctionsPager": + res.resp, res.err = w.dispatchNewListFunctionsPager(req) + case "WebAppsClient.ListHostKeys": + res.resp, res.err = w.dispatchListHostKeys(req) + case "WebAppsClient.ListHostKeysSlot": + res.resp, res.err = w.dispatchListHostKeysSlot(req) + case "WebAppsClient.NewListHostNameBindingsPager": + res.resp, res.err = w.dispatchNewListHostNameBindingsPager(req) + case "WebAppsClient.NewListHostNameBindingsSlotPager": + res.resp, res.err = w.dispatchNewListHostNameBindingsSlotPager(req) + case "WebAppsClient.ListHybridConnections": + res.resp, res.err = w.dispatchListHybridConnections(req) + case "WebAppsClient.ListHybridConnectionsSlot": + res.resp, res.err = w.dispatchListHybridConnectionsSlot(req) + case "WebAppsClient.NewListInstanceFunctionsSlotPager": + res.resp, res.err = w.dispatchNewListInstanceFunctionsSlotPager(req) + case "WebAppsClient.NewListInstanceIdentifiersPager": + res.resp, res.err = w.dispatchNewListInstanceIdentifiersPager(req) + case "WebAppsClient.NewListInstanceIdentifiersSlotPager": + res.resp, res.err = w.dispatchNewListInstanceIdentifiersSlotPager(req) + case "WebAppsClient.NewListInstanceProcessModulesPager": + res.resp, res.err = w.dispatchNewListInstanceProcessModulesPager(req) + case "WebAppsClient.NewListInstanceProcessModulesSlotPager": + res.resp, res.err = w.dispatchNewListInstanceProcessModulesSlotPager(req) + case "WebAppsClient.NewListInstanceProcessThreadsPager": + res.resp, res.err = w.dispatchNewListInstanceProcessThreadsPager(req) + case "WebAppsClient.NewListInstanceProcessThreadsSlotPager": + res.resp, res.err = w.dispatchNewListInstanceProcessThreadsSlotPager(req) + case "WebAppsClient.NewListInstanceProcessesPager": + res.resp, res.err = w.dispatchNewListInstanceProcessesPager(req) + case "WebAppsClient.NewListInstanceProcessesSlotPager": + res.resp, res.err = w.dispatchNewListInstanceProcessesSlotPager(req) + case "WebAppsClient.NewListInstanceWorkflowsSlotPager": + res.resp, res.err = w.dispatchNewListInstanceWorkflowsSlotPager(req) + case "WebAppsClient.ListMetadata": + res.resp, res.err = w.dispatchListMetadata(req) + case "WebAppsClient.ListMetadataSlot": + res.resp, res.err = w.dispatchListMetadataSlot(req) + case "WebAppsClient.ListNetworkFeatures": + res.resp, res.err = w.dispatchListNetworkFeatures(req) + case "WebAppsClient.ListNetworkFeaturesSlot": + res.resp, res.err = w.dispatchListNetworkFeaturesSlot(req) + case "WebAppsClient.NewListPerfMonCountersPager": + res.resp, res.err = w.dispatchNewListPerfMonCountersPager(req) + case "WebAppsClient.NewListPerfMonCountersSlotPager": + res.resp, res.err = w.dispatchNewListPerfMonCountersSlotPager(req) + case "WebAppsClient.ListPremierAddOns": + res.resp, res.err = w.dispatchListPremierAddOns(req) + case "WebAppsClient.ListPremierAddOnsSlot": + res.resp, res.err = w.dispatchListPremierAddOnsSlot(req) + case "WebAppsClient.NewListProcessModulesPager": + res.resp, res.err = w.dispatchNewListProcessModulesPager(req) + case "WebAppsClient.NewListProcessModulesSlotPager": + res.resp, res.err = w.dispatchNewListProcessModulesSlotPager(req) + case "WebAppsClient.NewListProcessThreadsPager": + res.resp, res.err = w.dispatchNewListProcessThreadsPager(req) + case "WebAppsClient.NewListProcessThreadsSlotPager": + res.resp, res.err = w.dispatchNewListProcessThreadsSlotPager(req) + case "WebAppsClient.NewListProcessesPager": + res.resp, res.err = w.dispatchNewListProcessesPager(req) + case "WebAppsClient.NewListProcessesSlotPager": + res.resp, res.err = w.dispatchNewListProcessesSlotPager(req) + case "WebAppsClient.NewListProductionSiteDeploymentStatusesPager": + res.resp, res.err = w.dispatchNewListProductionSiteDeploymentStatusesPager(req) + case "WebAppsClient.NewListPublicCertificatesPager": + res.resp, res.err = w.dispatchNewListPublicCertificatesPager(req) + case "WebAppsClient.NewListPublicCertificatesSlotPager": + res.resp, res.err = w.dispatchNewListPublicCertificatesSlotPager(req) + case "WebAppsClient.BeginListPublishingCredentials": + res.resp, res.err = w.dispatchBeginListPublishingCredentials(req) + case "WebAppsClient.BeginListPublishingCredentialsSlot": + res.resp, res.err = w.dispatchBeginListPublishingCredentialsSlot(req) + case "WebAppsClient.ListPublishingProfileXMLWithSecrets": + res.resp, res.err = w.dispatchListPublishingProfileXMLWithSecrets(req) + case "WebAppsClient.ListPublishingProfileXMLWithSecretsSlot": + res.resp, res.err = w.dispatchListPublishingProfileXMLWithSecretsSlot(req) + case "WebAppsClient.ListRelayServiceConnections": + res.resp, res.err = w.dispatchListRelayServiceConnections(req) + case "WebAppsClient.ListRelayServiceConnectionsSlot": + res.resp, res.err = w.dispatchListRelayServiceConnectionsSlot(req) + case "WebAppsClient.NewListSiteBackupsPager": + res.resp, res.err = w.dispatchNewListSiteBackupsPager(req) + case "WebAppsClient.NewListSiteBackupsSlotPager": + res.resp, res.err = w.dispatchNewListSiteBackupsSlotPager(req) + case "WebAppsClient.NewListSiteContainersPager": + res.resp, res.err = w.dispatchNewListSiteContainersPager(req) + case "WebAppsClient.NewListSiteContainersSlotPager": + res.resp, res.err = w.dispatchNewListSiteContainersSlotPager(req) + case "WebAppsClient.NewListSiteExtensionsPager": + res.resp, res.err = w.dispatchNewListSiteExtensionsPager(req) + case "WebAppsClient.NewListSiteExtensionsSlotPager": + res.resp, res.err = w.dispatchNewListSiteExtensionsSlotPager(req) + case "WebAppsClient.ListSitePushSettings": + res.resp, res.err = w.dispatchListSitePushSettings(req) + case "WebAppsClient.ListSitePushSettingsSlot": + res.resp, res.err = w.dispatchListSitePushSettingsSlot(req) + case "WebAppsClient.ListSlotConfigurationNames": + res.resp, res.err = w.dispatchListSlotConfigurationNames(req) + case "WebAppsClient.NewListSlotDifferencesFromProductionPager": + res.resp, res.err = w.dispatchNewListSlotDifferencesFromProductionPager(req) + case "WebAppsClient.NewListSlotDifferencesSlotPager": + res.resp, res.err = w.dispatchNewListSlotDifferencesSlotPager(req) + case "WebAppsClient.NewListSlotSiteDeploymentStatusesSlotPager": + res.resp, res.err = w.dispatchNewListSlotSiteDeploymentStatusesSlotPager(req) + case "WebAppsClient.NewListSlotsPager": + res.resp, res.err = w.dispatchNewListSlotsPager(req) + case "WebAppsClient.NewListSnapshotsPager": + res.resp, res.err = w.dispatchNewListSnapshotsPager(req) + case "WebAppsClient.NewListSnapshotsFromDRSecondaryPager": + res.resp, res.err = w.dispatchNewListSnapshotsFromDRSecondaryPager(req) + case "WebAppsClient.NewListSnapshotsFromDRSecondarySlotPager": + res.resp, res.err = w.dispatchNewListSnapshotsFromDRSecondarySlotPager(req) + case "WebAppsClient.NewListSnapshotsSlotPager": + res.resp, res.err = w.dispatchNewListSnapshotsSlotPager(req) + case "WebAppsClient.ListSyncFunctionTriggers": + res.resp, res.err = w.dispatchListSyncFunctionTriggers(req) + case "WebAppsClient.ListSyncFunctionTriggersSlot": + res.resp, res.err = w.dispatchListSyncFunctionTriggersSlot(req) + case "WebAppsClient.ListSyncStatus": + res.resp, res.err = w.dispatchListSyncStatus(req) + case "WebAppsClient.ListSyncStatusSlot": + res.resp, res.err = w.dispatchListSyncStatusSlot(req) + case "WebAppsClient.NewListTriggeredWebJobHistoryPager": + res.resp, res.err = w.dispatchNewListTriggeredWebJobHistoryPager(req) + case "WebAppsClient.NewListTriggeredWebJobHistorySlotPager": + res.resp, res.err = w.dispatchNewListTriggeredWebJobHistorySlotPager(req) + case "WebAppsClient.NewListTriggeredWebJobsPager": + res.resp, res.err = w.dispatchNewListTriggeredWebJobsPager(req) + case "WebAppsClient.NewListTriggeredWebJobsSlotPager": + res.resp, res.err = w.dispatchNewListTriggeredWebJobsSlotPager(req) + case "WebAppsClient.NewListUsagesPager": + res.resp, res.err = w.dispatchNewListUsagesPager(req) + case "WebAppsClient.NewListUsagesSlotPager": + res.resp, res.err = w.dispatchNewListUsagesSlotPager(req) + case "WebAppsClient.ListVnetConnections": + res.resp, res.err = w.dispatchListVnetConnections(req) + case "WebAppsClient.ListVnetConnectionsSlot": + res.resp, res.err = w.dispatchListVnetConnectionsSlot(req) + case "WebAppsClient.NewListWebJobsPager": + res.resp, res.err = w.dispatchNewListWebJobsPager(req) + case "WebAppsClient.NewListWebJobsSlotPager": + res.resp, res.err = w.dispatchNewListWebJobsSlotPager(req) + case "WebAppsClient.NewListWorkflowsPager": + res.resp, res.err = w.dispatchNewListWorkflowsPager(req) + case "WebAppsClient.ListWorkflowsConnections": + res.resp, res.err = w.dispatchListWorkflowsConnections(req) + case "WebAppsClient.ListWorkflowsConnectionsSlot": + res.resp, res.err = w.dispatchListWorkflowsConnectionsSlot(req) + case "WebAppsClient.BeginMigrateMySQL": + res.resp, res.err = w.dispatchBeginMigrateMySQL(req) + case "WebAppsClient.BeginMigrateStorage": + res.resp, res.err = w.dispatchBeginMigrateStorage(req) + case "WebAppsClient.PutPrivateAccessVnet": + res.resp, res.err = w.dispatchPutPrivateAccessVnet(req) + case "WebAppsClient.PutPrivateAccessVnetSlot": + res.resp, res.err = w.dispatchPutPrivateAccessVnetSlot(req) + case "WebAppsClient.RecoverSiteConfigurationSnapshot": + res.resp, res.err = w.dispatchRecoverSiteConfigurationSnapshot(req) + case "WebAppsClient.RecoverSiteConfigurationSnapshotSlot": + res.resp, res.err = w.dispatchRecoverSiteConfigurationSnapshotSlot(req) + case "WebAppsClient.ResetProductionSlotConfig": + res.resp, res.err = w.dispatchResetProductionSlotConfig(req) + case "WebAppsClient.ResetSlotConfigurationSlot": + res.resp, res.err = w.dispatchResetSlotConfigurationSlot(req) + case "WebAppsClient.Restart": + res.resp, res.err = w.dispatchRestart(req) + case "WebAppsClient.RestartSlot": + res.resp, res.err = w.dispatchRestartSlot(req) + case "WebAppsClient.BeginRestore": + res.resp, res.err = w.dispatchBeginRestore(req) + case "WebAppsClient.BeginRestoreFromBackupBlob": + res.resp, res.err = w.dispatchBeginRestoreFromBackupBlob(req) + case "WebAppsClient.BeginRestoreFromBackupBlobSlot": + res.resp, res.err = w.dispatchBeginRestoreFromBackupBlobSlot(req) + case "WebAppsClient.BeginRestoreFromDeletedApp": + res.resp, res.err = w.dispatchBeginRestoreFromDeletedApp(req) + case "WebAppsClient.BeginRestoreFromDeletedAppSlot": + res.resp, res.err = w.dispatchBeginRestoreFromDeletedAppSlot(req) + case "WebAppsClient.BeginRestoreSlot": + res.resp, res.err = w.dispatchBeginRestoreSlot(req) + case "WebAppsClient.BeginRestoreSnapshot": + res.resp, res.err = w.dispatchBeginRestoreSnapshot(req) + case "WebAppsClient.BeginRestoreSnapshotSlot": + res.resp, res.err = w.dispatchBeginRestoreSnapshotSlot(req) + case "WebAppsClient.RunTriggeredWebJob": + res.resp, res.err = w.dispatchRunTriggeredWebJob(req) + case "WebAppsClient.RunTriggeredWebJobSlot": + res.resp, res.err = w.dispatchRunTriggeredWebJobSlot(req) + case "WebAppsClient.Start": + res.resp, res.err = w.dispatchStart(req) + case "WebAppsClient.StartContinuousWebJob": + res.resp, res.err = w.dispatchStartContinuousWebJob(req) + case "WebAppsClient.StartContinuousWebJobSlot": + res.resp, res.err = w.dispatchStartContinuousWebJobSlot(req) + case "WebAppsClient.BeginStartNetworkTrace": + res.resp, res.err = w.dispatchBeginStartNetworkTrace(req) + case "WebAppsClient.BeginStartNetworkTraceSlot": + res.resp, res.err = w.dispatchBeginStartNetworkTraceSlot(req) + case "WebAppsClient.StartSlot": + res.resp, res.err = w.dispatchStartSlot(req) + case "WebAppsClient.StartWebSiteNetworkTrace": + res.resp, res.err = w.dispatchStartWebSiteNetworkTrace(req) + case "WebAppsClient.BeginStartWebSiteNetworkTraceOperation": + res.resp, res.err = w.dispatchBeginStartWebSiteNetworkTraceOperation(req) + case "WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot": + res.resp, res.err = w.dispatchBeginStartWebSiteNetworkTraceOperationSlot(req) + case "WebAppsClient.StartWebSiteNetworkTraceSlot": + res.resp, res.err = w.dispatchStartWebSiteNetworkTraceSlot(req) + case "WebAppsClient.Stop": + res.resp, res.err = w.dispatchStop(req) + case "WebAppsClient.StopContinuousWebJob": + res.resp, res.err = w.dispatchStopContinuousWebJob(req) + case "WebAppsClient.StopContinuousWebJobSlot": + res.resp, res.err = w.dispatchStopContinuousWebJobSlot(req) + case "WebAppsClient.StopNetworkTrace": + res.resp, res.err = w.dispatchStopNetworkTrace(req) + case "WebAppsClient.StopNetworkTraceSlot": + res.resp, res.err = w.dispatchStopNetworkTraceSlot(req) + case "WebAppsClient.StopSlot": + res.resp, res.err = w.dispatchStopSlot(req) + case "WebAppsClient.StopWebSiteNetworkTrace": + res.resp, res.err = w.dispatchStopWebSiteNetworkTrace(req) + case "WebAppsClient.StopWebSiteNetworkTraceSlot": + res.resp, res.err = w.dispatchStopWebSiteNetworkTraceSlot(req) + case "WebAppsClient.BeginSwapSlot": + res.resp, res.err = w.dispatchBeginSwapSlot(req) + case "WebAppsClient.BeginSwapSlotWithProduction": + res.resp, res.err = w.dispatchBeginSwapSlotWithProduction(req) + case "WebAppsClient.SyncFunctionTriggers": + res.resp, res.err = w.dispatchSyncFunctionTriggers(req) + case "WebAppsClient.SyncFunctionTriggersSlot": + res.resp, res.err = w.dispatchSyncFunctionTriggersSlot(req) + case "WebAppsClient.SyncFunctions": + res.resp, res.err = w.dispatchSyncFunctions(req) + case "WebAppsClient.SyncFunctionsSlot": + res.resp, res.err = w.dispatchSyncFunctionsSlot(req) + case "WebAppsClient.SyncRepository": + res.resp, res.err = w.dispatchSyncRepository(req) + case "WebAppsClient.SyncRepositorySlot": + res.resp, res.err = w.dispatchSyncRepositorySlot(req) + case "WebAppsClient.Update": + res.resp, res.err = w.dispatchUpdate(req) + case "WebAppsClient.UpdateApplicationSettings": + res.resp, res.err = w.dispatchUpdateApplicationSettings(req) + case "WebAppsClient.UpdateApplicationSettingsSlot": + res.resp, res.err = w.dispatchUpdateApplicationSettingsSlot(req) + case "WebAppsClient.UpdateAuthSettings": + res.resp, res.err = w.dispatchUpdateAuthSettings(req) + case "WebAppsClient.UpdateAuthSettingsSlot": + res.resp, res.err = w.dispatchUpdateAuthSettingsSlot(req) + case "WebAppsClient.UpdateAuthSettingsV2": + res.resp, res.err = w.dispatchUpdateAuthSettingsV2(req) + case "WebAppsClient.UpdateAuthSettingsV2Slot": + res.resp, res.err = w.dispatchUpdateAuthSettingsV2Slot(req) + case "WebAppsClient.UpdateAzureStorageAccounts": + res.resp, res.err = w.dispatchUpdateAzureStorageAccounts(req) + case "WebAppsClient.UpdateAzureStorageAccountsSlot": + res.resp, res.err = w.dispatchUpdateAzureStorageAccountsSlot(req) + case "WebAppsClient.UpdateBackupConfiguration": + res.resp, res.err = w.dispatchUpdateBackupConfiguration(req) + case "WebAppsClient.UpdateBackupConfigurationSlot": + res.resp, res.err = w.dispatchUpdateBackupConfigurationSlot(req) + case "WebAppsClient.UpdateConfiguration": + res.resp, res.err = w.dispatchUpdateConfiguration(req) + case "WebAppsClient.UpdateConfigurationSlot": + res.resp, res.err = w.dispatchUpdateConfigurationSlot(req) + case "WebAppsClient.UpdateConnectionStrings": + res.resp, res.err = w.dispatchUpdateConnectionStrings(req) + case "WebAppsClient.UpdateConnectionStringsSlot": + res.resp, res.err = w.dispatchUpdateConnectionStringsSlot(req) + case "WebAppsClient.UpdateDiagnosticLogsConfig": + res.resp, res.err = w.dispatchUpdateDiagnosticLogsConfig(req) + case "WebAppsClient.UpdateDiagnosticLogsConfigSlot": + res.resp, res.err = w.dispatchUpdateDiagnosticLogsConfigSlot(req) + case "WebAppsClient.UpdateDomainOwnershipIdentifier": + res.resp, res.err = w.dispatchUpdateDomainOwnershipIdentifier(req) + case "WebAppsClient.UpdateDomainOwnershipIdentifierSlot": + res.resp, res.err = w.dispatchUpdateDomainOwnershipIdentifierSlot(req) + case "WebAppsClient.UpdateFtpAllowed": + res.resp, res.err = w.dispatchUpdateFtpAllowed(req) + case "WebAppsClient.UpdateFtpAllowedSlot": + res.resp, res.err = w.dispatchUpdateFtpAllowedSlot(req) + case "WebAppsClient.UpdateHybridConnection": + res.resp, res.err = w.dispatchUpdateHybridConnection(req) + case "WebAppsClient.UpdateHybridConnectionSlot": + res.resp, res.err = w.dispatchUpdateHybridConnectionSlot(req) + case "WebAppsClient.UpdateMachineKey": + res.resp, res.err = w.dispatchUpdateMachineKey(req) + case "WebAppsClient.UpdateMetadata": + res.resp, res.err = w.dispatchUpdateMetadata(req) + case "WebAppsClient.UpdateMetadataSlot": + res.resp, res.err = w.dispatchUpdateMetadataSlot(req) + case "WebAppsClient.UpdatePremierAddOn": + res.resp, res.err = w.dispatchUpdatePremierAddOn(req) + case "WebAppsClient.UpdatePremierAddOnSlot": + res.resp, res.err = w.dispatchUpdatePremierAddOnSlot(req) + case "WebAppsClient.UpdateRelayServiceConnection": + res.resp, res.err = w.dispatchUpdateRelayServiceConnection(req) + case "WebAppsClient.UpdateRelayServiceConnectionSlot": + res.resp, res.err = w.dispatchUpdateRelayServiceConnectionSlot(req) + case "WebAppsClient.UpdateScmAllowed": + res.resp, res.err = w.dispatchUpdateScmAllowed(req) + case "WebAppsClient.UpdateScmAllowedSlot": + res.resp, res.err = w.dispatchUpdateScmAllowedSlot(req) + case "WebAppsClient.UpdateSitePushSettings": + res.resp, res.err = w.dispatchUpdateSitePushSettings(req) + case "WebAppsClient.UpdateSitePushSettingsSlot": + res.resp, res.err = w.dispatchUpdateSitePushSettingsSlot(req) + case "WebAppsClient.UpdateSlot": + res.resp, res.err = w.dispatchUpdateSlot(req) + case "WebAppsClient.UpdateSlotConfigurationNames": + res.resp, res.err = w.dispatchUpdateSlotConfigurationNames(req) + case "WebAppsClient.UpdateSourceControl": + res.resp, res.err = w.dispatchUpdateSourceControl(req) + case "WebAppsClient.UpdateSourceControlSlot": + res.resp, res.err = w.dispatchUpdateSourceControlSlot(req) + case "WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheck": + res.resp, res.err = w.dispatchUpdateSwiftVirtualNetworkConnectionWithCheck(req) + case "WebAppsClient.UpdateSwiftVirtualNetworkConnectionWithCheckSlot": + res.resp, res.err = w.dispatchUpdateSwiftVirtualNetworkConnectionWithCheckSlot(req) + case "WebAppsClient.UpdateVnetConnection": + res.resp, res.err = w.dispatchUpdateVnetConnection(req) + case "WebAppsClient.UpdateVnetConnectionGateway": + res.resp, res.err = w.dispatchUpdateVnetConnectionGateway(req) + case "WebAppsClient.UpdateVnetConnectionGatewaySlot": + res.resp, res.err = w.dispatchUpdateVnetConnectionGatewaySlot(req) + case "WebAppsClient.UpdateVnetConnectionSlot": + res.resp, res.err = w.dispatchUpdateVnetConnectionSlot(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - if err != nil { - return nil, err - } + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() - return resp, nil + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WebAppsServerTransport) dispatchAddPremierAddOn(req *http.Request) (*http.Response, error) { @@ -3342,9 +3358,9 @@ func (w *WebAppsServerTransport) dispatchBeginCreateFunction(req *http.Request) return nil, err } - if !contains([]int{http.StatusCreated}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { w.beginCreateFunction.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusCreated", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateFunction) { w.beginCreateFunction.remove(req) @@ -3398,9 +3414,9 @@ func (w *WebAppsServerTransport) dispatchBeginCreateInstanceFunctionSlot(req *ht return nil, err } - if !contains([]int{http.StatusCreated}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { w.beginCreateInstanceFunctionSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusCreated", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateInstanceFunctionSlot) { w.beginCreateInstanceFunctionSlot.remove(req) @@ -3450,9 +3466,9 @@ func (w *WebAppsServerTransport) dispatchBeginCreateInstanceMSDeployOperation(re return nil, err } - if !contains([]int{http.StatusCreated}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { w.beginCreateInstanceMSDeployOperation.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusCreated", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateInstanceMSDeployOperation) { w.beginCreateInstanceMSDeployOperation.remove(req) @@ -3506,9 +3522,9 @@ func (w *WebAppsServerTransport) dispatchBeginCreateInstanceMSDeployOperationSlo return nil, err } - if !contains([]int{http.StatusCreated}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { w.beginCreateInstanceMSDeployOperationSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusCreated", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateInstanceMSDeployOperationSlot) { w.beginCreateInstanceMSDeployOperationSlot.remove(req) @@ -3554,9 +3570,9 @@ func (w *WebAppsServerTransport) dispatchBeginCreateMSDeployOperation(req *http. return nil, err } - if !contains([]int{http.StatusCreated}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { w.beginCreateMSDeployOperation.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusCreated", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateMSDeployOperation) { w.beginCreateMSDeployOperation.remove(req) @@ -3606,9 +3622,9 @@ func (w *WebAppsServerTransport) dispatchBeginCreateMSDeployOperationSlot(req *h return nil, err } - if !contains([]int{http.StatusCreated}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { w.beginCreateMSDeployOperationSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusCreated", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} } if !server.PollerResponderMore(beginCreateMSDeployOperationSlot) { w.beginCreateMSDeployOperationSlot.remove(req) @@ -7755,7 +7771,7 @@ func (w *WebAppsServerTransport) dispatchGetContainerLogsZip(req *http.Request) } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -7795,7 +7811,7 @@ func (w *WebAppsServerTransport) dispatchGetContainerLogsZipSlot(req *http.Reque } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -8800,7 +8816,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessDump(req *http.Reques } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -8848,7 +8864,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessDumpSlot(req *http.Re } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -10042,7 +10058,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessDump(req *http.Request) (*htt } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -10086,7 +10102,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessDumpSlot(req *http.Request) ( } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -11548,7 +11564,7 @@ func (w *WebAppsServerTransport) dispatchGetWebSiteContainerLogs(req *http.Reque } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -11588,7 +11604,7 @@ func (w *WebAppsServerTransport) dispatchGetWebSiteContainerLogsSlot(req *http.R } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -14614,7 +14630,7 @@ func (w *WebAppsServerTransport) dispatchListPublishingProfileXMLWithSecrets(req } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -14658,7 +14674,7 @@ func (w *WebAppsServerTransport) dispatchListPublishingProfileXMLWithSecretsSlot } resp, err := server.NewResponse(respContent, req, &server.ResponseOptions{ Body: server.GetResponse(respr).Body, - ContentType: "application/octet-stream", + ContentType: req.Header.Get("Content-Type"), }) if err != nil { return nil, err @@ -16632,9 +16648,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestore(req *http.Request) (*http. return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestore.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestore) { w.beginRestore.remove(req) @@ -16680,9 +16696,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromBackupBlob(req *http.Re return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreFromBackupBlob.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreFromBackupBlob) { w.beginRestoreFromBackupBlob.remove(req) @@ -16732,9 +16748,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromBackupBlobSlot(req *htt return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreFromBackupBlobSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreFromBackupBlobSlot) { w.beginRestoreFromBackupBlobSlot.remove(req) @@ -16780,9 +16796,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromDeletedApp(req *http.Re return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreFromDeletedApp.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreFromDeletedApp) { w.beginRestoreFromDeletedApp.remove(req) @@ -16832,9 +16848,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromDeletedAppSlot(req *htt return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreFromDeletedAppSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreFromDeletedAppSlot) { w.beginRestoreFromDeletedAppSlot.remove(req) @@ -16888,9 +16904,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreSlot(req *http.Request) (*h return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreSlot) { w.beginRestoreSlot.remove(req) @@ -16936,9 +16952,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreSnapshot(req *http.Request) return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreSnapshot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreSnapshot) { w.beginRestoreSnapshot.remove(req) @@ -16988,9 +17004,9 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreSnapshotSlot(req *http.Requ return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRestoreSnapshotSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRestoreSnapshotSlot) { w.beginRestoreSnapshotSlot.remove(req) @@ -18060,9 +18076,9 @@ func (w *WebAppsServerTransport) dispatchBeginSwapSlot(req *http.Request) (*http return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginSwapSlot.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginSwapSlot) { w.beginSwapSlot.remove(req) @@ -18108,9 +18124,9 @@ func (w *WebAppsServerTransport) dispatchBeginSwapSlotWithProduction(req *http.R return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginSwapSlotWithProduction.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginSwapSlotWithProduction) { w.beginSwapSlotWithProduction.remove(req) @@ -20100,3 +20116,9 @@ func (w *WebAppsServerTransport) dispatchUpdateVnetConnectionSlot(req *http.Requ } return resp, nil } + +// set this to conditionally intercept incoming requests to WebAppsServerTransport +var webAppsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go b/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go index d2ed56fa1384..ca829122e1fb 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -135,55 +132,74 @@ func (w *WebSiteManagementServerTransport) Do(req *http.Request) (*http.Response return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error - - switch method { - case "WebSiteManagementClient.CheckNameAvailability": - resp, err = w.dispatchCheckNameAvailability(req) - case "WebSiteManagementClient.GetPublishingUser": - resp, err = w.dispatchGetPublishingUser(req) - case "WebSiteManagementClient.GetSourceControl": - resp, err = w.dispatchGetSourceControl(req) - case "WebSiteManagementClient.GetSubscriptionDeploymentLocations": - resp, err = w.dispatchGetSubscriptionDeploymentLocations(req) - case "WebSiteManagementClient.NewListAseRegionsPager": - resp, err = w.dispatchNewListAseRegionsPager(req) - case "WebSiteManagementClient.NewListBillingMetersPager": - resp, err = w.dispatchNewListBillingMetersPager(req) - case "WebSiteManagementClient.NewListCustomHostNameSitesPager": - resp, err = w.dispatchNewListCustomHostNameSitesPager(req) - case "WebSiteManagementClient.NewListGeoRegionsPager": - resp, err = w.dispatchNewListGeoRegionsPager(req) - case "WebSiteManagementClient.NewListPremierAddOnOffersPager": - resp, err = w.dispatchNewListPremierAddOnOffersPager(req) - case "WebSiteManagementClient.ListSKUs": - resp, err = w.dispatchListSKUs(req) - case "WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager": - resp, err = w.dispatchNewListSiteIdentifiersAssignedToHostNamePager(req) - case "WebSiteManagementClient.NewListSourceControlsPager": - resp, err = w.dispatchNewListSourceControlsPager(req) - case "WebSiteManagementClient.Move": - resp, err = w.dispatchMove(req) - case "WebSiteManagementClient.UpdatePublishingUser": - resp, err = w.dispatchUpdatePublishingUser(req) - case "WebSiteManagementClient.UpdateSourceControl": - resp, err = w.dispatchUpdateSourceControl(req) - case "WebSiteManagementClient.Validate": - resp, err = w.dispatchValidate(req) - case "WebSiteManagementClient.ValidateMove": - resp, err = w.dispatchValidateMove(req) - case "WebSiteManagementClient.VerifyHostingEnvironmentVnet": - resp, err = w.dispatchVerifyHostingEnvironmentVnet(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } + return w.dispatchToMethodFake(req, method) +} - if err != nil { - return nil, err - } +func (w *WebSiteManagementServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - return resp, nil + go func() { + var intercepted bool + var res result + if webSiteManagementServerTransportInterceptor != nil { + res.resp, res.err, intercepted = webSiteManagementServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WebSiteManagementClient.CheckNameAvailability": + res.resp, res.err = w.dispatchCheckNameAvailability(req) + case "WebSiteManagementClient.GetPublishingUser": + res.resp, res.err = w.dispatchGetPublishingUser(req) + case "WebSiteManagementClient.GetSourceControl": + res.resp, res.err = w.dispatchGetSourceControl(req) + case "WebSiteManagementClient.GetSubscriptionDeploymentLocations": + res.resp, res.err = w.dispatchGetSubscriptionDeploymentLocations(req) + case "WebSiteManagementClient.NewListAseRegionsPager": + res.resp, res.err = w.dispatchNewListAseRegionsPager(req) + case "WebSiteManagementClient.NewListBillingMetersPager": + res.resp, res.err = w.dispatchNewListBillingMetersPager(req) + case "WebSiteManagementClient.NewListCustomHostNameSitesPager": + res.resp, res.err = w.dispatchNewListCustomHostNameSitesPager(req) + case "WebSiteManagementClient.NewListGeoRegionsPager": + res.resp, res.err = w.dispatchNewListGeoRegionsPager(req) + case "WebSiteManagementClient.NewListPremierAddOnOffersPager": + res.resp, res.err = w.dispatchNewListPremierAddOnOffersPager(req) + case "WebSiteManagementClient.ListSKUs": + res.resp, res.err = w.dispatchListSKUs(req) + case "WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager": + res.resp, res.err = w.dispatchNewListSiteIdentifiersAssignedToHostNamePager(req) + case "WebSiteManagementClient.NewListSourceControlsPager": + res.resp, res.err = w.dispatchNewListSourceControlsPager(req) + case "WebSiteManagementClient.Move": + res.resp, res.err = w.dispatchMove(req) + case "WebSiteManagementClient.UpdatePublishingUser": + res.resp, res.err = w.dispatchUpdatePublishingUser(req) + case "WebSiteManagementClient.UpdateSourceControl": + res.resp, res.err = w.dispatchUpdateSourceControl(req) + case "WebSiteManagementClient.Validate": + res.resp, res.err = w.dispatchValidate(req) + case "WebSiteManagementClient.ValidateMove": + res.resp, res.err = w.dispatchValidateMove(req) + case "WebSiteManagementClient.VerifyHostingEnvironmentVnet": + res.resp, res.err = w.dispatchVerifyHostingEnvironmentVnet(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } + + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WebSiteManagementServerTransport) dispatchCheckNameAvailability(req *http.Request) (*http.Response, error) { @@ -794,3 +810,9 @@ func (w *WebSiteManagementServerTransport) dispatchVerifyHostingEnvironmentVnet( } return resp, nil } + +// set this to conditionally intercept incoming requests to WebSiteManagementServerTransport +var webSiteManagementServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go index fcb4f34529a8..6be758e8eb0d 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -64,25 +61,44 @@ func (w *WorkflowRunActionRepetitionsServerTransport) Do(req *http.Request) (*ht return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowRunActionRepetitionsClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowRunActionRepetitionsClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - case "WorkflowRunActionRepetitionsClient.NewListExpressionTracesPager": - resp, err = w.dispatchNewListExpressionTracesPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowRunActionRepetitionsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowRunActionRepetitionsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowRunActionRepetitionsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowRunActionRepetitionsClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowRunActionRepetitionsClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + case "WorkflowRunActionRepetitionsClient.NewListExpressionTracesPager": + res.resp, res.err = w.dispatchNewListExpressionTracesPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowRunActionRepetitionsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -243,3 +259,9 @@ func (w *WorkflowRunActionRepetitionsServerTransport) dispatchNewListExpressionT } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowRunActionRepetitionsServerTransport +var workflowRunActionRepetitionsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go index d0ba77c8d38e..7d5988ecaf66 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -58,23 +55,42 @@ func (w *WorkflowRunActionRepetitionsRequestHistoriesServerTransport) Do(req *ht return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowRunActionRepetitionsRequestHistoriesClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowRunActionRepetitionsRequestHistoriesClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowRunActionRepetitionsRequestHistoriesServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowRunActionRepetitionsRequestHistoriesServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowRunActionRepetitionsRequestHistoriesServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowRunActionRepetitionsRequestHistoriesClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowRunActionRepetitionsRequestHistoriesClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowRunActionRepetitionsRequestHistoriesServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -186,3 +202,9 @@ func (w *WorkflowRunActionRepetitionsRequestHistoriesServerTransport) dispatchNe } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowRunActionRepetitionsRequestHistoriesServerTransport +var workflowRunActionRepetitionsRequestHistoriesServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go index afd0ce7710cb..f4ff921fdd1b 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -65,25 +62,44 @@ func (w *WorkflowRunActionsServerTransport) Do(req *http.Request) (*http.Respons return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowRunActionsClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowRunActionsClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - case "WorkflowRunActionsClient.NewListExpressionTracesPager": - resp, err = w.dispatchNewListExpressionTracesPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowRunActionsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowRunActionsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowRunActionsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowRunActionsClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowRunActionsClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + case "WorkflowRunActionsClient.NewListExpressionTracesPager": + res.resp, res.err = w.dispatchNewListExpressionTracesPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowRunActionsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -259,3 +275,9 @@ func (w *WorkflowRunActionsServerTransport) dispatchNewListExpressionTracesPager } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowRunActionsServerTransport +var workflowRunActionsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go index 1f15ab408180..beb8e282f8e2 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -58,23 +55,42 @@ func (w *WorkflowRunActionScopeRepetitionsServerTransport) Do(req *http.Request) return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowRunActionScopeRepetitionsClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowRunActionScopeRepetitionsClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowRunActionScopeRepetitionsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowRunActionScopeRepetitionsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowRunActionScopeRepetitionsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowRunActionScopeRepetitionsClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowRunActionScopeRepetitionsClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowRunActionScopeRepetitionsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -178,3 +194,9 @@ func (w *WorkflowRunActionScopeRepetitionsServerTransport) dispatchNewListPager( } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowRunActionScopeRepetitionsServerTransport +var workflowRunActionScopeRepetitionsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go index e36f923c45df..5c7dddf8d069 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -63,25 +60,44 @@ func (w *WorkflowRunsServerTransport) Do(req *http.Request) (*http.Response, err return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowRunsClient.Cancel": - resp, err = w.dispatchCancel(req) - case "WorkflowRunsClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowRunsClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowRunsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowRunsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowRunsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowRunsClient.Cancel": + res.resp, res.err = w.dispatchCancel(req) + case "WorkflowRunsClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowRunsClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowRunsServerTransport) dispatchCancel(req *http.Request) (*http.Response, error) { @@ -237,3 +253,9 @@ func (w *WorkflowRunsServerTransport) dispatchNewListPager(req *http.Request) (* } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowRunsServerTransport +var workflowRunsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go index f7d135dee1fa..84909650f71e 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -15,7 +12,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -53,23 +50,42 @@ func (w *WorkflowsServerTransport) Do(req *http.Request) (*http.Response, error) return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowsClient.RegenerateAccessKey": - resp, err = w.dispatchRegenerateAccessKey(req) - case "WorkflowsClient.Validate": - resp, err = w.dispatchValidate(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowsClient.RegenerateAccessKey": + res.resp, res.err = w.dispatchRegenerateAccessKey(req) + case "WorkflowsClient.Validate": + res.resp, res.err = w.dispatchValidate(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowsServerTransport) dispatchRegenerateAccessKey(req *http.Request) (*http.Response, error) { @@ -153,3 +169,9 @@ func (w *WorkflowsServerTransport) dispatchValidate(req *http.Request) (*http.Re } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowsServerTransport +var workflowsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go index 1e198effd5b3..1318531034b1 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -34,7 +31,7 @@ type WorkflowTriggerHistoriesServer struct { NewListPager func(resourceGroupName string, name string, workflowName string, triggerName string, options *armappservice.WorkflowTriggerHistoriesClientListOptions) (resp azfake.PagerResponder[armappservice.WorkflowTriggerHistoriesClientListResponse]) // BeginResubmit is the fake for method WorkflowTriggerHistoriesClient.BeginResubmit - // HTTP status codes to indicate success: http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginResubmit func(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *armappservice.WorkflowTriggerHistoriesClientBeginResubmitOptions) (resp azfake.PollerResponder[armappservice.WorkflowTriggerHistoriesClientResubmitResponse], errResp azfake.ErrorResponder) } @@ -65,25 +62,44 @@ func (w *WorkflowTriggerHistoriesServerTransport) Do(req *http.Request) (*http.R return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowTriggerHistoriesClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowTriggerHistoriesClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - case "WorkflowTriggerHistoriesClient.BeginResubmit": - resp, err = w.dispatchBeginResubmit(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowTriggerHistoriesServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowTriggerHistoriesServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowTriggerHistoriesServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowTriggerHistoriesClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowTriggerHistoriesClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + case "WorkflowTriggerHistoriesClient.BeginResubmit": + res.resp, res.err = w.dispatchBeginResubmit(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowTriggerHistoriesServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -252,9 +268,9 @@ func (w *WorkflowTriggerHistoriesServerTransport) dispatchBeginResubmit(req *htt return nil, err } - if !contains([]int{http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginResubmit.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginResubmit) { w.beginResubmit.remove(req) @@ -262,3 +278,9 @@ func (w *WorkflowTriggerHistoriesServerTransport) dispatchBeginResubmit(req *htt return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowTriggerHistoriesServerTransport +var workflowTriggerHistoriesServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go index 6515a05ca1df..f9552b104ecd 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -42,7 +39,7 @@ type WorkflowTriggersServer struct { ListCallbackURL func(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *armappservice.WorkflowTriggersClientListCallbackURLOptions) (resp azfake.Responder[armappservice.WorkflowTriggersClientListCallbackURLResponse], errResp azfake.ErrorResponder) // BeginRun is the fake for method WorkflowTriggersClient.BeginRun - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent BeginRun func(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *armappservice.WorkflowTriggersClientBeginRunOptions) (resp azfake.PollerResponder[armappservice.WorkflowTriggersClientRunResponse], errResp azfake.ErrorResponder) } @@ -73,29 +70,48 @@ func (w *WorkflowTriggersServerTransport) Do(req *http.Request) (*http.Response, return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowTriggersClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowTriggersClient.GetSchemaJSON": - resp, err = w.dispatchGetSchemaJSON(req) - case "WorkflowTriggersClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - case "WorkflowTriggersClient.ListCallbackURL": - resp, err = w.dispatchListCallbackURL(req) - case "WorkflowTriggersClient.BeginRun": - resp, err = w.dispatchBeginRun(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowTriggersServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowTriggersServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowTriggersServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowTriggersClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowTriggersClient.GetSchemaJSON": + res.resp, res.err = w.dispatchGetSchemaJSON(req) + case "WorkflowTriggersClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + case "WorkflowTriggersClient.ListCallbackURL": + res.resp, res.err = w.dispatchListCallbackURL(req) + case "WorkflowTriggersClient.BeginRun": + res.resp, res.err = w.dispatchBeginRun(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowTriggersServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -334,9 +350,9 @@ func (w *WorkflowTriggersServerTransport) dispatchBeginRun(req *http.Request) (* return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { w.beginRun.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} } if !server.PollerResponderMore(beginRun) { w.beginRun.remove(req) @@ -344,3 +360,9 @@ func (w *WorkflowTriggersServerTransport) dispatchBeginRun(req *http.Request) (* return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowTriggersServerTransport +var workflowTriggersServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go index fb7408ac5721..5c3d33a5f250 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -16,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" "net/http" "net/url" "regexp" @@ -59,23 +56,42 @@ func (w *WorkflowVersionsServerTransport) Do(req *http.Request) (*http.Response, return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - var resp *http.Response - var err error + return w.dispatchToMethodFake(req, method) +} - switch method { - case "WorkflowVersionsClient.Get": - resp, err = w.dispatchGet(req) - case "WorkflowVersionsClient.NewListPager": - resp, err = w.dispatchNewListPager(req) - default: - err = fmt.Errorf("unhandled API %s", method) - } +func (w *WorkflowVersionsServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { + resultChan := make(chan result) + defer close(resultChan) - if err != nil { - return nil, err - } + go func() { + var intercepted bool + var res result + if workflowVersionsServerTransportInterceptor != nil { + res.resp, res.err, intercepted = workflowVersionsServerTransportInterceptor.Do(req) + } + if !intercepted { + switch method { + case "WorkflowVersionsClient.Get": + res.resp, res.err = w.dispatchGet(req) + case "WorkflowVersionsClient.NewListPager": + res.resp, res.err = w.dispatchNewListPager(req) + default: + res.err = fmt.Errorf("unhandled API %s", method) + } - return resp, nil + } + select { + case resultChan <- res: + case <-req.Context().Done(): + } + }() + + select { + case <-req.Context().Done(): + return nil, req.Context().Err() + case res := <-resultChan: + return res.resp, res.err + } } func (w *WorkflowVersionsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { @@ -184,3 +200,9 @@ func (w *WorkflowVersionsServerTransport) dispatchNewListPager(req *http.Request } return resp, nil } + +// set this to conditionally intercept incoming requests to WorkflowVersionsServerTransport +var workflowVersionsServerTransportInterceptor interface { + // Do returns true if the server transport should use the returned response/error + Do(*http.Request) (*http.Response, error, bool) +} diff --git a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go index bc2017046205..f26e10c72796 100644 --- a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go +++ b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -45,7 +42,7 @@ func NewGetUsagesInLocationClient(subscriptionID string, credential azcore.Token // NewListPager - List usages in cores for all skus used by a subscription in a given location, for a specific quota type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - location - The name of the Azure region. // - options - GetUsagesInLocationClientListOptions contains the optional parameters for the GetUsagesInLocationClient.NewListPager // method. @@ -73,7 +70,7 @@ func (client *GetUsagesInLocationClient) NewListPager(location string, options * } // listCreateRequest creates the List request. -func (client *GetUsagesInLocationClient) listCreateRequest(ctx context.Context, location string, options *GetUsagesInLocationClientListOptions) (*policy.Request, error) { +func (client *GetUsagesInLocationClient) listCreateRequest(ctx context.Context, location string, _ *GetUsagesInLocationClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/usages" if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -88,7 +85,7 @@ func (client *GetUsagesInLocationClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client_example_test.go deleted file mode 100644 index af44d54432d3..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client_example_test.go +++ /dev/null @@ -1,55 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetUsagesInLocation.json -func ExampleGetUsagesInLocationClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewGetUsagesInLocationClient().NewListPager("West US", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmUsageQuotaCollection = armappservice.CsmUsageQuotaCollection{ - // Value: []*armappservice.CsmUsageQuota{ - // { - // Name: &armappservice.LocalizableString{ - // LocalizedValue: to.Ptr("Cores usage in West US"), - // Value: to.Ptr("Cores usage in West US"), - // }, - // CurrentValue: to.Ptr[int64](55), - // Limit: to.Ptr[int64](250), - // Unit: to.Ptr("Core Count"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/global_client.go b/sdk/resourcemanager/appservice/armappservice/global_client.go index 6f17dcab23be..768f56729dfd 100644 --- a/sdk/resourcemanager/appservice/armappservice/global_client.go +++ b/sdk/resourcemanager/appservice/armappservice/global_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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) { @@ -72,7 +69,7 @@ func (client *GlobalClient) GetDeletedWebApp(ctx context.Context, deletedSiteID } // getDeletedWebAppCreateRequest creates the GetDeletedWebApp request. -func (client *GlobalClient) getDeletedWebAppCreateRequest(ctx context.Context, deletedSiteID string, options *GlobalClientGetDeletedWebAppOptions) (*policy.Request, error) { +func (client *GlobalClient) getDeletedWebAppCreateRequest(ctx context.Context, deletedSiteID string, _ *GlobalClientGetDeletedWebAppOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}" if deletedSiteID == "" { return nil, errors.New("parameter deletedSiteID cannot be empty") @@ -87,7 +84,7 @@ func (client *GlobalClient) getDeletedWebAppCreateRequest(ctx context.Context, d return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -105,7 +102,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 // - options - GlobalClientGetDeletedWebAppSnapshotsOptions contains the optional parameters for the GlobalClient.GetDeletedWebAppSnapshots // method. @@ -132,7 +129,7 @@ func (client *GlobalClient) GetDeletedWebAppSnapshots(ctx context.Context, delet } // getDeletedWebAppSnapshotsCreateRequest creates the GetDeletedWebAppSnapshots request. -func (client *GlobalClient) getDeletedWebAppSnapshotsCreateRequest(ctx context.Context, deletedSiteID string, options *GlobalClientGetDeletedWebAppSnapshotsOptions) (*policy.Request, error) { +func (client *GlobalClient) getDeletedWebAppSnapshotsCreateRequest(ctx context.Context, deletedSiteID string, _ *GlobalClientGetDeletedWebAppSnapshotsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}/snapshots" if deletedSiteID == "" { return nil, errors.New("parameter deletedSiteID cannot be empty") @@ -147,7 +144,7 @@ func (client *GlobalClient) getDeletedWebAppSnapshotsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -165,7 +162,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - location - Location name // - operationID - Operation Id // - options - GlobalClientGetSubscriptionOperationWithAsyncResponseOptions contains the optional parameters for the GlobalClient.GetSubscriptionOperationWithAsyncResponse @@ -192,7 +189,7 @@ func (client *GlobalClient) GetSubscriptionOperationWithAsyncResponse(ctx contex } // getSubscriptionOperationWithAsyncResponseCreateRequest creates the GetSubscriptionOperationWithAsyncResponse request. -func (client *GlobalClient) getSubscriptionOperationWithAsyncResponseCreateRequest(ctx context.Context, location string, operationID string, options *GlobalClientGetSubscriptionOperationWithAsyncResponseOptions) (*policy.Request, error) { +func (client *GlobalClient) getSubscriptionOperationWithAsyncResponseCreateRequest(ctx context.Context, location string, operationID string, _ *GlobalClientGetSubscriptionOperationWithAsyncResponseOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/operations/{operationId}" if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -211,7 +208,7 @@ func (client *GlobalClient) getSubscriptionOperationWithAsyncResponseCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 bb39ab92d920..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/global_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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalClient().GetDeletedWebApp(ctx, "9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DeletedSite = armappservice.DeletedSite{ - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6"), - // Properties: &armappservice.DeletedSiteProperties{ - // DeletedSiteID: to.Ptr[int32](9), - // DeletedSiteName: to.Ptr("wussite6"), - // DeletedTimestamp: to.Ptr("2019-05-09T22:29:05.1337007"), - // GeoRegionName: to.Ptr("West US 2"), - // Kind: to.Ptr("app"), - // ResourceGroup: to.Ptr("rg1"), - // Slot: to.Ptr("Production"), - // Subscription: to.Ptr("34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewGlobalClient().GetDeletedWebAppSnapshots(ctx, "9", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SnapshotArray = []*armappservice.Snapshot{ - // { - // Name: to.Ptr("wussite6"), - // Type: to.Ptr("Microsoft.Web/locations/deletedSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg1/providers/Microsoft.Web/locations/West US 2/deletedwebapps/wussite6/snapshots/9"), - // Properties: &armappservice.SnapshotProperties{ - // Time: to.Ptr("2019-05-09T22:29:05.1337007"), - // }, - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewGlobalClient().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 5abc7e71ab9e..30e8811d87e6 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.mod +++ b/sdk/resourcemanager/appservice/armappservice/go.mod @@ -1,21 +1,11 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5 go 1.18 -require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.4.0 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - golang.org/x/crypto v0.33.0 // indirect golang.org/x/net v0.35.0 // indirect - golang.org/x/sys v0.30.0 // indirect golang.org/x/text v0.22.0 // indirect ) diff --git a/sdk/resourcemanager/appservice/armappservice/go.sum b/sdk/resourcemanager/appservice/armappservice/go.sum index 6324123af695..da9d756575fb 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.sum +++ b/sdk/resourcemanager/appservice/armappservice/go.sum @@ -1,35 +1,12 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 h1:g0EZJwz7xkXQiZAI5xi9f3WWFYBlX1CPTrR+NDToRkQ= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0/go.mod h1:XCW7KnZet0Opnr7HccfUw1PLc4CjHqpcaxW8DHklNkQ= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2 h1:F0gBpfdPLGsw+nsgk6aqqkZS1jiixa5WwFe3fk/T3Ys= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2/go.mod h1:SqINnQ9lVVdRlyC8cd1lCI0SdX4n2paeABd2K8ggfnE= -github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2 h1:yz1bePFlP5Vws5+8ez6T3HWXPmwOK7Yvq8QxDBD3SKY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= -github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= -github.com/AzureAD/microsoft-authentication-library-for-go v1.4.0 h1:MUkXAnvvDHgvPItl0nBj0hgk0f7hnnQbGm0h0+YxbN4= -github.com/AzureAD/microsoft-authentication-library-for-go v1.4.0/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= -github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= -github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs= -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/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus= -golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8= golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= -golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM= golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go index 20443dff2279..6cae2b6966a7 100644 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -72,7 +69,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *KubeEnvironmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironment, options *KubeEnvironmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "KubeEnvironmentsClient.BeginCreateOrUpdate" @@ -95,7 +92,7 @@ func (client *KubeEnvironmentsClient) createOrUpdate(ctx context.Context, resour } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironment, options *KubeEnvironmentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironment, _ *KubeEnvironmentsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -114,7 +111,7 @@ func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubeEnvironmentEnvelope); err != nil { @@ -126,7 +123,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -151,7 +148,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *KubeEnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "KubeEnvironmentsClient.BeginDelete" @@ -174,7 +171,7 @@ func (client *KubeEnvironmentsClient) deleteOperation(ctx context.Context, resou } // deleteCreateRequest creates the Delete request. -func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientBeginDeleteOptions) (*policy.Request, error) { +func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *KubeEnvironmentsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -193,7 +190,7 @@ func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -202,7 +199,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -229,7 +226,7 @@ func (client *KubeEnvironmentsClient) Get(ctx context.Context, resourceGroupName } // getCreateRequest creates the Get request. -func (client *KubeEnvironmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientGetOptions) (*policy.Request, error) { +func (client *KubeEnvironmentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *KubeEnvironmentsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -248,7 +245,7 @@ func (client *KubeEnvironmentsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -265,7 +262,7 @@ func (client *KubeEnvironmentsClient) getHandleResponse(resp *http.Response) (Ku // NewListByResourceGroupPager - Description for Get all the Kubernetes Environments in a resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - KubeEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the KubeEnvironmentsClient.NewListByResourceGroupPager // method. @@ -293,7 +290,7 @@ func (client *KubeEnvironmentsClient) NewListByResourceGroupPager(resourceGroupN } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *KubeEnvironmentsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *KubeEnvironmentsClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *KubeEnvironmentsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *KubeEnvironmentsClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -308,7 +305,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -325,7 +322,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupHandleResponse(resp *ht // NewListBySubscriptionPager - Description for Get all Kubernetes Environments for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - KubeEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the KubeEnvironmentsClient.NewListBySubscriptionPager // method. func (client *KubeEnvironmentsClient) NewListBySubscriptionPager(options *KubeEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[KubeEnvironmentsClientListBySubscriptionResponse] { @@ -352,7 +349,7 @@ func (client *KubeEnvironmentsClient) NewListBySubscriptionPager(options *KubeEn } // listBySubscriptionCreateRequest creates the ListBySubscription request. -func (client *KubeEnvironmentsClient) listBySubscriptionCreateRequest(ctx context.Context, options *KubeEnvironmentsClientListBySubscriptionOptions) (*policy.Request, error) { +func (client *KubeEnvironmentsClient) listBySubscriptionCreateRequest(ctx context.Context, _ *KubeEnvironmentsClientListBySubscriptionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/kubeEnvironments" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -363,7 +360,7 @@ func (client *KubeEnvironmentsClient) listBySubscriptionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -381,7 +378,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -409,7 +406,7 @@ func (client *KubeEnvironmentsClient) Update(ctx context.Context, resourceGroupN } // updateCreateRequest creates the Update request. -func (client *KubeEnvironmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironmentPatchResource, options *KubeEnvironmentsClientUpdateOptions) (*policy.Request, error) { +func (client *KubeEnvironmentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, kubeEnvironmentEnvelope KubeEnvironmentPatchResource, _ *KubeEnvironmentsClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -428,7 +425,7 @@ func (client *KubeEnvironmentsClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubeEnvironmentEnvelope); err != nil { 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 6a5779e86c77..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go +++ /dev/null @@ -1,290 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewKubeEnvironmentsClient().NewListBySubscriptionPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.KubeEnvironmentCollection = armappservice.KubeEnvironmentCollection{ - // Value: []*armappservice.KubeEnvironment{ - // { - // Name: to.Ptr("jlaw-demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/jlaw-demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("jlaw-demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("20.42.33.145"), - // }, - // }, - // { - // Name: to.Ptr("demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/DemoRG/providers/Microsoft.Web/kubeEnvironments/demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("52.142.21.61"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewKubeEnvironmentsClient().NewListByResourceGroupPager("examplerg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.KubeEnvironmentCollection = armappservice.KubeEnvironmentCollection{ - // Value: []*armappservice.KubeEnvironment{ - // { - // Name: to.Ptr("jlaw-demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/jlaw-demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("jlaw-demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("20.42.33.145"), - // }, - // }, - // { - // Name: to.Ptr("demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // DefaultDomain: to.Ptr("demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("52.142.21.61"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewKubeEnvironmentsClient().Get(ctx, "examplerg", "jlaw-demo1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KubeEnvironment = armappservice.KubeEnvironment{ - // Name: to.Ptr("jlaw-demo1"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/jlaw-demo1"), - // Location: to.Ptr("North Central US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // AksResourceID: to.Ptr("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.ContainerService/managedClusters/jlaw-demo1"), - // DefaultDomain: to.Ptr("jlaw-demo1.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("20.42.33.145"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewKubeEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KubeEnvironment = armappservice.KubeEnvironment{ - // Name: to.Ptr("testkubeenv"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/testkubeenv"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // AksResourceID: to.Ptr("test"), - // DefaultDomain: to.Ptr("testkubeenv.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("1.2.3.4"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewKubeEnvironmentsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewKubeEnvironmentsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.KubeEnvironment = armappservice.KubeEnvironment{ - // Name: to.Ptr("testkubeenv"), - // Type: to.Ptr("Microsoft.Web/kubeEnvironments"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/testkubeenv"), - // Location: to.Ptr("East US"), - // Tags: map[string]*string{ - // }, - // ExtendedLocation: &armappservice.ExtendedLocation{ - // Name: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"), - // Type: to.Ptr("customLocation"), - // }, - // Properties: &armappservice.KubeEnvironmentProperties{ - // AksResourceID: to.Ptr("test"), - // DefaultDomain: to.Ptr("testkubeenv.k4apps.io"), - // InternalLoadBalancerEnabled: to.Ptr(false), - // ProvisioningState: to.Ptr(armappservice.KubeEnvironmentProvisioningStateSucceeded), - // StaticIP: to.Ptr("1.2.3.4"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/models.go b/sdk/resourcemanager/appservice/armappservice/models.go index fcf65cb162de..dffcdb3faf89 100644 --- a/sdk/resourcemanager/appservice/armappservice/models.go +++ b/sdk/resourcemanager/appservice/armappservice/models.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -44,6 +41,8 @@ type APIKVReferenceCollection struct { // APIKVReferenceProperties - ApiKVReference resource specific properties type APIKVReferenceProperties struct { + // CONSTANT; undefinedField has constant value "KeyVault", any specified value is ignored. + Source *string ActiveVersion *string Details *string @@ -52,7 +51,6 @@ type APIKVReferenceProperties struct { Reference *string SecretName *string SecretVersion *string - Source *string Status *ResolveStatus VaultName *string } @@ -319,10 +317,10 @@ type AppCertificateProperties struct { // Host names the certificate applies to. HostNames []*string - // Key Vault Csm resource Id. + // Azure Key Vault Csm resource Id. KeyVaultID *string - // Key Vault secret name. + // Azure Key Vault secret name. KeyVaultSecretName *string // Certificate password. @@ -331,7 +329,7 @@ type AppCertificateProperties struct { // Pfx blob. PfxBlob []byte - // Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + // Resource ID of the associated App Service plan. ServerFarmID *string // READ-ONLY; Raw bytes of .cer file @@ -1405,23 +1403,6 @@ type CloningInfo struct { TrafficManagerProfileName *string } -// Configuration - Non versioned Container App configuration properties that define the mutable settings of a Container app -type Configuration struct { - // ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple revisions can be - // active. If no value if provided, this is the defaultSingle: Only one revision - // can be active at a time. Revision weights can not be used in this mode - ActiveRevisionsMode *ActiveRevisionsMode - - // Ingress configurations. - Ingress *Ingress - - // Collection of private container registry credentials for containers used by the Container app - Registries []*RegistryCredentials - - // Collection of secrets used by a Container app - Secrets []*Secret -} - // ConnStringInfo - Database connection string information. type ConnStringInfo struct { // Connection string value. @@ -1513,71 +1494,6 @@ type Container struct { Resources *ContainerResources } -// ContainerApp - Container App. -type ContainerApp struct { - // REQUIRED; Resource Location. - Location *string - - // Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/ThingsYouShouldKnow/kindproperty.md#app-service-resource-kind-reference - // for - // details supported values for kind. - Kind *string - - // ContainerApp resource specific properties - Properties *ContainerAppProperties - - // Resource tags. - Tags map[string]*string - - // READ-ONLY; Resource Id. - ID *string - - // READ-ONLY; Resource Name. - Name *string - - // READ-ONLY; Resource type. - Type *string -} - -// ContainerAppCollection - Container App collection ARM resource. -type ContainerAppCollection struct { - // REQUIRED; Collection of resources. - Value []*ContainerApp - - // READ-ONLY; Link to next page of resources. - NextLink *string -} - -// ContainerAppProperties - ContainerApp resource specific properties -type ContainerAppProperties struct { - // Non versioned Container App configuration properties. - Configuration *Configuration - - // Resource ID of the Container App's KubeEnvironment. - KubeEnvironmentID *string - - // Container App versioned application definition. - Template *Template - - // READ-ONLY; Fully Qualified Domain Name of the latest revision of the Container App. - LatestRevisionFqdn *string - - // READ-ONLY; Name of the latest revision of the Container App. - LatestRevisionName *string - - // READ-ONLY; Provisioning state of the Container App. - ProvisioningState *ContainerAppProvisioningState -} - -// ContainerAppSecret - Container App Secret. -type ContainerAppSecret struct { - // READ-ONLY; Secret Name. - Name *string - - // READ-ONLY; Secret Value. - Value *string -} - type ContainerAppsConfiguration struct { // Resource ID of a subnet for control plane infrastructure components. This subnet must be in the same VNET as the subnet // defined in appSubnetResourceId. Must not overlap with the IP range defined in @@ -3252,7 +3168,9 @@ type EnvironmentVariable struct { // REQUIRED; Environment variable name Name *string - // REQUIRED; Environment variable value + // REQUIRED; The value of this environment variable must be the name of an AppSetting. The actual value of the environment + // variable in container will be retrieved from the specified AppSetting at runtime. If the + // AppSetting is not found, the value will be set to an empty string in the container at runtime. Value *string } @@ -4390,26 +4308,6 @@ type InboundEnvironmentEndpointCollection struct { NextLink *string } -// Ingress - Container App Ingress configuration. -type Ingress struct { - // Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS - // connections - AllowInsecure *bool - - // Bool indicating if app exposes an external http endpoint - External *bool - - // Target Port in containers for traffic from ingress - TargetPort *int32 - Traffic []*TrafficWeight - - // Ingress transport protocol - Transport *IngressTransportMethod - - // READ-ONLY; Hostname. - Fqdn *string -} - // JSONSchema - The JSON schema. type JSONSchema struct { // The JSON content. @@ -4998,11 +4896,12 @@ type OpenAuthenticationPolicyClaim struct { // OpenIDConnectClientCredential - The authentication client credentials of the custom Open ID Connect provider. type OpenIDConnectClientCredential struct { + // CONSTANT; The method that should be used to authenticate the user. + // Field has constant value "ClientSecretPost", any specified value is ignored. + Method *string + // The app setting that contains the client secret for the custom Open ID Connect provider. ClientSecretSettingName *string - - // The method that should be used to authenticate the user. - Method *string } // OpenIDConnectConfig - The configuration settings of the endpoints used for the custom Open ID Connect provider. @@ -6304,18 +6203,6 @@ type RegenerateActionParameter struct { KeyType *KeyType } -// RegistryCredentials - Container App Private Registry -type RegistryCredentials struct { - // The name of the Secret that contains the registry login password - PasswordSecretRef *string - - // Container Registry Server - Server *string - - // Container Registry Username - Username *string -} - // ReissueCertificateOrderRequest - Class representing certificate reissue request. type ReissueCertificateOrderRequest struct { // Kind of resource. @@ -6873,72 +6760,6 @@ type RetryHistory struct { StartTime *time.Time } -// Revision - Container App Revision. -type Revision struct { - // REQUIRED; Resource Location. - Location *string - - // Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/ThingsYouShouldKnow/kindproperty.md#app-service-resource-kind-reference - // for - // details supported values for kind. - Kind *string - - // Revision resource specific properties - Properties *RevisionProperties - - // Resource tags. - Tags map[string]*string - - // READ-ONLY; Resource Id. - ID *string - - // READ-ONLY; Resource Name. - Name *string - - // READ-ONLY; Resource type. - Type *string -} - -// RevisionCollection - Container App Revisions collection ARM resource. -type RevisionCollection struct { - // REQUIRED; Collection of resources. - Value []*Revision - - // READ-ONLY; Link to next page of resources. - NextLink *string -} - -// RevisionProperties - Revision resource specific properties -type RevisionProperties struct { - // READ-ONLY; Boolean describing if the Revision is Active - Active *bool - - // READ-ONLY; Timestamp describing when the revision was created by controller - CreatedTime *time.Time - - // READ-ONLY; Fully qualified domain name of the revision - Fqdn *string - - // READ-ONLY; Current health State of the revision - HealthState *RevisionHealthState - - // READ-ONLY; Optional Field - Platform Error Message - ProvisioningError *string - - // READ-ONLY; Current provisioning State of the revision - ProvisioningState *RevisionProvisioningState - - // READ-ONLY; Number of pods currently running for this revision - Replicas *int32 - - // READ-ONLY; Container App Revision Template with all possible settings and the defaults if user did not provide them. The - // defaults are populated as they were at the creation time - Template *Template - - // READ-ONLY; Traffic weight assigned to this revision - TrafficWeight *int32 -} - // RunActionCorrelation - The workflow run action correlation properties. type RunActionCorrelation struct { // The action tracking identifier. @@ -7083,21 +6904,6 @@ type ScaleRuleAuth struct { TriggerParameter *string } -// Secret - Container App Secret. -type Secret struct { - // Secret Name. - Name *string - - // Secret Value. - Value *string -} - -// SecretsCollection - Container App Secrets Collection ARM resource. -type SecretsCollection struct { - // REQUIRED; Collection of resources. - Value []*ContainerAppSecret -} - // ServiceSpecification - Resource metrics service provided by Microsoft.Insights resource provider. type ServiceSpecification struct { LogSpecifications []*LogSpecification @@ -7717,6 +7523,9 @@ type SiteContainerProperties struct { // List of environment variables EnvironmentVariables []*EnvironmentVariable + // true if all AppSettings and ConnectionStrings have to be passed to the container as environment variables; false otherwise. + InheritAppSettingsAndConnectionStrings *bool + // Password Secret PasswordSecret *string @@ -9718,18 +9527,6 @@ type TopLevelDomainProperties struct { Privacy *bool } -// TrafficWeight - Traffic weight assigned to a revision -type TrafficWeight struct { - // Indicates that the traffic weight belongs to a latest stable revision - LatestRevision *bool - - // Name of a revision - RevisionName *string - - // Traffic weight assigned to a revision - Weight *int32 -} - // TriggeredJobHistory - Triggered Web Job History. List of Triggered Web Job Run Information elements. type TriggeredJobHistory struct { // Kind of resource. diff --git a/sdk/resourcemanager/appservice/armappservice/models_serde.go b/sdk/resourcemanager/appservice/armappservice/models_serde.go index 05359e4197ad..aa6c4ab6cb01 100644 --- a/sdk/resourcemanager/appservice/armappservice/models_serde.go +++ b/sdk/resourcemanager/appservice/armappservice/models_serde.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -3424,45 +3421,6 @@ func (c *CloningInfo) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Configuration. -func (c Configuration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "activeRevisionsMode", c.ActiveRevisionsMode) - populate(objectMap, "ingress", c.Ingress) - populate(objectMap, "registries", c.Registries) - populate(objectMap, "secrets", c.Secrets) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Configuration. -func (c *Configuration) 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", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "activeRevisionsMode": - err = unpopulate(val, "ActiveRevisionsMode", &c.ActiveRevisionsMode) - delete(rawMsg, key) - case "ingress": - err = unpopulate(val, "Ingress", &c.Ingress) - delete(rawMsg, key) - case "registries": - err = unpopulate(val, "Registries", &c.Registries) - delete(rawMsg, key) - case "secrets": - err = unpopulate(val, "Secrets", &c.Secrets) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ConnStringInfo. func (c ConnStringInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3678,166 +3636,6 @@ func (c *Container) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ContainerApp. -func (c ContainerApp) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "id", c.ID) - populate(objectMap, "kind", c.Kind) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerApp. -func (c *ContainerApp) 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", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &c.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &c.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &c.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &c.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ContainerAppCollection. -func (c ContainerAppCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "nextLink", c.NextLink) - populate(objectMap, "value", c.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppCollection. -func (c *ContainerAppCollection) 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", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &c.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &c.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ContainerAppProperties. -func (c ContainerAppProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "configuration", c.Configuration) - populate(objectMap, "kubeEnvironmentId", c.KubeEnvironmentID) - populate(objectMap, "latestRevisionFqdn", c.LatestRevisionFqdn) - populate(objectMap, "latestRevisionName", c.LatestRevisionName) - populate(objectMap, "provisioningState", c.ProvisioningState) - populate(objectMap, "template", c.Template) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppProperties. -func (c *ContainerAppProperties) 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", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "configuration": - err = unpopulate(val, "Configuration", &c.Configuration) - delete(rawMsg, key) - case "kubeEnvironmentId": - err = unpopulate(val, "KubeEnvironmentID", &c.KubeEnvironmentID) - delete(rawMsg, key) - case "latestRevisionFqdn": - err = unpopulate(val, "LatestRevisionFqdn", &c.LatestRevisionFqdn) - delete(rawMsg, key) - case "latestRevisionName": - err = unpopulate(val, "LatestRevisionName", &c.LatestRevisionName) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) - delete(rawMsg, key) - case "template": - err = unpopulate(val, "Template", &c.Template) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ContainerAppSecret. -func (c ContainerAppSecret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "name", c.Name) - populate(objectMap, "value", c.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerAppSecret. -func (c *ContainerAppSecret) 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", c, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &c.Name) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &c.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ContainerAppsConfiguration. func (c ContainerAppsConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -11240,53 +11038,6 @@ func (i *InboundEnvironmentEndpointCollection) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type Ingress. -func (i Ingress) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "allowInsecure", i.AllowInsecure) - populate(objectMap, "external", i.External) - populate(objectMap, "fqdn", i.Fqdn) - populate(objectMap, "targetPort", i.TargetPort) - populate(objectMap, "traffic", i.Traffic) - populate(objectMap, "transport", i.Transport) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Ingress. -func (i *Ingress) 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", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "allowInsecure": - err = unpopulate(val, "AllowInsecure", &i.AllowInsecure) - delete(rawMsg, key) - case "external": - err = unpopulate(val, "External", &i.External) - delete(rawMsg, key) - case "fqdn": - err = unpopulate(val, "Fqdn", &i.Fqdn) - delete(rawMsg, key) - case "targetPort": - err = unpopulate(val, "TargetPort", &i.TargetPort) - delete(rawMsg, key) - case "traffic": - err = unpopulate(val, "Traffic", &i.Traffic) - delete(rawMsg, key) - case "transport": - err = unpopulate(val, "Transport", &i.Transport) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type JSONSchema. func (j JSONSchema) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -15857,41 +15608,6 @@ func (r *RegenerateActionParameter) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type RegistryCredentials. -func (r RegistryCredentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "passwordSecretRef", r.PasswordSecretRef) - populate(objectMap, "server", r.Server) - populate(objectMap, "username", r.Username) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryCredentials. -func (r *RegistryCredentials) 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", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "passwordSecretRef": - err = unpopulate(val, "PasswordSecretRef", &r.PasswordSecretRef) - delete(rawMsg, key) - case "server": - err = unpopulate(val, "Server", &r.Server) - delete(rawMsg, key) - case "username": - err = unpopulate(val, "Username", &r.Username) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ReissueCertificateOrderRequest. func (r ReissueCertificateOrderRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -17320,147 +17036,6 @@ func (r *RetryHistory) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Revision. -func (r Revision) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "id", r.ID) - populate(objectMap, "kind", r.Kind) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Revision. -func (r *Revision) 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", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &r.ID) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &r.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &r.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &r.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &r.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &r.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &r.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type RevisionCollection. -func (r RevisionCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "nextLink", r.NextLink) - populate(objectMap, "value", r.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RevisionCollection. -func (r *RevisionCollection) 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", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &r.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &r.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type RevisionProperties. -func (r RevisionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "active", r.Active) - populateDateTimeRFC3339(objectMap, "createdTime", r.CreatedTime) - populate(objectMap, "fqdn", r.Fqdn) - populate(objectMap, "healthState", r.HealthState) - populate(objectMap, "provisioningError", r.ProvisioningError) - populate(objectMap, "provisioningState", r.ProvisioningState) - populate(objectMap, "replicas", r.Replicas) - populate(objectMap, "template", r.Template) - populate(objectMap, "trafficWeight", r.TrafficWeight) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RevisionProperties. -func (r *RevisionProperties) 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", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "active": - err = unpopulate(val, "Active", &r.Active) - delete(rawMsg, key) - case "createdTime": - err = unpopulateDateTimeRFC3339(val, "CreatedTime", &r.CreatedTime) - delete(rawMsg, key) - case "fqdn": - err = unpopulate(val, "Fqdn", &r.Fqdn) - delete(rawMsg, key) - case "healthState": - err = unpopulate(val, "HealthState", &r.HealthState) - delete(rawMsg, key) - case "provisioningError": - err = unpopulate(val, "ProvisioningError", &r.ProvisioningError) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) - delete(rawMsg, key) - case "replicas": - err = unpopulate(val, "Replicas", &r.Replicas) - delete(rawMsg, key) - case "template": - err = unpopulate(val, "Template", &r.Template) - delete(rawMsg, key) - case "trafficWeight": - err = unpopulate(val, "TrafficWeight", &r.TrafficWeight) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type RunActionCorrelation. func (r RunActionCorrelation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -17862,64 +17437,6 @@ func (s *ScaleRuleAuth) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Secret. -func (s Secret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "name", s.Name) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Secret. -func (s *Secret) 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 "name": - err = unpopulate(val, "Name", &s.Name) - 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 SecretsCollection. -func (s SecretsCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SecretsCollection. -func (s *SecretsCollection) 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 "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 ServiceSpecification. func (s ServiceSpecification) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -18994,6 +18511,7 @@ func (s SiteContainerProperties) MarshalJSON() ([]byte, error) { populateDateTimeRFC3339(objectMap, "createdTime", s.CreatedTime) populate(objectMap, "environmentVariables", s.EnvironmentVariables) populate(objectMap, "image", s.Image) + populate(objectMap, "inheritAppSettingsAndConnectionStrings", s.InheritAppSettingsAndConnectionStrings) populate(objectMap, "isMain", s.IsMain) populateDateTimeRFC3339(objectMap, "lastModifiedTime", s.LastModifiedTime) populate(objectMap, "passwordSecret", s.PasswordSecret) @@ -19026,6 +18544,9 @@ func (s *SiteContainerProperties) UnmarshalJSON(data []byte) error { case "image": err = unpopulate(val, "Image", &s.Image) delete(rawMsg, key) + case "inheritAppSettingsAndConnectionStrings": + err = unpopulate(val, "InheritAppSettingsAndConnectionStrings", &s.InheritAppSettingsAndConnectionStrings) + delete(rawMsg, key) case "isMain": err = unpopulate(val, "IsMain", &s.IsMain) delete(rawMsg, key) @@ -23618,41 +23139,6 @@ func (t *TopLevelDomainProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type TrafficWeight. -func (t TrafficWeight) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "latestRevision", t.LatestRevision) - populate(objectMap, "revisionName", t.RevisionName) - populate(objectMap, "weight", t.Weight) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TrafficWeight. -func (t *TrafficWeight) 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", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "latestRevision": - err = unpopulate(val, "LatestRevision", &t.LatestRevision) - delete(rawMsg, key) - case "revisionName": - err = unpopulate(val, "RevisionName", &t.RevisionName) - delete(rawMsg, key) - case "weight": - err = unpopulate(val, "Weight", &t.Weight) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type TriggeredJobHistory. func (t TriggeredJobHistory) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/sdk/resourcemanager/appservice/armappservice/options.go b/sdk/resourcemanager/appservice/armappservice/options.go index 61d0e350b7dc..51d9e6f46a3b 100644 --- a/sdk/resourcemanager/appservice/armappservice/options.go +++ b/sdk/resourcemanager/appservice/armappservice/options.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -13,14 +10,14 @@ import "time" // CertificateOrdersClientBeginCreateOrUpdateCertificateOptions contains the optional parameters for the CertificateOrdersClient.BeginCreateOrUpdateCertificate // method. type CertificateOrdersClientBeginCreateOrUpdateCertificateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // CertificateOrdersClientBeginCreateOrUpdateOptions contains the optional parameters for the CertificateOrdersClient.BeginCreateOrUpdate // method. type CertificateOrdersClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -183,71 +180,6 @@ type CertificatesClientUpdateOptions struct { // placeholder for future optional parameters } -// ContainerAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContainerAppsClient.BeginCreateOrUpdate -// method. -type ContainerAppsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// ContainerAppsClientBeginDeleteOptions contains the optional parameters for the ContainerAppsClient.BeginDelete method. -type ContainerAppsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// ContainerAppsClientGetOptions contains the optional parameters for the ContainerAppsClient.Get method. -type ContainerAppsClientGetOptions struct { - // placeholder for future optional parameters -} - -// 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.NewListBySubscriptionPager -// method. -type ContainerAppsClientListBySubscriptionOptions struct { - // placeholder for future optional parameters -} - -// ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets method. -type ContainerAppsClientListSecretsOptions struct { - // placeholder for future optional parameters -} - -// ContainerAppsRevisionsClientActivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.ActivateRevision -// method. -type ContainerAppsRevisionsClientActivateRevisionOptions struct { - // placeholder for future optional parameters -} - -// ContainerAppsRevisionsClientDeactivateRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.DeactivateRevision -// method. -type ContainerAppsRevisionsClientDeactivateRevisionOptions struct { - // placeholder for future optional parameters -} - -// ContainerAppsRevisionsClientGetRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.GetRevision -// method. -type ContainerAppsRevisionsClientGetRevisionOptions struct { - // placeholder for future optional parameters -} - -// ContainerAppsRevisionsClientListRevisionsOptions contains the optional parameters for the ContainerAppsRevisionsClient.NewListRevisionsPager -// method. -type ContainerAppsRevisionsClientListRevisionsOptions struct { - // placeholder for future optional parameters -} - -// ContainerAppsRevisionsClientRestartRevisionOptions contains the optional parameters for the ContainerAppsRevisionsClient.RestartRevision -// method. -type ContainerAppsRevisionsClientRestartRevisionOptions struct { - // placeholder for future optional parameters -} - // DeletedWebAppsClientGetDeletedWebAppByLocationOptions contains the optional parameters for the DeletedWebAppsClient.GetDeletedWebAppByLocation // method. type DeletedWebAppsClientGetDeletedWebAppByLocationOptions struct { @@ -452,7 +384,7 @@ type DomainRegistrationProviderClientListOperationsOptions struct { // DomainsClientBeginCreateOrUpdateOptions contains the optional parameters for the DomainsClient.BeginCreateOrUpdate method. type DomainsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -543,34 +475,34 @@ type DomainsClientUpdateOwnershipIdentifierOptions struct { // EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection // method. type EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginChangeVnetOptions contains the optional parameters for the EnvironmentsClient.BeginChangeVnet method. type EnvironmentsClientBeginChangeVnetOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdateMultiRolePool // method. type EnvironmentsClientBeginCreateOrUpdateMultiRolePoolOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdate // method. type EnvironmentsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions contains the optional parameters for the EnvironmentsClient.BeginCreateOrUpdateWorkerPool // method. type EnvironmentsClientBeginCreateOrUpdateWorkerPoolOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -579,32 +511,32 @@ type EnvironmentsClientBeginDeleteOptions struct { // Specify true to force the deletion even if the App Service Environment contains resources. The default is false. ForceDelete *bool - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.BeginDeletePrivateEndpointConnection // method. type EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginResumeOptions contains the optional parameters for the EnvironmentsClient.BeginResume method. type EnvironmentsClientBeginResumeOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginSuspendOptions contains the optional parameters for the EnvironmentsClient.BeginSuspend method. type EnvironmentsClientBeginSuspendOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // EnvironmentsClientBeginUpgradeOptions contains the optional parameters for the EnvironmentsClient.BeginUpgrade method. type EnvironmentsClientBeginUpgradeOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -855,13 +787,13 @@ type GlobalClientGetSubscriptionOperationWithAsyncResponseOptions struct { // KubeEnvironmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the KubeEnvironmentsClient.BeginCreateOrUpdate // method. type KubeEnvironmentsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // KubeEnvironmentsClientBeginDeleteOptions contains the optional parameters for the KubeEnvironmentsClient.BeginDelete method. type KubeEnvironmentsClientBeginDeleteOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -889,7 +821,7 @@ type KubeEnvironmentsClientUpdateOptions struct { // PlansClientBeginCreateOrUpdateOptions contains the optional parameters for the PlansClient.BeginCreateOrUpdate method. type PlansClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -1249,86 +1181,139 @@ type ResourceHealthMetadataClientListOptions struct { // placeholder for future optional parameters } +// SiteCertificatesClientCreateOrUpdateOptions contains the optional parameters for the SiteCertificatesClient.CreateOrUpdate +// method. +type SiteCertificatesClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientCreateOrUpdateSlotOptions contains the optional parameters for the SiteCertificatesClient.CreateOrUpdateSlot +// method. +type SiteCertificatesClientCreateOrUpdateSlotOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientDeleteOptions contains the optional parameters for the SiteCertificatesClient.Delete method. +type SiteCertificatesClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientDeleteSlotOptions contains the optional parameters for the SiteCertificatesClient.DeleteSlot method. +type SiteCertificatesClientDeleteSlotOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientGetOptions contains the optional parameters for the SiteCertificatesClient.Get method. +type SiteCertificatesClientGetOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientGetSlotOptions contains the optional parameters for the SiteCertificatesClient.GetSlot method. +type SiteCertificatesClientGetSlotOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientListOptions contains the optional parameters for the SiteCertificatesClient.NewListPager method. +type SiteCertificatesClientListOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientListSlotOptions contains the optional parameters for the SiteCertificatesClient.NewListSlotPager +// method. +type SiteCertificatesClientListSlotOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientUpdateOptions contains the optional parameters for the SiteCertificatesClient.Update method. +type SiteCertificatesClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// SiteCertificatesClientUpdateSlotOptions contains the optional parameters for the SiteCertificatesClient.UpdateSlot method. +type SiteCertificatesClientUpdateSlotOptions struct { + // placeholder for future optional parameters +} + // StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection // method. type StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain // method. type StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginCreateOrUpdateStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginCreateOrUpdateStaticSite // method. type StaticSitesClientBeginCreateOrUpdateStaticSiteOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild // method. type StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginCreateZipDeploymentForStaticSite // method. type StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the StaticSitesClient.BeginDeletePrivateEndpointConnection // method. type StaticSitesClientBeginDeletePrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginDeleteStaticSiteBuildOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSiteBuild // method. type StaticSitesClientBeginDeleteStaticSiteBuildOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSiteCustomDomain // method. type StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginDeleteStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSite // method. type StaticSitesClientBeginDeleteStaticSiteOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginDetachStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDetachStaticSite // method. type StaticSitesClientBeginDetachStaticSiteOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginLinkBackendOptions contains the optional parameters for the StaticSitesClient.BeginLinkBackend method. type StaticSitesClientBeginLinkBackendOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginLinkBackendToBuildOptions contains the optional parameters for the StaticSitesClient.BeginLinkBackendToBuild // method. type StaticSitesClientBeginLinkBackendToBuildOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -1339,7 +1324,7 @@ type StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOpt // already configured on the function app. The default is false. IsForced *bool - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -1350,28 +1335,28 @@ type StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions // already configured on the function app. The default is false. IsForced *bool - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginValidateBackendForBuildOptions contains the optional parameters for the StaticSitesClient.BeginValidateBackendForBuild // method. type StaticSitesClientBeginValidateBackendForBuildOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginValidateBackendOptions contains the optional parameters for the StaticSitesClient.BeginValidateBackend // method. type StaticSitesClientBeginValidateBackendOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite // method. type StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -1783,203 +1768,203 @@ type WebAppsClientBackupSlotOptions struct { // WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection // method. type WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot // method. type WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateFunctionOptions contains the optional parameters for the WebAppsClient.BeginCreateFunction method. type WebAppsClientBeginCreateFunctionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateInstanceFunctionSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceFunctionSlot // method. type WebAppsClientBeginCreateInstanceFunctionSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateInstanceMSDeployOperationOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceMSDeployOperation // method. type WebAppsClientBeginCreateInstanceMSDeployOperationOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateInstanceMSDeployOperationSlot // method. type WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateMSDeployOperationOptions contains the optional parameters for the WebAppsClient.BeginCreateMSDeployOperation // method. type WebAppsClientBeginCreateMSDeployOperationOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateMSDeployOperationSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateMSDeployOperationSlot // method. type WebAppsClientBeginCreateMSDeployOperationSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateOrUpdateOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdate method. type WebAppsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateOrUpdateSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSlot // method. type WebAppsClientBeginCreateOrUpdateSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateOrUpdateSourceControlOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSourceControl // method. type WebAppsClientBeginCreateOrUpdateSourceControlOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions contains the optional parameters for the WebAppsClient.BeginCreateOrUpdateSourceControlSlot // method. type WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnection // method. type WebAppsClientBeginDeletePrivateEndpointConnectionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnectionSlot // method. type WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginGetProductionSiteDeploymentStatusOptions contains the optional parameters for the WebAppsClient.BeginGetProductionSiteDeploymentStatus // method. type WebAppsClientBeginGetProductionSiteDeploymentStatusOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions contains the optional parameters for the WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot // method. type WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginInstallSiteExtensionOptions contains the optional parameters for the WebAppsClient.BeginInstallSiteExtension // method. type WebAppsClientBeginInstallSiteExtensionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginInstallSiteExtensionSlotOptions contains the optional parameters for the WebAppsClient.BeginInstallSiteExtensionSlot // method. type WebAppsClientBeginInstallSiteExtensionSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginListPublishingCredentialsOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentials // method. type WebAppsClientBeginListPublishingCredentialsOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginListPublishingCredentialsSlotOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentialsSlot // method. type WebAppsClientBeginListPublishingCredentialsSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginMigrateMySQLOptions contains the optional parameters for the WebAppsClient.BeginMigrateMySQL method. type WebAppsClientBeginMigrateMySQLOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginMigrateStorageOptions contains the optional parameters for the WebAppsClient.BeginMigrateStorage method. type WebAppsClientBeginMigrateStorageOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreFromBackupBlobOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromBackupBlob // method. type WebAppsClientBeginRestoreFromBackupBlobOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreFromBackupBlobSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromBackupBlobSlot // method. type WebAppsClientBeginRestoreFromBackupBlobSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreFromDeletedAppOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromDeletedApp // method. type WebAppsClientBeginRestoreFromDeletedAppOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreFromDeletedAppSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreFromDeletedAppSlot // method. type WebAppsClientBeginRestoreFromDeletedAppSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreOptions contains the optional parameters for the WebAppsClient.BeginRestore method. type WebAppsClientBeginRestoreOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSlot method. type WebAppsClientBeginRestoreSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreSnapshotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSnapshot method. type WebAppsClientBeginRestoreSnapshotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginRestoreSnapshotSlotOptions contains the optional parameters for the WebAppsClient.BeginRestoreSnapshotSlot // method. type WebAppsClientBeginRestoreSnapshotSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -1992,7 +1977,7 @@ type WebAppsClientBeginStartNetworkTraceOptions struct { // The maximum frame length in bytes (Optional). MaxFrameLength *int32 - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string // The Blob URL to store capture file. @@ -2008,7 +1993,7 @@ type WebAppsClientBeginStartNetworkTraceSlotOptions struct { // The maximum frame length in bytes (Optional). MaxFrameLength *int32 - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string // The Blob URL to store capture file. @@ -2024,7 +2009,7 @@ type WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions struct { // The maximum frame length in bytes (Optional). MaxFrameLength *int32 - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string // The Blob URL to store capture file. @@ -2040,7 +2025,7 @@ type WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions struct { // The maximum frame length in bytes (Optional). MaxFrameLength *int32 - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string // The Blob URL to store capture file. @@ -2049,14 +2034,14 @@ type WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions struct { // WebAppsClientBeginSwapSlotOptions contains the optional parameters for the WebAppsClient.BeginSwapSlot method. type WebAppsClientBeginSwapSlotOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } // WebAppsClientBeginSwapSlotWithProductionOptions contains the optional parameters for the WebAppsClient.BeginSwapSlotWithProduction // method. type WebAppsClientBeginSwapSlotWithProductionOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -4410,7 +4395,7 @@ type WorkflowRunsClientListOptions struct { // WorkflowTriggerHistoriesClientBeginResubmitOptions contains the optional parameters for the WorkflowTriggerHistoriesClient.BeginResubmit // method. type WorkflowTriggerHistoriesClientBeginResubmitOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } @@ -4431,7 +4416,7 @@ type WorkflowTriggerHistoriesClientListOptions struct { // WorkflowTriggersClientBeginRunOptions contains the optional parameters for the WorkflowTriggersClient.BeginRun method. type WorkflowTriggersClientBeginRunOptions struct { - // Resumes the LRO from the provided token. + // Resumes the long-running operation from the provided token. ResumeToken string } diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client.go b/sdk/resourcemanager/appservice/armappservice/plans_client.go index 91c8f1ca0053..2a3d288ccade 100644 --- a/sdk/resourcemanager/appservice/armappservice/plans_client.go +++ b/sdk/resourcemanager/appservice/armappservice/plans_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -73,7 +70,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *PlansClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, appServicePlan Plan, options *PlansClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "PlansClient.BeginCreateOrUpdate" @@ -96,7 +93,7 @@ func (client *PlansClient) createOrUpdate(ctx context.Context, resourceGroupName } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, appServicePlan Plan, options *PlansClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, appServicePlan Plan, _ *PlansClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -115,7 +112,7 @@ func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appServicePlan); err != nil { @@ -127,7 +124,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -158,7 +155,7 @@ func (client *PlansClient) CreateOrUpdateVnetRoute(ctx context.Context, resource } // createOrUpdateVnetRouteCreateRequest creates the CreateOrUpdateVnetRoute request. -func (client *PlansClient) createOrUpdateVnetRouteCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute, options *PlansClientCreateOrUpdateVnetRouteOptions) (*policy.Request, error) { +func (client *PlansClient) createOrUpdateVnetRouteCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute, _ *PlansClientCreateOrUpdateVnetRouteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,7 +182,7 @@ func (client *PlansClient) createOrUpdateVnetRouteCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, route); err != nil { @@ -206,7 +203,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -232,7 +229,7 @@ func (client *PlansClient) Delete(ctx context.Context, resourceGroupName string, } // deleteCreateRequest creates the Delete request. -func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientDeleteOptions) (*policy.Request, error) { +func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -251,7 +248,7 @@ func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -260,7 +257,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -289,7 +286,7 @@ func (client *PlansClient) DeleteHybridConnection(ctx context.Context, resourceG } // deleteHybridConnectionCreateRequest creates the DeleteHybridConnection request. -func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientDeleteHybridConnectionOptions) (*policy.Request, error) { +func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, _ *PlansClientDeleteHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -316,7 +313,7 @@ func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -325,7 +322,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -353,7 +350,7 @@ func (client *PlansClient) DeleteVnetRoute(ctx context.Context, resourceGroupNam } // deleteVnetRouteCreateRequest creates the DeleteVnetRoute request. -func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, options *PlansClientDeleteVnetRouteOptions) (*policy.Request, error) { +func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, _ *PlansClientDeleteVnetRouteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -380,7 +377,7 @@ func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -389,7 +386,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -416,7 +413,7 @@ func (client *PlansClient) Get(ctx context.Context, resourceGroupName string, na } // getCreateRequest creates the Get request. -func (client *PlansClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetOptions) (*policy.Request, error) { +func (client *PlansClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -435,7 +432,7 @@ func (client *PlansClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -453,7 +450,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -483,7 +480,7 @@ func (client *PlansClient) GetHybridConnection(ctx context.Context, resourceGrou } // getHybridConnectionCreateRequest creates the GetHybridConnection request. -func (client *PlansClient) getHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientGetHybridConnectionOptions) (*policy.Request, error) { +func (client *PlansClient) getHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, _ *PlansClientGetHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -510,7 +507,7 @@ func (client *PlansClient) getHybridConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -528,7 +525,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -556,7 +553,7 @@ func (client *PlansClient) GetHybridConnectionPlanLimit(ctx context.Context, res } // getHybridConnectionPlanLimitCreateRequest creates the GetHybridConnectionPlanLimit request. -func (client *PlansClient) getHybridConnectionPlanLimitCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetHybridConnectionPlanLimitOptions) (*policy.Request, error) { +func (client *PlansClient) getHybridConnectionPlanLimitCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientGetHybridConnectionPlanLimitOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionPlanLimits/limit" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -575,7 +572,7 @@ func (client *PlansClient) getHybridConnectionPlanLimitCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -593,7 +590,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -622,7 +619,7 @@ func (client *PlansClient) GetRouteForVnet(ctx context.Context, resourceGroupNam } // getRouteForVnetCreateRequest creates the GetRouteForVnet request. -func (client *PlansClient) getRouteForVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, options *PlansClientGetRouteForVnetOptions) (*policy.Request, error) { +func (client *PlansClient) getRouteForVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, _ *PlansClientGetRouteForVnetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -649,7 +646,7 @@ func (client *PlansClient) getRouteForVnetCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -667,7 +664,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -694,7 +691,7 @@ func (client *PlansClient) GetServerFarmSKUs(ctx context.Context, resourceGroupN } // getServerFarmSKUsCreateRequest creates the GetServerFarmSKUs request. -func (client *PlansClient) getServerFarmSKUsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetServerFarmSKUsOptions) (*policy.Request, error) { +func (client *PlansClient) getServerFarmSKUsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientGetServerFarmSKUsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -713,7 +710,7 @@ func (client *PlansClient) getServerFarmSKUsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -731,7 +728,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -760,7 +757,7 @@ func (client *PlansClient) GetVnetFromServerFarm(ctx context.Context, resourceGr } // getVnetFromServerFarmCreateRequest creates the GetVnetFromServerFarm request. -func (client *PlansClient) getVnetFromServerFarmCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, options *PlansClientGetVnetFromServerFarmOptions) (*policy.Request, error) { +func (client *PlansClient) getVnetFromServerFarmCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, _ *PlansClientGetVnetFromServerFarmOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -783,7 +780,7 @@ func (client *PlansClient) getVnetFromServerFarmCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -801,7 +798,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -830,7 +827,7 @@ func (client *PlansClient) GetVnetGateway(ctx context.Context, resourceGroupName } // getVnetGatewayCreateRequest creates the GetVnetGateway request. -func (client *PlansClient) getVnetGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, options *PlansClientGetVnetGatewayOptions) (*policy.Request, error) { +func (client *PlansClient) getVnetGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, _ *PlansClientGetVnetGatewayOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -857,7 +854,7 @@ func (client *PlansClient) getVnetGatewayCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -874,7 +871,7 @@ func (client *PlansClient) getVnetGatewayHandleResponse(resp *http.Response) (Pl // NewListPager - Description for Get all App Service plans for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -911,7 +908,7 @@ func (client *PlansClient) listCreateRequest(ctx context.Context, options *Plans return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Detailed != nil { reqQP.Set("detailed", strconv.FormatBool(*options.Detailed)) } @@ -931,7 +928,7 @@ func (client *PlansClient) listHandleResponse(resp *http.Response) (PlansClientL // NewListByResourceGroupPager - Description for Get all App Service plans in a resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - PlansClientListByResourceGroupOptions contains the optional parameters for the PlansClient.NewListByResourceGroupPager // method. @@ -959,7 +956,7 @@ func (client *PlansClient) NewListByResourceGroupPager(resourceGroupName string, } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *PlansClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *PlansClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *PlansClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *PlansClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -974,7 +971,7 @@ func (client *PlansClient) listByResourceGroupCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -992,7 +989,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1019,7 +1016,7 @@ func (client *PlansClient) ListCapabilities(ctx context.Context, resourceGroupNa } // listCapabilitiesCreateRequest creates the ListCapabilities request. -func (client *PlansClient) listCapabilitiesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientListCapabilitiesOptions) (*policy.Request, error) { +func (client *PlansClient) listCapabilitiesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientListCapabilitiesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/capabilities" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1038,7 +1035,7 @@ func (client *PlansClient) listCapabilitiesCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1056,7 +1053,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1086,7 +1083,7 @@ func (client *PlansClient) ListHybridConnectionKeys(ctx context.Context, resourc } // listHybridConnectionKeysCreateRequest creates the ListHybridConnectionKeys request. -func (client *PlansClient) listHybridConnectionKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientListHybridConnectionKeysOptions) (*policy.Request, error) { +func (client *PlansClient) listHybridConnectionKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, _ *PlansClientListHybridConnectionKeysOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1113,7 +1110,7 @@ func (client *PlansClient) listHybridConnectionKeysCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1130,7 +1127,7 @@ func (client *PlansClient) listHybridConnectionKeysHandleResponse(resp *http.Res // NewListHybridConnectionsPager - Description for Retrieve all Hybrid Connections in use in an App Service plan. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1159,7 +1156,7 @@ func (client *PlansClient) NewListHybridConnectionsPager(resourceGroupName strin } // listHybridConnectionsCreateRequest creates the ListHybridConnections request. -func (client *PlansClient) listHybridConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientListHybridConnectionsOptions) (*policy.Request, error) { +func (client *PlansClient) listHybridConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientListHybridConnectionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionRelays" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1178,7 +1175,7 @@ func (client *PlansClient) listHybridConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1196,7 +1193,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1224,7 +1221,7 @@ func (client *PlansClient) ListRoutesForVnet(ctx context.Context, resourceGroupN } // listRoutesForVnetCreateRequest creates the ListRoutesForVnet request. -func (client *PlansClient) listRoutesForVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, options *PlansClientListRoutesForVnetOptions) (*policy.Request, error) { +func (client *PlansClient) listRoutesForVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, _ *PlansClientListRoutesForVnetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1247,7 +1244,7 @@ func (client *PlansClient) listRoutesForVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1264,7 +1261,7 @@ func (client *PlansClient) listRoutesForVnetHandleResponse(resp *http.Response) // NewListUsagesPager - Description for Gets server farm usage information // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -1311,7 +1308,7 @@ func (client *PlansClient) listUsagesCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -1334,7 +1331,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1361,7 +1358,7 @@ func (client *PlansClient) ListVnets(ctx context.Context, resourceGroupName stri } // listVnetsCreateRequest creates the ListVnets request. -func (client *PlansClient) listVnetsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *PlansClientListVnetsOptions) (*policy.Request, error) { +func (client *PlansClient) listVnetsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientListVnetsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1380,7 +1377,7 @@ func (client *PlansClient) listVnetsCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1397,7 +1394,7 @@ func (client *PlansClient) listVnetsHandleResponse(resp *http.Response) (PlansCl // NewListWebAppsPager - Description for Get all apps associated with an App Service plan. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -1450,7 +1447,7 @@ func (client *PlansClient) listWebAppsCreateRequest(ctx context.Context, resourc if options != nil && options.Top != nil { reqQP.Set("$top", *options.Top) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -1472,7 +1469,7 @@ func (client *PlansClient) listWebAppsHandleResponse(resp *http.Response) (Plans // NewListWebAppsByHybridConnectionPager - Description for Get all apps that use a Hybrid Connection in an App Service Plan. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -1503,7 +1500,7 @@ func (client *PlansClient) NewListWebAppsByHybridConnectionPager(resourceGroupNa } // listWebAppsByHybridConnectionCreateRequest creates the ListWebAppsByHybridConnection request. -func (client *PlansClient) listWebAppsByHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *PlansClientListWebAppsByHybridConnectionOptions) (*policy.Request, error) { +func (client *PlansClient) listWebAppsByHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, _ *PlansClientListWebAppsByHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/sites" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1530,7 +1527,7 @@ func (client *PlansClient) listWebAppsByHybridConnectionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1548,7 +1545,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1575,7 +1572,7 @@ func (client *PlansClient) RebootWorker(ctx context.Context, resourceGroupName s } // rebootWorkerCreateRequest creates the RebootWorker request. -func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resourceGroupName string, name string, workerName string, options *PlansClientRebootWorkerOptions) (*policy.Request, error) { +func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resourceGroupName string, name string, workerName string, _ *PlansClientRebootWorkerOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1598,7 +1595,7 @@ func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1607,7 +1604,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1652,7 +1649,7 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -1664,7 +1661,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1692,7 +1689,7 @@ func (client *PlansClient) Update(ctx context.Context, resourceGroupName string, } // updateCreateRequest creates the Update request. -func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, appServicePlan PlanPatchResource, options *PlansClientUpdateOptions) (*policy.Request, error) { +func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, appServicePlan PlanPatchResource, _ *PlansClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1711,7 +1708,7 @@ func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appServicePlan); err != nil { @@ -1732,7 +1729,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1762,7 +1759,7 @@ func (client *PlansClient) UpdateVnetGateway(ctx context.Context, resourceGroupN } // updateVnetGatewayCreateRequest creates the UpdateVnetGateway request. -func (client *PlansClient) updateVnetGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, options *PlansClientUpdateVnetGatewayOptions) (*policy.Request, error) { +func (client *PlansClient) updateVnetGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, _ *PlansClientUpdateVnetGatewayOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1789,7 +1786,7 @@ func (client *PlansClient) updateVnetGatewayCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -1810,7 +1807,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1840,7 +1837,7 @@ func (client *PlansClient) UpdateVnetRoute(ctx context.Context, resourceGroupNam } // updateVnetRouteCreateRequest creates the UpdateVnetRoute request. -func (client *PlansClient) updateVnetRouteCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute, options *PlansClientUpdateVnetRouteOptions) (*policy.Request, error) { +func (client *PlansClient) updateVnetRouteCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute, _ *PlansClientUpdateVnetRouteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes/{routeName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1867,7 +1864,7 @@ func (client *PlansClient) updateVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, route); err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go deleted file mode 100644 index 11e3849b0240..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go +++ /dev/null @@ -1,348 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPlansClient().NewListPager(&armappservice.PlansClientListOptions{Detailed: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PlanCollection = armappservice.PlanCollection{ - // Value: []*armappservice.Plan{ - // { - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }, - // { - // Name: to.Ptr("testsf7252"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewPlansClient().NewListByResourceGroupPager("testrg123", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PlanCollection = armappservice.PlanCollection{ - // Value: []*armappservice.Plan{ - // { - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }, - // { - // Name: to.Ptr("testsf7252"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPlansClient().Get(ctx, "testrg123", "testsf6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Plan = armappservice.Plan{ - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // IsSpot: to.Ptr(false), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // NumberOfWorkers: to.Ptr[int32](19), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewPlansClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Plan = armappservice.Plan{ - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewPlansClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewPlansClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Plan = armappservice.Plan{ - // Name: to.Ptr("testsf6141"), - // Type: to.Ptr("Microsoft.Web/serverfarms"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.PlanProperties{ - // GeoRegion: to.Ptr("East US"), - // MaximumNumberOfWorkers: to.Ptr[int32](20), - // NumberOfSites: to.Ptr[int32](4), - // ProvisioningState: to.Ptr(armappservice.ProvisioningStateSucceeded), - // Reserved: to.Ptr(false), - // Status: to.Ptr(armappservice.StatusOptionsReady), - // TargetWorkerCount: to.Ptr[int32](0), - // TargetWorkerSizeID: to.Ptr[int32](0), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("P1"), - // Capacity: to.Ptr[int32](1), - // Family: to.Ptr("P"), - // Size: to.Ptr("P1"), - // Tier: to.Ptr("Premium"), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/provider_client.go b/sdk/resourcemanager/appservice/armappservice/provider_client.go index f4da8297f568..7c7d273358fb 100644 --- a/sdk/resourcemanager/appservice/armappservice/provider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/provider_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -45,7 +42,7 @@ func NewProviderClient(subscriptionID string, credential azcore.TokenCredential, // NewGetAvailableStacksPager - Description for Get available application frameworks and their versions // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - ProviderClientGetAvailableStacksOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksPager // method. func (client *ProviderClient) NewGetAvailableStacksPager(options *ProviderClientGetAvailableStacksOptions) *runtime.Pager[ProviderClientGetAvailableStacksResponse] { @@ -79,7 +76,7 @@ func (client *ProviderClient) getAvailableStacksCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } @@ -99,7 +96,7 @@ func (client *ProviderClient) getAvailableStacksHandleResponse(resp *http.Respon // NewGetAvailableStacksOnPremPager - Description for Get available application frameworks and their versions // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - ProviderClientGetAvailableStacksOnPremOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksOnPremPager // method. func (client *ProviderClient) NewGetAvailableStacksOnPremPager(options *ProviderClientGetAvailableStacksOnPremOptions) *runtime.Pager[ProviderClientGetAvailableStacksOnPremResponse] { @@ -137,7 +134,7 @@ func (client *ProviderClient) getAvailableStacksOnPremCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } @@ -157,7 +154,7 @@ func (client *ProviderClient) getAvailableStacksOnPremHandleResponse(resp *http. // NewGetFunctionAppStacksPager - Description for Get available Function app frameworks and their versions // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - ProviderClientGetFunctionAppStacksOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksPager // method. func (client *ProviderClient) NewGetFunctionAppStacksPager(options *ProviderClientGetFunctionAppStacksOptions) *runtime.Pager[ProviderClientGetFunctionAppStacksResponse] { @@ -191,7 +188,7 @@ func (client *ProviderClient) getFunctionAppStacksCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -212,7 +209,7 @@ func (client *ProviderClient) getFunctionAppStacksHandleResponse(resp *http.Resp // NewGetFunctionAppStacksForLocationPager - Description for Get available Function app frameworks and their versions for // location // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - location - Function App stack location. // - options - ProviderClientGetFunctionAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksForLocationPager // method. @@ -251,7 +248,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -271,7 +268,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationHandleResponse(resp // NewGetWebAppStacksPager - Description for Get available Web app frameworks and their versions // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - ProviderClientGetWebAppStacksOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksPager // method. func (client *ProviderClient) NewGetWebAppStacksPager(options *ProviderClientGetWebAppStacksOptions) *runtime.Pager[ProviderClientGetWebAppStacksResponse] { @@ -305,7 +302,7 @@ func (client *ProviderClient) getWebAppStacksCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -325,7 +322,7 @@ func (client *ProviderClient) getWebAppStacksHandleResponse(resp *http.Response) // NewGetWebAppStacksForLocationPager - Description for Get available Web app frameworks and their versions for location // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - location - Web App stack location. // - options - ProviderClientGetWebAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksForLocationPager // method. @@ -364,7 +361,7 @@ func (client *ProviderClient) getWebAppStacksForLocationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -385,7 +382,7 @@ func (client *ProviderClient) getWebAppStacksForLocationHandleResponse(resp *htt // NewListOperationsPager - Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes // resource metric definitions // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - ProviderClientListOperationsOptions contains the optional parameters for the ProviderClient.NewListOperationsPager // method. func (client *ProviderClient) NewListOperationsPager(options *ProviderClientListOperationsOptions) *runtime.Pager[ProviderClientListOperationsResponse] { @@ -412,14 +409,14 @@ func (client *ProviderClient) NewListOperationsPager(options *ProviderClientList } // listOperationsCreateRequest creates the ListOperations request. -func (client *ProviderClient) listOperationsCreateRequest(ctx context.Context, options *ProviderClientListOperationsOptions) (*policy.Request, error) { +func (client *ProviderClient) listOperationsCreateRequest(ctx context.Context, _ *ProviderClientListOperationsOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/operations" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 0ec41fb2dd69..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go +++ /dev/null @@ -1,13024 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetFunctionAppStacksPager(&armappservice.ProviderClientGetFunctionAppStacksOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.FunctionAppStackCollection = armappservice.FunctionAppStackCollection{ - // Value: []*armappservice.FunctionAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/dotnet"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|3.1"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.1"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|2.2"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("2.2"), - // }}, - // Value: to.Ptr("2"), - // }, - // { - // DisplayText: to.Ptr(".NET Framework 4"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Framework 4.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("4.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/node"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Node.js"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|14"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~14"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("14 LTS"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node.js 12"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 12 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|12"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~12"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("12 LTS"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node.js 10"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 10 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|10"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~10"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("10 LTS"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node.js 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 8 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~8"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("8 LTS"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node.js 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 6 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~6"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("6 LTS"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/python"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.7"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.6"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/java"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|11"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("11"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("11.0"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("1.8"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("powershell"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/powershell"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("PowerShell Core"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7.0"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~7"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PowerShell Core 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell Core 6.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-04T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~6"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("powershell"), - // }, - // }, - // { - // Name: to.Ptr("custom"), - // Type: to.Ptr("Microsoft.Web/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/functionAppStacks/custom"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Custom"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Custom"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Custom Handler"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr(""), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("custom"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("custom"), - // }}, - // Value: to.Ptr("custom"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("custom"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetFunctionAppStacksForLocationPager("westus", &armappservice.ProviderClientGetFunctionAppStacksForLocationOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.FunctionAppStackCollection = armappservice.FunctionAppStackCollection{ - // Value: []*armappservice.FunctionAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/dotnet"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|3.1"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.1"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("dotnet|2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("dotnet|2.2"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("dotnet"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("2.2"), - // }}, - // Value: to.Ptr("2"), - // }, - // { - // DisplayText: to.Ptr(".NET Framework 4"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Framework 4.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("4.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/node"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Node.js"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 14 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|14"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~14"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~14"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("14 LTS"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node.js 12"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 12 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|12"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~12"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~12"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("12 LTS"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node.js 10"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 10 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Node|10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Node|10"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~10"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~10"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("10 LTS"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node.js 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 8 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("node"), - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~8"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("8 LTS"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node.js 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node.js 6 LTS"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "WEBSITE_NODE_DEFAULT_VERSION": to.Ptr("~6"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~1")}, - // }, - // }, - // Value: to.Ptr("6 LTS"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/python"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.7"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("python"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Python|3.6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Python|3.6"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/java"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|11"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("11"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("11.0"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("Java|8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr("Java|8"), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("java"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDefault: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // JavaVersion: to.Ptr("1.8"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("powershell"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/powershell"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("PowerShell Core"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell 7.0"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~7"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~7"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PowerShell Core 6"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("PowerShell Core 6.2"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("powershell"), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-04T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("~6"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // PowerShellVersion: to.Ptr("~6"), - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~2"), - // to.Ptr("~3")}, - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("powershell"), - // }, - // }, - // { - // Name: to.Ptr("custom"), - // Type: to.Ptr("Microsoft.Web/locations/functionAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/functionAppStacks/custom"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.FunctionAppStackProperties{ - // DisplayText: to.Ptr("Custom"), - // MajorVersions: []*armappservice.FunctionAppMajorVersion{ - // { - // DisplayText: to.Ptr("Custom"), - // MinorVersions: []*armappservice.FunctionAppMinorVersion{ - // { - // DisplayText: to.Ptr("Custom Handler"), - // StackSettings: &armappservice.FunctionAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // LinuxFxVersion: to.Ptr(""), - // Use32BitWorkerProcess: to.Ptr(false), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // WindowsRuntimeSettings: &armappservice.FunctionAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // AppSettingsDictionary: map[string]*string{ - // "FUNCTIONS_WORKER_RUNTIME": to.Ptr("custom"), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("custom"), - // SiteConfigPropertiesDictionary: &armappservice.SiteConfigPropertiesDictionary{ - // Use32BitWorkerProcess: to.Ptr(true), - // }, - // SupportedFunctionsExtensionVersions: []*string{ - // to.Ptr("~3"), - // to.Ptr("~2")}, - // }, - // }, - // Value: to.Ptr("custom"), - // }}, - // Value: to.Ptr("custom"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("custom"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetWebAppStacksForLocationPager("westus", &armappservice.ProviderClientGetWebAppStacksForLocationOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppStackCollection = armappservice.WebAppStackCollection{ - // Value: []*armappservice.WebAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/dotnet"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|5.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v5.0"), - // }, - // }, - // Value: to.Ptr("5"), - // }}, - // Value: to.Ptr("5"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // }, - // }, - // Value: to.Ptr("3.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.0"), - // }, - // }, - // Value: to.Ptr("3.0"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // }, - // }, - // Value: to.Ptr("2.2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.1"), - // }, - // }, - // Value: to.Ptr("2.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.0"), - // }, - // }, - // Value: to.Ptr("2.0"), - // }}, - // Value: to.Ptr("dotnetcore2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 1.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.1"), - // }, - // }, - // Value: to.Ptr("1.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.0"), - // }, - // }, - // Value: to.Ptr("1.0"), - // }}, - // Value: to.Ptr("1"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v4.0"), - // }, - // }, - // Value: to.Ptr("v4.8"), - // }}, - // Value: to.Ptr("v4"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V3.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v2.0"), - // }, - // }, - // Value: to.Ptr("v3.5"), - // }}, - // Value: to.Ptr("v3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/node"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Node"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|lts"), - // }, - // }, - // Value: to.Ptr("lts"), - // }}, - // Value: to.Ptr("lts"), - // }, - // { - // DisplayText: to.Ptr("Node 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 14 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|14-lts"), - // }, - // }, - // Value: to.Ptr("14-lts"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node 12"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 12 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|12-lts"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("12.13.0"), - // }, - // }, - // Value: to.Ptr("12-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 12.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(true), - // RuntimeVersion: to.Ptr("NODE|12.9"), - // }, - // }, - // Value: to.Ptr("12.9"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node 10"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 10 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10-lts"), - // }, - // }, - // Value: to.Ptr("10-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 10.16"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.16"), - // }, - // }, - // Value: to.Ptr("10.16"), - // }, - // { - // DisplayText: to.Ptr("Node 10.15"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.15.2"), - // }, - // }, - // Value: to.Ptr("10.15"), - // }, - // { - // DisplayText: to.Ptr("Node 10.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.14"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.14.1"), - // }, - // }, - // Value: to.Ptr("10.14"), - // }, - // { - // DisplayText: to.Ptr("Node 10.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.12"), - // }, - // }, - // Value: to.Ptr("10.12"), - // }, - // { - // DisplayText: to.Ptr("Node 10.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.10"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.0.0"), - // }, - // }, - // Value: to.Ptr("10.10"), - // }, - // { - // DisplayText: to.Ptr("Node 10.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.6.0"), - // }, - // }, - // Value: to.Ptr("10.6"), - // }, - // { - // DisplayText: to.Ptr("Node 10.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.1"), - // }, - // }, - // Value: to.Ptr("10.1"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node 9"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 9.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|9.4"), - // }, - // }, - // Value: to.Ptr("9.4"), - // }}, - // Value: to.Ptr("9"), - // }, - // { - // DisplayText: to.Ptr("Node 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 8 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8-lts"), - // }, - // }, - // Value: to.Ptr("8-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 8.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.12"), - // }, - // }, - // Value: to.Ptr("8.12"), - // }, - // { - // DisplayText: to.Ptr("Node 8.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.11"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.11"), - // }, - // }, - // Value: to.Ptr("8.11"), - // }, - // { - // DisplayText: to.Ptr("Node 8.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.10"), - // }, - // }, - // Value: to.Ptr("8.10"), - // }, - // { - // DisplayText: to.Ptr("Node 8.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.9"), - // }, - // }, - // Value: to.Ptr("8.9"), - // }, - // { - // DisplayText: to.Ptr("Node 8.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.8"), - // }, - // }, - // Value: to.Ptr("8.8"), - // }, - // { - // DisplayText: to.Ptr("Node 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Node 8.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.4"), - // }, - // }, - // Value: to.Ptr("8.4"), - // }, - // { - // DisplayText: to.Ptr("Node 8.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.2"), - // }, - // }, - // Value: to.Ptr("8.2"), - // }, - // { - // DisplayText: to.Ptr("Node 8.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.1.4"), - // }, - // }, - // Value: to.Ptr("8.1"), - // }, - // { - // DisplayText: to.Ptr("Node 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 7.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-07-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.10.1"), - // }, - // }, - // Value: to.Ptr("7.10"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("Node 6"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 6 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6-lts"), - // }, - // }, - // Value: to.Ptr("6-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 6.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.12"), - // }, - // }, - // Value: to.Ptr("6.12"), - // }, - // { - // DisplayText: to.Ptr("Node 6.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.11"), - // }, - // }, - // Value: to.Ptr("6.11"), - // }, - // { - // DisplayText: to.Ptr("Node 6.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.10"), - // }, - // }, - // Value: to.Ptr("6.10"), - // }, - // { - // DisplayText: to.Ptr("Node 6.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.9.5"), - // }, - // }, - // Value: to.Ptr("6.9"), - // }, - // { - // DisplayText: to.Ptr("Node 6.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.6"), - // }, - // }, - // Value: to.Ptr("6.6"), - // }, - // { - // DisplayText: to.Ptr("Node 6.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.5.0"), - // }, - // }, - // Value: to.Ptr("6.5"), - // }, - // { - // DisplayText: to.Ptr("Node 6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.2"), - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }, - // { - // DisplayText: to.Ptr("Node 4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.8"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.8"), - // }, - // }, - // Value: to.Ptr("4.8"), - // }, - // { - // DisplayText: to.Ptr("Node 4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.5"), - // }, - // }, - // Value: to.Ptr("4.5"), - // }, - // { - // DisplayText: to.Ptr("Node 4.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.4"), - // }, - // }, - // Value: to.Ptr("4.4"), - // }}, - // Value: to.Ptr("4"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/python"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.8"), - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.7"), - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.4.0"), - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr("Python 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 2.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|2.7"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.7.3"), - // }, - // }, - // Value: to.Ptr("2.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("php"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/php"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("PHP"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("PHP 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 7.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.4"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.4"), - // }, - // }, - // Value: to.Ptr("7.4"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.3"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.3"), - // }, - // }, - // Value: to.Ptr("7.3"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.2"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.1"), - // }, - // }, - // Value: to.Ptr("7.1"), - // }, - // { - // DisplayText: to.Ptr("7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PHP 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|5.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("5.6"), - // }, - // }, - // Value: to.Ptr("5.6"), - // }}, - // Value: to.Ptr("5"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("php"), - // }, - // }, - // { - // Name: to.Ptr("ruby"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/ruby"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Ruby"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6"), - // }, - // }, - // Value: to.Ptr("2.6"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6.2"), - // }, - // }, - // Value: to.Ptr("2.6.2"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5"), - // }, - // }, - // Value: to.Ptr("2.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5.5"), - // }, - // }, - // Value: to.Ptr("2.5.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4"), - // }, - // }, - // Value: to.Ptr("2.4"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4.5"), - // }, - // }, - // Value: to.Ptr("2.4.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3"), - // }, - // }, - // Value: to.Ptr("2.3"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.8"), - // }, - // }, - // Value: to.Ptr("2.3.8"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.3"), - // }, - // }, - // Value: to.Ptr("2.3.3"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("ruby"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/java"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // }, - // }, - // Value: to.Ptr("11.0"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.5_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.3_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.3"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.2_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.2"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_252"), - // }, - // }, - // Value: to.Ptr("8.0.252"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_242"), - // }, - // }, - // Value: to.Ptr("8.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_232_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.232"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_212"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_212_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.212"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.202"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202"), - // }, - // }, - // Value: to.Ptr("8.0.202 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.181"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181"), - // }, - // }, - // Value: to.Ptr("8.0.181 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.172"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172"), - // }, - // }, - // Value: to.Ptr("8.0.172 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_144"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_144"), - // }, - // }, - // Value: to.Ptr("8.0.144"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_111 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_111"), - // }, - // }, - // Value: to.Ptr("8.0.111 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_102"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_102"), - // }, - // }, - // Value: to.Ptr("8.0.102"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_92"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_92"), - // }, - // }, - // Value: to.Ptr("8.0.92"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_73 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_73"), - // }, - // }, - // Value: to.Ptr("8.0.73 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_60 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_60"), - // }, - // }, - // Value: to.Ptr("8.0.60 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_25 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_25"), - // }, - // }, - // Value: to.Ptr("8.0.25 (Oracle)"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Java 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_262"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_262_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.262"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_242_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_222"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_222_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.222"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_191"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_191_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.191"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_80 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_80"), - // }, - // }, - // Value: to.Ptr("7.0.80 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_71 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_71"), - // }, - // }, - // Value: to.Ptr("7.0.71 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_51 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_51"), - // }, - // }, - // Value: to.Ptr("7.0.51 (Oracle)"), - // }}, - // Value: to.Ptr("7"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("javacontainers"), - // Type: to.Ptr("Microsoft.Web/locations/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/locations/webAppStacks/javacontainers"), - // Location: to.Ptr("westus"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java Containers"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("JAVA|11-java11"), - // Java8Runtime: to.Ptr("JAVA|8-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("JAVA"), - // JavaContainerVersion: to.Ptr("SE"), - // }, - // }, - // Value: to.Ptr("SE"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.5"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u252"), - // }, - // }, - // Value: to.Ptr("1.8.252"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u242"), - // }, - // }, - // Value: to.Ptr("1.8.242"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u232"), - // }, - // }, - // Value: to.Ptr("1.8.232"), - // }}, - // Value: to.Ptr("javase"), - // }, - // { - // DisplayText: to.Ptr("JBoss EAP"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("JBoss EAP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsPreview: to.Ptr(true), - // Java8Runtime: to.Ptr("JBOSSEAP|7.2-java8"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }}, - // Value: to.Ptr("jbosseap"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|9.0-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0"), - // }, - // }, - // Value: to.Ptr("9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.37-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.37-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.37"), - // }, - // }, - // Value: to.Ptr("9.0.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.33"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.33-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.33-java8"), - // }, - // }, - // Value: to.Ptr("9.0.33"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.31"), - // }, - // }, - // Value: to.Ptr("9.0.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.27"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.27"), - // }, - // }, - // Value: to.Ptr("9.0.27"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.21"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.21"), - // }, - // }, - // Value: to.Ptr("9.0.21"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.20-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.20-java8"), - // }, - // }, - // Value: to.Ptr("9.0.20"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.14"), - // }, - // }, - // Value: to.Ptr("9.0.14"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.12"), - // }, - // }, - // Value: to.Ptr("9.0.12"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.8"), - // }, - // }, - // Value: to.Ptr("9.0.8"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.0"), - // }, - // }, - // Value: to.Ptr("9.0.0"), - // }}, - // Value: to.Ptr("tomcat9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|8.5-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.6"), - // }, - // }, - // Value: to.Ptr("8.5.6"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.57"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.57-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.57-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.57"), - // }, - // }, - // Value: to.Ptr("8.5.57"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.53-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.53-java8"), - // }, - // }, - // Value: to.Ptr("8.5.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.51"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.51"), - // }, - // }, - // Value: to.Ptr("8.5.51"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.47"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.47"), - // }, - // }, - // Value: to.Ptr("8.5.47"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.42"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.42"), - // }, - // }, - // Value: to.Ptr("8.5.42"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.41"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.41-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.41-java8"), - // }, - // }, - // Value: to.Ptr("8.5.41"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.37"), - // }, - // }, - // Value: to.Ptr("8.5.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.34"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.34"), - // }, - // }, - // Value: to.Ptr("8.5.34"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.31"), - // }, - // }, - // Value: to.Ptr("8.5.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.20"), - // }, - // }, - // Value: to.Ptr("8.5.20"), - // }}, - // Value: to.Ptr("tomcat8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.53"), - // }, - // }, - // Value: to.Ptr("8.0.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.46"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.46"), - // }, - // }, - // Value: to.Ptr("8.0.46"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.23"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.23"), - // }, - // }, - // Value: to.Ptr("8.0.23"), - // }}, - // Value: to.Ptr("tomcat8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.94"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.94"), - // }, - // }, - // Value: to.Ptr("7.0.94"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.81"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.81"), - // }, - // }, - // Value: to.Ptr("7.0.81"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.62"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.62"), - // }, - // }, - // Value: to.Ptr("7.0.62"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.50"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.50"), - // }, - // }, - // Value: to.Ptr("7.0.50"), - // }}, - // Value: to.Ptr("tomcat7.0"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3"), - // }, - // }, - // Value: to.Ptr("9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.25"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.25"), - // }, - // }, - // Value: to.Ptr("9.3.25"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.13"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.13"), - // }, - // }, - // Value: to.Ptr("9.3.13"), - // }}, - // Value: to.Ptr("jetty9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1"), - // }, - // }, - // Value: to.Ptr("9.1"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1.0"), - // }, - // }, - // Value: to.Ptr("9.1.0"), - // }}, - // Value: to.Ptr("jetty9.1"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("WildFly 14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14-jre8"), - // }, - // }, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14.0.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14.0.1-java8"), - // }, - // }, - // Value: to.Ptr("14.0.1"), - // }}, - // Value: to.Ptr("wildfly14"), - // }}, - // Value: to.Ptr("javacontainers"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewListOperationsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmOperationCollection = armappservice.CsmOperationCollection{ - // Value: []*armappservice.CsmOperationDescription{ - // { - // Name: to.Ptr("Microsoft.Web/sites/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a Web App"), - // Operation: to.Ptr("Get Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new Web App or update an existing one"), - // Operation: to.Ptr("Create or Update Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new Web App Slot or update an existing one"), - // Operation: to.Ptr("Create or Update Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing Web App"), - // Operation: to.Ptr("Delete Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing Web App Slot"), - // Operation: to.Ptr("Delete Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/config/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App Slot's configuration settings"), - // Operation: to.Ptr("Get Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/config/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App configuration settings"), - // Operation: to.Ptr("Get Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/config/list/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web App's security sensitive settings, such as publishing credentials, app settings and connection strings"), - // Operation: to.Ptr("List Web App Security Sensitive Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/config/list/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web App Slot's security sensitive settings, such as publishing credentials, app settings and connection strings"), - // Operation: to.Ptr("List Web App Slot Security Sensitive Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/config/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App's configuration settings"), - // Operation: to.Ptr("Update Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/config/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App Slot's configuration settings"), - // Operation: to.Ptr("Update Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/sourcecontrols/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App's source control configuration settings"), - // Operation: to.Ptr("Get Web App Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/sourcecontrols/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App Slot's source control configuration settings"), - // Operation: to.Ptr("Get Web App Slot Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/sourcecontrols/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App's source control configuration settings"), - // Operation: to.Ptr("Update Web App Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/sourcecontrols/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web App Slot's source control configuration settings"), - // Operation: to.Ptr("Update Web App Slot Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/sourcecontrols/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web App's source control configuration settings"), - // Operation: to.Ptr("Delete Web App Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/sourcecontrols/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web App Slot's source control configuration settings"), - // Operation: to.Ptr("Delete Web App Slot Source Control Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/backup/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new web app backup"), - // Operation: to.Ptr("Create Web App Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/backup/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create new Web App Slot backup."), - // Operation: to.Ptr("Create Web App Slot Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/backups/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a web app's backup"), - // Operation: to.Ptr("Get Web App Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/backups/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a web app slots' backup"), - // Operation: to.Ptr("List Web App Slot Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/publishxml/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get publishing profile xml for a Web App"), - // Operation: to.Ptr("Get Web App Publishing Profile"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/publishxml/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get publishing profile xml for Web App Slot"), - // Operation: to.Ptr("Get Web App Slot Publishing Profile"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/publish/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Publish a Web App"), - // Operation: to.Ptr("Publish Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/publish/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Publish a Web App Slot"), - // Operation: to.Ptr("Publish Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/restart/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restart a Web App"), - // Operation: to.Ptr("Restart Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/restart/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restart a Web App Slot"), - // Operation: to.Ptr("Restart Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/start/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start a Web App"), - // Operation: to.Ptr("Start Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/start/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start a Web App Slot"), - // Operation: to.Ptr("Start Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/stop/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop a Web App"), - // Operation: to.Ptr("Stop Web App"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/stop/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop a Web App Slot"), - // Operation: to.Ptr("Stop Web App Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slotsswap/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Swap Web App deployment slots"), - // Operation: to.Ptr("Swap Web App Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/slotsswap/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Swap Web App deployment slots"), - // Operation: to.Ptr("Swap Web App Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slotsdiffs/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get differences in configuration between web app and slots"), - // Operation: to.Ptr("Get Web App Slots Differences"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/slotsdiffs/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get differences in configuration between web app and slots"), - // Operation: to.Ptr("Get Web App Slots Differences"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/applySlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Apply web app slot configuration from target slot to the current web app"), - // Operation: to.Ptr("Apply Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/applySlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Apply web app slot configuration from target slot to the current slot."), - // Operation: to.Ptr("Apply Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/resetSlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reset web app configuration"), - // Operation: to.Ptr("Reset Web App Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/resetSlotConfig/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reset web app slot configuration"), - // Operation: to.Ptr("Reset Web App Slot Configuration"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a Web App deployment slot"), - // Operation: to.Ptr("Get Web App Deployment Slot"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Slot"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties on an App Service Plan"), - // Operation: to.Ptr("Get App Service Plan"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new App Service Plan or update an existing one"), - // Operation: to.Ptr("Create or Update App Service Plan"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing App Service Plan"), - // Operation: to.Ptr("Delete App Service Plan"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/restartSites/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restart all Web Apps in an App Service Plan"), - // Operation: to.Ptr("Restart Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plan"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/certificates/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of certificates."), - // Operation: to.Ptr("Get Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/certificates/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Add a new certificate or update an existing one."), - // Operation: to.Ptr("Add or Update Certificate"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/certificates/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an existing certificate."), - // Operation: to.Ptr("Delete Certificate"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Certificate"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/aseRegions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of ASE regions."), - // Operation: to.Ptr("Get ASE Regions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("ASE Region"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/geoRegions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of Geo regions."), - // Operation: to.Ptr("Get Geo Regions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Geo Region"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/listSitesAssignedToHostName/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get names of sites assigned to hostname."), - // Operation: to.Ptr("Get sites assigned to hostname"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Site Name"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of an App Service Environment"), - // Operation: to.Ptr("Get App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new App Service Environment or update existing one"), - // Operation: to.Ptr("Create or Update App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete an App Service Environment"), - // Operation: to.Ptr("Delete App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/reboot/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reboot all machines in an App Service Environment"), - // Operation: to.Ptr("Reboot an App Service Environment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a FrontEnd Pool in an App Service Environment"), - // Operation: to.Ptr("Get FrontEnd Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment FrontEnd Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new FrontEnd Pool in an App Service Environment or update an existing one"), - // Operation: to.Ptr("Create or Update FrontEnd Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment FrontEnd Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the properties of a Worker Pool in an App Service Environment"), - // Operation: to.Ptr("Get Worker Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment Worker Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Create a new Worker Pool in an App Service Environment or update an existing one"), - // Operation: to.Ptr("Create or Update Worker Pool"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Environment Worker Pool"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of Connections."), - // Operation: to.Ptr("Get Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates a Connection."), - // Operation: to.Ptr("Add or Update Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Deletes a Connection."), - // Operation: to.Ptr("Delete Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connections/Join/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Joins a Connection."), - // Operation: to.Ptr("Join Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of Connection Gateways."), - // Operation: to.Ptr("Get Connection Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates a Connection Gateway."), - // Operation: to.Ptr("Add or Update Connection Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Deletes a Connection Gateway."), - // Operation: to.Ptr("Delete Connection Gateway"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/connectionGateways/Join/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Joins a Connection Gateway."), - // Operation: to.Ptr("Join Connection Gateway"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/recommendations/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of recommendations for subscriptions."), - // Operation: to.Ptr("Get recommendations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Recommendation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/recommendations/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get the list of recommendations for web app."), - // Operation: to.Ptr("Get recommendations for web app"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Recommendation"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/availablestacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Available Stacks."), - // Operation: to.Ptr("Get Available Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Available Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/functionappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Function App Stacks."), - // Operation: to.Ptr("Get Function App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Function App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/webappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web App Stacks."), - // Operation: to.Ptr("Get Web App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/checknameavailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if resource name is available."), - // Operation: to.Ptr("Get Check Name Availability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Check Name Availability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/classicmobileservices/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Classic Mobile Services."), - // Operation: to.Ptr("Get Classic Mobile Services"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Classic Mobile Services"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/connections/confirmconsentcode/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Confirm Connections Consent Code."), - // Operation: to.Ptr("Confirm Connections Consent Code"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/connections/listconsentlinks/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Consent Links for Connections."), - // Operation: to.Ptr("List Consent Links for Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/deploymentlocations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Deployment Locations."), - // Operation: to.Ptr("Get Deployment Locations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Deployment Locations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/capacities/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Capacities."), - // Operation: to.Ptr("Get Hosting Environments Capacities"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Capacities"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/diagnostics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Diagnostics."), - // Operation: to.Ptr("Get Hosting Environments Diagnostics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Diagnostics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Metric Definitions."), - // Operation: to.Ptr("Get Hosting Environments Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools Metric Definitions."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools Metrics."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools SKUs."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/multirolepools/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments MultiRole Pools Usages."), - // Operation: to.Ptr("Get Hosting Environments MultiRole Pools Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments MultiRole Pools Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Operations."), - // Operation: to.Ptr("Get Hosting Environments Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/resume/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Resume Hosting Environments."), - // Operation: to.Ptr("Resume Hosting Environments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/serverfarms/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments App Service Plans."), - // Operation: to.Ptr("Get Hosting Environments App Service Plans"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments App Service Plans"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/sites/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Web Apps."), - // Operation: to.Ptr("Get Hosting Environments Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/suspend/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Suspend Hosting Environments."), - // Operation: to.Ptr("Suspend Hosting Environments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Usages."), - // Operation: to.Ptr("Get Hosting Environments Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools Metric Definitions."), - // Operation: to.Ptr("Get Hosting Environments Workerpools Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools Metrics."), - // Operation: to.Ptr("Get Hosting Environments Workerpools Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools SKUs."), - // Operation: to.Ptr("Get Hosting Environments Workerpools SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/workerpools/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Hosting Environments Workerpools Usages."), - // Operation: to.Ptr("Get Hosting Environments Workerpools Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environments Workerpools Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/ishostingenvironmentnameavailable/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get if Hosting Environment Name is available."), - // Operation: to.Ptr("Check if Hosting Environment Name is available"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hosting Environment Name"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/ishostnameavailable/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if Hostname is Available."), - // Operation: to.Ptr("Check if Hostname is Available"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Hostname"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/isusernameavailable/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Check if Username is available."), - // Operation: to.Ptr("Check if Username is available"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Username"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/apioperations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations API Operations."), - // Operation: to.Ptr("Get Locations API Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations API Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/connectiongatewayinstallations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Connection Gateway Installations."), - // Operation: to.Ptr("Get Locations Connection Gateway Installations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Connection Gateway Installations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/functionappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Function App Stacks."), - // Operation: to.Ptr("Get Locations Function App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Function App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/webappstacks/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Web App Stacks."), - // Operation: to.Ptr("Get Locations Web App Stacks"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Web App Stacks"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/locations/managedapis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Locations Managed APIs."), - // Operation: to.Ptr("Get Locations Managed APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Locations Managed APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Operations."), - // Operation: to.Ptr("Get Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/publishingusers/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Publishing Users."), - // Operation: to.Ptr("Get Publishing Users"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Publishing Users"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/publishingusers/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Publishing Users."), - // Operation: to.Ptr("Update Publishing Users"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Publishing Users"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/capabilities/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Capabilities."), - // Operation: to.Ptr("Get App Service Plans Capabilities"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Capabilities"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/firstpartyapps/settings/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete App Service Plans First Party Apps Settings."), - // Operation: to.Ptr("Delete App Service Plans First Party Apps Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans First Party Apps Settings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/firstpartyapps/settings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans First Party Apps Settings."), - // Operation: to.Ptr("Get App Service Plans First Party Apps Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans First Party Apps Settings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/firstpartyapps/settings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update App Service Plans First Party Apps Settings."), - // Operation: to.Ptr("Update App Service Plans First Party Apps Settings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans First Party Apps Settings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionnamespaces/relays/sites/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays Web Apps."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Namespaces Relays Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionplanlimits/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Plan Limits."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Plan Limits"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Plan Limits"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionrelays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Relays."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Metric Definitions."), - // Operation: to.Ptr("Get App Service Plans Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Metrics."), - // Operation: to.Ptr("Get App Service Plans Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/operationresults/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Operation Results."), - // Operation: to.Ptr("Get App Service Plans Operation Results"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Operation Results"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/sites/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Web Apps."), - // Operation: to.Ptr("Get App Service Plans Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans SKUs."), - // Operation: to.Ptr("Get App Service Plans SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Usages."), - // Operation: to.Ptr("Get App Service Plans Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/gateways/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update App Service Plans Virtual Network Connections Gateways."), - // Operation: to.Ptr("Update App Service Plans Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Virtual Network Connections."), - // Operation: to.Ptr("Get App Service Plans Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/routes/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete App Service Plans Virtual Network Connections Routes."), - // Operation: to.Ptr("Delete App Service Plans Virtual Network Connections Routes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Routes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/routes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Virtual Network Connections Routes."), - // Operation: to.Ptr("Get App Service Plans Virtual Network Connections Routes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Routes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/virtualnetworkconnections/routes/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update App Service Plans Virtual Network Connections Routes."), - // Operation: to.Ptr("Update App Service Plans Virtual Network Connections Routes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Virtual Network Connections Routes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/workers/reboot/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Reboot App Service Plans Workers."), - // Operation: to.Ptr("Reboot App Service Plans Workers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Workers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/analyzecustomhostname/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Analyze Custom Hostname."), - // Operation: to.Ptr("Analyze Custom Hostname"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Custom Hostname"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backup/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Backup."), - // Operation: to.Ptr("Get Web Apps Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backup/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Backup."), - // Operation: to.Ptr("Update Web Apps Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backups/list/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web Apps Backups."), - // Operation: to.Ptr("List Web Apps Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backups/restore/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps Backups."), - // Operation: to.Ptr("Restore Web Apps Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/config/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Config."), - // Operation: to.Ptr("Delete Web Apps Config"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Config"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Delete Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Get Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/start/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Start Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/continuouswebjobs/stop/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop Web Apps Continuous Web Jobs."), - // Operation: to.Ptr("Stop Web Apps Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Deployments."), - // Operation: to.Ptr("Delete Web Apps Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/log/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Deployments Log."), - // Operation: to.Ptr("Get Web Apps Deployments Log"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments Log"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Deployments."), - // Operation: to.Ptr("Get Web Apps Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/deployments/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Deployments."), - // Operation: to.Ptr("Update Web Apps Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/frebanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics FREB Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics FREB Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics FREB Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/frebanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics FREB Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics FREB Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics FREB Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Categories."), - // Operation: to.Ptr("Get Web Apps Diagnostics Category"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Category"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/runtimeavailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Runtime Availability."), - // Operation: to.Ptr("Get Web Apps Diagnostics Runtime Availability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Runtime Availability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/servicehealth/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Service Health."), - // Operation: to.Ptr("Get Web Apps Diagnostics Service Health"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Service Health"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/workeravailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Workeravailability."), - // Operation: to.Ptr("Get Web Apps Diagnostics Workeravailability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Workeravailability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/workeravailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Workeravailability."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Workeravailability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Workeravailability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/workerprocessrecycle/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Worker Process Recycle."), - // Operation: to.Ptr("Get Web Apps Diagnostics Worker Process Recycle"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Worker Process Recycle"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/workerprocessrecycle/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Worker Process Recycle."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Worker Process Recycle"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Worker Process Recycle"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/aspnetcore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics for ASP.NET Core app."), - // Operation: to.Ptr("Get Web Apps Diagnostics ASP.NET Core"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics ASP.NET Core"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/aspnetcore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics for ASP.NET Core app."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics ASP.NET Core"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics ASP.NET Core"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/domainownershipidentifiers/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Domain Ownership Identifiers."), - // Operation: to.Ptr("Get Web Apps Domain Ownership Identifiers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Domain Ownership Identifiers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/domainownershipidentifiers/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Domain Ownership Identifiers."), - // Operation: to.Ptr("Update Web Apps Domain Ownership Identifiers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Domain Ownership Identifiers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Functions Web Apps."), - // Operation: to.Ptr("Functions Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Functions."), - // Operation: to.Ptr("Delete Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/listsecrets/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Secrets Web Apps Functions."), - // Operation: to.Ptr("List Secrets Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Functions."), - // Operation: to.Ptr("Get Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Functions."), - // Operation: to.Ptr("Update Web Apps Functions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hostnamebindings/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Hostname Bindings."), - // Operation: to.Ptr("Delete Web Apps Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hostnamebindings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hostname Bindings."), - // Operation: to.Ptr("Get Web Apps Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hostnamebindings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Hostname Bindings."), - // Operation: to.Ptr("Update Web Apps Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnection/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Hybrid Connection."), - // Operation: to.Ptr("Delete Web Apps Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnection/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hybrid Connection."), - // Operation: to.Ptr("Get Web Apps Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnection/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Hybrid Connection."), - // Operation: to.Ptr("Update Web Apps Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionrelays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hybrid Connection Relays."), - // Operation: to.Ptr("Get Web Apps Hybrid Connection Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Deployments."), - // Operation: to.Ptr("Get Web Apps Instances Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/processes/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Instances Processes."), - // Operation: to.Ptr("Delete Web Apps Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/processes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Processes."), - // Operation: to.Ptr("Get Web Apps Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances."), - // Operation: to.Ptr("Get Web Apps Instances"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/listsyncfunctiontriggerstatus/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Sync Function Trigger Status Web Apps."), - // Operation: to.Ptr("List Sync Function Trigger Status Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Metric Definitions."), - // Operation: to.Ptr("Get Web Apps Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Metrics."), - // Operation: to.Ptr("Get Web Apps Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/networktrace/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Network Trace Web Apps."), - // Operation: to.Ptr("Network Trace Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/newpassword/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Newpassword Web Apps."), - // Operation: to.Ptr("Newpassword Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/operationresults/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Operation Results."), - // Operation: to.Ptr("Get Web Apps Operation Results"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Operation Results"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/perfcounters/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Performance Counters."), - // Operation: to.Ptr("Get Web Apps Performance Counters"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Performance Counters"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/premieraddons/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Premier Addons."), - // Operation: to.Ptr("Delete Web Apps Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/premieraddons/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Premier Addons."), - // Operation: to.Ptr("Get Web Apps Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/premieraddons/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Premier Addons."), - // Operation: to.Ptr("Update Web Apps Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publishxml/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Publishing XML."), - // Operation: to.Ptr("Get Web Apps Publishing XML"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Publishing XML"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/recommendationhistory/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Recommendation History."), - // Operation: to.Ptr("Get Web Apps Recommendation History"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Recommendation History"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/recommendations/disable/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Disable Web Apps Recommendations."), - // Operation: to.Ptr("Disable Web Apps Recommendations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Recommendations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/restore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Restore."), - // Operation: to.Ptr("Get Web Apps Restore"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Restore"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/analyzecustomhostname/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Analyze Custom Hostname."), - // Operation: to.Ptr("Get Web Apps Slots Analyze Custom Hostname"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Analyze Custom Hostname"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backup/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Backup."), - // Operation: to.Ptr("Update Web Apps Slots Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backups/list/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Web Apps Slots Backups."), - // Operation: to.Ptr("List Web Apps Slots Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backups/restore/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps Slots Backups."), - // Operation: to.Ptr("Restore Web Apps Slots Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/config/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Config."), - // Operation: to.Ptr("Delete Web Apps Slots Config"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Config"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Delete Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Get Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/start/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Start Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Start Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/continuouswebjobs/stop/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Stop Web Apps Slots Continuous Web Jobs."), - // Operation: to.Ptr("Stop Web Apps Slots Continuous Web Jobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Continuous Web Jobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Deployments."), - // Operation: to.Ptr("Delete Web Apps Slots Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/log/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Deployments Log."), - // Operation: to.Ptr("Get Web Apps Slots Deployments Log"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments Log"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Deployments."), - // Operation: to.Ptr("Get Web Apps Slots Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/deployments/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Deployments."), - // Operation: to.Ptr("Update Web Apps Slots Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hostnamebindings/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Hostname Bindings."), - // Operation: to.Ptr("Delete Web Apps Slots Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hostnamebindings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Hostname Bindings."), - // Operation: to.Ptr("Get Web Apps Slots Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hostnamebindings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Hostname Bindings."), - // Operation: to.Ptr("Update Web Apps Slots Hostname Bindings"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hostname Bindings"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnection/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Hybrid Connection."), - // Operation: to.Ptr("Delete Web Apps Slots Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnection/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Hybrid Connection."), - // Operation: to.Ptr("Get Web Apps Slots Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnection/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Hybrid Connection."), - // Operation: to.Ptr("Update Web Apps Slots Hybrid Connection"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Instances Deployments."), - // Operation: to.Ptr("Get Web Apps Slots Instances Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/processes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Instances Processes."), - // Operation: to.Ptr("Get Web Apps Slots Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Instances."), - // Operation: to.Ptr("Get Web Apps Slots Instances"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/metricdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Metric Definitions."), - // Operation: to.Ptr("Get Web Apps Slots Metric Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Metric Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/metrics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Metrics."), - // Operation: to.Ptr("Get Web Apps Slots Metrics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Metrics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/newpassword/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Newpassword Web Apps Slots."), - // Operation: to.Ptr("Newpassword Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/operationresults/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Operation Results."), - // Operation: to.Ptr("Get Web Apps Slots Operation Results"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Operation Results"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/phplogging/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Phplogging."), - // Operation: to.Ptr("Get Web Apps Slots Phplogging"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Phplogging"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/premieraddons/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Premier Addons."), - // Operation: to.Ptr("Delete Web Apps Slots Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/premieraddons/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Premier Addons."), - // Operation: to.Ptr("Get Web Apps Slots Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/premieraddons/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Premier Addons."), - // Operation: to.Ptr("Update Web Apps Slots Premier Addons"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Premier Addons"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/restore/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Restore."), - // Operation: to.Ptr("Get Web Apps Slots Restore"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Restore"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/sync/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Sync Web Apps Slots."), - // Operation: to.Ptr("Sync Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/triggeredwebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Triggered WebJobs."), - // Operation: to.Ptr("Delete Web Apps Slots Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/triggeredwebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Triggered WebJobs."), - // Operation: to.Ptr("Get Web Apps Slots Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/triggeredwebjobs/run/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Slots Triggered WebJobs."), - // Operation: to.Ptr("Run Web Apps Slots Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Usages."), - // Operation: to.Ptr("Get Web Apps Slots Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Virtual Network Connections."), - // Operation: to.Ptr("Delete Web Apps Slots Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/gateways/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Virtual Network Connections Gateways."), - // Operation: to.Ptr("Update Web Apps Slots Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Virtual Network Connections."), - // Operation: to.Ptr("Get Web Apps Slots Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/virtualnetworkconnections/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Virtual Network Connections."), - // Operation: to.Ptr("Update Web Apps Slots Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/webjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots WebJobs."), - // Operation: to.Ptr("Get Web Apps Slots WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/snapshots/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Snapshots."), - // Operation: to.Ptr("Get Web Apps Snapshots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Snapshots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/sync/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Sync Web Apps."), - // Operation: to.Ptr("Sync Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Triggered WebJobs."), - // Operation: to.Ptr("Delete Web Apps Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Triggered WebJobs."), - // Operation: to.Ptr("Get Web Apps Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/run/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Triggered WebJobs."), - // Operation: to.Ptr("Run Web Apps Triggered WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/usages/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Usages."), - // Operation: to.Ptr("Get Web Apps Usages"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Usages"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Virtual Network Connections."), - // Operation: to.Ptr("Delete Web Apps Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/gateways/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Virtual Network Connections Gateways."), - // Operation: to.Ptr("Get Web Apps Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/gateways/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Virtual Network Connections Gateways."), - // Operation: to.Ptr("Update Web Apps Virtual Network Connections Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Virtual Network Connections."), - // Operation: to.Ptr("Get Web Apps Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/virtualnetworkconnections/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Virtual Network Connections."), - // Operation: to.Ptr("Update Web Apps Virtual Network Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Virtual Network Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/webjobs/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps WebJobs."), - // Operation: to.Ptr("Get Web Apps WebJobs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps WebJobs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/skus/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get SKUs."), - // Operation: to.Ptr("Get SKUs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("SKUs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sourcecontrols/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Source Controls."), - // Operation: to.Ptr("Get Source Controls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Source Controls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sourcecontrols/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Source Controls."), - // Operation: to.Ptr("Update Source Controls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Source Controls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/unregister/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Unregister Microsoft.Web resource provider for the subscription."), - // Operation: to.Ptr("Unregister Microsoft.Web resource provider"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Microsoft.Web resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/validate/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Validate ."), - // Operation: to.Ptr("Validate "), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr(""), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/register/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Register Microsoft.Web resource provider for the subscription."), - // Operation: to.Ptr("Register Microsoft.Web resource provider"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Microsoft.Web resource provider"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionnamespaces/relays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Get App Service Plans Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/backups/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Backups."), - // Operation: to.Ptr("Delete Web Apps Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Delete Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/listkeys/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Keys Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("List Keys Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Update Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/metricsdefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Metrics Definitions."), - // Operation: to.Ptr("Get Web Apps Metrics Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Metrics Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/migratemysql/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Migrate MySql Web Apps."), - // Operation: to.Ptr("Migrate MySql Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/migratemysql/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Migrate MySql."), - // Operation: to.Ptr("Get Web Apps Migrate MySql"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Migrate MySql"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/recover/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Recover Web Apps."), - // Operation: to.Ptr("Recover Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/siteextensions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Site Extensions."), - // Operation: to.Ptr("Delete Web Apps Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/siteextensions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Site Extensions."), - // Operation: to.Ptr("Get Web Apps Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/siteextensions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Site Extensions."), - // Operation: to.Ptr("Update Web Apps Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backup/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Backup."), - // Operation: to.Ptr("Get Web Apps Slots Backup"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backup"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnectionrelays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Hybrid Connection Relays."), - // Operation: to.Ptr("Get Web Apps Slots Hybrid Connection Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/siteextensions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Site Extensions."), - // Operation: to.Ptr("Delete Web Apps Slots Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/siteextensions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Site Extensions."), - // Operation: to.Ptr("Get Web Apps Slots Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/siteextensions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Site Extensions."), - // Operation: to.Ptr("Update Web Apps Slots Site Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Site Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/snapshots/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Snapshots."), - // Operation: to.Ptr("Get Web Apps Slots Snapshots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Snapshots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/syncfunctiontriggers/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Sync Function Triggers for Web Apps."), - // Operation: to.Ptr("Sync Function Triggers for Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/triggeredwebjobs/history/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Triggered WebJobs History."), - // Operation: to.Ptr("Get Web Apps Triggered WebJobs History"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Triggered WebJobs History"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/connectiongateways/liststatus/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Status Connection Gateways."), - // Operation: to.Ptr("List Status Connection Gateways"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Connection Gateways"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/hybridconnectionnamespaces/relays/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete App Service Plans Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Delete App Service Plans Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("App Service Plans Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/deployment/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Deployment."), - // Operation: to.Ptr("Get Web Apps Diagnostics Deployment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Deployment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitecpuanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site CPU Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site CPU Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site CPU Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitelatency/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Latency."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Latency"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Latency"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitememoryanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Memory Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Memory Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Memory Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/threadcount/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Thread Count."), - // Operation: to.Ptr("Get Web Apps Diagnostics Thread Count"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Thread Count"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/deployment/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Deployment."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Deployment"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Deployment"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitecpuanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site CPU Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site CPU Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site CPU Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitelatency/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Latency."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Latency"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Latency"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitememoryanalysis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Memory Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Memory Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Memory Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/threadcount/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Thread Count."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Thread Count"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Thread Count"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/masterkey/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Functions Masterkey."), - // Operation: to.Ptr("Get Web Apps Functions Masterkey"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions Masterkey"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/hybridconnectionnamespaces/relays/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Get Web Apps Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/extensions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Extensions."), - // Operation: to.Ptr("Get Web Apps Instances Extensions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Extensions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Operations."), - // Operation: to.Ptr("Get Web Apps Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/resourcehealthmetadata/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Resource Health Metadata."), - // Operation: to.Ptr("Get Web Apps Resource Health Metadata"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Resource Health Metadata"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/backups/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Backups."), - // Operation: to.Ptr("Delete Web Apps Slots Backups"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Backups"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/domainownershipidentifiers/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Domain Ownership Identifiers."), - // Operation: to.Ptr("Get Web Apps Slots Domain Ownership Identifiers"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Domain Ownership Identifiers"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnectionnamespaces/relays/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Delete Web Apps Slots Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/hybridconnectionnamespaces/relays/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Slots Hybrid Connection Namespaces Relays."), - // Operation: to.Ptr("Update Web Apps Slots Hybrid Connection Namespaces Relays"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Hybrid Connection Namespaces Relays"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/operations/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Operations."), - // Operation: to.Ptr("Get Web Apps Slots Operations"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Operations"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/perfcounters/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Performance Counters."), - // Operation: to.Ptr("Get Web Apps Slots Performance Counters"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Performance Counters"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/resourcehealthmetadata/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Resource Health Metadata."), - // Operation: to.Ptr("Get Web Apps Slots Resource Health Metadata"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Resource Health Metadata"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apiacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts Apiacls."), - // Operation: to.Ptr("Get Api Management Accounts Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Get Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs."), - // Operation: to.Ptr("Get Api Management Accounts APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/connectionacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts Connectionacls."), - // Operation: to.Ptr("Get Api Management Accounts Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/apiacls/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Apiacls."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/apiacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Apiacls."), - // Operation: to.Ptr("Get Api Management Accounts APIs Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/apiacls/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Apiacls."), - // Operation: to.Ptr("Update Api Management Accounts APIs Apiacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Apiacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connectionacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Connectionacls."), - // Operation: to.Ptr("Get Api Management Accounts APIs Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/confirmconsentcode/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Confirm Consent Code Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Confirm Consent Code Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/connectionacls/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Connections Connectionacls."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Connections Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/connectionacls/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Connections Connectionacls."), - // Operation: to.Ptr("Get Api Management Accounts APIs Connections Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/connectionacls/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Connections Connectionacls."), - // Operation: to.Ptr("Update Api Management Accounts APIs Connections Connectionacls"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections Connectionacls"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/getconsentlinks/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Consent Links for Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Get Consent Links for Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Connections."), - // Operation: to.Ptr("Update Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs."), - // Operation: to.Ptr("Delete Api Management Accounts APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/localizeddefinitions/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Api Management Accounts APIs Localized Definitions."), - // Operation: to.Ptr("Delete Api Management Accounts APIs Localized Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Localized Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/localizeddefinitions/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Api Management Accounts APIs Localized Definitions."), - // Operation: to.Ptr("Get Api Management Accounts APIs Localized Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Localized Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/localizeddefinitions/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs Localized Definitions."), - // Operation: to.Ptr("Update Api Management Accounts APIs Localized Definitions"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Localized Definitions"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Api Management Accounts APIs."), - // Operation: to.Ptr("Update Api Management Accounts APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/listconnectionkeys/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Connection Keys Api Management Accounts APIs Connections."), - // Operation: to.Ptr("List Connection Keys Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/apimanagementaccounts/apis/connections/listsecrets/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("List Secrets Api Management Accounts APIs Connections."), - // Operation: to.Ptr("List Secrets Api Management Accounts APIs Connections"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Api Management Accounts APIs Connections"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Deployments."), - // Operation: to.Ptr("Get Web Apps Diagnostics Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/deployments/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Deployments."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/loganalyzer/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Log Analyzer."), - // Operation: to.Ptr("Get Web Apps Diagnostics Log Analyzer"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Log Analyzer"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/loganalyzer/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Log Analyzer."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Log Analyzer"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Log Analyzer"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/sitecrashes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Crashes."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Crashes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Crashes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitecrashes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Crashes."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Crashes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Crashes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/siterestartsettingupdate/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Restart Setting Update."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Restart Setting Update"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Restart Setting Update"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/siterestartsettingupdate/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Restart Setting Update."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Restart Setting Update"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Restart Setting Update"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/siterestartuserinitiated/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Restart User Initiated."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Restart User Initiated"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Restart User Initiated"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/siterestartuserinitiated/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Restart User Initiated."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Restart User Initiated"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Restart User Initiated"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/siteswap/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Site Swap."), - // Operation: to.Ptr("Get Web Apps Diagnostics Site Swap"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Site Swap"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/siteswap/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Swap."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Swap"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Swap"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/functions/token/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Functions Token."), - // Operation: to.Ptr("Get Web Apps Functions Token"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Functions Token"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/deployments/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Instances Deployments."), - // Operation: to.Ptr("Delete Web Apps Instances Deployments"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Deployments"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/processes/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Processes."), - // Operation: to.Ptr("Get Web Apps Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publiccertificates/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Public Certificates."), - // Operation: to.Ptr("Delete Web Apps Public Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Public Certificates"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publiccertificates/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Public Certificates."), - // Operation: to.Ptr("Get Web Apps Public Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Public Certificates"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/publiccertificates/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Web Apps Public Certificates."), - // Operation: to.Ptr("Update Web Apps Public Certificates"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Public Certificates"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/networktrace/action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Network Trace Web Apps Slots."), - // Operation: to.Ptr("Network Trace Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/autoheal/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Autoheal."), - // Operation: to.Ptr("Get Web Apps Diagnostics Autoheal"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Autoheal"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/autoheal/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Autoheal."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Autoheal"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Autoheal"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/runtimeavailability/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Runtime Availability."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Runtime Availability"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Runtime Availability"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/servicehealth/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Service Health."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Service Health"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Service Health"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/sitelatency/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Site Latency."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Site Latency"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Site Latency"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/migratemysql/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Migrate MySql."), - // Operation: to.Ptr("Get Web Apps Slots Migrate MySql"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Migrate MySql"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App slot"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for Web App slot"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service plan"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/serverfarms/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service plan"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/providers/Microsoft.Insights/diagnosticSettings/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the diagnostic setting for the resource"), - // Operation: to.Ptr("Read diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service Environment"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/hostingenvironments/providers/Microsoft.Insights/diagnosticSettings/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), - // Operation: to.Ptr("Write diagnostic setting"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Diagnostic setting for App Service Environment"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/billingmeters/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get list of billing meters."), - // Operation: to.Ptr("Read billing meters"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Billing meters for Microsoft Web Apps"), - // }, - // Origin: to.Ptr("system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/instances/processes/delete"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Delete Web Apps Slots Instances Processes."), - // Operation: to.Ptr("Delete Web Apps Slots Instances Processes"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Instances Processes"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/restore/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps."), - // Operation: to.Ptr("Restore Web Apps"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/instances/extensions/log/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Instances Extensions Log."), - // Operation: to.Ptr("Get Web Apps Instances Extensions Log"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Instances Extensions Log"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/customapis/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Update Custom APIs."), - // Operation: to.Ptr("Update Custom APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Custom APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/customapis/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Custom APIs."), - // Operation: to.Ptr("Get Custom APIs"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Custom APIs"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/failedrequestsperuri/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Failed Requests Per Uri."), - // Operation: to.Ptr("Get Web Apps Diagnostics Failed Requests Per Uri"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Failed Requests Per Uri"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/restore/write"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Restore Web Apps Slots."), - // Operation: to.Ptr("Restore Web Apps Slots"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/detectors/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Detector."), - // Operation: to.Ptr("Get Web Apps Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/analyses/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Diagnostics Analysis."), - // Operation: to.Ptr("Get Web Apps Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/analyses/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Analysis."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/detectors/read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Get Web Apps Slots Diagnostics Detector."), - // Operation: to.Ptr("Get Web Apps Slots Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/analyses/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Diagnostics Analysis."), - // Operation: to.Ptr("Run Web Apps Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/diagnostics/detectors/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Diagnostics Detector."), - // Operation: to.Ptr("Run Web Apps Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/analyses/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Slots Diagnostics Analysis."), - // Operation: to.Ptr("Run Web Apps Slots Diagnostics Analysis"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Analysis"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("microsoft.web/sites/slots/diagnostics/detectors/execute/Action"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Run Web Apps Slots Diagnostics Detector."), - // Operation: to.Ptr("Run Web Apps Slots Diagnostics Detector"), - // Provider: to.Ptr("Microsoft Web Apps"), - // Resource: to.Ptr("Web Apps Slots Diagnostics Detector"), - // }, - // Origin: to.Ptr("user,system"), - // }, - // { - // Name: to.Ptr("Microsoft.Web/serverfarms/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for App Service Plan"), - // Operation: to.Ptr("Read App Service Plan metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of App Service Plan"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("CpuPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Percentage"), - // DisplayName: to.Ptr("CPU Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory Percentage"), - // DisplayName: to.Ptr("Memory Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Disk Queue Length"), - // DisplayName: to.Ptr("Disk Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Queue Length"), - // DisplayName: to.Ptr("Http Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for Web App"), - // Operation: to.Ptr("Read Web App metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of Web App"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("CpuTime"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Time"), - // DisplayName: to.Ptr("CPU Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("Requests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Requests"), - // DisplayName: to.Ptr("Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("Http101"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 101"), - // DisplayName: to.Ptr("Http 101"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http2xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 2xx"), - // DisplayName: to.Ptr("Http 2xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http3xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 3xx"), - // DisplayName: to.Ptr("Http 3xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http401"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 401"), - // DisplayName: to.Ptr("Http 401"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http403"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 403"), - // DisplayName: to.Ptr("Http 403"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http404"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 404"), - // DisplayName: to.Ptr("Http 404"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http406"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 406"), - // DisplayName: to.Ptr("Http 406"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http4xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 4xx"), - // DisplayName: to.Ptr("Http 4xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http5xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Server Errors"), - // DisplayName: to.Ptr("Http Server Errors"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("MemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory working set"), - // DisplayName: to.Ptr("Memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageMemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average memory working set"), - // DisplayName: to.Ptr("Average memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageResponseTime"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average Response Time"), - // DisplayName: to.Ptr("Average Response Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("FunctionExecutionUnits"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Units"), - // DisplayName: to.Ptr("Function Execution Units"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("FunctionExecutionCount"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Count"), - // DisplayName: to.Ptr("Function Execution Count"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/sites/slots/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for Web App Slot"), - // Operation: to.Ptr("Read Web App Slot metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of Web App Slot"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("CpuTime"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Time"), - // DisplayName: to.Ptr("CPU Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("Requests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Requests"), - // DisplayName: to.Ptr("Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("Http101"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 101"), - // DisplayName: to.Ptr("Http 101"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http2xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 2xx"), - // DisplayName: to.Ptr("Http 2xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http3xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 3xx"), - // DisplayName: to.Ptr("Http 3xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http401"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 401"), - // DisplayName: to.Ptr("Http 401"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http403"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 403"), - // DisplayName: to.Ptr("Http 403"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http404"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 404"), - // DisplayName: to.Ptr("Http 404"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http406"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 406"), - // DisplayName: to.Ptr("Http 406"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http4xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 4xx"), - // DisplayName: to.Ptr("Http 4xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http5xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Server Errors"), - // DisplayName: to.Ptr("Http Server Errors"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("MemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory working set"), - // DisplayName: to.Ptr("Memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageMemoryWorkingSet"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average memory working set"), - // DisplayName: to.Ptr("Average memory working set"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("AverageResponseTime"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average Response Time"), - // DisplayName: to.Ptr("Average Response Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("^(?!functionapp).*$"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("FunctionExecutionUnits"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Units"), - // DisplayName: to.Ptr("Function Execution Units"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("FunctionExecutionCount"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Function Execution Count"), - // DisplayName: to.Ptr("Function Execution Count"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // MetricFilterPattern: to.Ptr("(?i:functionapp)"), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/multiRolePools/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for App Service Environment MultiRole"), - // Operation: to.Ptr("Read App Service Environment MultiRole metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of App Service Environment MultiRole"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("Requests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Requests"), - // DisplayName: to.Ptr("Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("BytesReceived"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data In"), - // DisplayName: to.Ptr("Data In"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("BytesSent"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Data Out"), - // DisplayName: to.Ptr("Data Out"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Bytes"), - // }, - // { - // Name: to.Ptr("Http101"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 101"), - // DisplayName: to.Ptr("Http 101"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http2xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 2xx"), - // DisplayName: to.Ptr("Http 2xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http3xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 3xx"), - // DisplayName: to.Ptr("Http 3xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http401"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 401"), - // DisplayName: to.Ptr("Http 401"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http403"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 403"), - // DisplayName: to.Ptr("Http 403"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http404"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 404"), - // DisplayName: to.Ptr("Http 404"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http406"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 406"), - // DisplayName: to.Ptr("Http 406"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http4xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http 4xx"), - // DisplayName: to.Ptr("Http 4xx"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("Http5xx"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Server Errors"), - // DisplayName: to.Ptr("Http Server Errors"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("AverageResponseTime"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Average Response Time"), - // DisplayName: to.Ptr("Average Response Time"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Seconds"), - // }, - // { - // Name: to.Ptr("CpuPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("CPU Percentage"), - // DisplayName: to.Ptr("CPU Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("MemoryPercentage"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Memory Percentage"), - // DisplayName: to.Ptr("Memory Percentage"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Percent"), - // }, - // { - // Name: to.Ptr("DiskQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Disk Queue Length"), - // DisplayName: to.Ptr("Disk Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("HttpQueueLength"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Http Queue Length"), - // DisplayName: to.Ptr("Http Queue Length"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("ActiveRequests"), - // AggregationType: to.Ptr("Total"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // Dimensions: []*armappservice.Dimension{ - // { - // Name: to.Ptr("Instance"), - // DisplayName: to.Ptr("Instance"), - // InternalName: to.Ptr("ServerName"), - // ToBeExportedForShoebox: to.Ptr(true), - // }}, - // DisplayDescription: to.Ptr("Active Requests"), - // DisplayName: to.Ptr("Active Requests"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("TotalFrontEnds"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Total Front Ends"), - // DisplayName: to.Ptr("Total Front Ends"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("SmallAppServicePlanInstances"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Small App Service Plan Workers"), - // DisplayName: to.Ptr("Small App Service Plan Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("MediumAppServicePlanInstances"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Medium App Service Plan Workers"), - // DisplayName: to.Ptr("Medium App Service Plan Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("LargeAppServicePlanInstances"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Large App Service Plan Workers"), - // DisplayName: to.Ptr("Large App Service Plan Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }, - // { - // Name: to.Ptr("Microsoft.Web/hostingEnvironments/workerPools/providers/Microsoft.Insights/metricDefinitions/Read"), - // Display: &armappservice.CsmOperationDisplay{ - // Description: to.Ptr("Gets the available metrics for App Service Environment WorkerPool"), - // Operation: to.Ptr("Read App Service Environment WorkerPool metric definitions"), - // Provider: to.Ptr("Microsoft.Web"), - // Resource: to.Ptr("The metric definition of App Service Environment WorkerPool"), - // }, - // Origin: to.Ptr("system"), - // Properties: &armappservice.CsmOperationDescriptionProperties{ - // ServiceSpecification: &armappservice.ServiceSpecification{ - // MetricSpecifications: []*armappservice.MetricSpecification{ - // { - // Name: to.Ptr("WorkersTotal"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Total Workers"), - // DisplayName: to.Ptr("Total Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("WorkersAvailable"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Available Workers"), - // DisplayName: to.Ptr("Available Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }, - // { - // Name: to.Ptr("WorkersUsed"), - // AggregationType: to.Ptr("Average"), - // Availabilities: []*armappservice.MetricAvailability{ - // { - // BlobDuration: to.Ptr("P2D"), - // TimeGrain: to.Ptr("PT1M"), - // }, - // { - // BlobDuration: to.Ptr("P30D"), - // TimeGrain: to.Ptr("PT1H"), - // }, - // { - // BlobDuration: to.Ptr("P90D"), - // TimeGrain: to.Ptr("P1D"), - // }}, - // DisplayDescription: to.Ptr("Used Workers"), - // DisplayName: to.Ptr("Used Workers"), - // EnableRegionalMdmAccount: to.Ptr(false), - // FillGapWithZero: to.Ptr(true), - // IsInternal: to.Ptr(false), - // SupportsInstanceLevelAggregation: to.Ptr(false), - // Unit: to.Ptr("Count"), - // }}, - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewProviderClient().NewGetWebAppStacksPager(&armappservice.ProviderClientGetWebAppStacksOptions{StackOsType: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppStackCollection = armappservice.WebAppStackCollection{ - // Value: []*armappservice.WebAppStack{ - // { - // Name: to.Ptr("dotnet"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/dotnet"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr(".NET"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET 5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|5.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("5.0.x"), - // }, - // IsEarlyAccess: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v5.0"), - // }, - // }, - // Value: to.Ptr("5"), - // }}, - // Value: to.Ptr("5"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 3.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1.301"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.1"), - // }, - // }, - // Value: to.Ptr("3.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 3.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|3.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-03T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.0.103"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.0"), - // }, - // }, - // Value: to.Ptr("3.0"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 2.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-23T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.2.207"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.2"), - // }, - // }, - // Value: to.Ptr("2.2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.1 (LTS)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-21T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.807"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.1"), - // }, - // }, - // Value: to.Ptr("2.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 2.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|2.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1.202"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.0"), - // }, - // }, - // Value: to.Ptr("2.0"), - // }}, - // Value: to.Ptr("dotnetcore2"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr(".NET Core 1.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.1"), - // }, - // }, - // Value: to.Ptr("1.1"), - // }, - // { - // DisplayText: to.Ptr(".NET Core 1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("DOTNETCORE|1.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-27T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("1.1.14"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.0"), - // }, - // }, - // Value: to.Ptr("1.0"), - // }}, - // Value: to.Ptr("1"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v4.0"), - // }, - // }, - // Value: to.Ptr("v4.8"), - // }}, - // Value: to.Ptr("v4"), - // }, - // { - // DisplayText: to.Ptr("ASP.NET V3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("ASP.NET V3.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.1"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("v2.0"), - // }, - // }, - // Value: to.Ptr("v3.5"), - // }}, - // Value: to.Ptr("v3"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsWindows), - // Value: to.Ptr("dotnet"), - // }, - // }, - // { - // Name: to.Ptr("node"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/node"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Node"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|lts"), - // }, - // }, - // Value: to.Ptr("lts"), - // }}, - // Value: to.Ptr("lts"), - // }, - // { - // DisplayText: to.Ptr("Node 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 14 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("14.x"), - // }, - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|14-lts"), - // }, - // }, - // Value: to.Ptr("14-lts"), - // }}, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("Node 12"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 12 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|12-lts"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("12.13.0"), - // }, - // }, - // Value: to.Ptr("12-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 12.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("12.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(true), - // RuntimeVersion: to.Ptr("NODE|12.9"), - // }, - // }, - // Value: to.Ptr("12.9"), - // }}, - // Value: to.Ptr("12"), - // }, - // { - // DisplayText: to.Ptr("Node 10"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 10 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10-lts"), - // }, - // }, - // Value: to.Ptr("10-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 10.16"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.16"), - // }, - // }, - // Value: to.Ptr("10.16"), - // }, - // { - // DisplayText: to.Ptr("Node 10.15"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsHidden: to.Ptr(true), - // IsPreview: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.15.2"), - // }, - // }, - // Value: to.Ptr("10.15"), - // }, - // { - // DisplayText: to.Ptr("Node 10.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.14"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.14.1"), - // }, - // }, - // Value: to.Ptr("10.14"), - // }, - // { - // DisplayText: to.Ptr("Node 10.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.12"), - // }, - // }, - // Value: to.Ptr("10.12"), - // }, - // { - // DisplayText: to.Ptr("Node 10.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.10"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.0.0"), - // }, - // }, - // Value: to.Ptr("10.10"), - // }, - // { - // DisplayText: to.Ptr("Node 10.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("10.6.0"), - // }, - // }, - // Value: to.Ptr("10.6"), - // }, - // { - // DisplayText: to.Ptr("Node 10.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("10.x"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|10.1"), - // }, - // }, - // Value: to.Ptr("10.1"), - // }}, - // Value: to.Ptr("10"), - // }, - // { - // DisplayText: to.Ptr("Node 9"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 9.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-07-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|9.4"), - // }, - // }, - // Value: to.Ptr("9.4"), - // }}, - // Value: to.Ptr("9"), - // }, - // { - // DisplayText: to.Ptr("Node 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 8 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8-lts"), - // }, - // }, - // Value: to.Ptr("8-lts"), - // }, - // { - // DisplayText: to.Ptr("Node 8.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.12"), - // }, - // }, - // Value: to.Ptr("8.12"), - // }, - // { - // DisplayText: to.Ptr("Node 8.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.11"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.11"), - // }, - // }, - // Value: to.Ptr("8.11"), - // }, - // { - // DisplayText: to.Ptr("Node 8.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.10"), - // }, - // }, - // Value: to.Ptr("8.10"), - // }, - // { - // DisplayText: to.Ptr("Node 8.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.9"), - // }, - // }, - // Value: to.Ptr("8.9"), - // }, - // { - // DisplayText: to.Ptr("Node 8.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.8"), - // }, - // }, - // Value: to.Ptr("8.8"), - // }, - // { - // DisplayText: to.Ptr("Node 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Node 8.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.4"), - // }, - // }, - // Value: to.Ptr("8.4"), - // }, - // { - // DisplayText: to.Ptr("Node 8.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.2"), - // }, - // }, - // Value: to.Ptr("8.2"), - // }, - // { - // DisplayText: to.Ptr("Node 8.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.1"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("8.1.4"), - // }, - // }, - // Value: to.Ptr("8.1"), - // }, - // { - // DisplayText: to.Ptr("Node 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-31T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Node 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 7.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-07-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.10.1"), - // }, - // }, - // Value: to.Ptr("7.10"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("Node 6"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 6 LTS"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6-lts"), - // }, - // }, - // Value: to.Ptr("6-LTS"), - // }, - // { - // DisplayText: to.Ptr("Node 6.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.12"), - // }, - // }, - // Value: to.Ptr("6.12"), - // }, - // { - // DisplayText: to.Ptr("Node 6.11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.11"), - // }, - // }, - // Value: to.Ptr("6.11"), - // }, - // { - // DisplayText: to.Ptr("Node 6.10"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.10"), - // }, - // }, - // Value: to.Ptr("6.10"), - // }, - // { - // DisplayText: to.Ptr("Node 6.9"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.9"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.9.5"), - // }, - // }, - // Value: to.Ptr("6.9"), - // }, - // { - // DisplayText: to.Ptr("Node 6.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.6"), - // }, - // }, - // Value: to.Ptr("6.6"), - // }, - // { - // DisplayText: to.Ptr("Node 6.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("6.5.0"), - // }, - // }, - // Value: to.Ptr("6.5"), - // }, - // { - // DisplayText: to.Ptr("Node 6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|6.2"), - // }, - // }, - // Value: to.Ptr("6.2"), - // }}, - // Value: to.Ptr("6"), - // }, - // { - // DisplayText: to.Ptr("Node 4"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Node 4.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.8"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("4.8"), - // }, - // }, - // Value: to.Ptr("4.8"), - // }, - // { - // DisplayText: to.Ptr("Node 4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.5"), - // }, - // }, - // Value: to.Ptr("4.5"), - // }, - // { - // DisplayText: to.Ptr("Node 4.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("NODE|4.4"), - // }, - // }, - // Value: to.Ptr("4.4"), - // }}, - // Value: to.Ptr("4"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("node"), - // }, - // }, - // { - // Name: to.Ptr("python"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/python"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Python"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Python 3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.8"), - // }, - // }, - // Value: to.Ptr("3.8"), - // }, - // { - // DisplayText: to.Ptr("Python 3.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.7"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.7"), - // }, - // }, - // Value: to.Ptr("3.7"), - // }, - // { - // DisplayText: to.Ptr("Python 3.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|3.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("3.6"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("3.4.0"), - // }, - // }, - // Value: to.Ptr("3.6"), - // }}, - // Value: to.Ptr("3"), - // }, - // { - // DisplayText: to.Ptr("Python 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Python 2.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PYTHON|2.7"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("2.7"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("2.7.3"), - // }, - // }, - // Value: to.Ptr("2.7"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("python"), - // }, - // }, - // { - // Name: to.Ptr("php"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/php"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("PHP"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("PHP 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 7.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.4"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-28T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.4"), - // }, - // }, - // Value: to.Ptr("7.4"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.3"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-06T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.3"), - // }, - // }, - // Value: to.Ptr("7.3"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.2"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-30T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.2"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }, - // { - // DisplayText: to.Ptr("PHP 7.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.1"), - // }, - // }, - // Value: to.Ptr("7.1"), - // }, - // { - // DisplayText: to.Ptr("7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|7.0"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }}, - // Value: to.Ptr("7"), - // }, - // { - // DisplayText: to.Ptr("PHP 5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("PHP 5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("PHP|5.6"), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("5.6"), - // }, - // }, - // Value: to.Ptr("5.6"), - // }}, - // Value: to.Ptr("5"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("php"), - // }, - // }, - // { - // Name: to.Ptr("ruby"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/ruby"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Ruby"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Ruby 2.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6"), - // }, - // }, - // Value: to.Ptr("2.6"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.6.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.6.2"), - // }, - // }, - // Value: to.Ptr("2.6.2"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5"), - // }, - // }, - // Value: to.Ptr("2.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.5.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.5.5"), - // }, - // }, - // Value: to.Ptr("2.5.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4"), - // }, - // }, - // Value: to.Ptr("2.4"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.4.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.4.5"), - // }, - // }, - // Value: to.Ptr("2.4.5"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3"), - // }, - // }, - // Value: to.Ptr("2.3"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.8"), - // }, - // }, - // Value: to.Ptr("2.3.8"), - // }, - // { - // DisplayText: to.Ptr("Ruby 2.3.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-05-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("RUBY|2.3.3"), - // }, - // }, - // Value: to.Ptr("2.3.3"), - // }}, - // Value: to.Ptr("2"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("ruby"), - // }, - // }, - // { - // Name: to.Ptr("java"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/java"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 11"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11"), - // }, - // }, - // Value: to.Ptr("11.0"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.5_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.3_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.3"), - // }, - // { - // DisplayText: to.Ptr("Java 11.0.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-10-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("11"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("11.0.2_ZULU"), - // }, - // }, - // Value: to.Ptr("11.0.2"), - // }}, - // Value: to.Ptr("11"), - // }, - // { - // DisplayText: to.Ptr("Java 8"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsAutoUpdate: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_252"), - // }, - // }, - // Value: to.Ptr("8.0.252"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_242"), - // }, - // }, - // Value: to.Ptr("8.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr(""), - // }, - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_232_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.232"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_212"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_212_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.212"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.202"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_202 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_202"), - // }, - // }, - // Value: to.Ptr("8.0.202 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.181"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_181 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_181"), - // }, - // }, - // Value: to.Ptr("8.0.181 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172_ZULU"), - // }, - // }, - // Value: to.Ptr("8.0.172"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_172 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_172"), - // }, - // }, - // Value: to.Ptr("8.0.172 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_144"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_144"), - // }, - // }, - // Value: to.Ptr("8.0.144"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_111 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_111"), - // }, - // }, - // Value: to.Ptr("8.0.111 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_102"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_102"), - // }, - // }, - // Value: to.Ptr("8.0.102"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_92"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_92"), - // }, - // }, - // Value: to.Ptr("8.0.92"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_73 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_73"), - // }, - // }, - // Value: to.Ptr("8.0.73 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_60 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_60"), - // }, - // }, - // Value: to.Ptr("8.0.60 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.8.0_25 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(true), - // SupportedVersion: to.Ptr("8"), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.8.0_25"), - // }, - // }, - // Value: to.Ptr("8.0.25 (Oracle)"), - // }}, - // Value: to.Ptr("8"), - // }, - // { - // DisplayText: to.Ptr("Java 7"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java 7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_262"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_262_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.262"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_242_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.242"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_222"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_222_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.222"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_191"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-01T00:00:00.000Z"); return t}()), - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_191_ZULU"), - // }, - // }, - // Value: to.Ptr("7.0.191"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_80 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_80"), - // }, - // }, - // Value: to.Ptr("7.0.80 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_71 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_71"), - // }, - // }, - // Value: to.Ptr("7.0.71 (Oracle)"), - // }, - // { - // DisplayText: to.Ptr("Java 1.7.0_51 (Oracle)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsRuntimeSettings: &armappservice.WebAppRuntimeSettings{ - // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ - // IsSupported: to.Ptr(false), - // }, - // IsDeprecated: to.Ptr(true), - // RemoteDebuggingSupported: to.Ptr(false), - // RuntimeVersion: to.Ptr("1.7.0_51"), - // }, - // }, - // Value: to.Ptr("7.0.51 (Oracle)"), - // }}, - // Value: to.Ptr("7"), - // }}, - // PreferredOs: to.Ptr(armappservice.StackPreferredOsLinux), - // Value: to.Ptr("java"), - // }, - // }, - // { - // Name: to.Ptr("javacontainers"), - // Type: to.Ptr("Microsoft.Web/webAppStacks"), - // ID: to.Ptr("/providers/Microsoft.Web/webAppStacks/javacontainers"), - // Properties: &armappservice.WebAppStackProperties{ - // DisplayText: to.Ptr("Java Containers"), - // MajorVersions: []*armappservice.WebAppMajorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Java SE (Embedded Web Server)"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("JAVA|11-java11"), - // Java8Runtime: to.Ptr("JAVA|8-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("JAVA"), - // JavaContainerVersion: to.Ptr("SE"), - // }, - // }, - // Value: to.Ptr("SE"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.7"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.7"), - // }, - // }, - // Value: to.Ptr("11.0.7"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.6"), - // }, - // }, - // Value: to.Ptr("11.0.6"), - // }, - // { - // DisplayText: to.Ptr("Java SE 11.0.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("JAVA|11.0.5"), - // }, - // }, - // Value: to.Ptr("11.0.5"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u252"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u252"), - // }, - // }, - // Value: to.Ptr("1.8.252"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u242"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u242"), - // }, - // }, - // Value: to.Ptr("1.8.242"), - // }, - // { - // DisplayText: to.Ptr("Java SE 8u232"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java8Runtime: to.Ptr("JAVA|8u232"), - // }, - // }, - // Value: to.Ptr("1.8.232"), - // }}, - // Value: to.Ptr("javase"), - // }, - // { - // DisplayText: to.Ptr("JBoss EAP"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("JBoss EAP 7.2"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsPreview: to.Ptr(true), - // Java8Runtime: to.Ptr("JBOSSEAP|7.2-java8"), - // }, - // }, - // Value: to.Ptr("7.2"), - // }}, - // Value: to.Ptr("jbosseap"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 9.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|9.0-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0"), - // }, - // }, - // Value: to.Ptr("9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.37-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.37-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.37"), - // }, - // }, - // Value: to.Ptr("9.0.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.33"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.33-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.33-java8"), - // }, - // }, - // Value: to.Ptr("9.0.33"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.31"), - // }, - // }, - // Value: to.Ptr("9.0.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.27"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.27"), - // }, - // }, - // Value: to.Ptr("9.0.27"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.21"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.21"), - // }, - // }, - // Value: to.Ptr("9.0.21"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|9.0.20-java11"), - // Java8Runtime: to.Ptr("TOMCAT|9.0.20-java8"), - // }, - // }, - // Value: to.Ptr("9.0.20"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.14"), - // }, - // }, - // Value: to.Ptr("9.0.14"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.12"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.12"), - // }, - // }, - // Value: to.Ptr("9.0.12"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.8"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.8"), - // }, - // }, - // Value: to.Ptr("9.0.8"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 9.0.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("9.0.0"), - // }, - // }, - // Value: to.Ptr("9.0.0"), - // }}, - // Value: to.Ptr("tomcat9.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.5"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // Java11Runtime: to.Ptr("TOMCAT|8.5-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5-jre8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5"), - // }, - // }, - // Value: to.Ptr("8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.6"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.6"), - // }, - // }, - // Value: to.Ptr("8.5.6"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.57"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.57-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.57-java8"), - // }, - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.57"), - // }, - // }, - // Value: to.Ptr("8.5.57"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.53-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.53-java8"), - // }, - // }, - // Value: to.Ptr("8.5.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.51"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.51"), - // }, - // }, - // Value: to.Ptr("8.5.51"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.47"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.47"), - // }, - // }, - // Value: to.Ptr("8.5.47"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.42"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.42"), - // }, - // }, - // Value: to.Ptr("8.5.42"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.41"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // Java11Runtime: to.Ptr("TOMCAT|8.5.41-java11"), - // Java8Runtime: to.Ptr("TOMCAT|8.5.41-java8"), - // }, - // }, - // Value: to.Ptr("8.5.41"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.37"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.37"), - // }, - // }, - // Value: to.Ptr("8.5.37"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.34"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.34"), - // }, - // }, - // Value: to.Ptr("8.5.34"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.31"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.31"), - // }, - // }, - // Value: to.Ptr("8.5.31"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.5.20"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.5.20"), - // }, - // }, - // Value: to.Ptr("8.5.20"), - // }}, - // Value: to.Ptr("tomcat8.5"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 8.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0"), - // }, - // }, - // Value: to.Ptr("8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.53"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.53"), - // }, - // }, - // Value: to.Ptr("8.0.53"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.46"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.46"), - // }, - // }, - // Value: to.Ptr("8.0.46"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 8.0.23"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("8.0.23"), - // }, - // }, - // Value: to.Ptr("8.0.23"), - // }}, - // Value: to.Ptr("tomcat8.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Tomcat 7.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0"), - // }, - // }, - // Value: to.Ptr("7.0"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.94"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.94"), - // }, - // }, - // Value: to.Ptr("7.0.94"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.81"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.81"), - // }, - // }, - // Value: to.Ptr("7.0.81"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.62"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.62"), - // }, - // }, - // Value: to.Ptr("7.0.62"), - // }, - // { - // DisplayText: to.Ptr("Tomcat 7.0.50"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // JavaContainer: to.Ptr("TOMCAT"), - // JavaContainerVersion: to.Ptr("7.0.50"), - // }, - // }, - // Value: to.Ptr("7.0.50"), - // }}, - // Value: to.Ptr("tomcat7.0"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.3"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3"), - // }, - // }, - // Value: to.Ptr("9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.25"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.25"), - // }, - // }, - // Value: to.Ptr("9.3.25"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.3.13"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.3.13"), - // }, - // }, - // Value: to.Ptr("9.3.13"), - // }}, - // Value: to.Ptr("jetty9.3"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("Jetty 9.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1"), - // }, - // }, - // Value: to.Ptr("9.1"), - // }, - // { - // DisplayText: to.Ptr("Jetty 9.1.0"), - // StackSettings: &armappservice.WebAppRuntimes{ - // WindowsContainerSettings: &armappservice.WindowsJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // JavaContainer: to.Ptr("JETTY"), - // JavaContainerVersion: to.Ptr("9.1.0"), - // }, - // }, - // Value: to.Ptr("9.1.0"), - // }}, - // Value: to.Ptr("jetty9.1"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14"), - // MinorVersions: []*armappservice.WebAppMinorVersion{ - // { - // DisplayText: to.Ptr("WildFly 14"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsAutoUpdate: to.Ptr(true), - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14-jre8"), - // }, - // }, - // Value: to.Ptr("14"), - // }, - // { - // DisplayText: to.Ptr("WildFly 14.0.1"), - // StackSettings: &armappservice.WebAppRuntimes{ - // LinuxContainerSettings: &armappservice.LinuxJavaContainerSettings{ - // IsDeprecated: to.Ptr(true), - // Java8Runtime: to.Ptr("WILDFLY|14.0.1-java8"), - // }, - // }, - // Value: to.Ptr("14.0.1"), - // }}, - // Value: to.Ptr("wildfly14"), - // }}, - // Value: to.Ptr("javacontainers"), - // }, - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go index f1f8e67c97e2..a87717644a35 100644 --- a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go +++ b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -74,7 +71,7 @@ func (client *RecommendationsClient) DisableAllForHostingEnvironment(ctx context } // disableAllForHostingEnvironmentCreateRequest creates the DisableAllForHostingEnvironment request. -func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, hostingEnvironmentName string, options *RecommendationsClientDisableAllForHostingEnvironmentOptions) (*policy.Request, error) { +func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, hostingEnvironmentName string, _ *RecommendationsClientDisableAllForHostingEnvironmentOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -93,7 +90,7 @@ func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") reqQP.Set("environmentName", environmentName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -103,7 +100,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -130,7 +127,7 @@ func (client *RecommendationsClient) DisableAllForWebApp(ctx context.Context, re } // disableAllForWebAppCreateRequest creates the DisableAllForWebApp request. -func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx context.Context, resourceGroupName string, siteName string, options *RecommendationsClientDisableAllForWebAppOptions) (*policy.Request, error) { +func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx context.Context, resourceGroupName string, siteName string, _ *RecommendationsClientDisableAllForWebAppOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -149,7 +146,7 @@ func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -158,7 +155,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - environmentName - Site name // - name - Rule name @@ -186,7 +183,7 @@ func (client *RecommendationsClient) DisableRecommendationForHostingEnvironment( } // disableRecommendationForHostingEnvironmentCreateRequest creates the DisableRecommendationForHostingEnvironment request. -func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, hostingEnvironmentName string, options *RecommendationsClientDisableRecommendationForHostingEnvironmentOptions) (*policy.Request, error) { +func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, name string, hostingEnvironmentName string, _ *RecommendationsClientDisableRecommendationForHostingEnvironmentOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -209,7 +206,7 @@ func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") reqQP.Set("environmentName", environmentName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -219,7 +216,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site name // - name - Rule name @@ -247,7 +244,7 @@ func (client *RecommendationsClient) DisableRecommendationForSite(ctx context.Co } // disableRecommendationForSiteCreateRequest creates the DisableRecommendationForSite request. -func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(ctx context.Context, resourceGroupName string, siteName string, name string, options *RecommendationsClientDisableRecommendationForSiteOptions) (*policy.Request, error) { +func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(ctx context.Context, resourceGroupName string, siteName string, name string, _ *RecommendationsClientDisableRecommendationForSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -270,7 +267,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +277,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c // in the future. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - name - Rule name // - options - RecommendationsClientDisableRecommendationForSubscriptionOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSubscription // method. @@ -306,7 +303,7 @@ func (client *RecommendationsClient) DisableRecommendationForSubscription(ctx co } // disableRecommendationForSubscriptionCreateRequest creates the DisableRecommendationForSubscription request. -func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateRequest(ctx context.Context, name string, options *RecommendationsClientDisableRecommendationForSubscriptionOptions) (*policy.Request, error) { +func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateRequest(ctx context.Context, name string, _ *RecommendationsClientDisableRecommendationForSubscriptionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable" if name == "" { return nil, errors.New("parameter name cannot be empty") @@ -321,7 +318,7 @@ func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -330,7 +327,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - hostingEnvironmentName - Name of the hosting environment. // - name - Name of the recommendation. @@ -382,7 +379,7 @@ func (client *RecommendationsClient) getRuleDetailsByHostingEnvironmentCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } @@ -406,7 +403,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Name of the app. // - name - Name of the recommendation. @@ -458,7 +455,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } @@ -481,7 +478,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppHandleResponse(resp * // NewListPager - Description for List all recommendations for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - RecommendationsClientListOptions contains the optional parameters for the RecommendationsClient.NewListPager // method. func (client *RecommendationsClient) NewListPager(options *RecommendationsClientListOptions) *runtime.Pager[RecommendationsClientListResponse] { @@ -519,7 +516,7 @@ func (client *RecommendationsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -545,7 +542,7 @@ func (client *RecommendationsClient) listHandleResponse(resp *http.Response) (Re // NewListHistoryForHostingEnvironmentPager - Description for Get past recommendations for an app, optionally specified by // the time range. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -593,7 +590,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } @@ -618,7 +615,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentHandleRespo // NewListHistoryForWebAppPager - Description for Get past recommendations for an app, optionally specified by the time range. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -666,7 +663,7 @@ func (client *RecommendationsClient) listHistoryForWebAppCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } @@ -691,7 +688,7 @@ func (client *RecommendationsClient) listHistoryForWebAppHandleResponse(resp *ht // NewListRecommendedRulesForHostingEnvironmentPager - Description for Get all recommendations for a hosting environment. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -739,7 +736,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -764,7 +761,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentHa // NewListRecommendedRulesForWebAppPager - Description for Get all recommendations for an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -812,7 +809,7 @@ func (client *RecommendationsClient) listRecommendedRulesForWebAppCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -838,7 +835,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - options - RecommendationsClientResetAllFiltersOptions contains the optional parameters for the RecommendationsClient.ResetAllFilters // method. func (client *RecommendationsClient) ResetAllFilters(ctx context.Context, options *RecommendationsClientResetAllFiltersOptions) (RecommendationsClientResetAllFiltersResponse, error) { @@ -863,7 +860,7 @@ func (client *RecommendationsClient) ResetAllFilters(ctx context.Context, option } // resetAllFiltersCreateRequest creates the ResetAllFilters request. -func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Context, options *RecommendationsClientResetAllFiltersOptions) (*policy.Request, error) { +func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Context, _ *RecommendationsClientResetAllFiltersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -874,7 +871,7 @@ func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -883,7 +880,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -910,7 +907,7 @@ func (client *RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx co } // resetAllFiltersForHostingEnvironmentCreateRequest creates the ResetAllFiltersForHostingEnvironment request. -func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, hostingEnvironmentName string, options *RecommendationsClientResetAllFiltersForHostingEnvironmentOptions) (*policy.Request, error) { +func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateRequest(ctx context.Context, resourceGroupName string, environmentName string, hostingEnvironmentName string, _ *RecommendationsClientResetAllFiltersForHostingEnvironmentOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -929,7 +926,7 @@ func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") reqQP.Set("environmentName", environmentName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -939,7 +936,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -966,7 +963,7 @@ func (client *RecommendationsClient) ResetAllFiltersForWebApp(ctx context.Contex } // resetAllFiltersForWebAppCreateRequest creates the ResetAllFiltersForWebApp request. -func (client *RecommendationsClient) resetAllFiltersForWebAppCreateRequest(ctx context.Context, resourceGroupName string, siteName string, options *RecommendationsClientResetAllFiltersForWebAppOptions) (*policy.Request, error) { +func (client *RecommendationsClient) resetAllFiltersForWebAppCreateRequest(ctx context.Context, resourceGroupName string, siteName string, _ *RecommendationsClientResetAllFiltersForWebAppOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -985,7 +982,7 @@ func (client *RecommendationsClient) resetAllFiltersForWebAppCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 d9a5b65dca7b..0fb3a53b712f 100644 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go +++ b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -74,7 +71,7 @@ func (client *ResourceHealthMetadataClient) GetBySite(ctx context.Context, resou } // getBySiteCreateRequest creates the GetBySite request. -func (client *ResourceHealthMetadataClient) getBySiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *ResourceHealthMetadataClientGetBySiteOptions) (*policy.Request, error) { +func (client *ResourceHealthMetadataClient) getBySiteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *ResourceHealthMetadataClientGetBySiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -93,7 +90,7 @@ func (client *ResourceHealthMetadataClient) getBySiteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -111,7 +108,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -140,7 +137,7 @@ func (client *ResourceHealthMetadataClient) GetBySiteSlot(ctx context.Context, r } // getBySiteSlotCreateRequest creates the GetBySiteSlot request. -func (client *ResourceHealthMetadataClient) getBySiteSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *ResourceHealthMetadataClientGetBySiteSlotOptions) (*policy.Request, error) { +func (client *ResourceHealthMetadataClient) getBySiteSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *ResourceHealthMetadataClientGetBySiteSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -163,7 +160,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -180,7 +177,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotHandleResponse(resp *ht // NewListPager - Description for List all ResourceHealthMetadata for all sites in the subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - ResourceHealthMetadataClientListOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListPager // method. func (client *ResourceHealthMetadataClient) NewListPager(options *ResourceHealthMetadataClientListOptions) *runtime.Pager[ResourceHealthMetadataClientListResponse] { @@ -207,7 +204,7 @@ func (client *ResourceHealthMetadataClient) NewListPager(options *ResourceHealth } // listCreateRequest creates the List request. -func (client *ResourceHealthMetadataClient) listCreateRequest(ctx context.Context, options *ResourceHealthMetadataClientListOptions) (*policy.Request, error) { +func (client *ResourceHealthMetadataClient) listCreateRequest(ctx context.Context, _ *ResourceHealthMetadataClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/resourceHealthMetadata" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -218,7 +215,7 @@ func (client *ResourceHealthMetadataClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -236,7 +233,7 @@ func (client *ResourceHealthMetadataClient) listHandleResponse(resp *http.Respon // NewListByResourceGroupPager - Description for List all ResourceHealthMetadata for all sites in the resource group in the // subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - ResourceHealthMetadataClientListByResourceGroupOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListByResourceGroupPager // method. @@ -264,7 +261,7 @@ func (client *ResourceHealthMetadataClient) NewListByResourceGroupPager(resource } // listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *ResourceHealthMetadataClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ResourceHealthMetadataClientListByResourceGroupOptions) (*policy.Request, error) { +func (client *ResourceHealthMetadataClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *ResourceHealthMetadataClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -279,7 +276,7 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -296,7 +293,7 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupHandleResponse(re // NewListBySitePager - Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -325,7 +322,7 @@ func (client *ResourceHealthMetadataClient) NewListBySitePager(resourceGroupName } // listBySiteCreateRequest creates the ListBySite request. -func (client *ResourceHealthMetadataClient) listBySiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *ResourceHealthMetadataClientListBySiteOptions) (*policy.Request, error) { +func (client *ResourceHealthMetadataClient) listBySiteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *ResourceHealthMetadataClientListBySiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -344,7 +341,7 @@ func (client *ResourceHealthMetadataClient) listBySiteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -361,7 +358,7 @@ func (client *ResourceHealthMetadataClient) listBySiteHandleResponse(resp *http. // NewListBySiteSlotPager - Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -391,7 +388,7 @@ func (client *ResourceHealthMetadataClient) NewListBySiteSlotPager(resourceGroup } // listBySiteSlotCreateRequest creates the ListBySiteSlot request. -func (client *ResourceHealthMetadataClient) listBySiteSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *ResourceHealthMetadataClientListBySiteSlotOptions) (*policy.Request, error) { +func (client *ResourceHealthMetadataClient) listBySiteSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *ResourceHealthMetadataClientListBySiteSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -414,7 +411,7 @@ func (client *ResourceHealthMetadataClient) listBySiteSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 db0fa3f3f0d7..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go +++ /dev/null @@ -1,158 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewResourceHealthMetadataClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceHealthMetadataCollection = armappservice.ResourceHealthMetadataCollection{ - // Value: []*armappservice.ResourceHealthMetadata{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewResourceHealthMetadataClient().NewListByResourceGroupPager("Default-Web-NorthCentralUS", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceHealthMetadataCollection = armappservice.ResourceHealthMetadataCollection{ - // Value: []*armappservice.ResourceHealthMetadata{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewResourceHealthMetadataClient().NewListBySitePager("Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ResourceHealthMetadataCollection = armappservice.ResourceHealthMetadataCollection{ - // Value: []*armappservice.ResourceHealthMetadata{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewResourceHealthMetadataClient().GetBySite(ctx, "Default-Web-NorthCentralUS", "newsiteinnewASE-NCUS", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.ResourceHealthMetadata = armappservice.ResourceHealthMetadata{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/sites/resourceHealthMetadata"), - // ID: to.Ptr("/subscriptions/4adb32ad-8327-4cbb-b775-b84b4465bb38/resourceGroups/Default-Web-NorthCentralUS/providers/Microsoft.Web/sites/newsiteinnewASE-NCUS/resourceHealthMetadata/default"), - // Properties: &armappservice.ResourceHealthMetadataProperties{ - // Category: to.Ptr("Shared"), - // SignalAvailability: to.Ptr(true), - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/responses.go b/sdk/resourcemanager/appservice/armappservice/responses.go index f022cbb17f54..bd836c500a14 100644 --- a/sdk/resourcemanager/appservice/armappservice/responses.go +++ b/sdk/resourcemanager/appservice/armappservice/responses.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -8,10 +5,7 @@ package armappservice -import ( - "encoding/json" - "io" -) +import "io" // CertificateOrdersClientCreateOrUpdateCertificateResponse contains the response from method CertificateOrdersClient.BeginCreateOrUpdateCertificate. type CertificateOrdersClientCreateOrUpdateCertificateResponse struct { @@ -180,68 +174,6 @@ type CertificatesClientUpdateResponse struct { AppCertificate } -// ContainerAppsClientCreateOrUpdateResponse contains the response from method ContainerAppsClient.BeginCreateOrUpdate. -type ContainerAppsClientCreateOrUpdateResponse struct { - // Container App. - ContainerApp -} - -// ContainerAppsClientDeleteResponse contains the response from method ContainerAppsClient.BeginDelete. -type ContainerAppsClientDeleteResponse struct { - // placeholder for future response values -} - -// ContainerAppsClientGetResponse contains the response from method ContainerAppsClient.Get. -type ContainerAppsClientGetResponse struct { - // Container App. - ContainerApp -} - -// ContainerAppsClientListByResourceGroupResponse contains the response from method ContainerAppsClient.NewListByResourceGroupPager. -type ContainerAppsClientListByResourceGroupResponse struct { - // Container App collection ARM resource. - ContainerAppCollection -} - -// ContainerAppsClientListBySubscriptionResponse contains the response from method ContainerAppsClient.NewListBySubscriptionPager. -type ContainerAppsClientListBySubscriptionResponse struct { - // Container App collection ARM resource. - ContainerAppCollection -} - -// ContainerAppsClientListSecretsResponse contains the response from method ContainerAppsClient.ListSecrets. -type ContainerAppsClientListSecretsResponse struct { - // Container App Secrets Collection ARM resource. - SecretsCollection -} - -// ContainerAppsRevisionsClientActivateRevisionResponse contains the response from method ContainerAppsRevisionsClient.ActivateRevision. -type ContainerAppsRevisionsClientActivateRevisionResponse struct { - // placeholder for future response values -} - -// ContainerAppsRevisionsClientDeactivateRevisionResponse contains the response from method ContainerAppsRevisionsClient.DeactivateRevision. -type ContainerAppsRevisionsClientDeactivateRevisionResponse struct { - // placeholder for future response values -} - -// ContainerAppsRevisionsClientGetRevisionResponse contains the response from method ContainerAppsRevisionsClient.GetRevision. -type ContainerAppsRevisionsClientGetRevisionResponse struct { - // Container App Revision. - Revision -} - -// ContainerAppsRevisionsClientListRevisionsResponse contains the response from method ContainerAppsRevisionsClient.NewListRevisionsPager. -type ContainerAppsRevisionsClientListRevisionsResponse struct { - // Container App Revisions collection ARM resource. - RevisionCollection -} - -// ContainerAppsRevisionsClientRestartRevisionResponse contains the response from method ContainerAppsRevisionsClient.RestartRevision. -type ContainerAppsRevisionsClientRestartRevisionResponse struct { - // placeholder for future response values -} - // DeletedWebAppsClientGetDeletedWebAppByLocationResponse contains the response from method DeletedWebAppsClient.GetDeletedWebAppByLocation. type DeletedWebAppsClientGetDeletedWebAppByLocationResponse struct { // A deleted app. @@ -533,11 +465,6 @@ type EnvironmentsClientDeletePrivateEndpointConnectionResponse struct { Interface any } -// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentsClientDeletePrivateEndpointConnectionResponse. -func (e *EnvironmentsClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &e.Interface) -} - // EnvironmentsClientDeleteResponse contains the response from method EnvironmentsClient.BeginDelete. type EnvironmentsClientDeleteResponse struct { // placeholder for future response values @@ -1154,6 +1081,64 @@ type ResourceHealthMetadataClientListResponse struct { ResourceHealthMetadataCollection } +// SiteCertificatesClientCreateOrUpdateResponse contains the response from method SiteCertificatesClient.CreateOrUpdate. +type SiteCertificatesClientCreateOrUpdateResponse struct { + // SSL certificate for an app. + AppCertificate +} + +// SiteCertificatesClientCreateOrUpdateSlotResponse contains the response from method SiteCertificatesClient.CreateOrUpdateSlot. +type SiteCertificatesClientCreateOrUpdateSlotResponse struct { + // SSL certificate for an app. + AppCertificate +} + +// SiteCertificatesClientDeleteResponse contains the response from method SiteCertificatesClient.Delete. +type SiteCertificatesClientDeleteResponse struct { + // placeholder for future response values +} + +// SiteCertificatesClientDeleteSlotResponse contains the response from method SiteCertificatesClient.DeleteSlot. +type SiteCertificatesClientDeleteSlotResponse struct { + // placeholder for future response values +} + +// SiteCertificatesClientGetResponse contains the response from method SiteCertificatesClient.Get. +type SiteCertificatesClientGetResponse struct { + // SSL certificate for an app. + AppCertificate +} + +// SiteCertificatesClientGetSlotResponse contains the response from method SiteCertificatesClient.GetSlot. +type SiteCertificatesClientGetSlotResponse struct { + // SSL certificate for an app. + AppCertificate +} + +// SiteCertificatesClientListResponse contains the response from method SiteCertificatesClient.NewListPager. +type SiteCertificatesClientListResponse struct { + // Collection of certificates. + AppCertificateCollection +} + +// SiteCertificatesClientListSlotResponse contains the response from method SiteCertificatesClient.NewListSlotPager. +type SiteCertificatesClientListSlotResponse struct { + // Collection of certificates. + AppCertificateCollection +} + +// SiteCertificatesClientUpdateResponse contains the response from method SiteCertificatesClient.Update. +type SiteCertificatesClientUpdateResponse struct { + // SSL certificate for an app. + AppCertificate +} + +// SiteCertificatesClientUpdateSlotResponse contains the response from method SiteCertificatesClient.UpdateSlot. +type SiteCertificatesClientUpdateSlotResponse struct { + // SSL certificate for an app. + AppCertificate +} + // StaticSitesClientApproveOrRejectPrivateEndpointConnectionResponse contains the response from method StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection. type StaticSitesClientApproveOrRejectPrivateEndpointConnectionResponse struct { // Remote Private Endpoint Connection ARM resource. @@ -1246,11 +1231,6 @@ type StaticSitesClientDeletePrivateEndpointConnectionResponse struct { Interface any } -// UnmarshalJSON implements the json.Unmarshaller interface for type StaticSitesClientDeletePrivateEndpointConnectionResponse. -func (s *StaticSitesClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &s.Interface) -} - // StaticSitesClientDeleteStaticSiteBuildResponse contains the response from method StaticSitesClient.BeginDeleteStaticSiteBuild. type StaticSitesClientDeleteStaticSiteBuildResponse struct { // placeholder for future response values @@ -2015,22 +1995,12 @@ type WebAppsClientDeletePrivateEndpointConnectionResponse struct { Interface any } -// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientDeletePrivateEndpointConnectionResponse. -func (w *WebAppsClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.Interface) -} - // WebAppsClientDeletePrivateEndpointConnectionSlotResponse contains the response from method WebAppsClient.BeginDeletePrivateEndpointConnectionSlot. type WebAppsClientDeletePrivateEndpointConnectionSlotResponse struct { // Anything Interface any } -// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientDeletePrivateEndpointConnectionSlotResponse. -func (w *WebAppsClientDeletePrivateEndpointConnectionSlotResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.Interface) -} - // WebAppsClientDeleteProcessResponse contains the response from method WebAppsClient.DeleteProcess. type WebAppsClientDeleteProcessResponse struct { // placeholder for future response values @@ -3633,22 +3603,12 @@ type WebAppsClientStartNetworkTraceResponse struct { NetworkTraceArray []*NetworkTrace } -// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartNetworkTraceResponse. -func (w *WebAppsClientStartNetworkTraceResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.NetworkTraceArray) -} - // WebAppsClientStartNetworkTraceSlotResponse contains the response from method WebAppsClient.BeginStartNetworkTraceSlot. type WebAppsClientStartNetworkTraceSlotResponse struct { // Array of NetworkTrace NetworkTraceArray []*NetworkTrace } -// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartNetworkTraceSlotResponse. -func (w *WebAppsClientStartNetworkTraceSlotResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.NetworkTraceArray) -} - // WebAppsClientStartResponse contains the response from method WebAppsClient.Start. type WebAppsClientStartResponse struct { // placeholder for future response values @@ -3665,22 +3625,12 @@ type WebAppsClientStartWebSiteNetworkTraceOperationResponse struct { NetworkTraceArray []*NetworkTrace } -// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartWebSiteNetworkTraceOperationResponse. -func (w *WebAppsClientStartWebSiteNetworkTraceOperationResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.NetworkTraceArray) -} - // WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse contains the response from method WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot. type WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse struct { // Array of NetworkTrace NetworkTraceArray []*NetworkTrace } -// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse. -func (w *WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.NetworkTraceArray) -} - // WebAppsClientStartWebSiteNetworkTraceResponse contains the response from method WebAppsClient.StartWebSiteNetworkTrace. type WebAppsClientStartWebSiteNetworkTraceResponse struct { Value *string diff --git a/sdk/resourcemanager/appservice/armappservice/responses_serde.go b/sdk/resourcemanager/appservice/armappservice/responses_serde.go new file mode 100644 index 000000000000..a200c04c9edd --- /dev/null +++ b/sdk/resourcemanager/appservice/armappservice/responses_serde.go @@ -0,0 +1,48 @@ +// 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. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappservice + +import "encoding/json" + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentsClientDeletePrivateEndpointConnectionResponse. +func (e *EnvironmentsClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &e.Interface) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StaticSitesClientDeletePrivateEndpointConnectionResponse. +func (s *StaticSitesClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &s.Interface) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientDeletePrivateEndpointConnectionResponse. +func (w *WebAppsClientDeletePrivateEndpointConnectionResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &w.Interface) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientDeletePrivateEndpointConnectionSlotResponse. +func (w *WebAppsClientDeletePrivateEndpointConnectionSlotResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &w.Interface) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartNetworkTraceResponse. +func (w *WebAppsClientStartNetworkTraceResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &w.NetworkTraceArray) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartNetworkTraceSlotResponse. +func (w *WebAppsClientStartNetworkTraceSlotResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &w.NetworkTraceArray) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartWebSiteNetworkTraceOperationResponse. +func (w *WebAppsClientStartWebSiteNetworkTraceOperationResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &w.NetworkTraceArray) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse. +func (w *WebAppsClientStartWebSiteNetworkTraceOperationSlotResponse) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &w.NetworkTraceArray) +} diff --git a/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go new file mode 100644 index 000000000000..8d161275de99 --- /dev/null +++ b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go @@ -0,0 +1,749 @@ +// 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. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armappservice + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// SiteCertificatesClient contains the methods for the SiteCertificates group. +// Don't use this type directly, use NewSiteCertificatesClient() instead. +type SiteCertificatesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewSiteCertificatesClient creates a new instance of SiteCertificatesClient 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. +func NewSiteCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SiteCertificatesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &SiteCertificatesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// CreateOrUpdate - Create or update a certificate under a given site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - certificateName - Name of the certificate. +// - certificateEnvelope - Details of certificate, if it exists already. +// - options - SiteCertificatesClientCreateOrUpdateOptions contains the optional parameters for the SiteCertificatesClient.CreateOrUpdate +// method. +func (client *SiteCertificatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, certificateName string, certificateEnvelope AppCertificate, options *SiteCertificatesClientCreateOrUpdateOptions) (SiteCertificatesClientCreateOrUpdateResponse, error) { + var err error + const operationName = "SiteCertificatesClient.CreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, name, certificateName, certificateEnvelope, options) + if err != nil { + return SiteCertificatesClientCreateOrUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientCreateOrUpdateResponse{}, err + } + resp, err := client.createOrUpdateHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *SiteCertificatesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateName string, certificateEnvelope AppCertificate, _ *SiteCertificatesClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *SiteCertificatesClient) createOrUpdateHandleResponse(resp *http.Response) (SiteCertificatesClientCreateOrUpdateResponse, error) { + result := SiteCertificatesClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + return SiteCertificatesClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// CreateOrUpdateSlot - Create or update a certificate in a given site and deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - certificateName - Name of the certificate. +// - certificateEnvelope - Details of certificate, if it exists already. +// - options - SiteCertificatesClientCreateOrUpdateSlotOptions contains the optional parameters for the SiteCertificatesClient.CreateOrUpdateSlot +// method. +func (client *SiteCertificatesClient) CreateOrUpdateSlot(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, certificateEnvelope AppCertificate, options *SiteCertificatesClientCreateOrUpdateSlotOptions) (SiteCertificatesClientCreateOrUpdateSlotResponse, error) { + var err error + const operationName = "SiteCertificatesClient.CreateOrUpdateSlot" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateSlotCreateRequest(ctx, resourceGroupName, name, slot, certificateName, certificateEnvelope, options) + if err != nil { + return SiteCertificatesClientCreateOrUpdateSlotResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientCreateOrUpdateSlotResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientCreateOrUpdateSlotResponse{}, err + } + resp, err := client.createOrUpdateSlotHandleResponse(httpResp) + return resp, err +} + +// createOrUpdateSlotCreateRequest creates the CreateOrUpdateSlot request. +func (client *SiteCertificatesClient) createOrUpdateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, certificateEnvelope AppCertificate, _ *SiteCertificatesClientCreateOrUpdateSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// createOrUpdateSlotHandleResponse handles the CreateOrUpdateSlot response. +func (client *SiteCertificatesClient) createOrUpdateSlotHandleResponse(resp *http.Response) (SiteCertificatesClientCreateOrUpdateSlotResponse, error) { + result := SiteCertificatesClientCreateOrUpdateSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + return SiteCertificatesClientCreateOrUpdateSlotResponse{}, err + } + return result, nil +} + +// Delete - Delete a certificate from the site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - certificateName - Name of the certificate. +// - options - SiteCertificatesClientDeleteOptions contains the optional parameters for the SiteCertificatesClient.Delete method. +func (client *SiteCertificatesClient) Delete(ctx context.Context, resourceGroupName string, name string, certificateName string, options *SiteCertificatesClientDeleteOptions) (SiteCertificatesClientDeleteResponse, error) { + var err error + const operationName = "SiteCertificatesClient.Delete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, name, certificateName, options) + if err != nil { + return SiteCertificatesClientDeleteResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientDeleteResponse{}, err + } + return SiteCertificatesClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *SiteCertificatesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateName string, _ *SiteCertificatesClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// DeleteSlot - Delete a certificate for a given site and deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - certificateName - Name of the certificate. +// - options - SiteCertificatesClientDeleteSlotOptions contains the optional parameters for the SiteCertificatesClient.DeleteSlot +// method. +func (client *SiteCertificatesClient) DeleteSlot(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, options *SiteCertificatesClientDeleteSlotOptions) (SiteCertificatesClientDeleteSlotResponse, error) { + var err error + const operationName = "SiteCertificatesClient.DeleteSlot" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteSlotCreateRequest(ctx, resourceGroupName, name, slot, certificateName, options) + if err != nil { + return SiteCertificatesClientDeleteSlotResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientDeleteSlotResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientDeleteSlotResponse{}, err + } + return SiteCertificatesClientDeleteSlotResponse{}, nil +} + +// deleteSlotCreateRequest creates the DeleteSlot request. +func (client *SiteCertificatesClient) deleteSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, _ *SiteCertificatesClientDeleteSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a certificate belonging to a given site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - certificateName - Name of the certificate. +// - options - SiteCertificatesClientGetOptions contains the optional parameters for the SiteCertificatesClient.Get method. +func (client *SiteCertificatesClient) Get(ctx context.Context, resourceGroupName string, name string, certificateName string, options *SiteCertificatesClientGetOptions) (SiteCertificatesClientGetResponse, error) { + var err error + const operationName = "SiteCertificatesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, name, certificateName, options) + if err != nil { + return SiteCertificatesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *SiteCertificatesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateName string, _ *SiteCertificatesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *SiteCertificatesClient) getHandleResponse(resp *http.Response) (SiteCertificatesClientGetResponse, error) { + result := SiteCertificatesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + return SiteCertificatesClientGetResponse{}, err + } + return result, nil +} + +// GetSlot - Get a certificate for a given site and deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - certificateName - Name of the certificate. +// - options - SiteCertificatesClientGetSlotOptions contains the optional parameters for the SiteCertificatesClient.GetSlot +// method. +func (client *SiteCertificatesClient) GetSlot(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, options *SiteCertificatesClientGetSlotOptions) (SiteCertificatesClientGetSlotResponse, error) { + var err error + const operationName = "SiteCertificatesClient.GetSlot" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getSlotCreateRequest(ctx, resourceGroupName, name, slot, certificateName, options) + if err != nil { + return SiteCertificatesClientGetSlotResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientGetSlotResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientGetSlotResponse{}, err + } + resp, err := client.getSlotHandleResponse(httpResp) + return resp, err +} + +// getSlotCreateRequest creates the GetSlot request. +func (client *SiteCertificatesClient) getSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, _ *SiteCertificatesClientGetSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getSlotHandleResponse handles the GetSlot response. +func (client *SiteCertificatesClient) getSlotHandleResponse(resp *http.Response) (SiteCertificatesClientGetSlotResponse, error) { + result := SiteCertificatesClientGetSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + return SiteCertificatesClientGetSlotResponse{}, err + } + return result, nil +} + +// NewListPager - Get all certificates in a resource group under a site. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - options - SiteCertificatesClientListOptions contains the optional parameters for the SiteCertificatesClient.NewListPager +// method. +func (client *SiteCertificatesClient) NewListPager(resourceGroupName string, name string, options *SiteCertificatesClientListOptions) *runtime.Pager[SiteCertificatesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[SiteCertificatesClientListResponse]{ + More: func(page SiteCertificatesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *SiteCertificatesClientListResponse) (SiteCertificatesClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SiteCertificatesClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, name, options) + }, nil) + if err != nil { + return SiteCertificatesClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *SiteCertificatesClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *SiteCertificatesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates" + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *SiteCertificatesClient) listHandleResponse(resp *http.Response) (SiteCertificatesClientListResponse, error) { + result := SiteCertificatesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificateCollection); err != nil { + return SiteCertificatesClientListResponse{}, err + } + return result, nil +} + +// NewListSlotPager - Get all certificates in a resource group for a given site and a deployment slot. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - options - SiteCertificatesClientListSlotOptions contains the optional parameters for the SiteCertificatesClient.NewListSlotPager +// method. +func (client *SiteCertificatesClient) NewListSlotPager(resourceGroupName string, name string, slot string, options *SiteCertificatesClientListSlotOptions) *runtime.Pager[SiteCertificatesClientListSlotResponse] { + return runtime.NewPager(runtime.PagingHandler[SiteCertificatesClientListSlotResponse]{ + More: func(page SiteCertificatesClientListSlotResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *SiteCertificatesClientListSlotResponse) (SiteCertificatesClientListSlotResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "SiteCertificatesClient.NewListSlotPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listSlotCreateRequest(ctx, resourceGroupName, name, slot, options) + }, nil) + if err != nil { + return SiteCertificatesClientListSlotResponse{}, err + } + return client.listSlotHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listSlotCreateRequest creates the ListSlot request. +func (client *SiteCertificatesClient) listSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *SiteCertificatesClientListSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates" + 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 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listSlotHandleResponse handles the ListSlot response. +func (client *SiteCertificatesClient) listSlotHandleResponse(resp *http.Response) (SiteCertificatesClientListSlotResponse, error) { + result := SiteCertificatesClientListSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificateCollection); err != nil { + return SiteCertificatesClientListSlotResponse{}, err + } + return result, nil +} + +// Update - Create or update a certificate under a given site. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - certificateName - Name of the certificate. +// - certificateEnvelope - Details of certificate, if it exists already. +// - options - SiteCertificatesClientUpdateOptions contains the optional parameters for the SiteCertificatesClient.Update method. +func (client *SiteCertificatesClient) Update(ctx context.Context, resourceGroupName string, name string, certificateName string, certificateEnvelope AppCertificatePatchResource, options *SiteCertificatesClientUpdateOptions) (SiteCertificatesClientUpdateResponse, error) { + var err error + const operationName = "SiteCertificatesClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, name, certificateName, certificateEnvelope, options) + if err != nil { + return SiteCertificatesClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *SiteCertificatesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, certificateName string, certificateEnvelope AppCertificatePatchResource, _ *SiteCertificatesClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + 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.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *SiteCertificatesClient) updateHandleResponse(resp *http.Response) (SiteCertificatesClientUpdateResponse, error) { + result := SiteCertificatesClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + return SiteCertificatesClientUpdateResponse{}, err + } + return result, nil +} + +// UpdateSlot - Create or update a certificate for a site and deployment slot. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-11-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - name - Name of the site. +// - slot - Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. +// - certificateName - Name of the certificate. +// - certificateEnvelope - Details of certificate, if it exists already. +// - options - SiteCertificatesClientUpdateSlotOptions contains the optional parameters for the SiteCertificatesClient.UpdateSlot +// method. +func (client *SiteCertificatesClient) UpdateSlot(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, certificateEnvelope AppCertificatePatchResource, options *SiteCertificatesClientUpdateSlotOptions) (SiteCertificatesClientUpdateSlotResponse, error) { + var err error + const operationName = "SiteCertificatesClient.UpdateSlot" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateSlotCreateRequest(ctx, resourceGroupName, name, slot, certificateName, certificateEnvelope, options) + if err != nil { + return SiteCertificatesClientUpdateSlotResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SiteCertificatesClientUpdateSlotResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SiteCertificatesClientUpdateSlotResponse{}, err + } + resp, err := client.updateSlotHandleResponse(httpResp) + return resp, err +} + +// updateSlotCreateRequest creates the UpdateSlot request. +func (client *SiteCertificatesClient) updateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, certificateName string, certificateEnvelope AppCertificatePatchResource, _ *SiteCertificatesClientUpdateSlotOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName}" + 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 certificateName == "" { + return nil, errors.New("parameter certificateName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{certificateName}", url.PathEscape(certificateName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-11-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { + return nil, err + } + return req, nil +} + +// updateSlotHandleResponse handles the UpdateSlot response. +func (client *SiteCertificatesClient) updateSlotHandleResponse(resp *http.Response) (SiteCertificatesClientUpdateSlotResponse, error) { + result := SiteCertificatesClientUpdateSlotResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + return SiteCertificatesClientUpdateSlotResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go index 5abbbbb4f941..270707c8b58a 100644 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go +++ b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -74,7 +71,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection" @@ -97,7 +94,7 @@ func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnection(ctx co } // approveOrRejectPrivateEndpointConnectionCreateRequest creates the ApproveOrRejectPrivateEndpointConnection request. -func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, _ *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -120,7 +117,7 @@ func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -132,7 +129,7 @@ func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateR // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -162,7 +159,7 @@ func (client *StaticSitesClient) CreateOrUpdateBasicAuth(ctx context.Context, re } // 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) { +func (client *StaticSitesClient) createOrUpdateBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, basicAuthEnvelope StaticSiteBasicAuthPropertiesARMResource, _ *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") @@ -185,7 +182,7 @@ func (client *StaticSitesClient) createOrUpdateBasicAuthCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, basicAuthEnvelope); err != nil { @@ -206,7 +203,7 @@ func (client *StaticSitesClient) createOrUpdateBasicAuthHandleResponse(resp *htt // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -237,7 +234,7 @@ func (client *StaticSitesClient) CreateOrUpdateBuildDatabaseConnection(ctx conte } // 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) { +func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnection, _ *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") @@ -264,7 +261,7 @@ func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -285,7 +282,7 @@ func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionHandleResp // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -315,7 +312,7 @@ func (client *StaticSitesClient) CreateOrUpdateDatabaseConnection(ctx context.Co } // 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) { +func (client *StaticSitesClient) createOrUpdateDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnection, _ *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") @@ -338,7 +335,7 @@ func (client *StaticSitesClient) createOrUpdateDatabaseConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -360,7 +357,7 @@ func (client *StaticSitesClient) createOrUpdateDatabaseConnectionHandleResponse( // existing static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -387,7 +384,7 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSite(ctx context.Conte // static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) createOrUpdateStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSiteARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginCreateOrUpdateStaticSite" @@ -410,7 +407,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSite(ctx context.Context, r } // createOrUpdateStaticSiteCreateRequest creates the CreateOrUpdateStaticSite request. -func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSiteARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSiteARMResource, _ *StaticSitesClientBeginCreateOrUpdateStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -429,7 +426,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteEnvelope); err != nil { @@ -441,7 +438,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -470,7 +467,7 @@ func (client *StaticSitesClient) CreateOrUpdateStaticSiteAppSettings(ctx context } // createOrUpdateStaticSiteAppSettingsCreateRequest creates the CreateOrUpdateStaticSiteAppSettings request. -func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, _ *StaticSitesClientCreateOrUpdateStaticSiteAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/appsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -489,7 +486,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -510,7 +507,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -540,7 +537,7 @@ func (client *StaticSitesClient) CreateOrUpdateStaticSiteBuildAppSettings(ctx co } // createOrUpdateStaticSiteBuildAppSettingsCreateRequest creates the CreateOrUpdateStaticSiteBuildAppSettings request. -func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteBuildAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, appSettings StringDictionary, _ *StaticSitesClientCreateOrUpdateStaticSiteBuildAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/appsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -563,7 +560,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -585,7 +582,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsHandleR // site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -615,7 +612,7 @@ func (client *StaticSitesClient) CreateOrUpdateStaticSiteBuildFunctionAppSetting } // createOrUpdateStaticSiteBuildFunctionAppSettingsCreateRequest creates the CreateOrUpdateStaticSiteBuildFunctionAppSettings request. -func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, appSettings StringDictionary, _ *StaticSitesClientCreateOrUpdateStaticSiteBuildFunctionAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/functionappsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -638,7 +635,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -660,7 +657,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting // group and static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - domainName - The custom domain to create. @@ -689,7 +686,7 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSiteCustomDomain(ctx c // group and static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginCreateOrUpdateStaticSiteCustomDomain" @@ -712,7 +709,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomain(ctx contex } // createOrUpdateStaticSiteCustomDomainCreateRequest creates the CreateOrUpdateStaticSiteCustomDomain request. -func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, _ *StaticSitesClientBeginCreateOrUpdateStaticSiteCustomDomainOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -735,7 +732,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteCustomDomainRequestPropertiesEnvelope); err != nil { @@ -748,7 +745,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -777,7 +774,7 @@ func (client *StaticSitesClient) CreateOrUpdateStaticSiteFunctionAppSettings(ctx } // createOrUpdateStaticSiteFunctionAppSettingsCreateRequest creates the CreateOrUpdateStaticSiteFunctionAppSettings request. -func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, options *StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, _ *StaticSitesClientCreateOrUpdateStaticSiteFunctionAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/functionappsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -796,7 +793,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -817,7 +814,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -845,7 +842,7 @@ func (client *StaticSitesClient) CreateUserRolesInvitationLink(ctx context.Conte } // createUserRolesInvitationLinkCreateRequest creates the CreateUserRolesInvitationLink request. -func (client *StaticSitesClient) createUserRolesInvitationLinkCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteUserRolesInvitationEnvelope StaticSiteUserInvitationRequestResource, options *StaticSitesClientCreateUserRolesInvitationLinkOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createUserRolesInvitationLinkCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteUserRolesInvitationEnvelope StaticSiteUserInvitationRequestResource, _ *StaticSitesClientCreateUserRolesInvitationLinkOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/createUserInvitation" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -864,7 +861,7 @@ func (client *StaticSitesClient) createUserRolesInvitationLinkCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteUserRolesInvitationEnvelope); err != nil { @@ -885,7 +882,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -911,7 +908,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) createZipDeploymentForStaticSite(ctx context.Context, resourceGroupName string, name string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginCreateZipDeploymentForStaticSite" @@ -934,7 +931,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSite(ctx context.Co } // createZipDeploymentForStaticSiteCreateRequest creates the CreateZipDeploymentForStaticSite request. -func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, _ *StaticSitesClientBeginCreateZipDeploymentForStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/zipdeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -953,7 +950,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteZipDeploymentEnvelope); err != nil { @@ -966,7 +963,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - Name of the environment. @@ -993,7 +990,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginCreateZipDeploymentForStaticSiteBuild" @@ -1016,7 +1013,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuild(ctx conte } // createZipDeploymentForStaticSiteBuildCreateRequest creates the CreateZipDeploymentForStaticSiteBuild request. -func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, options *StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, staticSiteZipDeploymentEnvelope StaticSiteZipDeploymentARMResource, _ *StaticSitesClientBeginCreateZipDeploymentForStaticSiteBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/zipdeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1039,7 +1036,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteZipDeploymentEnvelope); err != nil { @@ -1051,7 +1048,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequ // DeleteBuildDatabaseConnection - Delete a database connection for a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -1080,7 +1077,7 @@ func (client *StaticSitesClient) DeleteBuildDatabaseConnection(ctx context.Conte } // 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) { +func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, _ *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") @@ -1107,7 +1104,7 @@ func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1116,7 +1113,7 @@ func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx // DeleteDatabaseConnection - Delete a database connection for a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -1144,7 +1141,7 @@ func (client *StaticSitesClient) DeleteDatabaseConnection(ctx context.Context, r } // deleteDatabaseConnectionCreateRequest creates the DeleteDatabaseConnection request. -func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientDeleteDatabaseConnectionOptions) (*policy.Request, error) { +func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, _ *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") @@ -1167,7 +1164,7 @@ func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1176,7 +1173,7 @@ func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx conte // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -1202,7 +1199,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *StaticSitesClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDeletePrivateEndpointConnection" @@ -1225,7 +1222,7 @@ func (client *StaticSitesClient) deletePrivateEndpointConnection(ctx context.Con } // deletePrivateEndpointConnectionCreateRequest creates the DeletePrivateEndpointConnection request. -func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *StaticSitesClientBeginDeletePrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, _ *StaticSitesClientBeginDeletePrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1248,7 +1245,7 @@ func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1257,7 +1254,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -1282,7 +1279,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) deleteStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDeleteStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDeleteStaticSite" @@ -1305,7 +1302,7 @@ func (client *StaticSitesClient) deleteStaticSite(ctx context.Context, resourceG } // deleteStaticSiteCreateRequest creates the DeleteStaticSite request. -func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDeleteStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientBeginDeleteStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1324,7 +1321,7 @@ func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1333,7 +1330,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -1359,7 +1356,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) deleteStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientBeginDeleteStaticSiteBuildOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDeleteStaticSiteBuild" @@ -1382,7 +1379,7 @@ func (client *StaticSitesClient) deleteStaticSiteBuild(ctx context.Context, reso } // deleteStaticSiteBuildCreateRequest creates the DeleteStaticSiteBuild request. -func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientBeginDeleteStaticSiteBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientBeginDeleteStaticSiteBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1405,7 +1402,7 @@ func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1414,7 +1411,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - domainName - The custom domain to delete. @@ -1440,7 +1437,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) deleteStaticSiteCustomDomain(ctx context.Context, resourceGroupName string, name string, domainName string, options *StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDeleteStaticSiteCustomDomain" @@ -1463,7 +1460,7 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomain(ctx context.Contex } // deleteStaticSiteCustomDomainCreateRequest creates the DeleteStaticSiteCustomDomain request. -func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, options *StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions) (*policy.Request, error) { +func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, _ *StaticSitesClientBeginDeleteStaticSiteCustomDomainOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1486,7 +1483,7 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1495,7 +1492,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the staticsite. // - authprovider - The auth provider for this user. @@ -1524,7 +1521,7 @@ func (client *StaticSitesClient) DeleteStaticSiteUser(ctx context.Context, resou } // deleteStaticSiteUserCreateRequest creates the DeleteStaticSiteUser request. -func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, options *StaticSitesClientDeleteStaticSiteUserOptions) (*policy.Request, error) { +func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, _ *StaticSitesClientDeleteStaticSiteUserOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1551,7 +1548,7 @@ func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1560,7 +1557,7 @@ func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.C // BeginDetachStaticSite - Description for Detaches a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -1585,7 +1582,7 @@ func (client *StaticSitesClient) BeginDetachStaticSite(ctx context.Context, reso // DetachStaticSite - Description for Detaches a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) detachStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDetachStaticSite" @@ -1608,7 +1605,7 @@ func (client *StaticSitesClient) detachStaticSite(ctx context.Context, resourceG } // detachStaticSiteCreateRequest creates the DetachStaticSite request. -func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *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") @@ -1627,7 +1624,7 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1636,7 +1633,7 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1664,7 +1661,7 @@ func (client *StaticSitesClient) DetachUserProvidedFunctionAppFromStaticSite(ctx } // detachUserProvidedFunctionAppFromStaticSiteCreateRequest creates the DetachUserProvidedFunctionAppFromStaticSite request. -func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientDetachUserProvidedFunctionAppFromStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, functionAppName string, _ *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") @@ -1687,7 +1684,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1697,7 +1694,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea // site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -1726,7 +1723,7 @@ func (client *StaticSitesClient) DetachUserProvidedFunctionAppFromStaticSiteBuil } // 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) { +func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, _ *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") @@ -1753,7 +1750,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuil return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1762,7 +1759,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuil // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1791,7 +1788,7 @@ func (client *StaticSitesClient) GetBasicAuth(ctx context.Context, resourceGroup } // getBasicAuthCreateRequest creates the GetBasicAuth request. -func (client *StaticSitesClient) getBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, options *StaticSitesClientGetBasicAuthOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, basicAuthName BasicAuthName, _ *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") @@ -1814,7 +1811,7 @@ func (client *StaticSitesClient) getBasicAuthCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1832,7 +1829,7 @@ func (client *StaticSitesClient) getBasicAuthHandleResponse(resp *http.Response) // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -1862,7 +1859,7 @@ func (client *StaticSitesClient) GetBuildDatabaseConnection(ctx context.Context, } // 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) { +func (client *StaticSitesClient) getBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, _ *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") @@ -1889,7 +1886,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1907,7 +1904,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionHandleResponse(resp * // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -1937,7 +1934,7 @@ func (client *StaticSitesClient) GetBuildDatabaseConnectionWithDetails(ctx conte } // 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) { +func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, _ *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") @@ -1964,7 +1961,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1981,7 +1978,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsHandleResp // NewGetBuildDatabaseConnectionsPager - Returns overviews of database connections for a static site build // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -2011,7 +2008,7 @@ func (client *StaticSitesClient) NewGetBuildDatabaseConnectionsPager(resourceGro } // getBuildDatabaseConnectionsCreateRequest creates the GetBuildDatabaseConnections request. -func (client *StaticSitesClient) getBuildDatabaseConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetBuildDatabaseConnectionsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getBuildDatabaseConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *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") @@ -2034,7 +2031,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2051,7 +2048,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsHandleResponse(resp // NewGetBuildDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site build // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -2081,7 +2078,7 @@ func (client *StaticSitesClient) NewGetBuildDatabaseConnectionsWithDetailsPager( } // getBuildDatabaseConnectionsWithDetailsCreateRequest creates the GetBuildDatabaseConnectionsWithDetails request. -func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetBuildDatabaseConnectionsWithDetailsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *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") @@ -2104,7 +2101,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2122,7 +2119,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsHandleRes // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -2151,7 +2148,7 @@ func (client *StaticSitesClient) GetDatabaseConnection(ctx context.Context, reso } // getDatabaseConnectionCreateRequest creates the GetDatabaseConnection request. -func (client *StaticSitesClient) getDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientGetDatabaseConnectionOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, _ *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") @@ -2174,7 +2171,7 @@ func (client *StaticSitesClient) getDatabaseConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2192,7 +2189,7 @@ func (client *StaticSitesClient) getDatabaseConnectionHandleResponse(resp *http. // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -2221,7 +2218,7 @@ func (client *StaticSitesClient) GetDatabaseConnectionWithDetails(ctx context.Co } // getDatabaseConnectionWithDetailsCreateRequest creates the GetDatabaseConnectionWithDetails request. -func (client *StaticSitesClient) getDatabaseConnectionWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, options *StaticSitesClientGetDatabaseConnectionWithDetailsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getDatabaseConnectionWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, _ *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") @@ -2244,7 +2241,7 @@ func (client *StaticSitesClient) getDatabaseConnectionWithDetailsCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2261,7 +2258,7 @@ func (client *StaticSitesClient) getDatabaseConnectionWithDetailsHandleResponse( // NewGetDatabaseConnectionsPager - Returns overviews of database connections for a static site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2290,7 +2287,7 @@ func (client *StaticSitesClient) NewGetDatabaseConnectionsPager(resourceGroupNam } // getDatabaseConnectionsCreateRequest creates the GetDatabaseConnections request. -func (client *StaticSitesClient) getDatabaseConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetDatabaseConnectionsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getDatabaseConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *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") @@ -2309,7 +2306,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2326,7 +2323,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsHandleResponse(resp *http // NewGetDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2355,7 +2352,7 @@ func (client *StaticSitesClient) NewGetDatabaseConnectionsWithDetailsPager(resou } // getDatabaseConnectionsWithDetailsCreateRequest creates the GetDatabaseConnectionsWithDetails request. -func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetDatabaseConnectionsWithDetailsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *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") @@ -2374,7 +2371,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2392,7 +2389,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsHandleResponse // 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -2421,7 +2418,7 @@ func (client *StaticSitesClient) GetLinkedBackend(ctx context.Context, resourceG } // getLinkedBackendCreateRequest creates the GetLinkedBackend request. -func (client *StaticSitesClient) getLinkedBackendCreateRequest(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, options *StaticSitesClientGetLinkedBackendOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getLinkedBackendCreateRequest(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, _ *StaticSitesClientGetLinkedBackendOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2444,7 +2441,7 @@ func (client *StaticSitesClient) getLinkedBackendCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2462,7 +2459,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -2492,7 +2489,7 @@ func (client *StaticSitesClient) GetLinkedBackendForBuild(ctx context.Context, r } // getLinkedBackendForBuildCreateRequest creates the GetLinkedBackendForBuild request. -func (client *StaticSitesClient) getLinkedBackendForBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, options *StaticSitesClientGetLinkedBackendForBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getLinkedBackendForBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, _ *StaticSitesClientGetLinkedBackendForBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2519,7 +2516,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2536,7 +2533,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildHandleResponse(resp *ht // NewGetLinkedBackendsPager - Returns details of all backends linked to a static site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2565,7 +2562,7 @@ func (client *StaticSitesClient) NewGetLinkedBackendsPager(resourceGroupName str } // getLinkedBackendsCreateRequest creates the GetLinkedBackends request. -func (client *StaticSitesClient) getLinkedBackendsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetLinkedBackendsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getLinkedBackendsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientGetLinkedBackendsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2584,7 +2581,7 @@ func (client *StaticSitesClient) getLinkedBackendsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2601,7 +2598,7 @@ func (client *StaticSitesClient) getLinkedBackendsHandleResponse(resp *http.Resp // NewGetLinkedBackendsForBuildPager - Returns details of all backends linked to a static site build // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -2631,7 +2628,7 @@ func (client *StaticSitesClient) NewGetLinkedBackendsForBuildPager(resourceGroup } // getLinkedBackendsForBuildCreateRequest creates the GetLinkedBackendsForBuild request. -func (client *StaticSitesClient) getLinkedBackendsForBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetLinkedBackendsForBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getLinkedBackendsForBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientGetLinkedBackendsForBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2654,7 +2651,7 @@ func (client *StaticSitesClient) getLinkedBackendsForBuildCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2672,7 +2669,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -2701,7 +2698,7 @@ func (client *StaticSitesClient) GetPrivateEndpointConnection(ctx context.Contex } // getPrivateEndpointConnectionCreateRequest creates the GetPrivateEndpointConnection request. -func (client *StaticSitesClient) getPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *StaticSitesClientGetPrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, _ *StaticSitesClientGetPrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2724,7 +2721,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2742,7 +2739,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionHandleResponse(resp // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoint connections associated with // a static site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -2771,7 +2768,7 @@ func (client *StaticSitesClient) NewGetPrivateEndpointConnectionListPager(resour } // getPrivateEndpointConnectionListCreateRequest creates the GetPrivateEndpointConnectionList request. -func (client *StaticSitesClient) getPrivateEndpointConnectionListCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetPrivateEndpointConnectionListOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getPrivateEndpointConnectionListCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientGetPrivateEndpointConnectionListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2790,7 +2787,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionListCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2808,7 +2805,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -2836,7 +2833,7 @@ func (client *StaticSitesClient) GetPrivateLinkResources(ctx context.Context, re } // getPrivateLinkResourcesCreateRequest creates the GetPrivateLinkResources request. -func (client *StaticSitesClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetPrivateLinkResourcesOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientGetPrivateLinkResourcesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateLinkResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2855,7 +2852,7 @@ func (client *StaticSitesClient) getPrivateLinkResourcesCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2873,7 +2870,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -2901,7 +2898,7 @@ func (client *StaticSitesClient) GetStaticSite(ctx context.Context, resourceGrou } // getStaticSiteCreateRequest creates the GetStaticSite request. -func (client *StaticSitesClient) getStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientGetStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2920,7 +2917,7 @@ func (client *StaticSitesClient) getStaticSiteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2938,7 +2935,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -2967,7 +2964,7 @@ func (client *StaticSitesClient) GetStaticSiteBuild(ctx context.Context, resourc } // getStaticSiteBuildCreateRequest creates the GetStaticSiteBuild request. -func (client *StaticSitesClient) getStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetStaticSiteBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientGetStaticSiteBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2990,7 +2987,7 @@ func (client *StaticSitesClient) getStaticSiteBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3007,7 +3004,7 @@ func (client *StaticSitesClient) getStaticSiteBuildHandleResponse(resp *http.Res // NewGetStaticSiteBuildsPager - Description for Gets all static site builds for a particular static site. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -3036,7 +3033,7 @@ func (client *StaticSitesClient) NewGetStaticSiteBuildsPager(resourceGroupName s } // getStaticSiteBuildsCreateRequest creates the GetStaticSiteBuilds request. -func (client *StaticSitesClient) getStaticSiteBuildsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetStaticSiteBuildsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getStaticSiteBuildsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientGetStaticSiteBuildsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3055,7 +3052,7 @@ func (client *StaticSitesClient) getStaticSiteBuildsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3073,7 +3070,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3102,7 +3099,7 @@ func (client *StaticSitesClient) GetStaticSiteCustomDomain(ctx context.Context, } // getStaticSiteCustomDomainCreateRequest creates the GetStaticSiteCustomDomain request. -func (client *StaticSitesClient) getStaticSiteCustomDomainCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, options *StaticSitesClientGetStaticSiteCustomDomainOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getStaticSiteCustomDomainCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, _ *StaticSitesClientGetStaticSiteCustomDomainOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3125,7 +3122,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3142,7 +3139,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainHandleResponse(resp *h // NewGetStaticSitesByResourceGroupPager - Description for Gets all static sites in the specified resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - StaticSitesClientGetStaticSitesByResourceGroupOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSitesByResourceGroupPager // method. @@ -3170,7 +3167,7 @@ func (client *StaticSitesClient) NewGetStaticSitesByResourceGroupPager(resourceG } // getStaticSitesByResourceGroupCreateRequest creates the GetStaticSitesByResourceGroup request. -func (client *StaticSitesClient) getStaticSitesByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *StaticSitesClientGetStaticSitesByResourceGroupOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getStaticSitesByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, _ *StaticSitesClientGetStaticSitesByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3185,7 +3182,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3204,7 +3201,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupHandleResponse(res // with a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -3233,7 +3230,7 @@ func (client *StaticSitesClient) GetUserProvidedFunctionAppForStaticSite(ctx con } // getUserProvidedFunctionAppForStaticSiteCreateRequest creates the GetUserProvidedFunctionAppForStaticSite request. -func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, functionAppName string, options *StaticSitesClientGetUserProvidedFunctionAppForStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, functionAppName string, _ *StaticSitesClientGetUserProvidedFunctionAppForStaticSiteOptions) (*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") @@ -3256,7 +3253,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3275,7 +3272,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteHandleRe // with a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3305,7 +3302,7 @@ func (client *StaticSitesClient) GetUserProvidedFunctionAppForStaticSiteBuild(ct } // getUserProvidedFunctionAppForStaticSiteBuildCreateRequest creates the GetUserProvidedFunctionAppForStaticSiteBuild request. -func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, options *StaticSitesClientGetUserProvidedFunctionAppForStaticSiteBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, _ *StaticSitesClientGetUserProvidedFunctionAppForStaticSiteBuildOptions) (*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") @@ -3332,7 +3329,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3350,7 +3347,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildHan // NewGetUserProvidedFunctionAppsForStaticSitePager - Description for Gets the details of the user provided function apps // registered with a static site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -3379,7 +3376,7 @@ func (client *StaticSitesClient) NewGetUserProvidedFunctionAppsForStaticSitePage } // getUserProvidedFunctionAppsForStaticSiteCreateRequest creates the GetUserProvidedFunctionAppsForStaticSite request. -func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3398,7 +3395,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3416,7 +3413,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteHandleR // NewGetUserProvidedFunctionAppsForStaticSiteBuildPager - Description for Gets the details of the user provided function // apps registered with a static site build // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3446,7 +3443,7 @@ func (client *StaticSitesClient) NewGetUserProvidedFunctionAppsForStaticSiteBuil } // getUserProvidedFunctionAppsForStaticSiteBuildCreateRequest creates the GetUserProvidedFunctionAppsForStaticSiteBuild request. -func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3469,7 +3466,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3487,7 +3484,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3514,7 +3511,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) linkBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginLinkBackend" @@ -3537,7 +3534,7 @@ func (client *StaticSitesClient) linkBackend(ctx context.Context, resourceGroupN } // linkBackendCreateRequest creates the LinkBackend request. -func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendOptions) (*policy.Request, error) { +func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, _ *StaticSitesClientBeginLinkBackendOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3560,7 +3557,7 @@ func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -3572,7 +3569,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -3600,7 +3597,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) linkBackendToBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendToBuildOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginLinkBackendToBuild" @@ -3623,7 +3620,7 @@ func (client *StaticSitesClient) linkBackendToBuild(ctx context.Context, resourc } // linkBackendToBuildCreateRequest creates the LinkBackendToBuild request. -func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginLinkBackendToBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, _ *StaticSitesClientBeginLinkBackendToBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3650,7 +3647,7 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -3661,7 +3658,7 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con // NewListPager - Description for Get all Static Sites for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -3687,7 +3684,7 @@ func (client *StaticSitesClient) NewListPager(options *StaticSitesClientListOpti } // listCreateRequest creates the List request. -func (client *StaticSitesClient) listCreateRequest(ctx context.Context, options *StaticSitesClientListOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listCreateRequest(ctx context.Context, _ *StaticSitesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -3698,7 +3695,7 @@ func (client *StaticSitesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3715,7 +3712,7 @@ func (client *StaticSitesClient) listHandleResponse(resp *http.Response) (Static // NewListBasicAuthPager - Description for Gets the basic auth properties for a static site as a collection. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -3744,7 +3741,7 @@ func (client *StaticSitesClient) NewListBasicAuthPager(resourceGroupName string, } // listBasicAuthCreateRequest creates the ListBasicAuth request. -func (client *StaticSitesClient) listBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListBasicAuthOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listBasicAuthCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *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") @@ -3763,7 +3760,7 @@ func (client *StaticSitesClient) listBasicAuthCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3781,7 +3778,7 @@ func (client *StaticSitesClient) listBasicAuthHandleResponse(resp *http.Response // 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3809,7 +3806,7 @@ func (client *StaticSitesClient) ListStaticSiteAppSettings(ctx context.Context, } // listStaticSiteAppSettingsCreateRequest creates the ListStaticSiteAppSettings request. -func (client *StaticSitesClient) listStaticSiteAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientListStaticSiteAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listAppSettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3828,7 +3825,7 @@ func (client *StaticSitesClient) listStaticSiteAppSettingsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3846,7 +3843,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3875,7 +3872,7 @@ func (client *StaticSitesClient) ListStaticSiteBuildAppSettings(ctx context.Cont } // listStaticSiteBuildAppSettingsCreateRequest creates the ListStaticSiteBuildAppSettings request. -func (client *StaticSitesClient) listStaticSiteBuildAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientListStaticSiteBuildAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteBuildAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientListStaticSiteBuildAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listAppSettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3898,7 +3895,7 @@ func (client *StaticSitesClient) listStaticSiteBuildAppSettingsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3916,7 +3913,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3945,7 +3942,7 @@ func (client *StaticSitesClient) ListStaticSiteBuildFunctionAppSettings(ctx cont } // listStaticSiteBuildFunctionAppSettingsCreateRequest creates the ListStaticSiteBuildFunctionAppSettings request. -func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientListStaticSiteBuildFunctionAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientListStaticSiteBuildFunctionAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/listFunctionAppSettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3968,7 +3965,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3985,7 +3982,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsHandleRes // NewListStaticSiteBuildFunctionsPager - Description for Gets the functions of a particular static site build. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -4015,7 +4012,7 @@ func (client *StaticSitesClient) NewListStaticSiteBuildFunctionsPager(resourceGr } // listStaticSiteBuildFunctionsCreateRequest creates the ListStaticSiteBuildFunctions request. -func (client *StaticSitesClient) listStaticSiteBuildFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, options *StaticSitesClientListStaticSiteBuildFunctionsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteBuildFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, _ *StaticSitesClientListStaticSiteBuildFunctionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/functions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4038,7 +4035,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionsCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4056,7 +4053,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -4084,7 +4081,7 @@ func (client *StaticSitesClient) ListStaticSiteConfiguredRoles(ctx context.Conte } // listStaticSiteConfiguredRolesCreateRequest creates the ListStaticSiteConfiguredRoles request. -func (client *StaticSitesClient) listStaticSiteConfiguredRolesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteConfiguredRolesOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteConfiguredRolesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientListStaticSiteConfiguredRolesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listConfiguredRoles" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4103,7 +4100,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4120,7 +4117,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesHandleResponse(res // NewListStaticSiteCustomDomainsPager - Description for Gets all static site custom domains for a particular static site. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -4149,7 +4146,7 @@ func (client *StaticSitesClient) NewListStaticSiteCustomDomainsPager(resourceGro } // listStaticSiteCustomDomainsCreateRequest creates the ListStaticSiteCustomDomains request. -func (client *StaticSitesClient) listStaticSiteCustomDomainsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteCustomDomainsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteCustomDomainsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientListStaticSiteCustomDomainsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4168,7 +4165,7 @@ func (client *StaticSitesClient) listStaticSiteCustomDomainsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4186,7 +4183,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -4214,7 +4211,7 @@ func (client *StaticSitesClient) ListStaticSiteFunctionAppSettings(ctx context.C } // listStaticSiteFunctionAppSettingsCreateRequest creates the ListStaticSiteFunctionAppSettings request. -func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteFunctionAppSettingsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientListStaticSiteFunctionAppSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listFunctionAppSettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4233,7 +4230,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4250,7 +4247,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsHandleResponse // NewListStaticSiteFunctionsPager - Description for Gets the functions of a static site. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -4279,7 +4276,7 @@ func (client *StaticSitesClient) NewListStaticSiteFunctionsPager(resourceGroupNa } // listStaticSiteFunctionsCreateRequest creates the ListStaticSiteFunctions request. -func (client *StaticSitesClient) listStaticSiteFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteFunctionsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientListStaticSiteFunctionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/functions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4298,7 +4295,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4316,7 +4313,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -4344,7 +4341,7 @@ func (client *StaticSitesClient) ListStaticSiteSecrets(ctx context.Context, reso } // listStaticSiteSecretsCreateRequest creates the ListStaticSiteSecrets request. -func (client *StaticSitesClient) listStaticSiteSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientListStaticSiteSecretsOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *StaticSitesClientListStaticSiteSecretsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/listSecrets" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4363,7 +4360,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4380,7 +4377,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsHandleResponse(resp *http. // NewListStaticSiteUsersPager - Description for Gets the list of users of a static site. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -4410,7 +4407,7 @@ func (client *StaticSitesClient) NewListStaticSiteUsersPager(resourceGroupName s } // listStaticSiteUsersCreateRequest creates the ListStaticSiteUsers request. -func (client *StaticSitesClient) listStaticSiteUsersCreateRequest(ctx context.Context, resourceGroupName string, name string, authprovider string, options *StaticSitesClientListStaticSiteUsersOptions) (*policy.Request, error) { +func (client *StaticSitesClient) listStaticSiteUsersCreateRequest(ctx context.Context, resourceGroupName string, name string, authprovider string, _ *StaticSitesClientListStaticSiteUsersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/listUsers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4433,7 +4430,7 @@ func (client *StaticSitesClient) listStaticSiteUsersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4451,7 +4448,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -4479,7 +4476,7 @@ func (client *StaticSitesClient) PreviewWorkflow(ctx context.Context, location s } // previewWorkflowCreateRequest creates the PreviewWorkflow request. -func (client *StaticSitesClient) previewWorkflowCreateRequest(ctx context.Context, location string, staticSitesWorkflowPreviewRequest StaticSitesWorkflowPreviewRequest, options *StaticSitesClientPreviewWorkflowOptions) (*policy.Request, error) { +func (client *StaticSitesClient) previewWorkflowCreateRequest(ctx context.Context, location string, staticSitesWorkflowPreviewRequest StaticSitesWorkflowPreviewRequest, _ *StaticSitesClientPreviewWorkflowOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile" if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -4494,7 +4491,7 @@ func (client *StaticSitesClient) previewWorkflowCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSitesWorkflowPreviewRequest); err != nil { @@ -4516,7 +4513,7 @@ func (client *StaticSitesClient) previewWorkflowHandleResponse(resp *http.Respon // site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -4543,7 +4540,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSite(ctx context.Context, resourceGroupName string, name string, functionAppName string, staticSiteUserProvidedFunctionEnvelope StaticSiteUserProvidedFunctionAppARMResource, options *StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSite" @@ -4589,7 +4586,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } @@ -4605,7 +4602,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr // static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -4634,7 +4631,7 @@ func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticS // site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, functionAppName string, staticSiteUserProvidedFunctionEnvelope StaticSiteUserProvidedFunctionAppARMResource, options *StaticSitesClientBeginRegisterUserProvidedFunctionAppWithStaticSiteBuildOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild" @@ -4684,7 +4681,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBu return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } @@ -4699,7 +4696,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -4726,7 +4723,7 @@ func (client *StaticSitesClient) ResetStaticSiteAPIKey(ctx context.Context, reso } // resetStaticSiteAPIKeyCreateRequest creates the ResetStaticSiteAPIKey request. -func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, resetPropertiesEnvelope StaticSiteResetPropertiesARMResource, options *StaticSitesClientResetStaticSiteAPIKeyOptions) (*policy.Request, error) { +func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, resetPropertiesEnvelope StaticSiteResetPropertiesARMResource, _ *StaticSitesClientResetStaticSiteAPIKeyOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/resetapikey" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4745,7 +4742,7 @@ func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resetPropertiesEnvelope); err != nil { @@ -4757,7 +4754,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -4808,7 +4805,7 @@ func (client *StaticSitesClient) unlinkBackendCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } @@ -4820,7 +4817,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -4876,7 +4873,7 @@ func (client *StaticSitesClient) unlinkBackendFromBuildCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } @@ -4888,7 +4885,7 @@ func (client *StaticSitesClient) unlinkBackendFromBuildCreateRequest(ctx context // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -4919,7 +4916,7 @@ func (client *StaticSitesClient) UpdateBuildDatabaseConnection(ctx context.Conte } // 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) { +func (client *StaticSitesClient) updateBuildDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnectionPatchRequest, _ *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") @@ -4946,7 +4943,7 @@ func (client *StaticSitesClient) updateBuildDatabaseConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -4967,7 +4964,7 @@ func (client *StaticSitesClient) updateBuildDatabaseConnectionHandleResponse(res // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -4997,7 +4994,7 @@ func (client *StaticSitesClient) UpdateDatabaseConnection(ctx context.Context, r } // 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) { +func (client *StaticSitesClient) updateDatabaseConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, databaseConnectionName string, databaseConnectionRequestEnvelope DatabaseConnectionPatchRequest, _ *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") @@ -5020,7 +5017,7 @@ func (client *StaticSitesClient) updateDatabaseConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -5042,7 +5039,7 @@ func (client *StaticSitesClient) updateDatabaseConnectionHandleResponse(resp *ht // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -5071,7 +5068,7 @@ func (client *StaticSitesClient) UpdateStaticSite(ctx context.Context, resourceG } // updateStaticSiteCreateRequest creates the UpdateStaticSite request. -func (client *StaticSitesClient) updateStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSitePatchResource, options *StaticSitesClientUpdateStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) updateStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, staticSiteEnvelope StaticSitePatchResource, _ *StaticSitesClientUpdateStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5090,7 +5087,7 @@ func (client *StaticSitesClient) updateStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteEnvelope); err != nil { @@ -5111,7 +5108,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -5142,7 +5139,7 @@ func (client *StaticSitesClient) UpdateStaticSiteUser(ctx context.Context, resou } // updateStaticSiteUserCreateRequest creates the UpdateStaticSiteUser request. -func (client *StaticSitesClient) updateStaticSiteUserCreateRequest(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, staticSiteUserEnvelope StaticSiteUserARMResource, options *StaticSitesClientUpdateStaticSiteUserOptions) (*policy.Request, error) { +func (client *StaticSitesClient) updateStaticSiteUserCreateRequest(ctx context.Context, resourceGroupName string, name string, authprovider string, userid string, staticSiteUserEnvelope StaticSiteUserARMResource, _ *StaticSitesClientUpdateStaticSiteUserOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/authproviders/{authprovider}/users/{userid}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5169,7 +5166,7 @@ func (client *StaticSitesClient) updateStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteUserEnvelope); err != nil { @@ -5190,7 +5187,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -5217,7 +5214,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) validateBackend(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginValidateBackend" @@ -5240,7 +5237,7 @@ func (client *StaticSitesClient) validateBackend(ctx context.Context, resourceGr } // validateBackendCreateRequest creates the ValidateBackend request. -func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendOptions) (*policy.Request, error) { +func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Context, resourceGroupName string, name string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, _ *StaticSitesClientBeginValidateBackendOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}/validate" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5263,7 +5260,7 @@ func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -5275,7 +5272,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -5303,7 +5300,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) validateBackendForBuild(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendForBuildOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginValidateBackendForBuild" @@ -5326,7 +5323,7 @@ func (client *StaticSitesClient) validateBackendForBuild(ctx context.Context, re } // validateBackendForBuildCreateRequest creates the ValidateBackendForBuild request. -func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, options *StaticSitesClientBeginValidateBackendForBuildOptions) (*policy.Request, error) { +func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx context.Context, resourceGroupName string, name string, environmentName string, linkedBackendName string, staticSiteLinkedBackendEnvelope StaticSiteLinkedBackendARMResource, _ *StaticSitesClientBeginValidateBackendForBuildOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName}/validate" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5353,7 +5350,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -5366,7 +5363,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex // a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - domainName - The custom domain to validate. @@ -5395,7 +5392,7 @@ func (client *StaticSitesClient) BeginValidateCustomDomainCanBeAddedToStaticSite // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSite(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginValidateCustomDomainCanBeAddedToStaticSite" @@ -5418,7 +5415,7 @@ func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSite(ctx } // validateCustomDomainCanBeAddedToStaticSiteCreateRequest creates the ValidateCustomDomainCanBeAddedToStaticSite request. -func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, options *StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions) (*policy.Request, error) { +func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSiteCreateRequest(ctx context.Context, resourceGroupName string, name string, domainName string, staticSiteCustomDomainRequestPropertiesEnvelope StaticSiteCustomDomainRequestPropertiesARMResource, _ *StaticSitesClientBeginValidateCustomDomainCanBeAddedToStaticSiteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}/validate" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5441,7 +5438,7 @@ func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSiteCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteCustomDomainRequestPropertiesEnvelope); err != nil { 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 75944f8eb25e..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go +++ /dev/null @@ -1,2501 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSitesWorkflowPreview = armappservice.StaticSitesWorkflowPreview{ - // Properties: &armappservice.StaticSitesWorkflowPreviewProperties{ - // Path: to.Ptr(".github/workflows/azure-static-web-apps-.yml"), - // Contents: to.Ptr("base64encodedworkflowcontentspreview"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteCollection = armappservice.StaticSiteCollection{ - // Value: []*armappservice.StaticSiteARMResource{ - // { - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/repo"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // UserProvidedFunctionApps: []*armappservice.StaticSiteUserProvidedFunctionApp{ - // }, - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Standard"), - // Tier: to.Ptr("Standard"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetStaticSitesByResourceGroupPager("rg", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteCollection = armappservice.StaticSiteCollection{ - // Value: []*armappservice.StaticSiteARMResource{ - // { - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // }, - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/repo"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Standard"), - // Tier: to.Ptr("Standard"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetStaticSite(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteARMResource = armappservice.StaticSiteARMResource{ - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // { - // BackendResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-26T20:57:24.805Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // }}, - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/repo"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Basic"), - // Tier: to.Ptr("Basic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteARMResource = armappservice.StaticSiteARMResource{ - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // }, - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Basic"), - // Tier: to.Ptr("Basic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateStaticSite(ctx, "rg", "testStaticSite0", armappservice.StaticSitePatchResource{ - Properties: &armappservice.StaticSite{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteARMResource = armappservice.StaticSiteARMResource{ - // Name: to.Ptr("testStaticSite0"), - // Type: to.Ptr("Microsoft.Web/staticSites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0"), - // Location: to.Ptr("West US 2"), - // Properties: &armappservice.StaticSite{ - // AllowConfigFileUpdates: to.Ptr(true), - // Branch: to.Ptr("demo"), - // ContentDistributionEndpoint: to.Ptr(""), - // CustomDomains: []*string{ - // }, - // DefaultHostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // PrivateEndpointConnections: []*armappservice.ResponseMessageEnvelopeRemotePrivateEndpointConnection{ - // }, - // RepositoryURL: to.Ptr("https://github.com/username/RepoName"), - // StagingEnvironmentPolicy: to.Ptr(armappservice.StagingEnvironmentPolicyEnabled), - // UserProvidedFunctionApps: []*armappservice.StaticSiteUserProvidedFunctionApp{ - // }, - // }, - // SKU: &armappservice.SKUDescription{ - // Name: to.Ptr("Basic"), - // Tier: to.Ptr("Basic"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteUsersPager("rg", "testStaticSite0", "all", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteUserCollection = armappservice.StaticSiteUserCollection{ - // Value: []*armappservice.StaticSiteUserARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/authproviders/all/users/1234"), - // Properties: &armappservice.StaticSiteUserARMResourceProperties{ - // DisplayName: to.Ptr("username"), - // Provider: to.Ptr("aad"), - // Roles: to.Ptr("admin,anonymous,authenticated"), - // UserID: to.Ptr("1234"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserARMResource = armappservice.StaticSiteUserARMResource{ - // Properties: &armappservice.StaticSiteUserARMResourceProperties{ - // DisplayName: to.Ptr("username"), - // Provider: to.Ptr("aad"), - // Roles: to.Ptr("contributor,anonymous,authenticated"), - // UserID: to.Ptr("1234"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetStaticSiteBuildsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteBuildCollection = armappservice.StaticSiteBuildCollection{ - // Value: []*armappservice.StaticSiteBuildARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default"), - // Properties: &armappservice.StaticSiteBuildARMResourceProperties{ - // BuildID: to.Ptr("default"), - // CreatedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // Hostname: to.Ptr("happy-sea-15afae3e.azurestaticwebsites.net"), - // LastUpdatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // }, - // SourceBranch: to.Ptr("demo"), - // Status: to.Ptr(armappservice.BuildStatusReady), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12"), - // Properties: &armappservice.StaticSiteBuildARMResourceProperties{ - // BuildID: to.Ptr("12"), - // CreatedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // Hostname: to.Ptr("happy-sea-15afae3e-12.westus2.azurestaticwebsites.net"), - // LastUpdatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // { - // BackendResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-26T20:57:24.805Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // }}, - // PullRequestTitle: to.Ptr("Update README.md"), - // SourceBranch: to.Ptr("demo-patch2"), - // Status: to.Ptr(armappservice.BuildStatusReady), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetStaticSiteBuild(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteBuildARMResource = armappservice.StaticSiteBuildARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12"), - // Properties: &armappservice.StaticSiteBuildARMResourceProperties{ - // BuildID: to.Ptr("12"), - // CreatedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // Hostname: to.Ptr("happy-sea-15afae3e-12.westus2.azurestaticwebsites.net"), - // LastUpdatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // LinkedBackends: []*armappservice.StaticSiteLinkedBackend{ - // { - // BackendResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ApiManagement/service/apimService0"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-03-26T20:57:24.805Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // }}, - // PullRequestTitle: to.Ptr("Update README.md"), - // SourceBranch: to.Ptr("pr-branch"), - // Status: to.Ptr(armappservice.BuildStatusUploading), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuildDatabaseConnections.json -func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetBuildDatabaseConnectionsPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_GetBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_CreateOrUpdateBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", armappservice.DatabaseConnection{ - Properties: &armappservice.DatabaseConnectionProperties{ - ConnectionIdentity: to.Ptr("SystemAssigned"), - ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - Region: to.Ptr("West US 2"), - ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_DeleteBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DeleteBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PatchStaticSiteBuildDatabaseConnection.json -func ExampleStaticSitesClient_UpdateBuildDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateBuildDatabaseConnection(ctx, "rg", "testStaticSite0", "default", "default", armappservice.DatabaseConnectionPatchRequest{ - Properties: &armappservice.DatabaseConnectionPatchRequestProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json -func ExampleStaticSitesClient_GetBuildDatabaseConnectionWithDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetBuildDatabaseConnectionWithDetails(ctx, "rg", "testStaticSite0", "default", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteBuildFunctionsPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteFunctionOverviewCollection = armappservice.StaticSiteFunctionOverviewCollection{ - // Value: []*armappservice.StaticSiteFunctionOverviewARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/functions/GetList"), - // Properties: &armappservice.StaticSiteFunctionOverviewARMResourceProperties{ - // FunctionName: to.Ptr("GetList"), - // TriggerType: to.Ptr(armappservice.TriggerTypesHTTPTrigger), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteBuildAppSettings(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteBuildFunctionAppSettings(ctx, "rg", "testStaticSite0", "12", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json -func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsWithDetailsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetBuildDatabaseConnectionsWithDetailsPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetUserProvidedFunctionAppsForStaticSiteBuildPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteUserProvidedFunctionAppsCollection = armappservice.StaticSiteUserProvidedFunctionAppsCollection{ - // Value: []*armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // { - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetUserProvidedFunctionAppForStaticSiteBuild(ctx, "rg", "testStaticSite0", "default", "testFunctionApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteBasicAuth.json -func ExampleStaticSitesClient_NewListBasicAuthPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListBasicAuthPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteBasicAuthPropertiesCollection = armappservice.StaticSiteBasicAuthPropertiesCollection{ - // Value: []*armappservice.StaticSiteBasicAuthPropertiesARMResource{ - // { - // Name: to.Ptr("default"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/basicAuth/default"), - // Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - // ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - // SecretState: to.Ptr("Password"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBasicAuth.json -func ExampleStaticSitesClient_GetBasicAuth() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetBasicAuth(ctx, "rg", "testStaticSite0", armappservice.BasicAuthNameDefault, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteBasicAuthPropertiesARMResource = armappservice.StaticSiteBasicAuthPropertiesARMResource{ - // Name: to.Ptr("default"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/basicAuth/default"), - // Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - // ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - // SecretState: to.Ptr("Password"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSiteBasicAuth.json -func ExampleStaticSitesClient_CreateOrUpdateBasicAuth() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateBasicAuth(ctx, "rg", "testStaticSite0", armappservice.BasicAuthNameDefault, armappservice.StaticSiteBasicAuthPropertiesARMResource{ - Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - Password: to.Ptr("**********************"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteBasicAuthPropertiesARMResource = armappservice.StaticSiteBasicAuthPropertiesARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/basicAuth/default"), - // Properties: &armappservice.StaticSiteBasicAuthPropertiesARMResourceProperties{ - // ApplicableEnvironmentsMode: to.Ptr("AllEnvironments"), - // SecretState: to.Ptr("Password"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/config/appSettings"), - // Properties: map[string]*string{ - // "setting1": to.Ptr("someval"), - // "setting2": to.Ptr("someval2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserInvitationResponseResource = armappservice.StaticSiteUserInvitationResponseResource{ - // Properties: &armappservice.StaticSiteUserInvitationResponseResourceProperties{ - // ExpiresOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-28T16:53:56.211Z"); return t}()), - // InvitationURL: to.Ptr("https://happy-sea-15afae3e.azurestaticwebsites.net?invite=asdf"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteCustomDomainsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteCustomDomainOverviewCollection = armappservice.StaticSiteCustomDomainOverviewCollection{ - // Value: []*armappservice.StaticSiteCustomDomainOverviewARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSitesBuilds/testStaticSite0/customDomains/custom.domain.net"), - // Properties: &armappservice.StaticSiteCustomDomainOverviewARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // DomainName: to.Ptr("custom.domain.net"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetStaticSiteCustomDomain(ctx, "rg", "testStaticSite0", "custom.domain.net", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteCustomDomainOverviewARMResource = armappservice.StaticSiteCustomDomainOverviewARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSitesBuilds/testStaticSite0/customDomains/custom.domain.net"), - // Properties: &armappservice.StaticSiteCustomDomainOverviewARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // DomainName: to.Ptr("custom.domain.net"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteCustomDomainOverviewARMResource = armappservice.StaticSiteCustomDomainOverviewARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSitesBuilds/testStaticSite0/customDomains/custom.domain.net"), - // Properties: &armappservice.StaticSiteCustomDomainOverviewARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // DomainName: to.Ptr("custom.domain.net"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteDatabaseConnections.json -func ExampleStaticSitesClient_NewGetDatabaseConnectionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetDatabaseConnectionsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_GetDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetDatabaseConnection(ctx, "rg", "testStaticSite0", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_CreateOrUpdateDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().CreateOrUpdateDatabaseConnection(ctx, "rg", "testStaticSite0", "default", armappservice.DatabaseConnection{ - Properties: &armappservice.DatabaseConnectionProperties{ - ConnectionIdentity: to.Ptr("SystemAssigned"), - ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - Region: to.Ptr("West US 2"), - ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_DeleteDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().DeleteDatabaseConnection(ctx, "rg", "testStaticSite0", "default", 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PatchStaticSiteDatabaseConnection.json -func ExampleStaticSitesClient_UpdateDatabaseConnection() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().UpdateDatabaseConnection(ctx, "rg", "testStaticSite0", "default", armappservice.DatabaseConnectionPatchRequest{ - Properties: &armappservice.DatabaseConnectionPatchRequestProperties{}, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json -func ExampleStaticSitesClient_GetDatabaseConnectionWithDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetDatabaseConnectionWithDetails(ctx, "rg", "testStaticSite0", "default", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.DatabaseConnection = armappservice.DatabaseConnection{ - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewListStaticSiteFunctionsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteFunctionOverviewCollection = armappservice.StaticSiteFunctionOverviewCollection{ - // Value: []*armappservice.StaticSiteFunctionOverviewARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/functions/GetList"), - // Properties: &armappservice.StaticSiteFunctionOverviewARMResourceProperties{ - // FunctionName: to.Ptr("GetList"), - // TriggerType: to.Ptr(armappservice.TriggerTypesHTTPTrigger), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteAppSettings(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/appSettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteConfiguredRoles(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringList = armappservice.StringList{ - // Properties: []*string{ - // to.Ptr("authenticated"), - // to.Ptr("anonymous"), - // to.Ptr("customRole1")}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteFunctionAppSettings(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/config/appsettings"), - // Properties: map[string]*string{ - // "setting0": to.Ptr("someVal"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().ListStaticSiteSecrets(ctx, "rg", "testStaticSite0", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // Properties: map[string]*string{ - // "dnsOwnershipKey": to.Ptr("ownershipKey123123"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetPrivateEndpointConnectionListPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PrivateEndpointConnectionCollection = armappservice.PrivateEndpointConnectionCollection{ - // Value: []*armappservice.RemotePrivateEndpointConnectionARMResource{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetPrivateEndpointConnection(ctx, "rg", "testSite", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().BeginApproveOrRejectPrivateEndpointConnection(ctx, "rg", "testSite", "connection", armappservice.RemotePrivateEndpointConnectionARMResource{ - Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("connection"), - // Type: to.Ptr("Microsoft.Web/sites/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetPrivateLinkResources(ctx, "rg", "testSite", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // { - // Name: to.Ptr("site"), - // Type: to.Ptr("Microsoft.Web/sites/privateLinkResources"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateLinkResources/site"), - // Properties: &armappservice.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sites"), - // RequiredMembers: []*string{ - // to.Ptr("sites")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.testsite.azurewebsites.net")}, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ResetStaticSiteApiKey.json -func ExampleStaticSitesClient_ResetStaticSiteAPIKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().ResetStaticSiteAPIKey(ctx, "rg", "testStaticSite0", armappservice.StaticSiteResetPropertiesARMResource{ - Properties: &armappservice.StaticSiteResetPropertiesARMResourceProperties{ - RepositoryToken: to.Ptr("repoToken123"), - ShouldUpdateRepository: to.Ptr(true), - }, - }, 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json -func ExampleStaticSitesClient_NewGetDatabaseConnectionsWithDetailsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetDatabaseConnectionsWithDetailsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.DatabaseConnectionCollection = armappservice.DatabaseConnectionCollection{ - // Value: []*armappservice.DatabaseConnection{ - // { - // Name: to.Ptr("default"), - // Type: to.Ptr("Microsoft.Web/staticSites/databaseConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/databaseConnections/default"), - // Properties: &armappservice.DatabaseConnectionProperties{ - // ConfigurationFiles: []*armappservice.StaticSiteDatabaseConnectionConfigurationFileOverview{ - // { - // Type: to.Ptr("configuration"), - // Contents: to.Ptr("base64encodeddatabaseconfiguration"), - // FileName: to.Ptr("staticwebapp.database.config.json"), - // }, - // { - // Type: to.Ptr("graphqlschema"), - // Contents: to.Ptr("base64encodeddatabasegraphqlschema"), - // FileName: to.Ptr("staticwebapp.database.schema.gql"), - // }}, - // ConnectionIdentity: to.Ptr("SystemAssigned"), - // ConnectionString: to.Ptr("AccountEndpoint=https://exampleDatabaseName.documents.azure.com:443/;Database=mydb;"), - // Region: to.Ptr("West US 2"), - // ResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/databaseRG/providers/Microsoft.DocumentDB/databaseAccounts/exampleDatabaseName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetUserProvidedFunctionAppsForStaticSitePager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteUserProvidedFunctionAppsCollection = armappservice.StaticSiteUserProvidedFunctionAppsCollection{ - // Value: []*armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // { - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetUserProvidedFunctionAppForStaticSite(ctx, "rg", "testStaticSite0", "testFunctionApp", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteUserProvidedFunctionAppARMResource = armappservice.StaticSiteUserProvidedFunctionAppARMResource{ - // Name: to.Ptr("testFunctionApp"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/userProvidedFunctionApps"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/userProvidedFunctionApps/testFunctionApp"), - // Properties: &armappservice.StaticSiteUserProvidedFunctionAppARMResourceProperties{ - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // FunctionAppRegion: to.Ptr("West US 2"), - // FunctionAppResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetLinkedBackendsPager("rg", "testStaticSite0", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteLinkedBackendsCollection = armappservice.StaticSiteLinkedBackendsCollection{ - // Value: []*armappservice.StaticSiteLinkedBackendARMResource{ - // { - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewStaticSitesClient().NewGetLinkedBackendsForBuildPager("rg", "testStaticSite0", "default", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.StaticSiteLinkedBackendsCollection = armappservice.StaticSiteLinkedBackendsCollection{ - // Value: []*armappservice.StaticSiteLinkedBackendARMResource{ - // { - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetLinkedBackend(ctx, "rg", "testStaticSite0", "testBackend", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewStaticSitesClient().GetLinkedBackendForBuild(ctx, "rg", "testStaticSite0", "default", "testBackend", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewStaticSitesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StaticSiteLinkedBackendARMResource = armappservice.StaticSiteLinkedBackendARMResource{ - // Name: to.Ptr("testBackend"), - // Type: to.Ptr("Microsoft.Web/staticSites/builds/linkedBackends"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend"), - // Properties: &armappservice.StaticSiteLinkedBackendARMResourceProperties{ - // BackendResourceID: to.Ptr("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"), - // CreatedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-12-24T17:33:11.641Z"); return t}()), - // ProvisioningState: to.Ptr("Succeeded"), - // Region: to.Ptr("West US 2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewStaticSitesClient().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 a8042c3755e2..e467f48d93c3 100644 --- a/sdk/resourcemanager/appservice/armappservice/time_rfc3339.go +++ b/sdk/resourcemanager/appservice/armappservice/time_rfc3339.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -60,6 +57,9 @@ func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { } func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } tzOffset := tzOffsetRegex.Match(data) hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") var layout string diff --git a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go index 841f65894872..b6bf1603f2a2 100644 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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) { @@ -72,7 +69,7 @@ func (client *TopLevelDomainsClient) Get(ctx context.Context, name string, optio } // getCreateRequest creates the Get request. -func (client *TopLevelDomainsClient) getCreateRequest(ctx context.Context, name string, options *TopLevelDomainsClientGetOptions) (*policy.Request, error) { +func (client *TopLevelDomainsClient) getCreateRequest(ctx context.Context, name string, _ *TopLevelDomainsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}" if name == "" { return nil, errors.New("parameter name cannot be empty") @@ -87,7 +84,7 @@ func (client *TopLevelDomainsClient) getCreateRequest(ctx context.Context, name return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -104,7 +101,7 @@ func (client *TopLevelDomainsClient) getHandleResponse(resp *http.Response) (Top // NewListPager - Description for Get all top-level domains supported for registration. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - TopLevelDomainsClientListOptions contains the optional parameters for the TopLevelDomainsClient.NewListPager // method. func (client *TopLevelDomainsClient) NewListPager(options *TopLevelDomainsClientListOptions) *runtime.Pager[TopLevelDomainsClientListResponse] { @@ -131,7 +128,7 @@ func (client *TopLevelDomainsClient) NewListPager(options *TopLevelDomainsClient } // listCreateRequest creates the List request. -func (client *TopLevelDomainsClient) listCreateRequest(ctx context.Context, options *TopLevelDomainsClientListOptions) (*policy.Request, error) { +func (client *TopLevelDomainsClient) listCreateRequest(ctx context.Context, _ *TopLevelDomainsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -142,7 +139,7 @@ func (client *TopLevelDomainsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -159,7 +156,7 @@ func (client *TopLevelDomainsClient) listHandleResponse(resp *http.Response) (To // NewListAgreementsPager - Description for Gets all legal agreements that user needs to accept before purchasing a domain. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - name - Name of the top-level domain. // - agreementOption - Domain agreement options. // - options - TopLevelDomainsClientListAgreementsOptions contains the optional parameters for the TopLevelDomainsClient.NewListAgreementsPager @@ -188,7 +185,7 @@ func (client *TopLevelDomainsClient) NewListAgreementsPager(name string, agreeme } // listAgreementsCreateRequest creates the ListAgreements request. -func (client *TopLevelDomainsClient) listAgreementsCreateRequest(ctx context.Context, name string, agreementOption TopLevelDomainAgreementOption, options *TopLevelDomainsClientListAgreementsOptions) (*policy.Request, error) { +func (client *TopLevelDomainsClient) listAgreementsCreateRequest(ctx context.Context, name string, agreementOption TopLevelDomainAgreementOption, _ *TopLevelDomainsClientListAgreementsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements" if name == "" { return nil, errors.New("parameter name cannot be empty") @@ -203,7 +200,7 @@ func (client *TopLevelDomainsClient) listAgreementsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, agreementOption); err != nil { 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 1fba7c94ea6c..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go +++ /dev/null @@ -1,190 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewTopLevelDomainsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TopLevelDomainCollection = armappservice.TopLevelDomainCollection{ - // Value: []*armappservice.TopLevelDomain{ - // { - // Name: to.Ptr("com"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/com"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("net"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/net"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("co.uk"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/co.uk"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("org"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/org"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("nl"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/nl"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("in"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/in"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("biz"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/biz"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("org.uk"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/org.uk"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("co.in"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/co.in"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewTopLevelDomainsClient().Get(ctx, "com", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.TopLevelDomain = armappservice.TopLevelDomain{ - // Name: to.Ptr("com"), - // Type: to.Ptr("Microsoft.DomainRegistration/topLevelDomains"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.DomainRegistration/topLevelDomains/com"), - // Properties: &armappservice.TopLevelDomainProperties{ - // Privacy: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewTopLevelDomainsClient().NewListAgreementsPager("in", armappservice.TopLevelDomainAgreementOption{ - ForTransfer: to.Ptr(false), - IncludePrivacy: to.Ptr(true), - }, nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.TldLegalAgreementCollection = armappservice.TldLegalAgreementCollection{ - // Value: []*armappservice.TldLegalAgreement{ - // { - // AgreementKey: to.Ptr("DNRA"), - // Content: to.Ptr("\n\n\n\n\n
\n\n\n\n\n\n\n
\nDomain Name Registration Agreement\n
\n

Last Revised: October 6, 2017

\n

PLEASE READ THIS AGREEMENT CAREFULLY, AS IT CONTAINS IMPORTANT INFORMATION REGARDING YOUR LEGAL RIGHTS AND REMEDIES.

\r\n

1. OVERVIEW

\r\n

This Domain Name Registration Agreement (this \"Agreement\") is entered into by and between 510456, an individual (\"Azure\") and you, and is made effective as of the date of electronic acceptance.  This Agreement sets forth the terms and conditions of your use of Azure's Domain Name Registration services (the \"Domain Name Registration Services\" or the \"Services\"). The terms \"we\", \"us\" or \"our\" shall refer to Azure.  The terms \"you\", \"your\", \"User\" or \"customer\" shall refer to any individual or entity who accepts this Agreement.  Unless otherwise specified, nothing in this Agreement shall be deemed to confer any third-party rights or benefits.

\r\n

Your electronic acceptance of this Agreement signifies that you have read, understand, acknowledge and agree to be bound by this Agreement, which incorporates by reference each of (i) Azure’s Universal Terms of Service Agreement (\"UTOS\"), (ii) all agreements, guidelines, policies, practices, procedures, registration requirements or operational standards of the top-level domain (\"TLD\") in which you register any domain (“Registry Policies”), and (iii) any plan limits, product disclaimers or other restrictions presented to you on the Domain Name Registration Services landing page of the Azure website (this “Site”). 

\r\n

TO LINK TO AND REVIEW THE REGISTRY POLICIES FOR THE TLD IN WHICH YOU WISH TO REGISTER A DOMAIN NAME, PLEASE CLICK HERE   

\r\n

You acknowledge and agree that (i) Azure, in its sole and absolute discretion, may change or modify this Agreement, and any policies or agreements which are incorporated herein, at any time, and such changes or modifications shall be effective immediately upon posting to this Site, and (ii) your use of this Site or the Services found at this Site after such changes or modifications have been made shall constitute your acceptance of this Agreement as last revised.  If you do not agree to be bound by this Agreement as last revised, do not use (or continue to use) this Site or the Services found at this Site.  In addition, Azure may occasionally notify you of changes or modifications to this Agreement by email.  It is therefore very important that you keep your shopper account (“Shopper Account”) information, including your email address, current.  Azure assumes no liability or responsibility for your failure to receive an email notification if such failure results from an inaccurate or out-of-date email address.    Azure is not an Internet Corporation for Assigned Names and Numbers (\"ICANN\") accredited registrar; it is an authorized reseller of domain name registration services.  Accordingly, you acknowledge and agree that Azure may modify this Agreement in order to comply with any terms and conditions set forth by (i) the sponsoring registrar, (ii) ICANN, and/or (iii) the registry applicable to the TLD or country code top level domain (\"ccTLD\") in question.  As used herein, the terms \"registry\", \"Registry\", \"registry operator\" or \"Registry Operator\" shall refer to the registry applicable to the TLD or ccTLD in question.  To identify the sponsoring registrar, click here

\r\n

2. PROVISIONS SPECIFIC TO ALL REGISTRATIONS

\r\n

Unless otherwise noted, the provisions below in this Section 2 are generally applicable to all TLDs that we offer.  Special provisions specific to any TLD or ccTLD (those in addition to posted Registry Policies) are identified elsewhere below in this Agreement. 

\r\n
    \r\n
  1. \r\n
    Registry Policies. You agree to be bound by all Registry Policies (defined above in this Agreement) applicable to your domain name registration (at any level). IT IS YOUR RESPONSIBILITY TO VISIT THE APPLICABLE TLD SITE AND READ AND REVIEW ALL APPLICABLE REGISTRY POLICIES PRIOR TO YOUR REGISTRATION IN THE TLD.  REGISTRY POLICIES FOR EACH TLD CAN BE FOUND BY VISITING THE CORRESPONDING TLD LINK LISTED HERE.  Notwithstanding anything in this Agreement to the contrary, the Registry Operator of the TLD in which the domain name registration is made is and shall be an intended third party beneficiary of this Agreement. As such the parties to this agreement acknowledge and agree that the third party beneficiary rights of the Registry Operator have vested and that the Registry Operator has relied on its third party beneficiary rights under this Agreement in agreeing to Azure being a registrar for the respective TLD. The third party beneficiary rights of the Registry Operator will survive any termination of this Agreement.    
    \r\n
  2. \r\n
  3. \r\n
    Registration Requirements.  To the extent any TLD or ccTLD requires you meet eligibility (e.g., residency for .JP, .EU, etc.), validation (e.g., DNS validation) or other authentication requirements as a condition to registering a domain name in the TLD, you agree that by submitting an application or registering or renewing your domain name, you represent and warrant that: (a) all information provided to register or renew the domain name (including all supporting documents, if any) is true, complete and correct, and is not misleading in any way, and the application is made in good faith; (b) you meet, and will continue to meet, the eligibility criteria prescribed in the Registry Policies for the applicable TLD for the duration of the domain name registration; (c) you have not previously submitted an application for the domain name with another registrar using the same eligibility criteria, and the other registrar has rejected the application (if applicable); (d) you acknowledge and agree that even if the domain name is accepted for registration, your entitlement to register the domain name may be challenged by others who claim to have an entitlement to the domain name; and (e) you acknowledge and agree that the Registry or the registrar can cancel the registration of the domain name if any of the warranties required are found to be untrue, incomplete, incorrect or misleading.
    \r\n
  4. \r\n
  5. \r\n
    Ownership.  You acknowledge and agree that registration of a domain name does not create any proprietary right for you, the registrar, or any other person in the name used as a domain name or the domain name registration and that the entry of a domain name in the Registry shall not be construed as evidence or ownership of the domain name registered as a domain name. You shall not in any way transfer or purport to transfer a proprietary right in any domain name registration or grant or purport to grant as security or in any other manner encumber or purport to encumber a domain name registration.
    \r\n
  6. \r\n
  7. \r\n
    ICANN Requirements. You agree to comply with the ICANN requirements, standards, policies, procedures, and practices for which each applicable Registry Operator has monitoring responsibility in accordance with the Registry Agreement between ICANN and itself or any other arrangement with ICANN.
    \r\n
  8. \r\n
  9. \r\n
    Indemnification of Registry.  You agree to indemnify, defend and hold harmless (within 30 days of demand) the Registry Operator and Registry Service Provider and their subcontractors, subsidiaries, affiliates, divisions, shareholders, directors, officers, employees, accountants, attorneys, insurers, agents, predecessors, successors and assigns, from and against any and all claims, demands, damages, losses, costs, expenses, causes of action or other liabilities of any kind, whether known or unknown, including reasonable legal and attorney’s fees and expenses, in any way arising out of, relating to, or otherwise in connection with the your domain name registration, including, without limitation, the use, registration, extension, renewal, deletion, and/or transfer thereof and/or the violation of any applicable terms or conditions governing the registration. You shall not enter into any settlement or compromise of any such indemnifiable claim without Registrar’s or Registry Operator’s prior written consent, which consent shall not be unreasonably withheld, and you agree that these indemnification obligations shall survive the termination or expiration of the Agreement for any reason.  IN NO EVENT SHALL THE REGISTRY OPERATOR BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, EXEMPLARY OR PUNITIVE DAMAGES, INCLUDING LOSS OF PROFIT OR GOODWILL, FOR ANY MATTER, WHETHER SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF WARRANTIES, EITHER EXPRESS OR IMPLIED, ANY BREACH OF THIS AGREEMENT OR ITS INCORPORATED AGREEMENTS AND POLICIES YOUR INABILITY TO USE THE DOMAIN NAME, YOUR LOSS OF DATA OR FILES OR OTHERWISE, EVEN IF THE REGISTRY OPERATOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    \r\n
  10. \r\n
  11. \r\n
    Regulated TLDs.   For domain name registration in any “Regulated” TLD, you acknowledge and agree your registration is subject to the following additional requirements: (a) comply with all applicable laws, including those that relate to privacy, data collection, consumer protection (including in relation to misleading and deceptive conduct), fair lending, debt collection, organic farming, disclosure of data, and financial disclosures; (b) if you collect and maintain sensitive health and financial data you must implement reasonable and appropriate security measures commensurate with the offering of those services, as defined by applicable law.  Regulated TLDs include: .games, .juegos, .school, .schule, .toys, .eco, .care, .diet, .fitness, .health, .clinic, .dental, .healthcare, .cash, .broker, .claims, .exchange, .finance, .financial, .fund, .investments, .lease, .loans, .market, .money, .trading, .credit, .insure, .tax, .mortgage, .degree, .mba, .audio, .book, .broadway, .film, .movie, .music, .software, .fashion, .video, .app, .art, .band, .cloud, .data, .digital, .fan, .free, .gratis, .discount, .sale, .media, .news, .online, .pictures, .radio, .show, .theater, .tours, .accountants, .architect, .associates, .broker, .legal, .realty, .vet, .engineering, .law, .limited, .show; .theater; .town, .city, .reise, and .reisen
    \r\n
  12. \r\n
  13. \r\n
    Highly Regulated TLDs. In addition to the requirements for Regulated TLDs, domain name registration in any Highly-Regulated TLD is subject to the following requirements: (a) you will provide administrative contact information, which must be kept up‐to‐date, for the notification of complaints or reports of registration abuse, as well as the contact details of the relevant regulatory, or Industry self‐regulatory, bodies in their main place of business; (b) you represent that you possess any necessary authorizations, charters, licenses and/or other related credentials for participation in the sector associated with such Highly‐regulated TLD; and (c) you will report any material changes to the validity of you authorizations, charters, licenses and/or other related credentials for participation in the sector associated with the Highly‐regulated TLD to ensure you continue to conform to the appropriate regulations and licensing requirements and generally conduct your activities in the interests of the consumers they serve.  Highly Regulated TLDs include: .abogado, .attorney, .bank, .bet, .bingo, .casino .charity (and IDN equivalent xn--30rr7y), .cpa, .corp, creditcard, .creditunion .dds, .dentist, .doctor, .fail, .gmbh, .gripe, .hospital, .inc, .insurance, .lawyer, .lifeinsurance, .llc, .llp, .ltda, .medical, .mutuelle, .pharmacy, .poker, .university, .sarl, .spreadbetting, .srl, .surgery .university, .vermogensberater, and .vesicherung,  For .doctor, registrants who hold themselves out to be licensed medical practitioners must be able to demonstrate to the Registrar and Registry, upon request, that they hold the applicable license.
    \r\n
  14. \r\n
  15. \r\n
    Special Safeguard TLDs.  In addition to the requirements for Regulated and Highly-Regulated TLDs, by registering a domain name in any “Special-Safeguard” TLD, you agree to take reasonable steps to avoid misrepresenting or falsely implying that you or your business is affiliated with, sponsored or endorsed by one or more country's or government's military forces if such affiliation, sponsorship or endorsement does not exist.  Special Safeguard TLDs include:  .army, .navy, .airforce
    \r\n
  16. \r\n
  17. \r\n
    Third Party Beneficiary.  Notwithstanding anything in this Agreement to the contrary, the Registry Operator for any TLD in which your register a domain name is and shall be an intended third party beneficiary of this Agreement. As such the parties to this agreement acknowledge and agree that the third party beneficiary rights of the Registry Operator have vested and that the Registry Operator has relied on its third party beneficiary rights under this Agreement in agreeing to Azure being a registrar for the TLD. Third party beneficiary rights of the Registry Operator shall survive any termination of this Agreement.
    \r\n
  18. \r\n
  19. \r\n
    Variable and Non-Uniform Pricing.  You acknowledge, understand and agree that certain domain names in certain TLDs are established by Registry Policies to be variably priced (i.e., standard v. premium names) and/or may have non-uniform renewal registration pricing (such that the Fee for a domain name registration renewal may differ from other domain names in the same TLD, e.g., renewal registration for one domain may be $100.00 and $33.00 for a different domain name).
    \r\n
  20. \r\n
  21. \r\n
    Restriction on Availability of Privacy or Proxy.  You acknowledge and agree that, as dictated by the Registry Policies, for certain TLDs you may not be permitted to purchase private or proxy TLD registrations. In such case, you must register for any and all TLD registrations using your personal information, which information you represent and warrant is current, accurate and complete.
    \r\n
  22. \r\n
\r\n

3. FEES AND PAYMENTS

\r\n

(A) GENERAL TERMS, INCLUDING AUTOMATIC RENEWAL TERMS

\r\n

You agree to pay any and all prices and fees due for Services purchased or obtained at this Site at the time you order the Services.  Azure expressly reserves the right to change or modify its prices and fees at any time, and such changes or modifications shall be posted online at this Site and effective immediately without need for further notice to you.  If you have purchased or obtained Services for a period of months or years, changes or modifications in prices and fees shall be effective when the Services in question come up for renewal as further described below. 

\r\n

Unless otherwise specifically noted (for reasons such as those highlighted in Section 2(x) above), the renewal price for any domain name in any TLD will be the same as the list (non-sale) price shown when you search for and select a domain, and again in the cart prior to purchase.  For example, if the list price is $9.99, and a different renewal price is not specifically identified, then the renewal price is also $9.99.  Likewise, if a domain name has a sale price of $8.99, with the list (non-sale) price shown (as a strike-through) at $9.99, the renewal price will be $9.99*.  

\r\n

*Renewal price subject to change prior to actual date of renewal. 

\r\n

For all other terms and conditions relating to fees, payment, refund and billing, etc. applicable to the Services offered under the scope of this Agreement, please refer to the “Fees and Payments” section of our UTOS

\r\n

(B) DOMAIN NAME RENEWAL TERMS

\r\n

When you register a domain name, you will have two renewal options: (i) \"Automatic Renewal\" (ii) \"Extended Automatic Renewal\", and (iii) \"Manual Renewal\": 

\r\n
    \r\n
  1. Automatic Renewal.  Automatic Renewal is the default setting. Therefore, unless you select Extended Automatic Renewal, Azure will enroll you in Automatic Renewal.  Domain names will automatically renew, for a period equivalent to the length of your original domain name registration, any domain name that is up for renewal and will take payment from the Payment Method you have on file with Azure, at Azure's then current rates. Thus, if you have chosen to register your domain name for one (1) year, Azure will automatically renew it for one (1) year. If you have chosen to register your domain name for two (2) years, Azure will automatically renew it for two (2) years, and so on.
  2. \r\n
  3. Extended Automatic Renewal.  If you enroll in the Extended Automatic Renewal plan, Azure will automatically renew any domain name that is up for renewal for an additional one-year period on each and every anniversary of your domain name registration, so the initial registration period will always remain intact.  Thus, if you have chosen to register your domain name for two (2) years, Azure will automatically renew it for one (1) additional year on each and every anniversary of your domain name registration so your two (2) year registration period will always remain intact. If you have chosen to register your domain name for five (5) years, Azure will automatically renew it for one (1) additional year on each and every anniversary of your domain name registration so your five (5) year registration period will always remain intact, and so on.  Azure will take payment from the Payment Method you have on file with Azure, at Azure's then current one-year domain name registration rate.
  4. \r\n
  5. Manual Renewal.  If you have elected to turn off automatic renewal and cancel the product (i.e., cancel the domain name registration) effective at expiration of the then current term, you may nonetheless elect to manually renew the domain name at anytime prior to its expiration date by logging into your Account Manager and manually implementing the renewal or by calling customer service (should you in fact want the domain name to be renewed). If you fail to manually implement the renewal before the expiration date, the domain name will be cancelled and you will no longer have use of that name.
  6. \r\n
\r\n

All renewals will be subject to the terms of this Agreement, as it may be amended from time to time, and you acknowledge and agree to be bound by the terms of this Agreement (as amended) for all renewed domains.  Domain name renewals will be non-refundable. In the event that we are unable to automatically renew your domain name for the renewal option selected for any reason, we may automatically renew your domain name for a period less than your original registration period to the extent necessary for the transaction to succeed. If for any reason Azure is not able to take the payment from the Payment Method you have on file, and you fail to respond to our notices, your domain name registration will expire. It is your responsibility to keep your Payment Method information current, which includes the expiration date if you are using a credit card.

\r\n

For certain ccTLDs (.am, .at, .be, .br, .ca, .cn, .com.cn, .net.cn, .org.cn, .de, .eu, .fm, .gs, .it, .jp, .ms, .nu, .nz, .co.nz, .net.nz, .org.nz, .tc, .tk, .tw, .com.tw, .org.tw, .idv.tw, .uk, and .vg), renewal billing will occur on the first day of the month prior to the month of expiration.

\r\n

For certain ccTLDs (.am, .at, .be, .ca, .cn, .com.cn, .net.cn, .org.cn, .de, .eu, .fm, .gs, .it, .jp, .ms, .nu, .nz, .co.nz, .net.nz, .org.nz, .tc, .tk, .tw, .com.tw, .org.tw, .idv.tw, .uk, and .vg), renewal will occur, or must occur manually if the product was previously cancelled, no later than the 20th of the month prior to the expiration date, or your domain name will be placed in non-renewal status. For some ccTLDs (.es) renewal must be processed no later than seven days before the expiration date, or your domain name will be placed in non-renewal status.  When the domain name is in non-renewal status, you can renew the domain name only by calling Azure and requesting that the domain name be renewed. You cannot renew the domain name through your Account Manager. If you fail to manually implement the renewal of any cancelled product before the expiration date, the domain name will be cancelled and you will no longer have use of that name.

\r\n

You agree that Azure will not be responsible for cancelled domain names that you fail to renew in the timeframes indicated in this Agreement. In any case, if you fail to renew your domain name in a timely fashion, additional charges may apply. If you signed up for privacy services, protected registration, or any other similar service, with your domain name registration, these services will automatically be renewed when your domain name registration is up for renewal, and you will incur the applicable additional renewal fee unless you cancel in advance. 

\r\n

If you fail to renew your domain name in the timeframes indicated in this Agreement, you agree that Azure may, in its sole discretion, renew your expired domain name on your behalf. If Azure decides to renew your expired domain name on your behalf, you will have a Renewal Grace Period during which you may reimburse Azure for the renewal and keep your domain name. The Renewal Grace Period is currently twelve (12) days but subject to change under the terms of this Agreement. For certain ccTLDs (.am, .at, .be, .cn, .com.cn, .net.cn, .org.cn, .de, .eu, .fm, .gs, .it, .jp, .ms, .nu, .nz, .co.nz, .net.nz, .org.nz, .tc, .tk, .tw, .com.tw, .org.tw, .idv.tw, .uk, and .vg) there is no Renewal Grace Period after the expiration date of the domain name. If you do not reimburse Azure for the renewal during the Renewal Grace Period your domain name will be placed on Hold and flagged for deletion after which you will have a 30-day redemption period during which you may pay Azure a Redemption fee and redeem your domain name. The Redemption fee is currently $80.00 USD and is subject to change under the terms of this Agreement. If you do not redeem your domain name prior to the end of the 30-day redemption period Azure may, in its sole discretion, delete your domain name or transfer it to another registrant on your behalf.  During the redemption period your domain name may be parked. 

\r\n

If your domain name is deleted, the Registry also provides a 30-day Redemption Grace Period during which you may pay Azure a redemption fee and redeem your domain name. The redemption fee is currently $80.00 USD and is subject to change under the terms of this Agreement. If you do not redeem your domain name prior to the end of the Registry's Redemption Grace Period the Registry will release your name and it will become available for registration on a first-come-first-served basis.

\r\n

Renewal Grace Periods and Redemption Grace Periods vary for different ccTLDs. Please refer to the specific terms for the applicable TLD. In the event there is a conflict between the provisions of this paragraph and the ccTLD terms, the ccTLD terms shall control.

\r\n

\r\n

Our registration expiration notification policy and associated fees are described here.

\r\n

\r\n

\r\n

(C) FREE PRODUCT TERMS

\r\n

In the event you are provided with free products with the registration of a domain name, you acknowledge and agree that such free products will only be available with a valid purchase and may be terminated in the event the domain name is deleted or cancelled.  For free domain names, you acknowledge and agree that you may not change the account associated with such free domain for the first five (5) days after registration.  In the event a free domain name is offered with the registration of another domain and if the paid domain name registered fails, then we may, in its sole discretion, either delete the registration of the free domain or refund the difference between the amount paid and the value of the free domain.  Failed registrations associated with promotionals offers may result in the deletion of the free or discounted item or an adjustment between the registered domain price and the value of the discounted item, in our sole discretion.

\r\n

4. TERM OF AGREEMENT; TRANSFERS; DOMAIN TASTING

\r\n

The term of this Agreement shall continue in full force and effect as long as you have any domain name registered through Azure.

\r\n

You agree that you will not transfer any domain name registered through Azure to another domain name registrar during the first sixty (60) days after its initial registration date.  You agree that you may not transfer any domain name for ten (10) days after a Change of Account.

\r\n

You further agree that you will not engage in \"domain tasting\" by using the five (5) day grace period in which a registrant may choose to cancel a domain name and get a full refund of the registration fee as a vehicle to test the marketability or viability of a domain name.  If Azure determines (which determination shall be made by Azure in its sole and absolute discretion) that you have been engaging in \"domain tasting\", then Azure reserves the right to (a) charge you a small fee (which fee shall be deducted from any refund issued) or (b) refuse your cancellation/refund request altogether. Azure will not charge you a fee if Azure cancels your domain name during the five (5) day grace period due to fraud or other activity outside of your control. The five (5) day grace period does not apply to Premium Domains, which are non-refundable.

\r\n

You agree that Azure shall not be bound by (i) any representations made by third parties who you may use to purchase services from Azure, or (ii) any statements of a general nature, which may be posted on Azure's website or contained in Azure's promotional materials.

\r\n

5. UP TO DATE INFORMATION; USE OF INFORMATION AND EXPIRATION

\r\n

You agree to notify Azure within five (5) business days when any of the information you provided as part of the application and/or registration process changes. It is your responsibility to keep this information in a current and accurate status. Failure by you, for whatever reason, to provide Azure with accurate and reliable information on an initial and continual basis, shall be considered to be a material breach of this Agreement and a basis for suspension and/or cancellation of the domain name. Failure by you, for whatever reason, to respond within five (5) business days to any inquiries made by Azure to determine the validity of information provided by you, shall also be considered to be a material breach of this Agreement and a basis for suspension and/or cancellation of the domain name. You agree to retain a copy for your record of the receipt for purchase of your domain name.

\r\n

You agree that for each domain name registered by you, the following contact data is required: postal address, email address, telephone number, and if available, a facsimile number for the Registered Name Holder and, if different from the Registered Name Holder, the same contact information for, a technical contact, an administrative contact and a billing contact.

\r\n

You acknowledge and agree that domain name registration requires that this contact information, in whole or in part, be shared with the registry operator, for their use, copying, distribution, publication, modification and other processing  for (among other uses in accordance with our Privacy Policy) the purpose of administration of the domain name registration, which may require such information be transferred back and forth across international borders, to and from the U.S. to the EU, for example. As required by ICANN, this information must also be made publicly available by means of Whois, and that the registry operator may also be required to make this information publicly available by Whois. Both Azure and the registry operator may be required to archive this information with a third-party escrow service. You hereby consent and give permission for all such requirements and disclosures. Further, you represent and warrant that, if you are providing information about a third party, you have notified the third party of the disclosure and the purpose for the disclosure and you have obtained the third party's consent to such disclosure.  Registrar will not process data in a way that is incompatible with this Agreement.  Registrar will take reasonable precautions to protect data from loss or misuse.

\r\n

You agree that for each domain name registered by you the following information will be made publicly available in the Whois directory as determined by ICANN Policy and may be sold in bulk as set forth in the ICANN agreement:

\r\n
    \r\n
  • The domain name;
  • \r\n
  • Your name and postal address;
  • \r\n
  • The name, email address, postal address, voice and fax numbers for technical and administrative contacts;
  • \r\n
  • The Internet protocol numbers for the primary and secondary name servers;
  • \r\n
  • The corresponding names of the name servers; and
  • \r\n
  • The original date of registration and expiration date.
  • \r\n
  • Name of primary name server and secondary name server.
  • \r\n
  • Identity of the registrar.
  • \r\n
\r\n

You agree that, to the extent permitted by ICANN, Azure may make use of the publicly available information you provided during the registration process. If you engage in the reselling of domain names you agree to provide any individuals whose personal information you've obtained, information about the possible uses of their personal information pursuant to ICANN policy. You also agree to obtain consent, and evidence of consent, from those individuals for such use of the personal information they provide.

\r\n

You agree that Azure has the right to make public and share with third parties certain information in connection with the sale or purchase of domain names on the website, including but not limited to (a) the name of the domain name sold or purchased, (b) the sale or purchase price of the domain name sold or purchased, and (c) information relating to the timing of the sale or purchase.

\r\n

\r\n

In order for us to comply with any current or future rules and policies for domain name systems including any rules or policies established by the CIRA or any provincial or federal government or by other organization having control or authority to establish rules or policies, you hereby grant to us the right to disclose to third parties through an interactive publicly accessible registration database the following information that you are required to provide when applying for a domain name:

\r\n
    \r\n
  1. The domain or sub-domain name(s) registered by you;
  2. \r\n
  3. Your organization name, type and postal address;
  4. \r\n
  5. The name(s), position(s), postal address(es), e-mail address(es), voice telephone number(s) and where available the fax number(s) of the technical and administrative contacts for your domain or sub-domain name(s);
  6. \r\n
  7. The full hostnames and Internet protocol (IP) addresses of at least two (2) name server hosts (one primary and at least one secondary) for your domain or sub-domain name. Up to six (6) name servers may be specified. If a host has more than one (1) IP address, use a comma-separated list;
  8. \r\n
  9. The corresponding names of those name servers;
  10. \r\n
  11. The original creation date of the registration; and
  12. \r\n
  13. The expiration date of the registration.
  14. \r\n
\r\n

We may be required to make this information available in bulk form to third parties. We may also transfer or assign this information to CIRA or such other third party as we may decide, in our sole discretion.

\r\n

6. DISPUTE RESOLUTION POLICY

\r\n

You agree to be bound by our current Dispute Resolution Policy. This policy is incorporated herein and made a part of this Agreement. You can view the Uniform Domain Name Dispute Resolution Policy online. You agree that Azure may from time to time modify its Dispute Resolution Policy. Azure will post any changes to its Dispute Resolution Policy at least thirty (30) days before they become effective. You agree that by maintaining your domain name registrations with Azure after the updated policy becomes effective that you agree to the Dispute Resolution policy as amended. You agree to review Azure's website periodically to determine if changes have been made to the Dispute Resolution Policy. If you cancel or terminate your Services with Azure as a result of the modified Dispute Resolution policy, no fees will be refunded to you. You also agree to submit to proceedings commenced under ICANN's Uniform Rapid Suspension System, if applicable. 

\r\n

You agree that if a dispute arises as a result of one (1) or more domain names you have registered using Azure, you will indemnify, defend and hold Azure harmless as provided for in this Agreement. You also agree that if Azure is notified that a complaint has been filed with a governmental, administrative or judicial body, regarding a domain name registered by you using Azure, that Azure, in its sole discretion, may take whatever action Azure deems necessary regarding further modification, assignment of and/or control of the domain name deemed necessary to comply with the actions or requirements of the governmental, administrative or judicial body until such time as the dispute is settled. In this event you agree to hold Azure harmless for any action taken by Azure.

\r\n

You agree to submit, without prejudice to other potentially applicable jurisdictions, to the jurisdiction of the courts (1) of your domicile, (2) where registrar is located or (3) where the registry operator is located (e.g., China for .CN, Columbia for .CO, UK for .EU, etc.).

\r\n

\r\n

In the case of .ca domain names, you agree that, if your use of the service or the registration of a .ca domain name is challenged by a third party, you will be subject to the provisions specified by CIRA in their dispute resolution policy, in effect at the time of the dispute.

\r\n

\r\n

7. TRANSFER OF DOMAIN NAMES; RESALE PRACTICES

\r\n

If you transfer any domain name, you agree to provide the information required by, and to abide by, the procedures and conditions set forth in our Domain Name Transfer Agreement and Change of Registrant Agreement. You may view the latest versions of our Domain Name Transfer Agreement and Change of Registrant Agreementonline. In order to further protect your domain name, any domain name registered with Azure or transferred to Azure shall be placed on lock status, unless an opted-out has occurred as defined in our Change of Registrant Agreement or Domain Name Proxy Agreement. The domain name must be placed on unlock status in order to initiate a transfer of the domain name away from Azure to a new Registrar. You may log into your account with Azure at any time after your domain name has been successfully transferred to Azure, and change the status to unlock.

\r\n

In the event you are purchasing a domain name on behalf of a third party, you agree to inform any customer of yours, who may be acquiring a domain name through you using Azure's registration services, that they are in fact registering their domain name through Azure and that Azure or its licensor is an accredited registrar with ICANN. You agree not to represent that you are an ICANN-accredited registrar or that you are in any way providing superior access to the ICANN Domain Name Registry. You also agree not to use the ICANN trademark logo in any of your promotional materials including your website.

\r\n

You agree to obtain each of your customers' acceptances to the then current version of this Agreement, and to retain evidence of their acceptance for a period of not less than three (3) years. Should you require that your customers accept additional terms and conditions that are not required by Azure, you agree that such additional terms and conditions shall not conflict with this Agreement and the policies and procedures adopted by ICANN.

\r\n

You agree that Azure is not lending you access to its registrar connections or its registry access, nor will you be deemed to be a registrar in your own right. Furthermore, you agree you will not attempt to gain access to Azure's registrar connections or registry access. You agree to provide complete, accurate and current data for each registrant to be added to a registry in accordance with ICANN requirements for inclusion in the Whois database.

\r\n

You agree to provide your customers with adequate customer support, and to maintain contact with them with regard to providing a medium for them to communicate changes in the information they provided as part of the domain name registration process. Upon receiving corrected or updated information you will, within five (5) business days, provide such information to Azure so Azure may update its registration records. You will retain copies of all communications between you and your customers and will upon request provide Azure copies of same.

\r\n

8. YOUR OBLIGATIONS; SUSPENSION OF SERVICES; BREACH OF AGREEMENT

\r\n

You represent and warrant to the best of your knowledge that, neither the registration of the domain nor the manner it is directly or indirectly used, infringes the legal rights of any third party.  You will comply with all applicable laws, including, but not limited to those relating to privacy, data collection, consumer protection, fair lending, debt collection, organic farming, and disclosure of data and financial disclosures.  If you collect and maintain sensitive health and financial data, you must implement reasonable and appropriate security measures commensurate with the offering of those services, as defined by applicable law.  You represent that you possess any necessary authorization, charter, license, and/or other related credential for participation in the sector associated with the associated registry tld string.  You will report any material changes to the validity of your authorization, charter, license, and/or other related credential. You will indemnify and hold harmless the registrar and registry operator, and their directors, officers, employees and agents, from and against any and all claims, damages, liabilities, costs and expenses (including reasonable legal fees and expenses) arising out of or related to the domain name registration.  This obligation shall survive expiration or termination of this Agreement or the domain name registration.

\r\n

You agree that, in addition to other events set forth in this Agreement:

\r\n
    \r\n
  1. Your ability to use any of the services provided by Azure is subject to cancellation or suspension in the event there is an unresolved breach of this Agreement and/or suspension or cancellation is required by any policy now in effect or adopted later by ICANN;
  2. \r\n
  3. Your registration of any domain names shall be subject to suspension, cancellation or transfer pursuant to any ICANN adopted specification or policy, or pursuant to any Azure procedure not inconsistent with an ICANN adopted specification or policy (a) to correct mistakes by Azure or the registry operator in registering any domain name; or (b) for the resolution of disputes concerning any domain name.
  4. \r\n
\r\n

You acknowledge and agree that Azure and registry reserve the right to deny, cancel or transfer any registration or transaction, or place any domain name(s) on registry lock, hold or similar status, as either deems necessary, in the unlimited and sole discretion of either Azure or the registry: (i) to comply with specifications adopted by any industry group generally recognized as authoritative with respect to the Internet (e.g., RFCs), (ii) to correct mistakes made by registry or any registrar in connection with a domain name registration, (iii) for the non-payment of fees to registry, (iv) to protect the integrity and stability of the registry, (v) to comply with any applicable court orders, laws, government rules or requirements, requests of law enforcement, or any dispute resolution process, (vi) to comply with any applicable ICANN rules or regulations, including without limitation, the registry agreement, (vii) to avoid any liability, civil or criminal, on the part of registry operator, as well as its affiliates, subsidiaries, officers, directors, and employees, (viii) per the terms of this Agreement, (ix) following an occurrence of any of the prohibited activities described in Section 8 below, or (x) during the resolution of a dispute.

\r\n

You agree that your failure to comply completely with the terms and conditions of this Agreement and any Azure rule or policy may be considered by Azure to be a material breach of this Agreement and Azure may provide you with notice of such breach either in writing or electronically (i.e. email). In the event you do not provide Azure with material evidence that you have not breached your obligations to Azure within ten (10) business days, Azure may terminate its relationship with you and take any remedial action available to Azure under the applicable laws. Such remedial action may be implemented without notice to you and may include, but is not limited to, cancelling the registration of any of your domain names and discontinuing any services provided by Azure to you. No fees will be refunded to you should your Services be cancelled or terminated because of a breach.

\r\n

Azure's failure to act upon or notify you of any event, which may constitute a breach, shall not relieve you from or excuse you of the fact that you have committed a breach.

\r\n

9. RESTRICTION OF SERVICES; RIGHT OF REFUSAL

\r\n

You agree not to use the services provided by Azure, or to allow or enable others, to use the services provided by Azure for the purposes of:

\r\n
    \r\n
  • The transmission of unsolicited email (Spam); and
  • \r\n
  • Repetitive, high volume inquires into any of the services provided by Azure (i.e. domain name availability, etc.).
  • \r\n
\r\n

You acknowledge and agree that you are prohibited from distributing malware, abusively operating botnets, phishing, piracy, trademark or copyright infringement, fraudulent or deceptive practices, counterfeiting or otherwise engaging in activity contrary to applicable law, and you acknowledge and agree that the consequences for such activities include suspension of the domain name.

\r\n

If you are hosting your domain name system (“DNS”) on Azure’s servers, or are using our systems to forward a domain name, URL, or otherwise to a system or site hosted elsewhere, or if you have your domain name registered with Azure, you are responsible for ensuring there is no excessive overloading on Azure’s servers. You may not use Azure’s servers and your domain name as a source, intermediary, reply to address, or destination address for email denial-of-service attack, Internet packet flooding, packet corruption, or other abusive attack. Server hacking or other perpetration of security breaches is prohibited. You agree that Azure reserves the right to deactivate your domain name from its DNS if Azure deems it is the recipient of activities caused by your site that threaten the stability of its network.

\r\n

You agree that Azure, in its sole discretion and without liability to you, may refuse to accept the registration of any domain name. Azure also may in its sole discretion and without liability to you delete the registration of any domain name during the first thirty (30) days after registration has taken place. Azure may also cancel the registration of a domain name, after thirty (30) days, if that name is being used, as determined by Azure in its sole discretion, in association with spam or morally objectionable activities. Morally objectionable activities will include, but not be limited to:

\r\n
    \r\n
  • Activities prohibited by the laws of the United States and/or foreign territories in which you conduct business;
  • \r\n
  • Activities designed to encourage unlawful behavior by others, such as hate crimes, terrorism and child pornography; and
  • \r\n
  • Activities designed to harm or use unethically minors in any way.
  • \r\n
\r\n

In the event Azure refuses a registration or deletes an existing registration during the first thirty (30) days after registration, you will receive a refund of any fees paid to Azure in connection with the registration either being cancelled or refused. In the event Azure deletes the registration of a domain name being used in association with spam or morally objectionable activities, no refund will be issued.

\r\n

10. DEFAULT SETTINGS; PARKED PAGE

\r\n

Choosing Your Domain Name Settings.  When you register a domain name with Azure, you will be prompted to choose your domain name settings during the checkout process.  If you plan on using another provider for your website or hosting needs, then you should enter the name servers of such provider when you choose your domain name settings.  This will direct your domain name away from Azure’s name servers.  If you are an existing Azure customer and have already set up a customer profile designating your domain name settings for new domain name registrations, you will not need to complete this step again during the checkout process.   

\r\n

Azure’s Default Settings.  If you do not direct your domain name away from Azure’s name servers as described above, Azure will direct your domain name to a “Parked Page” (“Default Setting”).  You acknowledge and agree that Azure has the right to set the Default Setting. 

\r\n

Parked Page Default Setting.  Azure’s Parked Page service is an online domain monetization system designed to generate revenue (through the use of pay per click advertising) from domain names that are not actively being used as websites.  If your domain name is directed to a Parked Page, you acknowledge and agree that Azure may display both (a) in-house advertising (which includes links to Azure products and services) and (b) third-party advertising (which includes links to third-party products and services) on your Parked Page through the use of pop-up or pop-under browser windows, banner advertisements, audio or video streams, or any other advertising means, and we may aggregate for our own use, related usage data by means of cookies and other similar means.  In addition, you acknowledge and agree that all in-house and third-party advertising will be selected by Azure and its advertising partners, as appropriate, and you will not be permitted to customize the advertising, or entitled to any compensation in exchange therefor.  Please note that the third-party advertising displayed on Azure’s Parked Pages may contain content offensive to you, including but not limited to links to adult content.  Azure makes no effort to edit, control, monitor, or restrict the content and third-party advertising displayed on Azure’s Parked Pages, and expressly disclaims any liability or responsibility to you or any third party in connection therewith.

\r\n

Changing Azure’s Default Settings.  You may change Azure’s Default Settings at any time during the term of your domain name registration.

\r\n
    \r\n
  1. Content Displaying On Your Parked Page.  You can not modify the content displaying on your Parked Page.  You may select one of the other options listed below.
  2. \r\n
  3. Participating In Domain Name Monetization.  If you wish to participate in the domain monetization potential presented by Azure’s Parked Page service, please review and consider purchasing our CashParking® service.   
  4. \r\n
  5. No Content.  If the options listed above are not acceptable to you, please contact customer support to learn what other options might be available to you.
  6. \r\n
\r\n

Return To Parked Page Default Setting Upon Domain Name Expiration.  Upon domain name expiration, and regardless of how you use your domain name during the term of your domain name registration, your domain name will automatically return to the Parked Page Default Setting described above.  As used in this paragraph, “expiration” is deemed to include any “renewal period” or “redemption period” immediately after the domain name expires, but before the domain name is returned to the registry.  Once your domain name has returned to the Parked Page Default Setting described above, the only way to opt out of the Parked Page service is to renew, redeem, or re-register your domain name in accordance with Section 2(B), Domain Name Renewal Terms, of this Agreement.   

\r\n

11. DOMAIN ADD-ONS

\r\n

Business Registration:  Business registration allows You to display additional information about the business that is the basis of Your domain name, including, but not limited to, such information as Your fax number, street address, and hours of operation.

\r\n

Certified Domains.  The certified domain service generally allow You to: (i) put a Certified Domain Validation seal on Your website; and (ii) have Your domain name listed as \"Certified\", in WHOIS lookups on our website.   The Certified Domain Validation seal renews independently of Your domain. When You renew Your domain, You must also, when necessary, separately renew Your Certified Validation seal. However, the Certified Domain Validation seal can be cancelled independently of Your domain. If the domain is cancelled, the Certified Domain associated with the cancelled domain will automatically cancel.  The Certified Domain seal is a trademark and is protected by copyright, trademark and other intellectual property laws. You may use the Certified Domain seal only in conjunction with the purchase of the Services set forth in the Agreement, and subject to the terms and conditions hereof. Other than provided for in this Agreement, You may not otherwise use, reproduce, or modify the mark for any additional promotional use, without our prior written approval. Your right to the use of the Certified Domain seal is immediately terminated upon expiration or termination of this Agreement.

\r\n

Expiration Consolidation.  You understand and acknowledge the expiration consolidation service may only be used to consolidate the expiration of .com and .net domain names. The service may not be used to consolidate domains that are on Registrar HOLD, Registry HOLD, or pending Transfer status. You acknowledge the service may only be used to push the expiration date of Your domains forward in time, at least one (1) month forward and no more than ten (10) years forward, and then, only for a period lasting less than twelve (12) months. Once the service has been used to consolidate domains, the new expiration date may not be reversed. To ensure the service is not abused or used as an alternative to renewals, you may only use the service on each domain once in any 12-month period. The service may only be used on domain names that have not passed their expiration date. In order to change the expiration date again, You will be required to renew the domain name first.  You further understand and acknowledge the service may only be used to coordinate domains where we are the registrar of record. Domains not registered with us must be transferred before we can perform the Service. 

\r\n

\r\n

Backordering/Monitoring.  You agree a domain name that has expired shall be subject first to a grace period of twelve (12) days, followed by the ICANN-mandated redemption grace period of thirty (30) days. During this period of time, the current domain name registrant may renew the domain name and retain ownership. We do not guarantee your backorder will result in you obtaining the domain name and expressly reserves the right to (a) refuse additional backorders or (b) cancel existing backorders at any time for any reason.  If your backorder is refused or cancelled, we agree to promptly refund any fees paid for such domain name backorder. The domain name may also be placed in a secondary market for resale through the Auctions® service.  After your first year of Auctions membership, you agree that unless otherwise advised, we will automatically renew your Auctions membership using the payment method you have on file for so long as your backorder credit is active. You may learn more about Auctions by visiting the Auctions website. The domain name may also be subject to a drop pool process before it is available for purchasing. You understand we and our registrar affiliates use our services, including backordering.  Therefore, the domain name may be registered with a different registrar, but can be managed through your account.  By using the Services, you will be able to, among other things:

\r\n
    \r\n
  1. Backorder any domain name under the top level domains .COM, .NET, .US, .BIZ, .INFO, .ORG, .MOBI. A backorder for a domain name will include the price of up to a one-year domain name registration. Should you successfully backorder any domain name, you will be subject to the terms and conditions of the Domain Name Registration and related agreements, which are incorporated herein by reference.
  2. \r\n
  3. Change your backorder until you obtain a domain name. You will have the opportunity to change the credit to a different domain name until you successfully capture one. After three (3) years, if the credit is not used, we reserves the right to remove the credit.
  4. \r\n
  5. Subscribe monthly to an expiring domain name list. You may also choose to purchase a subscription to a list of domain names expiring within the next five (5) days. If you subscribe to the expiring domain name list, you agree the payment method you have on file may be charged on a monthly subscription basis for the term of the Services you purchase.
  6. \r\n
  7. Select domain names off the expiring domain name list you would like to register. Each domain name you attempt to backorder will include the price of up to a one-year domain name registration, as set forth in subsection (i) above.
  8. \r\n
  9. Monitor your currently registered domain names for changes in registrar, status, expiration date or name servers at no additional cost.
  10. \r\n
  11. Subscribe to Domain Alert Pro or monitoring, which enables you to monitor any currently registered domain name, regardless of registrar, for historical tracking of status changes and designation of multiple email notification addresses.
  12. \r\n
\r\n

\r\n

\r\n

Transfer Validation. The transfer validation service is provided to help You keep Your domain name secure. By choosing to use the service, You are making an explicit and voluntary request to us to deny all attempts to transfer Your domain name to another registrar, or to move Your domain name to another account, unless You verify each request as described herein. You will provide us with a contact name, phone number and PIN for domain transfer validations. You will be contacted by us when a domain transfer is requested for a domain name in Your account. When we receive a transfer request, we will call You to verify the transfer request. If we cannot reach You with seventy-two (72) hours of receipt of the transfer request, the transfer will be denied. If You do not provide the proper PIN, the transfer will be denied. When we receive a change of account request, we will call You to verify the change request. If we cannot reach You with seventy-two (72) hours of receipt of the change request, the change will be denied. If You do not provide the proper PIN, the change will be denied. Availability of Services are subject to the terms and conditions of this Agreement and each of our policies and procedures. We shall use commercially reasonable efforts to attempt to provide certain portions of the Services on a twenty-four (24) hours a day, seven (7) days a week basis throughout the term of this Agreement and other portions of the service, during normal business hours. You acknowledge and agree that from time to time the Services may be inaccessible or inoperable for any reason, including, without limitation: (i) equipment malfunctions; (ii) periodic maintenance procedures or repairs that we may undertake from time to time; or (iii) causes beyond the reasonable control of us or that are not reasonably foreseeable by us, including, without limitation, interruption or failure of telecommunication or digital transmission links, hostile network attacks, network congestion or other failures. You acknowledge and agree that we has no control over the availability of the service on a continuous or uninterrupted basis.

\r\n

\r\n

12. PRE-REGISTRATIONS

\r\n

If you submit an application for pre-registration of a domain name, Azure does not guarantee that the name will be secured for you, or that you will have immediate access to the domain name if secured.  Azure may use third-party service providers for the pre-registration services.

\r\n

13. PROVISIONS SPECIFIC TO .BIZ REGISTRATIONS

\r\n

Domain Name Dispute Policy.  If you reserved or registered a .BIZ domain name through us, in addition to our Dispute Resolution Policy, you hereby acknowledge that you have read and understood and agree to be bound by the terms and conditions of the Restrictions Dispute Resolution Policy applicable to the .biz TLD.

\r\n

The RDRP sets forth the terms under which any allegation that a domain name is not used primarily for business or commercial purposes shall be enforced on a case-by-case basis by an independent ICANN-accredited dispute provider. Registry Operator will not review, monitor, or otherwise verify that any particular domain name is being used primarily for business or commercial purposes or that a domain name is being used in compliance with the SUDRP or UDRP processes.

\r\n

One Year Registration.  If you are registering a .BIZ domain name and you elect to take advantage of special pricing applicable to one-year registrations, we will automatically renew your domain name for an additional one-year period at the end of the first year term by taking payment from the Payment Method you have on file, unless you notify us that you do not wish to renew. You will be notified and given the opportunity to accept or decline the one-year renewal prior to your domain name expiration date. In the event you decide not to renew your one-year .BIZ domain name for a second year, your domain name registration will automatically revert back to us and we will gain full rights of registration to such domain name. You agree that if you delete or transfer your .BIZ domain name during the first year, you will automatically be charged the second year renewal fees.

\r\n

\r\n

14. PROVISIONS SPECIFIC TO .INFO REGISTRATIONS 

\r\n

One Year Registration.  If you are registering a .INFO domain name and you elect to take advantage of special pricing applicable to one-year registrations, we will automatically renew your domain name for an additional one-year period at the end of the first year term by taking payment from the Payment Method you have on file, unless you notify us that you do not wish to renew. You will be notified and given the opportunity to accept or decline the one-year renewal prior to your domain name expiration date. In the event you decide not to renew your one-year .INFO domain name for a second year, your domain name registration will automatically revert back to us and we will gain full rights of registration to such domain name. You agree that if you delete or transfer your .INFO domain name during the first year, you will automatically be charged the second year renewal fees.

\r\n

15. PROVISIONS SPECIFIC TO .MOBI REGISTRATIONS 

\r\n

Instant Mobilizer. You are hereby granted a personal, revocable, non-exclusive, non-transferable, non-assignable, non-sublicensable license to use the Instant Mobilizer service (“Service”), provided, however, You abide by the terms and conditions set forth. You shall not alter, modify, adapt or translate the whole or part of the Service in any way whatsoever. You may not create derivative works based on the Service. You may not rent, lease, assign, dispose of, novate, sub-license or otherwise transfer any of its rights to use the Service to any third party.  In the event that the volume of traffic to You from Your use of the Service is sufficient so as to jeopardize the provision of Service for other end users, we and our licensors reserve the right to, at its sole discretion, permanently or temporarily, discontinue Your use of the Service. For the avoidance of doubt, the volume of traffic generated by You should not exceed two thousand (2,000) page views per day.  You acknowledge and agree the text \"Instant Mobilizer from dotMobi\" or equivalent, will be inserted at the footer of Your site.  In the event a dotMobi domain to which the Service is being provided is transferred to another domain name registrar, the Service will be interrupted on that dotMobi domain, and Service will not be restored if the new registrar does not offer the Service. 

\r\n

\r\n

16. PROVISIONS SPECIFIC TO .NAME REGISTRATIONS 

\r\n

\r\n

17. PROVISIONS SPECIFIC TO .REISE REGISTRATIONS

\r\n

Domain Names registered in .REISE should be used for purposes dedicated to travel topics within six months following initial Registration, e.g. utilized on the Internet or otherwise used to perform a function.

\r\n

18. PROVISIONS SPECIFIC TO .SEXY REGISTRATIONS

\r\n

You shall not permit content unsuitable for viewing by a minor to be viewed from the main or top-level directory of a .SEXY domain name. For purposes of clarity, content viewed at the main or top-level directory of a .SEXY domain name is the content immediately visible if a user navigates to http://example.sexy or http://www.example.sexy. No restrictions apply to the content at any other page or subdirectory addressed by a .SEXY Registered Name. 

\r\n

19. COUNTRY CODE TOP LEVEL DOMAINS

\r\n

You represent and warrant that you meet the eligibility requirements of each ccTLD you apply for. You further agree to be bound by any registry rules, policies, and agreements for that particular ccTLD. These may include, but are not limited to, agreeing to indemnify the ccTLD provider, limiting the liability of the ccTLD provider, and requirements that any disputes be resolved under that particular country's laws.

\r\n

(A) PROVISIONS SPECIFIC TO .AU REGISTRATIONS 

\r\n

.au Registrations (to include com.au, net.au and org.au) are governed by the following additional terms and conditions:

\r\n

auDA. auDA means .au Domain Administration Limited ACN 079 009 340, the .au domain names administrator.  The Registrar acts as agent for auDA for the sole purpose, but only to the extent necessary, to enable auDA to receive the benefit of rights and covenants conferred to it under this Agreement. auDA is an intended third party beneficiary of this agreement.

\r\n

auDA Published Policy.  auDA Published Policies means those specifications and policies established and published by auDA from time to time at http://www.auda.org.au.  You must comply with all auDA Published Policies, as if they were incorporated into, and form part of, this Agreement. In the event of any inconsistency between any auDA Published Policy and this Agreement, then the auDA Published Policy will prevail to the extent of such inconsistency.  You acknowledge that under the auDA Published Policies: (1) there are mandatory terms and conditions that apply to all domain names; (2) licences, and such terms and conditions are incorporated into, and form part of, this Agreement; (3) You are bound by, and must submit to, the .au Dispute Resolution Policy; and (4) auDA may delete or cancel the registration of a .au domain name. 

\r\n

auDA's Liabilities and Indemnity.  To the fullest extent permitted by law, auDA will not be liable to Registrant for any direct, indirect, consequential, special, punitive or exemplary losses or damages of any kind (including, without limitation, loss of use, loss or profit, loss or corruption of data, business interruption or indirect costs) suffered by Registrant arising from, as a result of, or otherwise in connection with, any act or omission whatsoever of auDA, its employees, agents or contractors. Registrant agrees to indemnify, keep indemnified and hold auDA, its employees, agents and contractors harmless from all and any claims or liabilities, arising from, as a result of, or otherwise in connection with, Registrant's registration or use of its .au domain name. Nothing in this document is intended to exclude the operation of Trade Practices Act 1974.

\r\n

(B) PROVISIONS SPECIFIC TO .CA REGISTRATIONS

\r\n

You acknowledge and agree that registration of your selected domain name in your first application to CIRA shall not be effective until you have entered into and agreed to be bound by CIRA's Registrant Agreement.

\r\n

CIRA Certified Registrar.  The registrar shall immediately give notice to you in the event that it is no longer a CIRA Certified Registrar, has had its certification as a CIRA Certified Registrar suspended or terminated, or the Registrar Agreement between CIRA and the Registrar is terminated or expires. CIRA may post notice of such suspension, termination, or expiry on its website and may, if CIRA deems appropriate, give notice to the registrants thereof. In the event that the registrar is no longer a CIRA Certified Registrar, has had its certification as a CIRA Certified Registrar suspended or terminated or in the event the Registrar Agreement between CIRA and the Registrar is terminated or expires, you shall be responsible for changing your Registrar of Record to a new CIRA Certified Registrar within thirty (30) days of the earlier of notice thereof being given to you by (i) the Registrar or (ii) CIRA in accordance with CIRA's then current Registry PRP; provided, however, that if any of your domain name registrations are scheduled to expire within thirty (30) days of the giving of such notice, then you shall have thirty (30) days from the anniversary date of the registration(s), to register with a new CIRA certified registrar and to renew such domain name registration(s) in accordance with the Registry PRP.

\r\n

You acknowledge and agree that should there be insufficient funds prepaid by the registrar in the CIRA Deposit Account to be applied in payment of any fees, CIRA may in its sole discretion stop accepting applications for domain name registrations from the registrar, stop effecting registrations of domain names and transfers, renewals, modifications, and cancellations requested by the registrar and stop performing other billable transactions requested by the registrar not paid in full and CIRA may terminate the Registrar Agreement between CIRA and the Registrar.

\r\n

.CA ASCII and IDN domain variants are bundled and reserved for a single registrant.  Registrants are not required to register all variants in a bundle, but all registered variants must be registered and managed at a single registrar. Each variant registered will incur a registration fee.  In addition, when registering multiple .CA domain (ASCII and IDN) variants in a bundle, your registrant information must be identical.  If variants are registered at other registrars or if registrant information does not match, it may result in an \"unavailable\" search result, delayed or failed registration. If information does not match, validation is required and may take up to seven business days and delay availability of domain. 

\r\n

(C) PROVISIONS SPECIFIC TO .CN REGISTRATIONS 

\r\n

.CN is a restricted TLD – applications are subject to both a domain name check and real name verification as required by the China.  Registrations in .CN are therefore subject to the following additional terms:

\r\n

Verification, Registration and Activation.  If a domain name is not permitted to be registered by the Chinese government, as determined by us, the Registry Operator and/or a 3rd party provider utilized for such services and determinations, in either party’s discretion, the application for registration will not be successful.  In such event, the name will be deleted and you will be eligible for a refund as further described below.

\r\n

If permitted, then the Registration may proceed, but a .CN domain name may not be activated (i.e., it will not resolve in the Internet) unless and until you have submitted (via the process described during registration) valid documents required of us and the Registry to perform real name verification.  The following are acceptable forms of documents for the purpose of verification:

\r\n
    \r\n
  • China: Resident ID, temporary resident ID, business license or organization code certificate
  • \r\n
  • Hong Kong Special Administrative Region/Macao Special Administrative Region: Resident ID, driver’s license, passport or business license
  • \r\n
  • Singapore: Driver’s license, passport or business license
  • \r\n
  • Taiwan: Resident ID, driver’s license or business license
  • \r\n
  • Other Countries/Regions: Driver’s license or passport
  • \r\n
\r\n

Documents submitted to us are used by us and shared with the Registry solely for the purpose of real name verification, and are otherwise subject to our Privacy Policy.  By registering a .CN domain, you expressly agree that your data may be stored on servers in the U.S., or otherwise outside of the China.

\r\n

Refunds.  Refunds for .CN Registrations will only be allowed where (i) registration of the applied for domain name is not permitted by the Chinese government; or (ii) you notify us of your intent to cancel for any reason within the first five (5) days after the Registration (i.e., after it is deemed permissible by the Chinese government).  For the avoidance of doubt, refunds will not be permitted under any circumstances after five (5) days from the date of Registration, including, for example, in the event real name verification is not successful or if the Chinese government determines after Registration that the domain name should not have been registered (and directs us to delete).

\r\n

(D) PROVISIONS SPECIFIC TO .JP REGISTRATIONS

\r\n

Registration Restrictions.  You represent and warrant that you have a local presence in Japan with a home or office address. You agree that certain domain names are reserved and can only be registered by certain parties. These include: (i) TLDs, other than ccTLDs, as determined by ICANN; (ii) geographical-type .JP domain names that are defined as metropolitan, prefectural, and municipal labels; (iii) names of primary and secondary educational organizations; (iv) names of organizations related to Internet management; (v) names required for .JP domain name operations; and (vi) character strings which may be confused with ASCII-converted Japanese domain names. The complete list of .JP Reserved Domains is available here

\r\n

20. ENGLISH LANGUAGE CONTROLS

\r\n

This Agreement, along with all policies and the applicable product agreements identified above and incorporated herein by reference (collectively, the “Agreement”), is executed in the English language. To the extent any translation is provided to you, it is provided for convenience purposes only, and in the event of any conflict between the English and translated version, where permitted by law, the English version will control and prevail. Where the translated version is required to be provided to you and is to be considered binding by law (i) both language versions shall have equal validity, (ii) each party acknowledges that it has reviewed both language versions and that they are substantially the same in all material respects, and (iii) in the event of any discrepancy between these two versions, the translated version may prevail, provided that the intent of the Parties has been fully taken into consideration. 

\n
\n
\n\nRevised: 10/6/17
\nCopyright © 2000-2017 All Rights Reserved.\n
\n
\n
"), - // Title: to.Ptr("Domain Name Registration Agreement"), - // URL: to.Ptr("http://www.secureserver.net/agreements/ShowDoc.aspx?pageid=reg_sa&pl_id=510456"), - // }, - // { - // AgreementKey: to.Ptr("DNPA"), - // Content: to.Ptr("\n\n\n\n\n
\n\n\n\n\n\n\n
\nDomain Name Proxy Agreement\n
\n

Last Revised: October 25, 2017

\n

Please read this Domain Name Proxy Agreement (\"Agreement\") carefully. By using the Services and/or website of Domains By Proxy, LLC, a Delaware limited liability company (\"DBP\"), You (as defined below) agree to all the terms and conditions set forth both herein and in the DBP privacy policy, which is incorporated by reference and can be found by clicking here.  You acknowledge that DBP may amend this Agreement at any time upon posting the amended terms on its website, and that any new, different or additional features changing the services provided by DBP will automatically be subject to this Agreement. If You do not agree to be bound by, or if You object to, the terms and conditions of this Agreement and any amendments hereto, do not use or access DBP's services. Continued use of DBP's services and its website after any such changes to this Agreement have been posted, constitutes Your acceptance of those changes.

\r\n

This Agreement is by and between DBP and you, your heirs, assigns, agents and contractors (\"You\") and is made effective as of the date of electronic execution. This Agreement sets forth the terms and conditions of Your relationship with DBP and Your use of DBP's services and represents the entire Agreement between You and DBP. By using DBP's Services, You acknowledge that You have read, understand and agree to be bound by all the terms and conditions of this Agreement, and You further agree to be bound by the terms of this Agreement for transactions entered into by:

\r\n
    \r\n
  1. You on Your behalf;
  2. \r\n
  3. Anyone acting as Your agent; and
  4. \r\n
  5. Anyone who uses the account You have established with DBP, whether or not the transactions were on Your behalf and/or authorized by You.
  6. \r\n
\r\n

You agree You will be bound by representations made by third parties acting on Your behalf, which either use or purchase services from DBP. You further agree that DBP will not be bound by statements of a general nature on DBP's website or DBP promotional materials. You further agree to abide by the terms and conditions promulgated by the Internet Corporation for Assigned Names and Numbers (\"ICANN\") (including the Uniform Domain Name Dispute Resolution Policy (\"Dispute Resolution Policy\") and Your Registrar (i.e., the ICANN-accredited person or entity through which You register a domain name).

\r\n

1. description of DBP's private registration services

\r\n

When You subscribe to DBP's private registration service through a DBP-affiliated Registrar, DBP will display its contact information in the publicly available \"Whois\" directory in place of Your information. DBP shall keep Your name, postal address, email address, phone and fax numbers confidential, subject to Section 4 of this Agreement. The following information (and not Your personal information) will be made publicly available in the \"Whois\" directory as determined by ICANN policy:

\r\n
    \r\n
  1. DBP's name as the proxy Registrant of the domain name and a proxy email address, phone number and postal address for the proxy Registrant's contact information;
  2. \r\n
  3. A proxy postal address and phone number for the domain name registration's technical contact;
  4. \r\n
  5. A proxy email address, postal address and phone number for the domain name registration's administrative contact;
  6. \r\n
  7. A proxy email address, postal address and phone number for the domain's name registration's billing contact;
  8. \r\n
  9. The primary and secondary domain name servers You designate for the domain name;
  10. \r\n
  11. The domain name's original date of registration and expiration date of the registration; and
  12. \r\n
  13. The identity of the Registrar.
  14. \r\n
\r\n

2. full benefits of domain registration retained by you

\r\n

Although DBP will show in the \"Whois\" directory as the Registrant of each domain name registration You designate, You will retain the full benefits of domain name registration with respect to each such domain name registration, including, subject to Section 4 below:

\r\n
    \r\n
  1. The right to sell, transfer or assign each domain name registration, which shall require cancellation of the DBP services associated with each such domain name registration;
  2. \r\n
  3. The right to control the use of each domain name registration, including designating the primary and secondary domain name servers to which each domain name points;
  4. \r\n
  5. The right to cancel each domain name registration;
  6. \r\n
  7. The right to cancel the DBP services associated with each domain name registration and/or Your privacy services with DBP so that Your contract information is listed in the \"Whois\" directory; and
  8. \r\n
  9. The right to renew each domain name registration upon its expiration, subject to Your Registrar's applicable rules and policies.
  10. \r\n
\r\n

3. PERSONAL INFORMATION AND your notification obligations; representation and warranties; ACCOUNT SECURITY

\r\n

Personal Information and Your Notification Obligations 

\r\n

You agree that for each domain name for which you use DBP services, You will provide accurate and current information as to:

\r\n
    \r\n
  1. Your name, the email address, postal address, phone and fax numbers for the domain name registration's Registrant contact;
  2. \r\n
  3. The email address, postal address, phone and fax numbers for the domain name registration's technical contact;
  4. \r\n
  5. The email address, postal address, phone and fax numbers for the domain name registration's administrative contact;
  6. \r\n
  7. The email address, postal address, phone and fax numbers for the domain name registration's billing contact; and
  8. \r\n
  9. You agree to provide government issued photo identification and/or government issued business identification as required for verification of identity when requested.
  10. \r\n
\r\n

You agree to:

\r\n
    \r\n
  1. Notify DBP within three (3) calendar days when any of the personal information You provided upon subscribing to DBP's services, changes;
  2. \r\n
  3. Respond within three (3) calendar days to any inquiries made by DBP to determine the validity of personal information provided by You; and
  4. \r\n
  5. Timely respond to email messages DBP sends to You regarding correspondence DBP has received that is either addressed to or involves You and/or Your domain name registration, as more fully set forth in Section 5(c) below.
  6. \r\n
  7. To allow DBP to act as your Designated Agent (as that term is defined below) in instances when DBP services are added to or cancelled from your domain name and for the purpose of facilitating a change of registrant request (as further described below). 
  8. \r\n
\r\n

It is Your responsibility to keep Your personal information current and accurate at all times.

\r\n

Renewals

\r\n

You agree DBP will arrange for Your Registrar to charge the credit card You have on file with the Registrar, at the Registrar's then current rates.

\r\n

If for any reason DBP and/or the Registrar for Your domain name is unable to charge Your credit card for the full amount of the service provided, or if DBP and/or the Registrar is charged back for any fee it previously charged to the credit card You provided, You agree that DBP and/or the Registrar may, without notice to You, pursue all available remedies in order to obtain payment, including but not limited to immediate cancellation of all services DBP provides to You.

\r\n

Representations and Warranties

\r\n

You warrant that all information provided by You to DBP is truthful, complete, current and accurate. You also warrant that You are using DBP's private registration services in good faith and You have no knowledge of Your domain name infringing upon or conflicting with the legal rights of a third party or a third party's trademark or trade name. You also warrant the domain name being registered by DBP on Your behalf will not be used in connection with any illegal activity, or in connection with the transmission of Spam, or that contains or installs any viruses, worms, bugs, Trojan horses or other code, files or programs designed to, or capable or, disrupting, damaging or limiting the functionality of any software or hardware.

\r\n

Account Security

\r\n

You agree You are entirely responsible for maintaining the confidentiality of Your customer number/login ID and password (\"Account Access Information\").  You agree to notify DBP immediately of any unauthorized use of Your account or any other breach of security.  You agree DBP will not be liable for any loss that You may incur as a result of someone else using Your Account Access Information, either with or without Your knowledge.  You further agree You could be held liable for losses incurred by DBP or another party due to someone else using Your Account Access Information.  For security purposes, You should keep Account Access Information in a secure location and take precautions to prevent others from gaining access to Your Account Access Information.  You agree that You are entirely responsible for all activity in Your account, whether initiated by You, or by others.  DBP specifically disclaims liability for any activity in Your account, regardless of whether You authorized the activity.

\r\n

Designated Agency and Change of Registrant Information

\r\n

“DESIGNATED AGENT” MEANS AN INDIVIDUAL OR ENTITY THAT THE PRIOR REGISTRANT OR NEW REGISTRANT EXPLICITLY AUTHORIZES TO APPROVE A CHANGE OF REGISTRANT REQUEST ON ITS BEHALF.  IN THE CASE OF DBP SERVICES, A CHANGE OF REGISTRANT REQUEST MAY ALSO ARISE DUE TO INSTANCES WHERE DBP SERVICES ARE ADDED, OR REMOVED, FROM A DOMAIN NAME.  FOR THE PURPOSE OF FACILITATING ANY SUCH CHANGE REQUEST, AND IN ACCORDANCE WITH ICANN'S CHANGE OF REGISTRANT POLICY, YOU AGREE TO APPOINT DBP AS YOUR DESIGNATED AGENT FOR THE SOLE PURPOSE OF EXPLICITLY CONSENTING TO MATERIAL CHANGES OF REGISTRATION CONTACT INFORMATION ON YOUR BEHALF.

\r\n

4. DBP's rights to deny, suspend, terminate service and to disclose your personal information

\r\n

You understand and agree that DBP has the absolute right and power, in its sole discretion and without any liability to You whatsoever, to:

\r\n
    \r\n
  1. Cancel the privacy service (which means that Your information will be available in the \"Whois\" directory) and/or reveal Your name and personal information that You provided to DBP:  
    A. When required by law, in the good faith belief that such action is necessary in order to conform to the edicts of the law or in the interest of public safety;
    B. To comply with legal process served upon DBP or in response to a reasonable threat of litigation against DBP (as determined by DBP in its sole and absolute discretion); or
    C. To comply with ICANN rules, policies, or procedures.
  2. \r\n
  3. Resolve any and all third party claims, whether threatened or made, arising out of Your use of a domain name for which DBP is the registrant listed in the \"Whois\" directory on Your behalf; or
  4. \r\n
  5. Take any other action DBP deems necessary:
    A. In the event you breach any provision of this Agreement or the DBP Anti-Spam Policy;
    B. To protect the integrity and stability of, and to comply with registration requirements, terms, conditions and policies of, the applicable domain name Registry and/or Registry Provider;
        C. To comply with any applicable laws, government rules or requirements, subpoenas, court orders or requests of law enforcement; 
    D. To comply with ICANN's Dispute Resolution Policy or ICANN's Change of Registrant Policy;
    E. To avoid any financial loss or legal liability (civil or criminal) on the part of DBP, its parent companies, subsidiaries, affiliates, shareholders, agents, officers, directors and employees;
    F. If the domain name for which DBP is the registrant on Your behalf violates or infringes a third party's trademark, trade name or other legal rights; and
    G. If it comes to DBP's attention that You are using DBP's services in a manner (as determined by DBP in its sole and absolute discretion) that:
  6. \r\n
\r\n
\r\n
    \r\n
  • Is illegal, or promotes or encourages illegal activity;
  • \r\n
  • Promotes, encourages or engages in child pornography or the exploitation of children;
  • \r\n
  • Promotes, encourages or engages in terrorism, violence against people, animals, or property;
  • \r\n
  • Promotes, encourages or engages in any spam or other unsolicited bulk email, or computer or network hacking or cracking;
  • \r\n
  • Violates the Ryan Haight Online Pharmacy Consumer Protection Act of 2008 or similar legislation, or promotes, encourages or engages in the sale or distribution of prescription medication without a valid prescription;  
  • \r\n
  • Infringes on the intellectual property rights of another User or any other person or entity;
  • \r\n
  • Violates the privacy or publicity rights of another User or any other person or entity, or breaches any duty of confidentiality that you owe to another User or any other person or entity;
  • \r\n
  • Interferes with the operation of DBP services;
  • \r\n
  • Contains or installs any viruses, worms, bugs, Trojan horses or other code, files or programs designed to, or capable of, disrupting, damaging or limiting the functionality of any software or hardware; or
  • \r\n
  • Contains false or deceptive language, or unsubstantiated or comparative claims, regarding DBP or its services.
  • \r\n
\r\n
\r\n

You further understand and agree that if DBP is named as a defendant in, or investigated in anticipation of, any legal or administrative proceeding arising out of Your domain name registration or Your use of DBP's services, Your private registration service may be canceled, which means the domain name registration will revert back to You and Your identity will therefore be revealed in the Whois directory as Registrant.

\r\n

In the event:

\r\n
    \r\n
  1. DBP takes any of the actions set forth in subsection i, ii, or iii above or section 5; and/or
  2. \r\n
  3. You elect to cancel DBP's services for any reason --
  4. \r\n
\r\n

Neither DBP nor your Registrar will refund any fees paid by You whatsoever.

\r\n

5. communications forwarding

\r\n

a. Correspondence Forwarding

\r\n

Inasmuch as DBP's name, postal address and phone number will be listed in the Whois directory, You agree DBP will review and forward communications addressed to Your domain name that are received via email, certified or traceable courier mail (such as UPS, FedEx, or DHL), or first class U.S. postal mail. You specifically acknowledge DBP will not forward to You first class postal mail (other than legal notices), \"junk\" mail or other unsolicited communications (whether delivered through email, fax, postal mail or telephone), and You further authorize DBP to either discard all such communications or return all such communications to sender unopened. You agree to waive any and all claims arising from Your failure to receive communications directed to Your domain name but not forwarded to You by DBP.

\r\n

b. Email Forwarding

\r\n

The Whois directory requires an email address for every purchased domain name registration. When You purchase a private domain registration, DBP creates a private email address for that domain name, \"@domainsbyproxy.com\". Thereafter, when messages are sent to that private email address, DBP handles them according to the email preference You selected for that particular domain name. You have three (3) email preferences from which to choose. You can elect to:

\r\n
    \r\n
  1. Have all of the messages forwarded;
  2. \r\n
  3. Have all of the messages filtered for Spam and then forwarded; or
  4. \r\n
  5. Have none of the messages forwarded.
  6. \r\n
\r\n

As with all communications, You agree to waive any and all claims arising from Your failure to receive email directed to Your domain name but not forwarded to You by DBP.

\r\n

c. Notifications Regarding Correspondence and Your Obligation to Respond

\r\n

When DBP receives certified or traceable courier mail or legal notices addressed to Your domain name, in most cases, DBP will attempt to forward the mail to you via email. If You do not respond to the DBP email and/or the correspondence DBP has received regarding Your domain name registration concerns a dispute of any kind or otherwise requires immediate disposition, DBP may immediately reveal Your identity and/or cancel the DBP private registration service regarding either the domain name registration(s) in question. This means the Whois directory will revert to displaying Your name, postal address, email address and phone number that you provided to DBP.

\r\n

d. Additional Administrative Fees

\r\n

DBP reserves the right to charge You reasonable \"administrative fees\" or \"processing fees\" for (i)  tasks DBP may perform outside the normal scope of its Services, (ii) additional time and/or costs DBP may incur in providing its Services, and/or (iii) Your non-compliance with the Agreement (as determined by DBP in its sole and absolute discretion). Typical administrative or processing fee scenarios include, but are not limited to, (i) customer service issues that require additional personal time and attention; (ii) disputes that require accounting or legal services, whether performed by DBP staff or by outside firms retained by DBP; (iii) recouping any and all costs and fees, including the cost of Services, incurred by DBP as the result of chargebacks or other payment disputes brought by You, Your bank or Payment Method processor.  These administrative fees or processing fees will be billed to the Payment Method You have on file with Your Registrar.

\r\n

You agree to waive the right to trial by jury in any proceeding that takes place relating to or arising out of this Agreement.

\r\n

6. limitations of liability

\r\n

UNDER NO CIRCUMSTANCES SHALL DBP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL, OR CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER RELATED TO THIS AGREEMENT, YOUR DOMAIN NAME REGISTRATION, DBP'S SERVICES, USE OR INABILITY TO USE THE DBP WEBSITE OR THE MATERIALS AND CONTENT OF THE WEBSITE OR ANY OTHER WEBSITES LINKED TO THE DBP WEBSITE OR YOUR PROVISION OF ANY PERSONALLY IDENTIFIABLE INFORMATION TO DBP OR ANY THIRD PARTY. THIS LIMITATION APPLIES REGARDLESS OF WHETHER THE ALLEGED LIABILITY IS BASED ON CONTRACT, TORT, WARRANTY, NEGLIGENCE, STRICT LIABILITY OR ANY OTHER BASIS, EVEN IF DBP HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR SUCH DAMAGES WERE REASONABLY FORESEEABLE. BECAUSE CERTAIN JURISDICTIONS DO NOT PERMIT THE LIMITATION OR ELIMINATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, DBP'S LIABILITY IN SUCH JURISDICTIONS SHALL BE LIMITED TO THE SMALLEST AMOUNT PERMITTED BY LAW.

\r\n

YOU FURTHER UNDERSTAND AND AGREE THAT DBP DISCLAIMS ANY LOSS OR LIABILITY RESULTING FROM:

\r\n
    \r\n
  1. THE INADVERTENT DISCLOSURE OR THEFT OF YOUR PERSONAL INFORMATION;
  2. \r\n
  3. ACCESS DELAYS OR INTERRUPTIONS TO OUR WEBSITE OR THE WEBSITES OF OUR AFFILIATED REGISTRARS;
  4. \r\n
  5. DATA NON-DELIVERY OF MIS-DELIVERY BETWEEN YOU AND DBP;
  6. \r\n
  7. THE FAILURE FOR WHATEVER REASON TO RENEW A PRIVATE DOMAIN NAME REGISTRATION;
  8. \r\n
  9. THE UNAUTHORIZED USE OF YOUR DBP ACCOUNT OR ANY OF DBP'S SERVICES;
  10. \r\n
  11. ERRORS, OMISSIONS OR MISSTATEMENTS BY DBP;
  12. \r\n
  13. DELETION OF, FAILURE TO STORE, FAILURE TO PROCESS OR ACT UPON EMAIL MESSAGES FORWARDED TO EITHER YOU OR YOUR PRIVATE DOMAIN NAME REGISTRATION;
  14. \r\n
  15. PROCESSING OF UPDATED INFORMATION REGARDING YOUR DBP ACCOUNT; AND/OR
  16. \r\n
  17. ANY ACT OR OMISSION CAUSED BY YOU OR YOUR AGENTS (WHETHER AUTHORIZED BY YOU OR NOT).
  18. \r\n
\r\n

7. indemnity

\r\n

You agree to release, defend, indemnify and hold harmless DBP, its parent companies, subsidiaries, affiliates, shareholders, agents, directors, officers and employees and Your Registrar, from and against any and all claims, demands, liabilities, losses, damages or costs, including reasonable attorneys' fees, arising out of or related in any way to this Agreement, the services provided hereunder by DBP, the DBP website, Your account with DBP, Your use of Your domain name registration, and/or disputes arising in connection with the dispute policy.

\r\n

8. DBP warranty disclaimer

\r\n

DBP, ITS PARENT COMPANIES, SUBSIDIARIES, AFFILIATES, SHAREHOLDERS, AGENTS, DIRECTORS, OFFICERS, AND EMPLOYEES EXPRESSLY DISCLAIM ALL REPRESENTATIONS AND WARRANTIES OF ANY KIND IN CONNECTION WITH THIS AGREEMENT, THE SERVICE PROVIDED HEREUNDER, THE DBP WEBSITE OR ANY WEBSITES LINKED TO THE DBP WEBSITE, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL DBP SERVICES, AS WELL AS THE DBP WEBSITE, ARE PROVIDED \"AS IS\". YOUR SUBSCRIPTION TO AND USE OF DBP'S SERVICES AND ITS WEBSITE ARE ENTIRELY AT YOUR RISK. SOME JURISDICTIONS DO NOT ALLOW THE DISCLAIMER OF IMPLIED WARRANTIES, IN WHICH EVENT THE FOREGOING DISCLAIMER MAY NOT APPLY TO YOU.

\r\n

9. copyright and trademark

\r\n

You understand and agree that all content and materials contained in this Agreement, the Privacy Policy and the DBP website found here , are protected by the various copyright, patent, trademark, service mark and trade secret laws of the United States, as well as any other applicable proprietary rights and laws, and that DBP expressly reserves its rights in and to all such content and materials.

\r\n

You further understand and agree You are prohibited from using, in any manner whatsoever, any of the afore-described content and materials without the express written permission of DBP. No license or right under any copyright, patent, trademark, service mark or other proprietary right or license is granted to You or conferred upon You by this Agreement or otherwise.

\r\n

10. miscellaneous provisions

\r\n

a. Severability; Construction; Entire Agreement

\r\n

If any part of this Agreement shall be held to be illegal, unenforceable or invalid, in whole or in part, such provision shall be modified to the minimum extent necessary to make it legal, enforceable and valid, and the legality, enforceability and validity of the remaining provisions of this Agreement shall not be affected or impaired. The headings herein will not be considered a part of this Agreement. You agree this Agreement, including the policies it incorporates by reference, constitute the complete and only Agreement between You and DBP regarding the services contemplated herein.

\r\n

b. Governing Law; Venue; Waiver Of Trial By Jury

\r\n

This Agreement shall be governed in all respects by the laws and judicial decisions of Maricopa County, Arizona, excluding its conflicts of laws rules. Except as provided immediately below, You agree that any action relating to or arising out of this Agreement, shall be brought exclusively in the courts of Maricopa County, Arizona. For the adjudication of domain name registration disputes, you agree to submit to the exclusive jurisdiction and venue of the U.S. District Court for the District of Arizona located in Phoenix, Arizona. You agree to waive the right to trial by jury in any proceeding, regardless of venue, that takes place relating to or arising out of this Agreement.

\r\n

c. Notices

\r\n

All notices from DBP to You will be sent to the email address You provided to DBP. Notices by email shall be deemed effective twenty-four (24) hours after the email is sent by DBP, unless DBP receives notice that the email address is invalid, in which event DBP may give You notice via first class or certified mail, return receipt requested. All notices from You to DBP shall be sent via certified mail, return receipt requested or traceable courier to:

\r\n
      Domains By Proxy, LLC
      Attn: General Counsel
      14455 North Hayden Rd.
      Suite 219
      Scottsdale, AZ 85260
\r\n

Notices sent via certified mail or traceable courier shall be deemed effective five (5) days after the date of mailing.

\r\n

d. Insurance

\r\n

In the unlikely event You lose Your domain name registration to a third party solely as a result of DBP's negligent actions (and absent fraud or other negligent or willful misconduct committed by a third party), You may be insured against such loss through DBP's Professional Liability Insurance Policy, which is currently underwritten by American International Insurance Company. Of course, every claim is subject to the then-carrier's investigation into the facts and circumstances surrounding such claim. In the event You have reason to believe that circumstances exist which warrant the filing of an insurance claim, please send a written notice (specifying the basis for such claim), via certified mail, return receipt requested, to:

\r\n
      Domains By Proxy, LLC
      Attn: Insurance Claims
      14455 North Hayden Rd.
      Suite 219
      Scottsdale, AZ 85260
\r\n

e. Indemnification

\r\n

In the unlikely event You lose Your domain name registration to a third party solely as a result of DBP's willful misconduct, Your Registrar (the \"Indemnifying Party\") will indemnify and hold You harmless against any losses, damages or costs (including reasonable attorneys' fees) resulting from any claim, action, proceeding, suit or demand arising out of or related to the loss of Your domain name registration. Such indemnification obligations under this Section 10(e) are conditioned upon the following:

\r\n
    \r\n
  1. That You promptly give both DBP and the Indemnifying Party written notice of the claim, demand, or action and provide reasonable assistance to the Indemnifying Party, at its cost and expense, in connection therewith, and
  2. \r\n
  3. That the Indemnifying Party has the right, at its option, to control and direct the defense to any settlement of such claim, demand, or action.
  4. \r\n
\r\n

Any notice concerning indemnification shall, with respect to DBP, be sent in accordance with Section 10(c) of this Agreement. With respect to Your Registrar, notices regarding indemnification should be sent in accordance with the notification provisions contained in Your Registrar's Domain Name Registration Agreement.

\r\n

f. Term of Agreement; Survival

\r\n

The terms of this Agreement shall continue in full force and effect as long as DBP is the Registrant for any domain name on Your behalf. Sections 5 (Communications Forwarding), 6 (Limitation of Liability), 7 (Indemnity), 8 (Warranty Disclaimer) and 10 (Miscellaneous Provisions) shall survive any termination or expiration of this Agreement.

\n
\n
\n\nRevised: 10/25/17
\nCopyright © 2003-2017 All Rights Reserved.\n
\n
\n
"), - // Title: to.Ptr("Domain Name Proxy Agreement"), - // URL: to.Ptr("http://www.secureserver.net/agreements/ShowDoc.aspx?pageid=domain_nameproxy&pl_id=510456"), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/webapps_client.go b/sdk/resourcemanager/appservice/armappservice/webapps_client.go index bc9ae899a3dd..0cd961fde7fb 100644 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/webapps_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -76,7 +73,7 @@ func (client *WebAppsClient) AddPremierAddOn(ctx context.Context, resourceGroupN } // addPremierAddOnCreateRequest creates the AddPremierAddOn request. -func (client *WebAppsClient) addPremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOn, options *WebAppsClientAddPremierAddOnOptions) (*policy.Request, error) { +func (client *WebAppsClient) addPremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOn, _ *WebAppsClientAddPremierAddOnOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -99,7 +96,7 @@ func (client *WebAppsClient) addPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -120,7 +117,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -152,7 +149,7 @@ func (client *WebAppsClient) AddPremierAddOnSlot(ctx context.Context, resourceGr } // addPremierAddOnSlotCreateRequest creates the AddPremierAddOnSlot request. -func (client *WebAppsClient) addPremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, premierAddOn PremierAddOn, options *WebAppsClientAddPremierAddOnSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) addPremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, premierAddOn PremierAddOn, _ *WebAppsClientAddPremierAddOnSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -179,7 +176,7 @@ func (client *WebAppsClient) addPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -200,7 +197,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -247,7 +244,7 @@ func (client *WebAppsClient) analyzeCustomHostnameCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } @@ -268,7 +265,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -320,7 +317,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } @@ -342,7 +339,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotHandleResponse(resp *http. // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -370,7 +367,7 @@ func (client *WebAppsClient) ApplySlotConfigToProduction(ctx context.Context, re } // applySlotConfigToProductionCreateRequest creates the ApplySlotConfigToProduction request. -func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientApplySlotConfigToProductionOptions) (*policy.Request, error) { +func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, _ *WebAppsClientApplySlotConfigToProductionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -389,7 +386,7 @@ func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -401,7 +398,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -430,7 +427,7 @@ func (client *WebAppsClient) ApplySlotConfigurationSlot(ctx context.Context, res } // applySlotConfigurationSlotCreateRequest creates the ApplySlotConfigurationSlot request. -func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientApplySlotConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, _ *WebAppsClientApplySlotConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/applySlotConfig" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -453,7 +450,7 @@ func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -465,7 +462,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -490,7 +487,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) approveOrRejectPrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection" @@ -513,7 +510,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnection(ctx contex } // approveOrRejectPrivateEndpointConnectionCreateRequest creates the ApproveOrRejectPrivateEndpointConnection request. -func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, _ *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -536,7 +533,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -548,7 +545,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -573,7 +570,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot" @@ -596,7 +593,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlot(ctx co } // approveOrRejectPrivateEndpointConnectionSlotCreateRequest creates the ApproveOrRejectPrivateEndpointConnectionSlot request. -func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, options *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, privateEndpointWrapper RemotePrivateEndpointConnectionARMResource, _ *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -623,7 +620,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -635,7 +632,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -663,7 +660,7 @@ func (client *WebAppsClient) Backup(ctx context.Context, resourceGroupName strin } // backupCreateRequest creates the Backup request. -func (client *WebAppsClient) backupCreateRequest(ctx context.Context, resourceGroupName string, name string, request BackupRequest, options *WebAppsClientBackupOptions) (*policy.Request, error) { +func (client *WebAppsClient) backupCreateRequest(ctx context.Context, resourceGroupName string, name string, request BackupRequest, _ *WebAppsClientBackupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -682,7 +679,7 @@ func (client *WebAppsClient) backupCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -703,7 +700,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -732,7 +729,7 @@ func (client *WebAppsClient) BackupSlot(ctx context.Context, resourceGroupName s } // backupSlotCreateRequest creates the BackupSlot request. -func (client *WebAppsClient) backupSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request BackupRequest, options *WebAppsClientBackupSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) backupSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request BackupRequest, _ *WebAppsClientBackupSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -755,7 +752,7 @@ func (client *WebAppsClient) backupSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -776,7 +773,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - ID of an existing deployment. @@ -806,7 +803,7 @@ func (client *WebAppsClient) CreateDeployment(ctx context.Context, resourceGroup } // createDeploymentCreateRequest creates the CreateDeployment request. -func (client *WebAppsClient) createDeploymentCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, deployment Deployment, options *WebAppsClientCreateDeploymentOptions) (*policy.Request, error) { +func (client *WebAppsClient) createDeploymentCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, deployment Deployment, _ *WebAppsClientCreateDeploymentOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -829,7 +826,7 @@ func (client *WebAppsClient) createDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, deployment); err != nil { @@ -850,7 +847,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - ID of an existing deployment. @@ -881,7 +878,7 @@ func (client *WebAppsClient) CreateDeploymentSlot(ctx context.Context, resourceG } // createDeploymentSlotCreateRequest creates the CreateDeploymentSlot request. -func (client *WebAppsClient) createDeploymentSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, deployment Deployment, options *WebAppsClientCreateDeploymentSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createDeploymentSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, deployment Deployment, _ *WebAppsClientCreateDeploymentSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -908,7 +905,7 @@ func (client *WebAppsClient) createDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, deployment); err != nil { @@ -929,7 +926,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -956,7 +953,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createFunction(ctx context.Context, resourceGroupName string, name string, functionName string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateFunctionOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateFunction" @@ -979,7 +976,7 @@ func (client *WebAppsClient) createFunction(ctx context.Context, resourceGroupNa } // createFunctionCreateRequest creates the CreateFunction request. -func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateFunctionOptions) (*policy.Request, error) { +func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, functionEnvelope FunctionEnvelope, _ *WebAppsClientBeginCreateFunctionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1002,7 +999,7 @@ func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, functionEnvelope); err != nil { @@ -1014,7 +1011,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -1042,7 +1039,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createInstanceFunctionSlot(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateInstanceFunctionSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateInstanceFunctionSlot" @@ -1065,7 +1062,7 @@ func (client *WebAppsClient) createInstanceFunctionSlot(ctx context.Context, res } // createInstanceFunctionSlotCreateRequest creates the CreateInstanceFunctionSlot request. -func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, functionEnvelope FunctionEnvelope, options *WebAppsClientBeginCreateInstanceFunctionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, functionEnvelope FunctionEnvelope, _ *WebAppsClientBeginCreateInstanceFunctionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1092,7 +1089,7 @@ func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, functionEnvelope); err != nil { @@ -1104,7 +1101,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - instanceID - ID of web app instance. @@ -1131,7 +1128,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createInstanceMSDeployOperation(ctx context.Context, resourceGroupName string, name string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateInstanceMSDeployOperation" @@ -1154,7 +1151,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperation(ctx context.Context } // createInstanceMSDeployOperationCreateRequest creates the CreateInstanceMSDeployOperation request. -func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationOptions) (*policy.Request, error) { +func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, msDeploy MSDeploy, _ *WebAppsClientBeginCreateInstanceMSDeployOperationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1177,7 +1174,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1189,7 +1186,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1217,7 +1214,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createInstanceMSDeployOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateInstanceMSDeployOperationSlot" @@ -1240,7 +1237,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlot(ctx context.Con } // createInstanceMSDeployOperationSlotCreateRequest creates the CreateInstanceMSDeployOperationSlot request. -func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, msDeploy MSDeploy, options *WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, msDeploy MSDeploy, _ *WebAppsClientBeginCreateInstanceMSDeployOperationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1267,7 +1264,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1279,7 +1276,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - msDeploy - Details of MSDeploy operation @@ -1305,7 +1302,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createMSDeployOperation(ctx context.Context, resourceGroupName string, name string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateMSDeployOperation" @@ -1328,7 +1325,7 @@ func (client *WebAppsClient) createMSDeployOperation(ctx context.Context, resour } // createMSDeployOperationCreateRequest creates the CreateMSDeployOperation request. -func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationOptions) (*policy.Request, error) { +func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, msDeploy MSDeploy, _ *WebAppsClientBeginCreateMSDeployOperationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1347,7 +1344,7 @@ func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1359,7 +1356,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1386,7 +1383,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createMSDeployOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateMSDeployOperationSlot" @@ -1409,7 +1406,7 @@ func (client *WebAppsClient) createMSDeployOperationSlot(ctx context.Context, re } // createMSDeployOperationSlotCreateRequest creates the CreateMSDeployOperationSlot request. -func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, msDeploy MSDeploy, options *WebAppsClientBeginCreateMSDeployOperationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, msDeploy MSDeploy, _ *WebAppsClientBeginCreateMSDeployOperationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1432,7 +1429,7 @@ func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1444,7 +1441,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -1472,7 +1469,7 @@ func (client *WebAppsClient) CreateOneDeployOperation(ctx context.Context, resou } // createOneDeployOperationCreateRequest creates the CreateOneDeployOperation request. -func (client *WebAppsClient) createOneDeployOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientCreateOneDeployOperationOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOneDeployOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientCreateOneDeployOperationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1491,7 +1488,7 @@ func (client *WebAppsClient) createOneDeployOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1510,7 +1507,7 @@ func (client *WebAppsClient) createOneDeployOperationHandleResponse(resp *http.R // existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -1537,7 +1534,7 @@ func (client *WebAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createOrUpdate(ctx context.Context, resourceGroupName string, name string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateOrUpdate" @@ -1560,7 +1557,7 @@ func (client *WebAppsClient) createOrUpdate(ctx context.Context, resourceGroupNa } // createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, name string, siteEnvelope Site, _ *WebAppsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1579,7 +1576,7 @@ func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -1591,7 +1588,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1620,7 +1617,7 @@ func (client *WebAppsClient) CreateOrUpdateConfiguration(ctx context.Context, re } // createOrUpdateConfigurationCreateRequest creates the CreateOrUpdateConfiguration request. -func (client *WebAppsClient) createOrUpdateConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, siteConfig SiteConfigResource, options *WebAppsClientCreateOrUpdateConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, siteConfig SiteConfigResource, _ *WebAppsClientCreateOrUpdateConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1639,7 +1636,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -1660,7 +1657,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -1690,7 +1687,7 @@ func (client *WebAppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context } // createOrUpdateConfigurationSlotCreateRequest creates the CreateOrUpdateConfigurationSlot request. -func (client *WebAppsClient) createOrUpdateConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteConfig SiteConfigResource, options *WebAppsClientCreateOrUpdateConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteConfig SiteConfigResource, _ *WebAppsClientCreateOrUpdateConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1713,7 +1710,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -1735,7 +1732,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotHandleResponse(resp // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -1765,7 +1762,7 @@ func (client *WebAppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context } // createOrUpdateDomainOwnershipIdentifierCreateRequest creates the CreateOrUpdateDomainOwnershipIdentifier request. -func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, domainOwnershipIdentifier Identifier, options *WebAppsClientCreateOrUpdateDomainOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, domainOwnershipIdentifier Identifier, _ *WebAppsClientCreateOrUpdateDomainOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1788,7 +1785,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -1810,7 +1807,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierHandleRespon // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -1841,7 +1838,7 @@ func (client *WebAppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx con } // createOrUpdateDomainOwnershipIdentifierSlotCreateRequest creates the CreateOrUpdateDomainOwnershipIdentifierSlot request. -func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, domainOwnershipIdentifier Identifier, options *WebAppsClientCreateOrUpdateDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, domainOwnershipIdentifier Identifier, _ *WebAppsClientCreateOrUpdateDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1868,7 +1865,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -1889,7 +1886,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -1920,7 +1917,7 @@ func (client *WebAppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, r } // createOrUpdateFunctionSecretCreateRequest creates the CreateOrUpdateFunctionSecret request. -func (client *WebAppsClient) createOrUpdateFunctionSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, key KeyInfo, options *WebAppsClientCreateOrUpdateFunctionSecretOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateFunctionSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, key KeyInfo, _ *WebAppsClientCreateOrUpdateFunctionSecretOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1947,7 +1944,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -1968,7 +1965,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -2000,7 +1997,7 @@ func (client *WebAppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Contex } // createOrUpdateFunctionSecretSlotCreateRequest creates the CreateOrUpdateFunctionSecretSlot request. -func (client *WebAppsClient) createOrUpdateFunctionSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, key KeyInfo, options *WebAppsClientCreateOrUpdateFunctionSecretSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateFunctionSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, key KeyInfo, _ *WebAppsClientCreateOrUpdateFunctionSecretSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/keys/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2031,7 +2028,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -2052,7 +2049,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -2082,7 +2079,7 @@ func (client *WebAppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, } // createOrUpdateHostNameBindingCreateRequest creates the CreateOrUpdateHostNameBinding request. -func (client *WebAppsClient) createOrUpdateHostNameBindingCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, hostNameBinding HostNameBinding, options *WebAppsClientCreateOrUpdateHostNameBindingOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateHostNameBindingCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, hostNameBinding HostNameBinding, _ *WebAppsClientCreateOrUpdateHostNameBindingOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2105,7 +2102,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostNameBinding); err != nil { @@ -2126,7 +2123,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -2157,7 +2154,7 @@ func (client *WebAppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Conte } // createOrUpdateHostNameBindingSlotCreateRequest creates the CreateOrUpdateHostNameBindingSlot request. -func (client *WebAppsClient) createOrUpdateHostNameBindingSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, slot string, hostNameBinding HostNameBinding, options *WebAppsClientCreateOrUpdateHostNameBindingSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateHostNameBindingSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, slot string, hostNameBinding HostNameBinding, _ *WebAppsClientCreateOrUpdateHostNameBindingSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2184,7 +2181,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostNameBinding); err != nil { @@ -2205,7 +2202,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -2236,7 +2233,7 @@ func (client *WebAppsClient) CreateOrUpdateHostSecret(ctx context.Context, resou } // createOrUpdateHostSecretCreateRequest creates the CreateOrUpdateHostSecret request. -func (client *WebAppsClient) createOrUpdateHostSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, key KeyInfo, options *WebAppsClientCreateOrUpdateHostSecretOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateHostSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, key KeyInfo, _ *WebAppsClientCreateOrUpdateHostSecretOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/{keyType}/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2263,7 +2260,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -2284,7 +2281,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -2316,7 +2313,7 @@ func (client *WebAppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, r } // createOrUpdateHostSecretSlotCreateRequest creates the CreateOrUpdateHostSecretSlot request. -func (client *WebAppsClient) createOrUpdateHostSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, key KeyInfo, options *WebAppsClientCreateOrUpdateHostSecretSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateHostSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, key KeyInfo, _ *WebAppsClientCreateOrUpdateHostSecretSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/{keyType}/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2347,7 +2344,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -2368,7 +2365,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -2399,7 +2396,7 @@ func (client *WebAppsClient) CreateOrUpdateHybridConnection(ctx context.Context, } // createOrUpdateHybridConnectionCreateRequest creates the CreateOrUpdateHybridConnection request. -func (client *WebAppsClient) createOrUpdateHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, connectionEnvelope HybridConnection, options *WebAppsClientCreateOrUpdateHybridConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, connectionEnvelope HybridConnection, _ *WebAppsClientCreateOrUpdateHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2426,7 +2423,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2447,7 +2444,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -2479,7 +2476,7 @@ func (client *WebAppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Cont } // createOrUpdateHybridConnectionSlotCreateRequest creates the CreateOrUpdateHybridConnectionSlot request. -func (client *WebAppsClient) createOrUpdateHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope HybridConnection, options *WebAppsClientCreateOrUpdateHybridConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope HybridConnection, _ *WebAppsClientCreateOrUpdateHybridConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2510,7 +2507,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2531,7 +2528,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -2561,7 +2558,7 @@ func (client *WebAppsClient) CreateOrUpdatePublicCertificate(ctx context.Context } // createOrUpdatePublicCertificateCreateRequest creates the CreateOrUpdatePublicCertificate request. -func (client *WebAppsClient) createOrUpdatePublicCertificateCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, publicCertificate PublicCertificate, options *WebAppsClientCreateOrUpdatePublicCertificateOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdatePublicCertificateCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, publicCertificate PublicCertificate, _ *WebAppsClientCreateOrUpdatePublicCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2584,7 +2581,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, publicCertificate); err != nil { @@ -2605,7 +2602,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -2636,7 +2633,7 @@ func (client *WebAppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Con } // createOrUpdatePublicCertificateSlotCreateRequest creates the CreateOrUpdatePublicCertificateSlot request. -func (client *WebAppsClient) createOrUpdatePublicCertificateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, slot string, publicCertificate PublicCertificate, options *WebAppsClientCreateOrUpdatePublicCertificateSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdatePublicCertificateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, slot string, publicCertificate PublicCertificate, _ *WebAppsClientCreateOrUpdatePublicCertificateSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2663,7 +2660,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, publicCertificate); err != nil { @@ -2685,7 +2682,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotHandleResponse(r // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -2715,7 +2712,7 @@ func (client *WebAppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Co } // createOrUpdateRelayServiceConnectionCreateRequest creates the CreateOrUpdateRelayServiceConnection request. -func (client *WebAppsClient) createOrUpdateRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientCreateOrUpdateRelayServiceConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, connectionEnvelope RelayServiceConnectionEntity, _ *WebAppsClientCreateOrUpdateRelayServiceConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2738,7 +2735,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2760,7 +2757,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionHandleResponse( // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -2792,7 +2789,7 @@ func (client *WebAppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx contex } // createOrUpdateRelayServiceConnectionSlotCreateRequest creates the CreateOrUpdateRelayServiceConnectionSlot request. -func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientCreateOrUpdateRelayServiceConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, connectionEnvelope RelayServiceConnectionEntity, _ *WebAppsClientCreateOrUpdateRelayServiceConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2819,7 +2816,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2840,7 +2837,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotHandleRespo // CreateOrUpdateSiteContainer - Creates or Updates a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - containerName - Site Container Name @@ -2870,7 +2867,7 @@ func (client *WebAppsClient) CreateOrUpdateSiteContainer(ctx context.Context, re } // createOrUpdateSiteContainerCreateRequest creates the CreateOrUpdateSiteContainer request. -func (client *WebAppsClient) createOrUpdateSiteContainerCreateRequest(ctx context.Context, resourceGroupName string, name string, containerName string, request SiteContainer, options *WebAppsClientCreateOrUpdateSiteContainerOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSiteContainerCreateRequest(ctx context.Context, resourceGroupName string, name string, containerName string, request SiteContainer, _ *WebAppsClientCreateOrUpdateSiteContainerOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sitecontainers/{containerName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2893,7 +2890,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -2914,7 +2911,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerHandleResponse(resp *htt // CreateOrUpdateSiteContainerSlot - Creates or Updates a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 the container for the production slot. @@ -2945,7 +2942,7 @@ func (client *WebAppsClient) CreateOrUpdateSiteContainerSlot(ctx context.Context } // createOrUpdateSiteContainerSlotCreateRequest creates the CreateOrUpdateSiteContainerSlot request. -func (client *WebAppsClient) createOrUpdateSiteContainerSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, containerName string, request SiteContainer, options *WebAppsClientCreateOrUpdateSiteContainerSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSiteContainerSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, containerName string, request SiteContainer, _ *WebAppsClientCreateOrUpdateSiteContainerSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sitecontainers/{containerName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -2972,7 +2969,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -2994,7 +2991,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerSlotHandleResponse(resp // an existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -3023,7 +3020,7 @@ func (client *WebAppsClient) BeginCreateOrUpdateSlot(ctx context.Context, resour // existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createOrUpdateSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateOrUpdateSlot" @@ -3046,7 +3043,7 @@ func (client *WebAppsClient) createOrUpdateSlot(ctx context.Context, resourceGro } // createOrUpdateSlotCreateRequest creates the CreateOrUpdateSlot request. -func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope Site, options *WebAppsClientBeginCreateOrUpdateSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope Site, _ *WebAppsClientBeginCreateOrUpdateSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3069,7 +3066,7 @@ func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -3081,7 +3078,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3107,7 +3104,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createOrUpdateSourceControl(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateOrUpdateSourceControl" @@ -3130,7 +3127,7 @@ func (client *WebAppsClient) createOrUpdateSourceControl(ctx context.Context, re } // createOrUpdateSourceControlCreateRequest creates the CreateOrUpdateSourceControl request. -func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, _ *WebAppsClientBeginCreateOrUpdateSourceControlOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3149,7 +3146,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -3161,7 +3158,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3189,7 +3186,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) createOrUpdateSourceControlSlot(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginCreateOrUpdateSourceControlSlot" @@ -3212,7 +3209,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlot(ctx context.Context } // createOrUpdateSourceControlSlotCreateRequest creates the CreateOrUpdateSourceControlSlot request. -func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, options *WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, _ *WebAppsClientBeginCreateOrUpdateSourceControlSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3235,7 +3232,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -3250,7 +3247,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3279,7 +3276,7 @@ func (client *WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithChec } // createOrUpdateSwiftVirtualNetworkConnectionWithCheckCreateRequest creates the CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck request. -func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithCheckCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithCheckCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, _ *WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3298,7 +3295,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3322,7 +3319,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3353,7 +3350,7 @@ func (client *WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithChec } // createOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest creates the CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot request. -func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, connectionEnvelope SwiftVirtualNetwork, _ *WebAppsClientCreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3376,7 +3373,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3398,7 +3395,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -3428,7 +3425,7 @@ func (client *WebAppsClient) CreateOrUpdateVnetConnection(ctx context.Context, r } // createOrUpdateVnetConnectionCreateRequest creates the CreateOrUpdateVnetConnection request. -func (client *WebAppsClient) createOrUpdateVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, connectionEnvelope VnetInfoResource, options *WebAppsClientCreateOrUpdateVnetConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, connectionEnvelope VnetInfoResource, _ *WebAppsClientCreateOrUpdateVnetConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3451,7 +3448,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3473,7 +3470,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionHandleResponse(resp *ht // (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -3504,7 +3501,7 @@ func (client *WebAppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Con } // createOrUpdateVnetConnectionGatewayCreateRequest creates the CreateOrUpdateVnetConnectionGateway request. -func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, options *WebAppsClientCreateOrUpdateVnetConnectionGatewayOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, _ *WebAppsClientCreateOrUpdateVnetConnectionGatewayOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3531,7 +3528,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3553,7 +3550,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayHandleResponse(r // it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -3586,7 +3583,7 @@ func (client *WebAppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context } // createOrUpdateVnetConnectionGatewaySlotCreateRequest creates the CreateOrUpdateVnetConnectionGatewaySlot request. -func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, connectionEnvelope VnetGateway, options *WebAppsClientCreateOrUpdateVnetConnectionGatewaySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, connectionEnvelope VnetGateway, _ *WebAppsClientCreateOrUpdateVnetConnectionGatewaySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3617,7 +3614,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3639,7 +3636,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotHandleRespon // the connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -3671,7 +3668,7 @@ func (client *WebAppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Contex } // createOrUpdateVnetConnectionSlotCreateRequest creates the CreateOrUpdateVnetConnectionSlot request. -func (client *WebAppsClient) createOrUpdateVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, connectionEnvelope VnetInfoResource, options *WebAppsClientCreateOrUpdateVnetConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) createOrUpdateVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, connectionEnvelope VnetInfoResource, _ *WebAppsClientCreateOrUpdateVnetConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3698,7 +3695,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3719,7 +3716,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -3764,7 +3761,7 @@ func (client *WebAppsClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } @@ -3779,7 +3776,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -3806,7 +3803,7 @@ func (client *WebAppsClient) DeleteBackup(ctx context.Context, resourceGroupName } // deleteBackupCreateRequest creates the DeleteBackup request. -func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, options *WebAppsClientDeleteBackupOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, _ *WebAppsClientDeleteBackupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3829,7 +3826,7 @@ func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3838,7 +3835,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3865,7 +3862,7 @@ func (client *WebAppsClient) DeleteBackupConfiguration(ctx context.Context, reso } // deleteBackupConfigurationCreateRequest creates the DeleteBackupConfiguration request. -func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeleteBackupConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientDeleteBackupConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3884,7 +3881,7 @@ func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3893,7 +3890,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -3922,7 +3919,7 @@ func (client *WebAppsClient) DeleteBackupConfigurationSlot(ctx context.Context, } // deleteBackupConfigurationSlotCreateRequest creates the DeleteBackupConfigurationSlot request. -func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeleteBackupConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientDeleteBackupConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -3945,7 +3942,7 @@ func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3954,7 +3951,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -3983,7 +3980,7 @@ func (client *WebAppsClient) DeleteBackupSlot(ctx context.Context, resourceGroup } // deleteBackupSlotCreateRequest creates the DeleteBackupSlot request. -func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, options *WebAppsClientDeleteBackupSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, _ *WebAppsClientDeleteBackupSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4010,7 +4007,7 @@ func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4019,7 +4016,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -4047,7 +4044,7 @@ func (client *WebAppsClient) DeleteContinuousWebJob(ctx context.Context, resourc } // deleteContinuousWebJobCreateRequest creates the DeleteContinuousWebJob request. -func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientDeleteContinuousWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientDeleteContinuousWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4070,7 +4067,7 @@ func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4079,7 +4076,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -4108,7 +4105,7 @@ func (client *WebAppsClient) DeleteContinuousWebJobSlot(ctx context.Context, res } // deleteContinuousWebJobSlotCreateRequest creates the DeleteContinuousWebJobSlot request. -func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientDeleteContinuousWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientDeleteContinuousWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4135,7 +4132,7 @@ func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4144,7 +4141,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -4172,7 +4169,7 @@ func (client *WebAppsClient) DeleteDeployment(ctx context.Context, resourceGroup } // deleteDeploymentCreateRequest creates the DeleteDeployment request. -func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, options *WebAppsClientDeleteDeploymentOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, _ *WebAppsClientDeleteDeploymentOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4195,7 +4192,7 @@ func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4204,7 +4201,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -4233,7 +4230,7 @@ func (client *WebAppsClient) DeleteDeploymentSlot(ctx context.Context, resourceG } // deleteDeploymentSlotCreateRequest creates the DeleteDeploymentSlot request. -func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, options *WebAppsClientDeleteDeploymentSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, _ *WebAppsClientDeleteDeploymentSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4260,7 +4257,7 @@ func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4269,7 +4266,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -4297,7 +4294,7 @@ func (client *WebAppsClient) DeleteDomainOwnershipIdentifier(ctx context.Context } // deleteDomainOwnershipIdentifierCreateRequest creates the DeleteDomainOwnershipIdentifier request. -func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, options *WebAppsClientDeleteDomainOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, _ *WebAppsClientDeleteDomainOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4320,7 +4317,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4329,7 +4326,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -4358,7 +4355,7 @@ func (client *WebAppsClient) DeleteDomainOwnershipIdentifierSlot(ctx context.Con } // deleteDomainOwnershipIdentifierSlotCreateRequest creates the DeleteDomainOwnershipIdentifierSlot request. -func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, options *WebAppsClientDeleteDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, _ *WebAppsClientDeleteDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4385,7 +4382,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4394,7 +4391,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -4421,7 +4418,7 @@ func (client *WebAppsClient) DeleteFunction(ctx context.Context, resourceGroupNa } // deleteFunctionCreateRequest creates the DeleteFunction request. -func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientDeleteFunctionOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, _ *WebAppsClientDeleteFunctionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4444,7 +4441,7 @@ func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4453,7 +4450,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -4482,7 +4479,7 @@ func (client *WebAppsClient) DeleteFunctionSecret(ctx context.Context, resourceG } // deleteFunctionSecretCreateRequest creates the DeleteFunctionSecret request. -func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, options *WebAppsClientDeleteFunctionSecretOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, _ *WebAppsClientDeleteFunctionSecretOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4509,7 +4506,7 @@ func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4518,7 +4515,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -4548,7 +4545,7 @@ func (client *WebAppsClient) DeleteFunctionSecretSlot(ctx context.Context, resou } // deleteFunctionSecretSlotCreateRequest creates the DeleteFunctionSecretSlot request. -func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, options *WebAppsClientDeleteFunctionSecretSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, keyName string, slot string, _ *WebAppsClientDeleteFunctionSecretSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/keys/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4579,7 +4576,7 @@ func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4588,7 +4585,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -4616,7 +4613,7 @@ func (client *WebAppsClient) DeleteHostNameBinding(ctx context.Context, resource } // deleteHostNameBindingCreateRequest creates the DeleteHostNameBinding request. -func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, options *WebAppsClientDeleteHostNameBindingOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, _ *WebAppsClientDeleteHostNameBindingOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4639,7 +4636,7 @@ func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4648,7 +4645,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -4677,7 +4674,7 @@ func (client *WebAppsClient) DeleteHostNameBindingSlot(ctx context.Context, reso } // deleteHostNameBindingSlotCreateRequest creates the DeleteHostNameBindingSlot request. -func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, hostName string, options *WebAppsClientDeleteHostNameBindingSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, hostName string, _ *WebAppsClientDeleteHostNameBindingSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4704,7 +4701,7 @@ func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4713,7 +4710,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -4742,7 +4739,7 @@ func (client *WebAppsClient) DeleteHostSecret(ctx context.Context, resourceGroup } // deleteHostSecretCreateRequest creates the DeleteHostSecret request. -func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, options *WebAppsClientDeleteHostSecretOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, _ *WebAppsClientDeleteHostSecretOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/{keyType}/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4769,7 +4766,7 @@ func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4778,7 +4775,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -4808,7 +4805,7 @@ func (client *WebAppsClient) DeleteHostSecretSlot(ctx context.Context, resourceG } // deleteHostSecretSlotCreateRequest creates the DeleteHostSecretSlot request. -func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, options *WebAppsClientDeleteHostSecretSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, keyType string, keyName string, slot string, _ *WebAppsClientDeleteHostSecretSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/{keyType}/{keyName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4839,7 +4836,7 @@ func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4848,7 +4845,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -4877,7 +4874,7 @@ func (client *WebAppsClient) DeleteHybridConnection(ctx context.Context, resourc } // deleteHybridConnectionCreateRequest creates the DeleteHybridConnection request. -func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *WebAppsClientDeleteHybridConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, _ *WebAppsClientDeleteHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4904,7 +4901,7 @@ func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4913,7 +4910,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -4943,7 +4940,7 @@ func (client *WebAppsClient) DeleteHybridConnectionSlot(ctx context.Context, res } // deleteHybridConnectionSlotCreateRequest creates the DeleteHybridConnectionSlot request. -func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, options *WebAppsClientDeleteHybridConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, _ *WebAppsClientDeleteHybridConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -4974,7 +4971,7 @@ func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4983,7 +4980,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -5012,7 +5009,7 @@ func (client *WebAppsClient) DeleteInstanceFunctionSlot(ctx context.Context, res } // deleteInstanceFunctionSlotCreateRequest creates the DeleteInstanceFunctionSlot request. -func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientDeleteInstanceFunctionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, _ *WebAppsClientDeleteInstanceFunctionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5039,7 +5036,7 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5049,7 +5046,7 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context // scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5079,7 +5076,7 @@ func (client *WebAppsClient) DeleteInstanceProcess(ctx context.Context, resource } // deleteInstanceProcessCreateRequest creates the DeleteInstanceProcess request. -func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientDeleteInstanceProcessOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, _ *WebAppsClientDeleteInstanceProcessOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5106,7 +5103,7 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5116,7 +5113,7 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont // scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5147,7 +5144,7 @@ func (client *WebAppsClient) DeleteInstanceProcessSlot(ctx context.Context, reso } // deleteInstanceProcessSlotCreateRequest creates the DeleteInstanceProcessSlot request. -func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientDeleteInstanceProcessSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, _ *WebAppsClientDeleteInstanceProcessSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5178,7 +5175,7 @@ func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5187,7 +5184,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -5215,7 +5212,7 @@ func (client *WebAppsClient) DeletePremierAddOn(ctx context.Context, resourceGro } // deletePremierAddOnCreateRequest creates the DeletePremierAddOn request. -func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, options *WebAppsClientDeletePremierAddOnOptions) (*policy.Request, error) { +func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, _ *WebAppsClientDeletePremierAddOnOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5238,7 +5235,7 @@ func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5247,7 +5244,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -5277,7 +5274,7 @@ func (client *WebAppsClient) DeletePremierAddOnSlot(ctx context.Context, resourc } // deletePremierAddOnSlotCreateRequest creates the DeletePremierAddOnSlot request. -func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, options *WebAppsClientDeletePremierAddOnSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, _ *WebAppsClientDeletePremierAddOnSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5304,7 +5301,7 @@ func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5313,7 +5310,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -5338,7 +5335,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) deletePrivateEndpointConnection(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *WebAppsClientBeginDeletePrivateEndpointConnectionOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginDeletePrivateEndpointConnection" @@ -5361,7 +5358,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnection(ctx context.Context } // deletePrivateEndpointConnectionCreateRequest creates the DeletePrivateEndpointConnection request. -func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *WebAppsClientBeginDeletePrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, _ *WebAppsClientBeginDeletePrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5384,7 +5381,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5393,7 +5390,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -5418,7 +5415,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) deletePrivateEndpointConnectionSlot(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, options *WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginDeletePrivateEndpointConnectionSlot" @@ -5441,7 +5438,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlot(ctx context.Con } // deletePrivateEndpointConnectionSlotCreateRequest creates the DeletePrivateEndpointConnectionSlot request. -func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, options *WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, _ *WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5468,7 +5465,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5478,7 +5475,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct // instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5505,7 +5502,7 @@ func (client *WebAppsClient) DeleteProcess(ctx context.Context, resourceGroupNam } // deleteProcessCreateRequest creates the DeleteProcess request. -func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientDeleteProcessOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, _ *WebAppsClientDeleteProcessOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5528,7 +5525,7 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5538,7 +5535,7 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res // instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5567,7 +5564,7 @@ func (client *WebAppsClient) DeleteProcessSlot(ctx context.Context, resourceGrou } // deleteProcessSlotCreateRequest creates the DeleteProcessSlot request. -func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientDeleteProcessSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, _ *WebAppsClientDeleteProcessSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5594,7 +5591,7 @@ func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5603,7 +5600,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -5631,7 +5628,7 @@ func (client *WebAppsClient) DeletePublicCertificate(ctx context.Context, resour } // deletePublicCertificateCreateRequest creates the DeletePublicCertificate request. -func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, options *WebAppsClientDeletePublicCertificateOptions) (*policy.Request, error) { +func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, _ *WebAppsClientDeletePublicCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5654,7 +5651,7 @@ func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5663,7 +5660,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -5692,7 +5689,7 @@ func (client *WebAppsClient) DeletePublicCertificateSlot(ctx context.Context, re } // deletePublicCertificateSlotCreateRequest creates the DeletePublicCertificateSlot request. -func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, publicCertificateName string, options *WebAppsClientDeletePublicCertificateSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, publicCertificateName string, _ *WebAppsClientDeletePublicCertificateSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5719,7 +5716,7 @@ func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5728,7 +5725,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -5756,7 +5753,7 @@ func (client *WebAppsClient) DeleteRelayServiceConnection(ctx context.Context, r } // deleteRelayServiceConnectionCreateRequest creates the DeleteRelayServiceConnection request. -func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, options *WebAppsClientDeleteRelayServiceConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, _ *WebAppsClientDeleteRelayServiceConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5779,7 +5776,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5788,7 +5785,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -5818,7 +5815,7 @@ func (client *WebAppsClient) DeleteRelayServiceConnectionSlot(ctx context.Contex } // deleteRelayServiceConnectionSlotCreateRequest creates the DeleteRelayServiceConnectionSlot request. -func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, options *WebAppsClientDeleteRelayServiceConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, _ *WebAppsClientDeleteRelayServiceConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5845,7 +5842,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5854,7 +5851,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c // DeleteSiteContainer - Deletes a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - containerName - Site Container Name @@ -5882,7 +5879,7 @@ func (client *WebAppsClient) DeleteSiteContainer(ctx context.Context, resourceGr } // deleteSiteContainerCreateRequest creates the DeleteSiteContainer request. -func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Context, resourceGroupName string, name string, containerName string, options *WebAppsClientDeleteSiteContainerOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Context, resourceGroupName string, name string, containerName string, _ *WebAppsClientDeleteSiteContainerOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sitecontainers/{containerName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5905,7 +5902,7 @@ func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5914,7 +5911,7 @@ func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Contex // DeleteSiteContainerSlot - Deletes a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 container for the production slot. @@ -5943,7 +5940,7 @@ func (client *WebAppsClient) DeleteSiteContainerSlot(ctx context.Context, resour } // deleteSiteContainerSlotCreateRequest creates the DeleteSiteContainerSlot request. -func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, containerName string, options *WebAppsClientDeleteSiteContainerSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, containerName string, _ *WebAppsClientDeleteSiteContainerSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sitecontainers/{containerName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -5970,7 +5967,7 @@ func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5979,7 +5976,7 @@ func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Co // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -6007,7 +6004,7 @@ func (client *WebAppsClient) DeleteSiteExtension(ctx context.Context, resourceGr } // deleteSiteExtensionCreateRequest creates the DeleteSiteExtension request. -func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientDeleteSiteExtensionOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, _ *WebAppsClientDeleteSiteExtensionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6030,7 +6027,7 @@ func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6039,7 +6036,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -6068,7 +6065,7 @@ func (client *WebAppsClient) DeleteSiteExtensionSlot(ctx context.Context, resour } // deleteSiteExtensionSlotCreateRequest creates the DeleteSiteExtensionSlot request. -func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientDeleteSiteExtensionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, _ *WebAppsClientDeleteSiteExtensionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6095,7 +6092,7 @@ func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6104,7 +6101,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -6154,7 +6151,7 @@ func (client *WebAppsClient) deleteSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } @@ -6169,7 +6166,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -6218,7 +6215,7 @@ func (client *WebAppsClient) deleteSourceControlCreateRequest(ctx context.Contex if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6227,7 +6224,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -6282,7 +6279,7 @@ func (client *WebAppsClient) deleteSourceControlSlotCreateRequest(ctx context.Co if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6291,7 +6288,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -6318,7 +6315,7 @@ func (client *WebAppsClient) DeleteSwiftVirtualNetwork(ctx context.Context, reso } // deleteSwiftVirtualNetworkCreateRequest creates the DeleteSwiftVirtualNetwork request. -func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientDeleteSwiftVirtualNetworkOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientDeleteSwiftVirtualNetworkOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6337,7 +6334,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6346,7 +6343,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -6374,7 +6371,7 @@ func (client *WebAppsClient) DeleteSwiftVirtualNetworkSlot(ctx context.Context, } // deleteSwiftVirtualNetworkSlotCreateRequest creates the DeleteSwiftVirtualNetworkSlot request. -func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientDeleteSwiftVirtualNetworkSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientDeleteSwiftVirtualNetworkSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6397,7 +6394,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6406,7 +6403,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -6434,7 +6431,7 @@ func (client *WebAppsClient) DeleteTriggeredWebJob(ctx context.Context, resource } // deleteTriggeredWebJobCreateRequest creates the DeleteTriggeredWebJob request. -func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientDeleteTriggeredWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientDeleteTriggeredWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6457,7 +6454,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6466,7 +6463,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -6495,7 +6492,7 @@ func (client *WebAppsClient) DeleteTriggeredWebJobSlot(ctx context.Context, reso } // deleteTriggeredWebJobSlotCreateRequest creates the DeleteTriggeredWebJobSlot request. -func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientDeleteTriggeredWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientDeleteTriggeredWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6522,7 +6519,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6531,7 +6528,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -6559,7 +6556,7 @@ func (client *WebAppsClient) DeleteVnetConnection(ctx context.Context, resourceG } // deleteVnetConnectionCreateRequest creates the DeleteVnetConnection request. -func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, options *WebAppsClientDeleteVnetConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, _ *WebAppsClientDeleteVnetConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6582,7 +6579,7 @@ func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6591,7 +6588,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -6620,7 +6617,7 @@ func (client *WebAppsClient) DeleteVnetConnectionSlot(ctx context.Context, resou } // deleteVnetConnectionSlotCreateRequest creates the DeleteVnetConnectionSlot request. -func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, options *WebAppsClientDeleteVnetConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, _ *WebAppsClientDeleteVnetConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6647,7 +6644,7 @@ func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6656,7 +6653,7 @@ func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.C // 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -6702,7 +6699,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.WorkflowArtifacts != nil { @@ -6717,7 +6714,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsCreateRequest(ctx context.Co // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -6768,7 +6765,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.WorkflowArtifacts != nil { @@ -6784,7 +6781,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsSlotCreateRequest(ctx contex // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -6812,7 +6809,7 @@ func (client *WebAppsClient) DiscoverBackup(ctx context.Context, resourceGroupNa } // discoverBackupCreateRequest creates the DiscoverBackup request. -func (client *WebAppsClient) discoverBackupCreateRequest(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, options *WebAppsClientDiscoverBackupOptions) (*policy.Request, error) { +func (client *WebAppsClient) discoverBackupCreateRequest(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, _ *WebAppsClientDiscoverBackupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/discoverbackup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6831,7 +6828,7 @@ func (client *WebAppsClient) discoverBackupCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -6853,7 +6850,7 @@ func (client *WebAppsClient) discoverBackupHandleResponse(resp *http.Response) ( // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -6883,7 +6880,7 @@ func (client *WebAppsClient) DiscoverBackupSlot(ctx context.Context, resourceGro } // discoverBackupSlotCreateRequest creates the DiscoverBackupSlot request. -func (client *WebAppsClient) discoverBackupSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, options *WebAppsClientDiscoverBackupSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) discoverBackupSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, _ *WebAppsClientDiscoverBackupSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/discoverbackup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6906,7 +6903,7 @@ func (client *WebAppsClient) discoverBackupSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -6928,7 +6925,7 @@ func (client *WebAppsClient) discoverBackupSlotHandleResponse(resp *http.Respons // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -6955,7 +6952,7 @@ func (client *WebAppsClient) GenerateNewSitePublishingPassword(ctx context.Conte } // generateNewSitePublishingPasswordCreateRequest creates the GenerateNewSitePublishingPassword request. -func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGenerateNewSitePublishingPasswordOptions) (*policy.Request, error) { +func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGenerateNewSitePublishingPasswordOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -6974,7 +6971,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6984,7 +6981,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -7013,7 +7010,7 @@ func (client *WebAppsClient) GenerateNewSitePublishingPasswordSlot(ctx context.C } // generateNewSitePublishingPasswordSlotCreateRequest creates the GenerateNewSitePublishingPasswordSlot request. -func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGenerateNewSitePublishingPasswordSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGenerateNewSitePublishingPasswordSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/newpassword" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7036,7 +7033,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7045,7 +7042,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -7072,7 +7069,7 @@ func (client *WebAppsClient) Get(ctx context.Context, resourceGroupName string, } // getCreateRequest creates the Get request. -func (client *WebAppsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetOptions) (*policy.Request, error) { +func (client *WebAppsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7091,7 +7088,7 @@ func (client *WebAppsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7109,7 +7106,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - appSettingKey - App Setting key name. @@ -7138,7 +7135,7 @@ func (client *WebAppsClient) GetAppSettingKeyVaultReference(ctx context.Context, } // getAppSettingKeyVaultReferenceCreateRequest creates the GetAppSettingKeyVaultReference request. -func (client *WebAppsClient) getAppSettingKeyVaultReferenceCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettingKey string, options *WebAppsClientGetAppSettingKeyVaultReferenceOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAppSettingKeyVaultReferenceCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettingKey string, _ *WebAppsClientGetAppSettingKeyVaultReferenceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings/{appSettingKey}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7161,7 +7158,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7179,7 +7176,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - appSettingKey - App Setting key name. @@ -7208,7 +7205,7 @@ func (client *WebAppsClient) GetAppSettingKeyVaultReferenceSlot(ctx context.Cont } // getAppSettingKeyVaultReferenceSlotCreateRequest creates the GetAppSettingKeyVaultReferenceSlot request. -func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettingKey string, slot string, options *WebAppsClientGetAppSettingKeyVaultReferenceSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettingKey string, slot string, _ *WebAppsClientGetAppSettingKeyVaultReferenceSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/configreferences/appsettings/{appSettingKey}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7235,7 +7232,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7252,7 +7249,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotHandleResponse(re // NewGetAppSettingsKeyVaultReferencesPager - Description for Gets the config reference app settings and status of an app // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -7281,7 +7278,7 @@ func (client *WebAppsClient) NewGetAppSettingsKeyVaultReferencesPager(resourceGr } // getAppSettingsKeyVaultReferencesCreateRequest creates the GetAppSettingsKeyVaultReferences request. -func (client *WebAppsClient) getAppSettingsKeyVaultReferencesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAppSettingsKeyVaultReferencesOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAppSettingsKeyVaultReferencesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetAppSettingsKeyVaultReferencesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7300,7 +7297,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7318,7 +7315,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesHandleResponse(resp // NewGetAppSettingsKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status of an // app // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -7347,7 +7344,7 @@ func (client *WebAppsClient) NewGetAppSettingsKeyVaultReferencesSlotPager(resour } // getAppSettingsKeyVaultReferencesSlotCreateRequest creates the GetAppSettingsKeyVaultReferencesSlot request. -func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/configreferences/appsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7370,7 +7367,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7388,7 +7385,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -7415,7 +7412,7 @@ func (client *WebAppsClient) GetAuthSettings(ctx context.Context, resourceGroupN } // getAuthSettingsCreateRequest creates the GetAuthSettings request. -func (client *WebAppsClient) getAuthSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAuthSettingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAuthSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetAuthSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7434,7 +7431,7 @@ func (client *WebAppsClient) getAuthSettingsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7452,7 +7449,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -7481,7 +7478,7 @@ func (client *WebAppsClient) GetAuthSettingsSlot(ctx context.Context, resourceGr } // getAuthSettingsSlotCreateRequest creates the GetAuthSettingsSlot request. -func (client *WebAppsClient) getAuthSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAuthSettingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAuthSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetAuthSettingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7504,7 +7501,7 @@ func (client *WebAppsClient) getAuthSettingsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7522,7 +7519,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -7550,7 +7547,7 @@ func (client *WebAppsClient) GetAuthSettingsV2(ctx context.Context, resourceGrou } // getAuthSettingsV2CreateRequest creates the GetAuthSettingsV2 request. -func (client *WebAppsClient) getAuthSettingsV2CreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAuthSettingsV2Options) (*policy.Request, error) { +func (client *WebAppsClient) getAuthSettingsV2CreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetAuthSettingsV2Options) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7569,7 +7566,7 @@ func (client *WebAppsClient) getAuthSettingsV2CreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7587,7 +7584,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -7616,7 +7613,7 @@ func (client *WebAppsClient) GetAuthSettingsV2Slot(ctx context.Context, resource } // getAuthSettingsV2SlotCreateRequest creates the GetAuthSettingsV2Slot request. -func (client *WebAppsClient) getAuthSettingsV2SlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAuthSettingsV2SlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAuthSettingsV2SlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetAuthSettingsV2SlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7639,7 +7636,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7658,7 +7655,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotHandleResponse(resp *http.Resp // V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -7686,7 +7683,7 @@ func (client *WebAppsClient) GetAuthSettingsV2WithoutSecrets(ctx context.Context } // getAuthSettingsV2WithoutSecretsCreateRequest creates the GetAuthSettingsV2WithoutSecrets request. -func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetAuthSettingsV2WithoutSecretsOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetAuthSettingsV2WithoutSecretsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7705,7 +7702,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7723,7 +7720,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -7752,7 +7749,7 @@ func (client *WebAppsClient) GetAuthSettingsV2WithoutSecretsSlot(ctx context.Con } // getAuthSettingsV2WithoutSecretsSlotCreateRequest creates the GetAuthSettingsV2WithoutSecretsSlot request. -func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetAuthSettingsV2WithoutSecretsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetAuthSettingsV2WithoutSecretsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7775,7 +7772,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7793,7 +7790,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -7821,7 +7818,7 @@ func (client *WebAppsClient) GetBackupConfiguration(ctx context.Context, resourc } // getBackupConfigurationCreateRequest creates the GetBackupConfiguration request. -func (client *WebAppsClient) getBackupConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetBackupConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) getBackupConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetBackupConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7840,7 +7837,7 @@ func (client *WebAppsClient) getBackupConfigurationCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7858,7 +7855,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -7888,7 +7885,7 @@ func (client *WebAppsClient) GetBackupConfigurationSlot(ctx context.Context, res } // getBackupConfigurationSlotCreateRequest creates the GetBackupConfigurationSlot request. -func (client *WebAppsClient) getBackupConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetBackupConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getBackupConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetBackupConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7911,7 +7908,7 @@ func (client *WebAppsClient) getBackupConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7929,7 +7926,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -7957,7 +7954,7 @@ func (client *WebAppsClient) GetBackupStatus(ctx context.Context, resourceGroupN } // getBackupStatusCreateRequest creates the GetBackupStatus request. -func (client *WebAppsClient) getBackupStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, options *WebAppsClientGetBackupStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) getBackupStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, _ *WebAppsClientGetBackupStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -7980,7 +7977,7 @@ func (client *WebAppsClient) getBackupStatusCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7998,7 +7995,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -8028,7 +8025,7 @@ func (client *WebAppsClient) GetBackupStatusSlot(ctx context.Context, resourceGr } // getBackupStatusSlotCreateRequest creates the GetBackupStatusSlot request. -func (client *WebAppsClient) getBackupStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, options *WebAppsClientGetBackupStatusSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getBackupStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, _ *WebAppsClientGetBackupStatusSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8055,7 +8052,7 @@ func (client *WebAppsClient) getBackupStatusSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8074,7 +8071,7 @@ func (client *WebAppsClient) getBackupStatusSlotHandleResponse(resp *http.Respon // virtual applications, Always On, etc. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -8102,7 +8099,7 @@ func (client *WebAppsClient) GetConfiguration(ctx context.Context, resourceGroup } // getConfigurationCreateRequest creates the GetConfiguration request. -func (client *WebAppsClient) getConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) getConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8121,7 +8118,7 @@ func (client *WebAppsClient) getConfigurationCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8140,7 +8137,7 @@ func (client *WebAppsClient) getConfigurationHandleResponse(resp *http.Response) // documents, virtual applications, Always On, etc. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -8169,7 +8166,7 @@ func (client *WebAppsClient) GetConfigurationSlot(ctx context.Context, resourceG } // getConfigurationSlotCreateRequest creates the GetConfigurationSlot request. -func (client *WebAppsClient) getConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8192,7 +8189,7 @@ func (client *WebAppsClient) getConfigurationSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8210,7 +8207,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -8239,7 +8236,7 @@ func (client *WebAppsClient) GetConfigurationSnapshot(ctx context.Context, resou } // getConfigurationSnapshotCreateRequest creates the GetConfigurationSnapshot request. -func (client *WebAppsClient) getConfigurationSnapshotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, options *WebAppsClientGetConfigurationSnapshotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getConfigurationSnapshotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, _ *WebAppsClientGetConfigurationSnapshotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots/{snapshotId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8262,7 +8259,7 @@ func (client *WebAppsClient) getConfigurationSnapshotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8280,7 +8277,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -8310,7 +8307,7 @@ func (client *WebAppsClient) GetConfigurationSnapshotSlot(ctx context.Context, r } // getConfigurationSnapshotSlotCreateRequest creates the GetConfigurationSnapshotSlot request. -func (client *WebAppsClient) getConfigurationSnapshotSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, slot string, options *WebAppsClientGetConfigurationSnapshotSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getConfigurationSnapshotSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, slot string, _ *WebAppsClientGetConfigurationSnapshotSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8337,7 +8334,7 @@ func (client *WebAppsClient) getConfigurationSnapshotSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8355,7 +8352,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -8382,7 +8379,7 @@ func (client *WebAppsClient) GetContainerLogsZip(ctx context.Context, resourceGr } // getContainerLogsZipCreateRequest creates the GetContainerLogsZip request. -func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetContainerLogsZipOptions) (*policy.Request, error) { +func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetContainerLogsZipOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs/zip/download" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8401,7 +8398,7 @@ func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/zip"} @@ -8411,7 +8408,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -8439,7 +8436,7 @@ func (client *WebAppsClient) GetContainerLogsZipSlot(ctx context.Context, resour } // getContainerLogsZipSlotCreateRequest creates the GetContainerLogsZipSlot request. -func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetContainerLogsZipSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetContainerLogsZipSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs/zip/download" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8462,7 +8459,7 @@ func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/zip"} @@ -8472,7 +8469,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -8501,7 +8498,7 @@ func (client *WebAppsClient) GetContinuousWebJob(ctx context.Context, resourceGr } // getContinuousWebJobCreateRequest creates the GetContinuousWebJob request. -func (client *WebAppsClient) getContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientGetContinuousWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) getContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientGetContinuousWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8524,7 +8521,7 @@ func (client *WebAppsClient) getContinuousWebJobCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8542,7 +8539,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -8572,7 +8569,7 @@ func (client *WebAppsClient) GetContinuousWebJobSlot(ctx context.Context, resour } // getContinuousWebJobSlotCreateRequest creates the GetContinuousWebJobSlot request. -func (client *WebAppsClient) getContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientGetContinuousWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientGetContinuousWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8599,7 +8596,7 @@ func (client *WebAppsClient) getContinuousWebJobSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8617,7 +8614,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -8645,7 +8642,7 @@ func (client *WebAppsClient) GetDeployment(ctx context.Context, resourceGroupNam } // getDeploymentCreateRequest creates the GetDeployment request. -func (client *WebAppsClient) getDeploymentCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, options *WebAppsClientGetDeploymentOptions) (*policy.Request, error) { +func (client *WebAppsClient) getDeploymentCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, _ *WebAppsClientGetDeploymentOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8668,7 +8665,7 @@ func (client *WebAppsClient) getDeploymentCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8686,7 +8683,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -8716,7 +8713,7 @@ func (client *WebAppsClient) GetDeploymentSlot(ctx context.Context, resourceGrou } // getDeploymentSlotCreateRequest creates the GetDeploymentSlot request. -func (client *WebAppsClient) getDeploymentSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, options *WebAppsClientGetDeploymentSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getDeploymentSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, _ *WebAppsClientGetDeploymentSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8743,7 +8740,7 @@ func (client *WebAppsClient) getDeploymentSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8761,7 +8758,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -8789,7 +8786,7 @@ func (client *WebAppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, } // getDiagnosticLogsConfigurationCreateRequest creates the GetDiagnosticLogsConfiguration request. -func (client *WebAppsClient) getDiagnosticLogsConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetDiagnosticLogsConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) getDiagnosticLogsConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetDiagnosticLogsConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8808,7 +8805,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8826,7 +8823,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -8856,7 +8853,7 @@ func (client *WebAppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Cont } // getDiagnosticLogsConfigurationSlotCreateRequest creates the GetDiagnosticLogsConfigurationSlot request. -func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetDiagnosticLogsConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetDiagnosticLogsConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8879,7 +8876,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8897,7 +8894,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -8926,7 +8923,7 @@ func (client *WebAppsClient) GetDomainOwnershipIdentifier(ctx context.Context, r } // getDomainOwnershipIdentifierCreateRequest creates the GetDomainOwnershipIdentifier request. -func (client *WebAppsClient) getDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, options *WebAppsClientGetDomainOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *WebAppsClient) getDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, _ *WebAppsClientGetDomainOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -8949,7 +8946,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8967,7 +8964,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -8997,7 +8994,7 @@ func (client *WebAppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Contex } // getDomainOwnershipIdentifierSlotCreateRequest creates the GetDomainOwnershipIdentifierSlot request. -func (client *WebAppsClient) getDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, options *WebAppsClientGetDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, _ *WebAppsClientGetDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9024,7 +9021,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9042,7 +9039,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9069,7 +9066,7 @@ func (client *WebAppsClient) GetFtpAllowed(ctx context.Context, resourceGroupNam } // getFtpAllowedCreateRequest creates the GetFtpAllowed request. -func (client *WebAppsClient) getFtpAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetFtpAllowedOptions) (*policy.Request, error) { +func (client *WebAppsClient) getFtpAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetFtpAllowedOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9088,7 +9085,7 @@ func (client *WebAppsClient) getFtpAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9106,7 +9103,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -9134,7 +9131,7 @@ func (client *WebAppsClient) GetFtpAllowedSlot(ctx context.Context, resourceGrou } // getFtpAllowedSlotCreateRequest creates the GetFtpAllowedSlot request. -func (client *WebAppsClient) getFtpAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetFtpAllowedSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getFtpAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetFtpAllowedSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/ftp" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9157,7 +9154,7 @@ func (client *WebAppsClient) getFtpAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9175,7 +9172,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -9203,7 +9200,7 @@ func (client *WebAppsClient) GetFunction(ctx context.Context, resourceGroupName } // getFunctionCreateRequest creates the GetFunction request. -func (client *WebAppsClient) getFunctionCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientGetFunctionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getFunctionCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, _ *WebAppsClientGetFunctionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9226,7 +9223,7 @@ func (client *WebAppsClient) getFunctionCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9244,7 +9241,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -9272,7 +9269,7 @@ func (client *WebAppsClient) GetFunctionsAdminToken(ctx context.Context, resourc } // getFunctionsAdminTokenCreateRequest creates the GetFunctionsAdminToken request. -func (client *WebAppsClient) getFunctionsAdminTokenCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetFunctionsAdminTokenOptions) (*policy.Request, error) { +func (client *WebAppsClient) getFunctionsAdminTokenCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetFunctionsAdminTokenOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/admin/token" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9291,7 +9288,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9309,7 +9306,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9338,7 +9335,7 @@ func (client *WebAppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, res } // getFunctionsAdminTokenSlotCreateRequest creates the GetFunctionsAdminTokenSlot request. -func (client *WebAppsClient) getFunctionsAdminTokenSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetFunctionsAdminTokenSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getFunctionsAdminTokenSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetFunctionsAdminTokenSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/admin/token" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9361,7 +9358,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9379,7 +9376,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -9408,7 +9405,7 @@ func (client *WebAppsClient) GetHostNameBinding(ctx context.Context, resourceGro } // getHostNameBindingCreateRequest creates the GetHostNameBinding request. -func (client *WebAppsClient) getHostNameBindingCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, options *WebAppsClientGetHostNameBindingOptions) (*policy.Request, error) { +func (client *WebAppsClient) getHostNameBindingCreateRequest(ctx context.Context, resourceGroupName string, name string, hostName string, _ *WebAppsClientGetHostNameBindingOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9431,7 +9428,7 @@ func (client *WebAppsClient) getHostNameBindingCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9449,7 +9446,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9479,7 +9476,7 @@ func (client *WebAppsClient) GetHostNameBindingSlot(ctx context.Context, resourc } // getHostNameBindingSlotCreateRequest creates the GetHostNameBindingSlot request. -func (client *WebAppsClient) getHostNameBindingSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, hostName string, options *WebAppsClientGetHostNameBindingSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getHostNameBindingSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, hostName string, _ *WebAppsClientGetHostNameBindingSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9506,7 +9503,7 @@ func (client *WebAppsClient) getHostNameBindingSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9524,7 +9521,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9554,7 +9551,7 @@ func (client *WebAppsClient) GetHybridConnection(ctx context.Context, resourceGr } // getHybridConnectionCreateRequest creates the GetHybridConnection request. -func (client *WebAppsClient) getHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, options *WebAppsClientGetHybridConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, _ *WebAppsClientGetHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9581,7 +9578,7 @@ func (client *WebAppsClient) getHybridConnectionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9599,7 +9596,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9630,7 +9627,7 @@ func (client *WebAppsClient) GetHybridConnectionSlot(ctx context.Context, resour } // getHybridConnectionSlotCreateRequest creates the GetHybridConnectionSlot request. -func (client *WebAppsClient) getHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, options *WebAppsClientGetHybridConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, _ *WebAppsClientGetHybridConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9661,7 +9658,7 @@ func (client *WebAppsClient) getHybridConnectionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9679,7 +9676,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -9709,7 +9706,7 @@ func (client *WebAppsClient) GetInstanceFunctionSlot(ctx context.Context, resour } // getInstanceFunctionSlotCreateRequest creates the GetInstanceFunctionSlot request. -func (client *WebAppsClient) getInstanceFunctionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientGetInstanceFunctionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceFunctionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, _ *WebAppsClientGetInstanceFunctionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9736,7 +9733,7 @@ func (client *WebAppsClient) getInstanceFunctionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9754,7 +9751,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9781,7 +9778,7 @@ func (client *WebAppsClient) GetInstanceInfo(ctx context.Context, resourceGroupN } // getInstanceInfoCreateRequest creates the GetInstanceInfo request. -func (client *WebAppsClient) getInstanceInfoCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientGetInstanceInfoOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceInfoCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, _ *WebAppsClientGetInstanceInfoOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9804,7 +9801,7 @@ func (client *WebAppsClient) getInstanceInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9822,7 +9819,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9851,7 +9848,7 @@ func (client *WebAppsClient) GetInstanceInfoSlot(ctx context.Context, resourceGr } // getInstanceInfoSlotCreateRequest creates the GetInstanceInfoSlot request. -func (client *WebAppsClient) getInstanceInfoSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, slot string, options *WebAppsClientGetInstanceInfoSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceInfoSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, slot string, _ *WebAppsClientGetInstanceInfoSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9878,7 +9875,7 @@ func (client *WebAppsClient) getInstanceInfoSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9896,7 +9893,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - instanceID - ID of web app instance. @@ -9925,7 +9922,7 @@ func (client *WebAppsClient) GetInstanceMSDeployLog(ctx context.Context, resourc } // getInstanceMSDeployLogCreateRequest creates the GetInstanceMSDeployLog request. -func (client *WebAppsClient) getInstanceMSDeployLogCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientGetInstanceMSDeployLogOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceMSDeployLogCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, _ *WebAppsClientGetInstanceMSDeployLogOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy/log" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -9948,7 +9945,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9966,7 +9963,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -9996,7 +9993,7 @@ func (client *WebAppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, res } // getInstanceMSDeployLogSlotCreateRequest creates the GetInstanceMSDeployLogSlot request. -func (client *WebAppsClient) getInstanceMSDeployLogSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, options *WebAppsClientGetInstanceMSDeployLogSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceMSDeployLogSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, _ *WebAppsClientGetInstanceMSDeployLogSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy/log" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10023,7 +10020,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10041,7 +10038,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - instanceID - ID of web app instance. @@ -10070,7 +10067,7 @@ func (client *WebAppsClient) GetInstanceMsDeployStatus(ctx context.Context, reso } // getInstanceMsDeployStatusCreateRequest creates the GetInstanceMsDeployStatus request. -func (client *WebAppsClient) getInstanceMsDeployStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientGetInstanceMsDeployStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceMsDeployStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, _ *WebAppsClientGetInstanceMsDeployStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10093,7 +10090,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10111,7 +10108,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -10141,7 +10138,7 @@ func (client *WebAppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, } // getInstanceMsDeployStatusSlotCreateRequest creates the GetInstanceMsDeployStatusSlot request. -func (client *WebAppsClient) getInstanceMsDeployStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, options *WebAppsClientGetInstanceMsDeployStatusSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceMsDeployStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, _ *WebAppsClientGetInstanceMsDeployStatusSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10168,7 +10165,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10186,7 +10183,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10217,7 +10214,7 @@ func (client *WebAppsClient) GetInstanceProcess(ctx context.Context, resourceGro } // getInstanceProcessCreateRequest creates the GetInstanceProcess request. -func (client *WebAppsClient) getInstanceProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientGetInstanceProcessOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, _ *WebAppsClientGetInstanceProcessOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10244,7 +10241,7 @@ func (client *WebAppsClient) getInstanceProcessCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10263,7 +10260,7 @@ func (client *WebAppsClient) getInstanceProcessHandleResponse(resp *http.Respons // a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10293,7 +10290,7 @@ func (client *WebAppsClient) GetInstanceProcessDump(ctx context.Context, resourc } // getInstanceProcessDumpCreateRequest creates the GetInstanceProcessDump request. -func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientGetInstanceProcessDumpOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, _ *WebAppsClientGetInstanceProcessDumpOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/dump" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10320,7 +10317,7 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -10331,7 +10328,7 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con // in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10362,7 +10359,7 @@ func (client *WebAppsClient) GetInstanceProcessDumpSlot(ctx context.Context, res } // getInstanceProcessDumpSlotCreateRequest creates the GetInstanceProcessDumpSlot request. -func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientGetInstanceProcessDumpSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, _ *WebAppsClientGetInstanceProcessDumpSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/dump" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10393,7 +10390,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -10404,7 +10401,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10436,7 +10433,7 @@ func (client *WebAppsClient) GetInstanceProcessModule(ctx context.Context, resou } // getInstanceProcessModuleCreateRequest creates the GetInstanceProcessModule request. -func (client *WebAppsClient) getInstanceProcessModuleCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, instanceID string, options *WebAppsClientGetInstanceProcessModuleOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceProcessModuleCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, instanceID string, _ *WebAppsClientGetInstanceProcessModuleOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10467,7 +10464,7 @@ func (client *WebAppsClient) getInstanceProcessModuleCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10486,7 +10483,7 @@ func (client *WebAppsClient) getInstanceProcessModuleHandleResponse(resp *http.R // a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10519,7 +10516,7 @@ func (client *WebAppsClient) GetInstanceProcessModuleSlot(ctx context.Context, r } // getInstanceProcessModuleSlotCreateRequest creates the GetInstanceProcessModuleSlot request. -func (client *WebAppsClient) getInstanceProcessModuleSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, slot string, instanceID string, options *WebAppsClientGetInstanceProcessModuleSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceProcessModuleSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, slot string, instanceID string, _ *WebAppsClientGetInstanceProcessModuleSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10554,7 +10551,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10573,7 +10570,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotHandleResponse(resp *ht // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10605,7 +10602,7 @@ func (client *WebAppsClient) GetInstanceProcessSlot(ctx context.Context, resourc } // getInstanceProcessSlotCreateRequest creates the GetInstanceProcessSlot request. -func (client *WebAppsClient) getInstanceProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientGetInstanceProcessSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getInstanceProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, _ *WebAppsClientGetInstanceProcessSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10636,7 +10633,7 @@ func (client *WebAppsClient) getInstanceProcessSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10654,7 +10651,7 @@ func (client *WebAppsClient) getInstanceProcessSlotHandleResponse(resp *http.Res // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -10684,7 +10681,7 @@ func (client *WebAppsClient) GetInstanceWorkflowSlot(ctx context.Context, resour } // 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) { +func (client *WebAppsClient) getInstanceWorkflowSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, workflowName string, _ *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") @@ -10711,7 +10708,7 @@ func (client *WebAppsClient) getInstanceWorkflowSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10729,7 +10726,7 @@ func (client *WebAppsClient) getInstanceWorkflowSlotHandleResponse(resp *http.Re // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -10756,7 +10753,7 @@ func (client *WebAppsClient) GetMSDeployLog(ctx context.Context, resourceGroupNa } // getMSDeployLogCreateRequest creates the GetMSDeployLog request. -func (client *WebAppsClient) getMSDeployLogCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetMSDeployLogOptions) (*policy.Request, error) { +func (client *WebAppsClient) getMSDeployLogCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetMSDeployLogOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy/log" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10775,7 +10772,7 @@ func (client *WebAppsClient) getMSDeployLogCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10793,7 +10790,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -10822,7 +10819,7 @@ func (client *WebAppsClient) GetMSDeployLogSlot(ctx context.Context, resourceGro } // getMSDeployLogSlotCreateRequest creates the GetMSDeployLogSlot request. -func (client *WebAppsClient) getMSDeployLogSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetMSDeployLogSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getMSDeployLogSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetMSDeployLogSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy/log" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10845,7 +10842,7 @@ func (client *WebAppsClient) getMSDeployLogSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10863,7 +10860,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -10891,7 +10888,7 @@ func (client *WebAppsClient) GetMSDeployStatus(ctx context.Context, resourceGrou } // getMSDeployStatusCreateRequest creates the GetMSDeployStatus request. -func (client *WebAppsClient) getMSDeployStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetMSDeployStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) getMSDeployStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetMSDeployStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10910,7 +10907,7 @@ func (client *WebAppsClient) getMSDeployStatusCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10928,7 +10925,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -10957,7 +10954,7 @@ func (client *WebAppsClient) GetMSDeployStatusSlot(ctx context.Context, resource } // getMSDeployStatusSlotCreateRequest creates the GetMSDeployStatusSlot request. -func (client *WebAppsClient) getMSDeployStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetMSDeployStatusSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getMSDeployStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetMSDeployStatusSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -10980,7 +10977,7 @@ func (client *WebAppsClient) getMSDeployStatusSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10999,7 +10996,7 @@ func (client *WebAppsClient) getMSDeployStatusSlotHandleResponse(resp *http.Resp // not MySql in app is enabled // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -11027,7 +11024,7 @@ func (client *WebAppsClient) GetMigrateMySQLStatus(ctx context.Context, resource } // getMigrateMySQLStatusCreateRequest creates the GetMigrateMySQLStatus request. -func (client *WebAppsClient) getMigrateMySQLStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetMigrateMySQLStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) getMigrateMySQLStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetMigrateMySQLStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11046,7 +11043,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11065,7 +11062,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusHandleResponse(resp *http.Resp // or not MySql in app is enabled // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of the deployment slot. @@ -11094,7 +11091,7 @@ func (client *WebAppsClient) GetMigrateMySQLStatusSlot(ctx context.Context, reso } // getMigrateMySQLStatusSlotCreateRequest creates the GetMigrateMySQLStatusSlot request. -func (client *WebAppsClient) getMigrateMySQLStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetMigrateMySQLStatusSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getMigrateMySQLStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetMigrateMySQLStatusSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11117,7 +11114,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11136,7 +11133,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotHandleResponse(resp *http. // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11165,7 +11162,7 @@ func (client *WebAppsClient) GetNetworkTraceOperation(ctx context.Context, resou } // getNetworkTraceOperationCreateRequest creates the GetNetworkTraceOperation request. -func (client *WebAppsClient) getNetworkTraceOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTraceOperationOptions) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTraceOperationCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, _ *WebAppsClientGetNetworkTraceOperationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/operationresults/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11188,7 +11185,7 @@ func (client *WebAppsClient) getNetworkTraceOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11207,7 +11204,7 @@ func (client *WebAppsClient) getNetworkTraceOperationHandleResponse(resp *http.R // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11237,7 +11234,7 @@ func (client *WebAppsClient) GetNetworkTraceOperationSlot(ctx context.Context, r } // getNetworkTraceOperationSlotCreateRequest creates the GetNetworkTraceOperationSlot request. -func (client *WebAppsClient) getNetworkTraceOperationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTraceOperationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTraceOperationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, _ *WebAppsClientGetNetworkTraceOperationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/operationresults/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11264,7 +11261,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11283,7 +11280,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotHandleResponse(resp *ht // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11313,7 +11310,7 @@ func (client *WebAppsClient) GetNetworkTraceOperationSlotV2(ctx context.Context, } // getNetworkTraceOperationSlotV2CreateRequest creates the GetNetworkTraceOperationSlotV2 request. -func (client *WebAppsClient) getNetworkTraceOperationSlotV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTraceOperationSlotV2Options) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTraceOperationSlotV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, _ *WebAppsClientGetNetworkTraceOperationSlotV2Options) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/current/operationresults/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11340,7 +11337,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2CreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11359,7 +11356,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2HandleResponse(resp * // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11388,7 +11385,7 @@ func (client *WebAppsClient) GetNetworkTraceOperationV2(ctx context.Context, res } // getNetworkTraceOperationV2CreateRequest creates the GetNetworkTraceOperationV2 request. -func (client *WebAppsClient) getNetworkTraceOperationV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTraceOperationV2Options) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTraceOperationV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, _ *WebAppsClientGetNetworkTraceOperationV2Options) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/current/operationresults/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11411,7 +11408,7 @@ func (client *WebAppsClient) getNetworkTraceOperationV2CreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11429,7 +11426,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11458,7 +11455,7 @@ func (client *WebAppsClient) GetNetworkTraces(ctx context.Context, resourceGroup } // getNetworkTracesCreateRequest creates the GetNetworkTraces request. -func (client *WebAppsClient) getNetworkTracesCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTracesOptions) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTracesCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, _ *WebAppsClientGetNetworkTracesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11481,7 +11478,7 @@ func (client *WebAppsClient) getNetworkTracesCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11499,7 +11496,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11529,7 +11526,7 @@ func (client *WebAppsClient) GetNetworkTracesSlot(ctx context.Context, resourceG } // getNetworkTracesSlotCreateRequest creates the GetNetworkTracesSlot request. -func (client *WebAppsClient) getNetworkTracesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTracesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTracesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, _ *WebAppsClientGetNetworkTracesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11556,7 +11553,7 @@ func (client *WebAppsClient) getNetworkTracesSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11574,7 +11571,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11604,7 +11601,7 @@ func (client *WebAppsClient) GetNetworkTracesSlotV2(ctx context.Context, resourc } // getNetworkTracesSlotV2CreateRequest creates the GetNetworkTracesSlotV2 request. -func (client *WebAppsClient) getNetworkTracesSlotV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, options *WebAppsClientGetNetworkTracesSlotV2Options) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTracesSlotV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, slot string, _ *WebAppsClientGetNetworkTracesSlotV2Options) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11631,7 +11628,7 @@ func (client *WebAppsClient) getNetworkTracesSlotV2CreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11649,7 +11646,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11678,7 +11675,7 @@ func (client *WebAppsClient) GetNetworkTracesV2(ctx context.Context, resourceGro } // getNetworkTracesV2CreateRequest creates the GetNetworkTracesV2 request. -func (client *WebAppsClient) getNetworkTracesV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, options *WebAppsClientGetNetworkTracesV2Options) (*policy.Request, error) { +func (client *WebAppsClient) getNetworkTracesV2CreateRequest(ctx context.Context, resourceGroupName string, name string, operationID string, _ *WebAppsClientGetNetworkTracesV2Options) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/{operationId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11701,7 +11698,7 @@ func (client *WebAppsClient) getNetworkTracesV2CreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11720,7 +11717,7 @@ func (client *WebAppsClient) getNetworkTracesV2HandleResponse(resp *http.Respons // site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -11748,7 +11745,7 @@ func (client *WebAppsClient) GetOneDeployStatus(ctx context.Context, resourceGro } // getOneDeployStatusCreateRequest creates the GetOneDeployStatus request. -func (client *WebAppsClient) getOneDeployStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetOneDeployStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) getOneDeployStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetOneDeployStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/onedeploy" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11767,7 +11764,7 @@ func (client *WebAppsClient) getOneDeployStatusCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11785,7 +11782,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -11813,7 +11810,7 @@ func (client *WebAppsClient) GetPremierAddOn(ctx context.Context, resourceGroupN } // getPremierAddOnCreateRequest creates the GetPremierAddOn request. -func (client *WebAppsClient) getPremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, options *WebAppsClientGetPremierAddOnOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, _ *WebAppsClientGetPremierAddOnOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11836,7 +11833,7 @@ func (client *WebAppsClient) getPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11854,7 +11851,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -11884,7 +11881,7 @@ func (client *WebAppsClient) GetPremierAddOnSlot(ctx context.Context, resourceGr } // getPremierAddOnSlotCreateRequest creates the GetPremierAddOnSlot request. -func (client *WebAppsClient) getPremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, options *WebAppsClientGetPremierAddOnSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, _ *WebAppsClientGetPremierAddOnSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11911,7 +11908,7 @@ func (client *WebAppsClient) getPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11930,7 +11927,7 @@ func (client *WebAppsClient) getPremierAddOnSlotHandleResponse(resp *http.Respon // can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -11958,7 +11955,7 @@ func (client *WebAppsClient) GetPrivateAccess(ctx context.Context, resourceGroup } // getPrivateAccessCreateRequest creates the GetPrivateAccess request. -func (client *WebAppsClient) getPrivateAccessCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetPrivateAccessOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateAccessCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetPrivateAccessOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -11977,7 +11974,7 @@ func (client *WebAppsClient) getPrivateAccessCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11996,7 +11993,7 @@ func (client *WebAppsClient) getPrivateAccessHandleResponse(resp *http.Response) // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -12025,7 +12022,7 @@ func (client *WebAppsClient) GetPrivateAccessSlot(ctx context.Context, resourceG } // getPrivateAccessSlotCreateRequest creates the GetPrivateAccessSlot request. -func (client *WebAppsClient) getPrivateAccessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetPrivateAccessSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateAccessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetPrivateAccessSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateAccess/virtualNetworks" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12048,7 +12045,7 @@ func (client *WebAppsClient) getPrivateAccessSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12066,7 +12063,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -12095,7 +12092,7 @@ func (client *WebAppsClient) GetPrivateEndpointConnection(ctx context.Context, r } // getPrivateEndpointConnectionCreateRequest creates the GetPrivateEndpointConnection request. -func (client *WebAppsClient) getPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, options *WebAppsClientGetPrivateEndpointConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateEndpointConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, _ *WebAppsClientGetPrivateEndpointConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12118,7 +12115,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12136,7 +12133,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionHandleResponse(resp *ht // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoint connections associated with // a site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -12165,7 +12162,7 @@ func (client *WebAppsClient) NewGetPrivateEndpointConnectionListPager(resourceGr } // getPrivateEndpointConnectionListCreateRequest creates the GetPrivateEndpointConnectionList request. -func (client *WebAppsClient) getPrivateEndpointConnectionListCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetPrivateEndpointConnectionListOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateEndpointConnectionListCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetPrivateEndpointConnectionListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12184,7 +12181,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12202,7 +12199,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListHandleResponse(resp // NewGetPrivateEndpointConnectionListSlotPager - Description for Gets the list of private endpoint connections associated // with a site // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - slot - Name of the site deployment slot. @@ -12232,7 +12229,7 @@ func (client *WebAppsClient) NewGetPrivateEndpointConnectionListSlotPager(resour } // getPrivateEndpointConnectionListSlotCreateRequest creates the GetPrivateEndpointConnectionListSlot request. -func (client *WebAppsClient) getPrivateEndpointConnectionListSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetPrivateEndpointConnectionListSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateEndpointConnectionListSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetPrivateEndpointConnectionListSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateEndpointConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12255,7 +12252,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12273,7 +12270,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -12303,7 +12300,7 @@ func (client *WebAppsClient) GetPrivateEndpointConnectionSlot(ctx context.Contex } // getPrivateEndpointConnectionSlotCreateRequest creates the GetPrivateEndpointConnectionSlot request. -func (client *WebAppsClient) getPrivateEndpointConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, options *WebAppsClientGetPrivateEndpointConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateEndpointConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, privateEndpointConnectionName string, slot string, _ *WebAppsClientGetPrivateEndpointConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateEndpointConnections/{privateEndpointConnectionName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12330,7 +12327,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12348,7 +12345,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -12376,7 +12373,7 @@ func (client *WebAppsClient) GetPrivateLinkResources(ctx context.Context, resour } // getPrivateLinkResourcesCreateRequest creates the GetPrivateLinkResources request. -func (client *WebAppsClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetPrivateLinkResourcesOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetPrivateLinkResourcesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateLinkResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12395,7 +12392,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12413,7 +12410,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -12441,7 +12438,7 @@ func (client *WebAppsClient) GetPrivateLinkResourcesSlot(ctx context.Context, re } // getPrivateLinkResourcesSlotCreateRequest creates the GetPrivateLinkResourcesSlot request. -func (client *WebAppsClient) getPrivateLinkResourcesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetPrivateLinkResourcesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPrivateLinkResourcesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetPrivateLinkResourcesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateLinkResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12464,7 +12461,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12482,7 +12479,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12510,7 +12507,7 @@ func (client *WebAppsClient) GetProcess(ctx context.Context, resourceGroupName s } // getProcessCreateRequest creates the GetProcess request. -func (client *WebAppsClient) getProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientGetProcessOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProcessCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, _ *WebAppsClientGetProcessOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12533,7 +12530,7 @@ func (client *WebAppsClient) getProcessCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12551,7 +12548,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12578,7 +12575,7 @@ func (client *WebAppsClient) GetProcessDump(ctx context.Context, resourceGroupNa } // getProcessDumpCreateRequest creates the GetProcessDump request. -func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientGetProcessDumpOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, _ *WebAppsClientGetProcessDumpOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/dump" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12601,7 +12598,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -12612,7 +12609,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12641,7 +12638,7 @@ func (client *WebAppsClient) GetProcessDumpSlot(ctx context.Context, resourceGro } // getProcessDumpSlotCreateRequest creates the GetProcessDumpSlot request. -func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientGetProcessDumpSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, _ *WebAppsClientGetProcessDumpSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/dump" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12668,7 +12665,7 @@ func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -12678,7 +12675,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12708,7 +12705,7 @@ func (client *WebAppsClient) GetProcessModule(ctx context.Context, resourceGroup } // getProcessModuleCreateRequest creates the GetProcessModule request. -func (client *WebAppsClient) getProcessModuleCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, options *WebAppsClientGetProcessModuleOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProcessModuleCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, _ *WebAppsClientGetProcessModuleOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules/{baseAddress}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12735,7 +12732,7 @@ func (client *WebAppsClient) getProcessModuleCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12753,7 +12750,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12784,7 +12781,7 @@ func (client *WebAppsClient) GetProcessModuleSlot(ctx context.Context, resourceG } // getProcessModuleSlotCreateRequest creates the GetProcessModuleSlot request. -func (client *WebAppsClient) getProcessModuleSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, slot string, options *WebAppsClientGetProcessModuleSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProcessModuleSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, baseAddress string, slot string, _ *WebAppsClientGetProcessModuleSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules/{baseAddress}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12815,7 +12812,7 @@ func (client *WebAppsClient) getProcessModuleSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12833,7 +12830,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12862,7 +12859,7 @@ func (client *WebAppsClient) GetProcessSlot(ctx context.Context, resourceGroupNa } // getProcessSlotCreateRequest creates the GetProcessSlot request. -func (client *WebAppsClient) getProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientGetProcessSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProcessSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, _ *WebAppsClientGetProcessSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -12889,7 +12886,7 @@ func (client *WebAppsClient) getProcessSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12907,7 +12904,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - deploymentStatusID - GUID of the deployment operation. @@ -12933,7 +12930,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) getProductionSiteDeploymentStatus(ctx context.Context, resourceGroupName string, name string, deploymentStatusID string, options *WebAppsClientBeginGetProductionSiteDeploymentStatusOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginGetProductionSiteDeploymentStatus" @@ -12956,7 +12953,7 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatus(ctx context.Conte } // getProductionSiteDeploymentStatusCreateRequest creates the GetProductionSiteDeploymentStatus request. -func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, deploymentStatusID string, options *WebAppsClientBeginGetProductionSiteDeploymentStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, deploymentStatusID string, _ *WebAppsClientBeginGetProductionSiteDeploymentStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deploymentStatus/{deploymentStatusId}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -12979,7 +12976,7 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12988,7 +12985,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -13017,7 +13014,7 @@ func (client *WebAppsClient) GetPublicCertificate(ctx context.Context, resourceG } // getPublicCertificateCreateRequest creates the GetPublicCertificate request. -func (client *WebAppsClient) getPublicCertificateCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, options *WebAppsClientGetPublicCertificateOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPublicCertificateCreateRequest(ctx context.Context, resourceGroupName string, name string, publicCertificateName string, _ *WebAppsClientGetPublicCertificateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13040,7 +13037,7 @@ func (client *WebAppsClient) getPublicCertificateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13058,7 +13055,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -13088,7 +13085,7 @@ func (client *WebAppsClient) GetPublicCertificateSlot(ctx context.Context, resou } // getPublicCertificateSlotCreateRequest creates the GetPublicCertificateSlot request. -func (client *WebAppsClient) getPublicCertificateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, publicCertificateName string, options *WebAppsClientGetPublicCertificateSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getPublicCertificateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, publicCertificateName string, _ *WebAppsClientGetPublicCertificateSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13115,7 +13112,7 @@ func (client *WebAppsClient) getPublicCertificateSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13133,7 +13130,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection. @@ -13162,7 +13159,7 @@ func (client *WebAppsClient) GetRelayServiceConnection(ctx context.Context, reso } // getRelayServiceConnectionCreateRequest creates the GetRelayServiceConnection request. -func (client *WebAppsClient) getRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, options *WebAppsClientGetRelayServiceConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, _ *WebAppsClientGetRelayServiceConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13185,7 +13182,7 @@ func (client *WebAppsClient) getRelayServiceConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13203,7 +13200,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection. @@ -13234,7 +13231,7 @@ func (client *WebAppsClient) GetRelayServiceConnectionSlot(ctx context.Context, } // getRelayServiceConnectionSlotCreateRequest creates the GetRelayServiceConnectionSlot request. -func (client *WebAppsClient) getRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, options *WebAppsClientGetRelayServiceConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, _ *WebAppsClientGetRelayServiceConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13261,7 +13258,7 @@ func (client *WebAppsClient) getRelayServiceConnectionSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13279,7 +13276,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -13306,7 +13303,7 @@ func (client *WebAppsClient) GetScmAllowed(ctx context.Context, resourceGroupNam } // getScmAllowedCreateRequest creates the GetScmAllowed request. -func (client *WebAppsClient) getScmAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetScmAllowedOptions) (*policy.Request, error) { +func (client *WebAppsClient) getScmAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetScmAllowedOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13325,7 +13322,7 @@ func (client *WebAppsClient) getScmAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13343,7 +13340,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -13371,7 +13368,7 @@ func (client *WebAppsClient) GetScmAllowedSlot(ctx context.Context, resourceGrou } // getScmAllowedSlotCreateRequest creates the GetScmAllowedSlot request. -func (client *WebAppsClient) getScmAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetScmAllowedSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getScmAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetScmAllowedSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/scm" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13394,7 +13391,7 @@ func (client *WebAppsClient) getScmAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13412,7 +13409,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -13440,7 +13437,7 @@ func (client *WebAppsClient) GetSiteConnectionStringKeyVaultReference(ctx contex } // getSiteConnectionStringKeyVaultReferenceCreateRequest creates the GetSiteConnectionStringKeyVaultReference request. -func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionStringKey string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferenceOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionStringKey string, _ *WebAppsClientGetSiteConnectionStringKeyVaultReferenceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/connectionstrings/{connectionStringKey}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13463,7 +13460,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13481,7 +13478,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -13509,7 +13506,7 @@ func (client *WebAppsClient) GetSiteConnectionStringKeyVaultReferenceSlot(ctx co } // getSiteConnectionStringKeyVaultReferenceSlotCreateRequest creates the GetSiteConnectionStringKeyVaultReferenceSlot request. -func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionStringKey string, slot string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionStringKey string, slot string, _ *WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/configreferences/connectionstrings/{connectionStringKey}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13536,7 +13533,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13554,7 +13551,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotHandleR // NewGetSiteConnectionStringKeyVaultReferencesPager - Description for Gets the config reference app settings and status of // an app // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -13583,7 +13580,7 @@ func (client *WebAppsClient) NewGetSiteConnectionStringKeyVaultReferencesPager(r } // getSiteConnectionStringKeyVaultReferencesCreateRequest creates the GetSiteConnectionStringKeyVaultReferences request. -func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/connectionstrings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13602,7 +13599,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13620,7 +13617,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesHandleResp // NewGetSiteConnectionStringKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status // of an app // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -13649,7 +13646,7 @@ func (client *WebAppsClient) NewGetSiteConnectionStringKeyVaultReferencesSlotPag } // getSiteConnectionStringKeyVaultReferencesSlotCreateRequest creates the GetSiteConnectionStringKeyVaultReferencesSlot request. -func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/configreferences/connectionstrings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13672,7 +13669,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13690,7 +13687,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotHandle // GetSiteContainer - Gets a site container of a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - containerName - Site Container Name @@ -13719,7 +13716,7 @@ func (client *WebAppsClient) GetSiteContainer(ctx context.Context, resourceGroup } // getSiteContainerCreateRequest creates the GetSiteContainer request. -func (client *WebAppsClient) getSiteContainerCreateRequest(ctx context.Context, resourceGroupName string, name string, containerName string, options *WebAppsClientGetSiteContainerOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteContainerCreateRequest(ctx context.Context, resourceGroupName string, name string, containerName string, _ *WebAppsClientGetSiteContainerOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sitecontainers/{containerName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13742,7 +13739,7 @@ func (client *WebAppsClient) getSiteContainerCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13760,7 +13757,7 @@ func (client *WebAppsClient) getSiteContainerHandleResponse(resp *http.Response) // GetSiteContainerSlot - Gets a site container of a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 Site Container for the production @@ -13791,7 +13788,7 @@ func (client *WebAppsClient) GetSiteContainerSlot(ctx context.Context, resourceG } // getSiteContainerSlotCreateRequest creates the GetSiteContainerSlot request. -func (client *WebAppsClient) getSiteContainerSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, containerName string, options *WebAppsClientGetSiteContainerSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteContainerSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, containerName string, _ *WebAppsClientGetSiteContainerSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sitecontainers/{containerName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13818,7 +13815,7 @@ func (client *WebAppsClient) getSiteContainerSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13836,7 +13833,7 @@ func (client *WebAppsClient) getSiteContainerSlotHandleResponse(resp *http.Respo // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -13865,7 +13862,7 @@ func (client *WebAppsClient) GetSiteExtension(ctx context.Context, resourceGroup } // getSiteExtensionCreateRequest creates the GetSiteExtension request. -func (client *WebAppsClient) getSiteExtensionCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientGetSiteExtensionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteExtensionCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, _ *WebAppsClientGetSiteExtensionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13888,7 +13885,7 @@ func (client *WebAppsClient) getSiteExtensionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13906,7 +13903,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -13936,7 +13933,7 @@ func (client *WebAppsClient) GetSiteExtensionSlot(ctx context.Context, resourceG } // getSiteExtensionSlotCreateRequest creates the GetSiteExtensionSlot request. -func (client *WebAppsClient) getSiteExtensionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientGetSiteExtensionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSiteExtensionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, _ *WebAppsClientGetSiteExtensionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -13963,7 +13960,7 @@ func (client *WebAppsClient) getSiteExtensionSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13981,7 +13978,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -14009,7 +14006,7 @@ func (client *WebAppsClient) GetSitePhpErrorLogFlag(ctx context.Context, resourc } // getSitePhpErrorLogFlagCreateRequest creates the GetSitePhpErrorLogFlag request. -func (client *WebAppsClient) getSitePhpErrorLogFlagCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSitePhpErrorLogFlagOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSitePhpErrorLogFlagCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetSitePhpErrorLogFlagOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/phplogging" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14028,7 +14025,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14046,7 +14043,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -14075,7 +14072,7 @@ func (client *WebAppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, res } // getSitePhpErrorLogFlagSlotCreateRequest creates the GetSitePhpErrorLogFlagSlot request. -func (client *WebAppsClient) getSitePhpErrorLogFlagSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSitePhpErrorLogFlagSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSitePhpErrorLogFlagSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetSitePhpErrorLogFlagSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/phplogging" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14098,7 +14095,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14116,7 +14113,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -14144,7 +14141,7 @@ func (client *WebAppsClient) GetSlot(ctx context.Context, resourceGroupName stri } // getSlotCreateRequest creates the GetSlot request. -func (client *WebAppsClient) getSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14167,7 +14164,7 @@ func (client *WebAppsClient) getSlotCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14185,7 +14182,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -14213,7 +14210,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) getSlotSiteDeploymentStatusSlot(ctx context.Context, resourceGroupName string, name string, slot string, deploymentStatusID string, options *WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginGetSlotSiteDeploymentStatusSlot" @@ -14236,7 +14233,7 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlot(ctx context.Context } // getSlotSiteDeploymentStatusSlotCreateRequest creates the GetSlotSiteDeploymentStatusSlot request. -func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, deploymentStatusID string, options *WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, deploymentStatusID string, _ *WebAppsClientBeginGetSlotSiteDeploymentStatusSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deploymentStatus/{deploymentStatusId}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -14263,7 +14260,7 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14272,7 +14269,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -14300,7 +14297,7 @@ func (client *WebAppsClient) GetSourceControl(ctx context.Context, resourceGroup } // getSourceControlCreateRequest creates the GetSourceControl request. -func (client *WebAppsClient) getSourceControlCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSourceControlOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSourceControlCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetSourceControlOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14319,7 +14316,7 @@ func (client *WebAppsClient) getSourceControlCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14337,7 +14334,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -14367,7 +14364,7 @@ func (client *WebAppsClient) GetSourceControlSlot(ctx context.Context, resourceG } // getSourceControlSlotCreateRequest creates the GetSourceControlSlot request. -func (client *WebAppsClient) getSourceControlSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSourceControlSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSourceControlSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetSourceControlSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14390,7 +14387,7 @@ func (client *WebAppsClient) getSourceControlSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14408,7 +14405,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -14436,7 +14433,7 @@ func (client *WebAppsClient) GetSwiftVirtualNetworkConnection(ctx context.Contex } // getSwiftVirtualNetworkConnectionCreateRequest creates the GetSwiftVirtualNetworkConnection request. -func (client *WebAppsClient) getSwiftVirtualNetworkConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetSwiftVirtualNetworkConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSwiftVirtualNetworkConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetSwiftVirtualNetworkConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14455,7 +14452,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14473,7 +14470,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -14503,7 +14500,7 @@ func (client *WebAppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Co } // getSwiftVirtualNetworkConnectionSlotCreateRequest creates the GetSwiftVirtualNetworkConnectionSlot request. -func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetSwiftVirtualNetworkConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetSwiftVirtualNetworkConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14526,7 +14523,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14544,7 +14541,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14573,7 +14570,7 @@ func (client *WebAppsClient) GetTriggeredWebJob(ctx context.Context, resourceGro } // getTriggeredWebJobCreateRequest creates the GetTriggeredWebJob request. -func (client *WebAppsClient) getTriggeredWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientGetTriggeredWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) getTriggeredWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientGetTriggeredWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14596,7 +14593,7 @@ func (client *WebAppsClient) getTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14615,7 +14612,7 @@ func (client *WebAppsClient) getTriggeredWebJobHandleResponse(resp *http.Respons // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14645,7 +14642,7 @@ func (client *WebAppsClient) GetTriggeredWebJobHistory(ctx context.Context, reso } // getTriggeredWebJobHistoryCreateRequest creates the GetTriggeredWebJobHistory request. -func (client *WebAppsClient) getTriggeredWebJobHistoryCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, id string, options *WebAppsClientGetTriggeredWebJobHistoryOptions) (*policy.Request, error) { +func (client *WebAppsClient) getTriggeredWebJobHistoryCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, id string, _ *WebAppsClientGetTriggeredWebJobHistoryOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14672,7 +14669,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14691,7 +14688,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryHandleResponse(resp *http. // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14722,7 +14719,7 @@ func (client *WebAppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, } // getTriggeredWebJobHistorySlotCreateRequest creates the GetTriggeredWebJobHistorySlot request. -func (client *WebAppsClient) getTriggeredWebJobHistorySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, id string, slot string, options *WebAppsClientGetTriggeredWebJobHistorySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getTriggeredWebJobHistorySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, id string, slot string, _ *WebAppsClientGetTriggeredWebJobHistorySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history/{id}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14753,7 +14750,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistorySlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14771,7 +14768,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14801,7 +14798,7 @@ func (client *WebAppsClient) GetTriggeredWebJobSlot(ctx context.Context, resourc } // getTriggeredWebJobSlotCreateRequest creates the GetTriggeredWebJobSlot request. -func (client *WebAppsClient) getTriggeredWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientGetTriggeredWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getTriggeredWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientGetTriggeredWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14828,7 +14825,7 @@ func (client *WebAppsClient) getTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14846,7 +14843,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -14875,7 +14872,7 @@ func (client *WebAppsClient) GetVnetConnection(ctx context.Context, resourceGrou } // getVnetConnectionCreateRequest creates the GetVnetConnection request. -func (client *WebAppsClient) getVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, options *WebAppsClientGetVnetConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) getVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, _ *WebAppsClientGetVnetConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14898,7 +14895,7 @@ func (client *WebAppsClient) getVnetConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14916,7 +14913,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -14946,7 +14943,7 @@ func (client *WebAppsClient) GetVnetConnectionGateway(ctx context.Context, resou } // getVnetConnectionGatewayCreateRequest creates the GetVnetConnectionGateway request. -func (client *WebAppsClient) getVnetConnectionGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, options *WebAppsClientGetVnetConnectionGatewayOptions) (*policy.Request, error) { +func (client *WebAppsClient) getVnetConnectionGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, _ *WebAppsClientGetVnetConnectionGatewayOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -14973,7 +14970,7 @@ func (client *WebAppsClient) getVnetConnectionGatewayCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14991,7 +14988,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -15023,7 +15020,7 @@ func (client *WebAppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, r } // getVnetConnectionGatewaySlotCreateRequest creates the GetVnetConnectionGatewaySlot request. -func (client *WebAppsClient) getVnetConnectionGatewaySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, options *WebAppsClientGetVnetConnectionGatewaySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getVnetConnectionGatewaySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, _ *WebAppsClientGetVnetConnectionGatewaySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15054,7 +15051,7 @@ func (client *WebAppsClient) getVnetConnectionGatewaySlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15072,7 +15069,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -15103,7 +15100,7 @@ func (client *WebAppsClient) GetVnetConnectionSlot(ctx context.Context, resource } // getVnetConnectionSlotCreateRequest creates the GetVnetConnectionSlot request. -func (client *WebAppsClient) getVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, options *WebAppsClientGetVnetConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, _ *WebAppsClientGetVnetConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15130,7 +15127,7 @@ func (client *WebAppsClient) getVnetConnectionSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15148,7 +15145,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of the web job. @@ -15176,7 +15173,7 @@ func (client *WebAppsClient) GetWebJob(ctx context.Context, resourceGroupName st } // getWebJobCreateRequest creates the GetWebJob request. -func (client *WebAppsClient) getWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientGetWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) getWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientGetWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/webjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15199,7 +15196,7 @@ func (client *WebAppsClient) getWebJobCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15217,7 +15214,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of the web job. @@ -15246,7 +15243,7 @@ func (client *WebAppsClient) GetWebJobSlot(ctx context.Context, resourceGroupNam } // getWebJobSlotCreateRequest creates the GetWebJobSlot request. -func (client *WebAppsClient) getWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientGetWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientGetWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/webjobs/{webJobName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15273,7 +15270,7 @@ func (client *WebAppsClient) getWebJobSlotCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15291,7 +15288,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -15318,7 +15315,7 @@ func (client *WebAppsClient) GetWebSiteContainerLogs(ctx context.Context, resour } // getWebSiteContainerLogsCreateRequest creates the GetWebSiteContainerLogs request. -func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientGetWebSiteContainerLogsOptions) (*policy.Request, error) { +func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientGetWebSiteContainerLogsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/containerlogs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15337,7 +15334,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream"} @@ -15347,7 +15344,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -15375,7 +15372,7 @@ func (client *WebAppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, re } // getWebSiteContainerLogsSlotCreateRequest creates the GetWebSiteContainerLogsSlot request. -func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientGetWebSiteContainerLogsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientGetWebSiteContainerLogsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/containerlogs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15398,7 +15395,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream"} @@ -15408,7 +15405,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx contex // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - Workflow name. @@ -15436,7 +15433,7 @@ func (client *WebAppsClient) GetWorkflow(ctx context.Context, resourceGroupName } // getWorkflowCreateRequest creates the GetWorkflow request. -func (client *WebAppsClient) getWorkflowCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, options *WebAppsClientGetWorkflowOptions) (*policy.Request, error) { +func (client *WebAppsClient) getWorkflowCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, _ *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") @@ -15459,7 +15456,7 @@ func (client *WebAppsClient) getWorkflowCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15477,7 +15474,7 @@ func (client *WebAppsClient) getWorkflowHandleResponse(resp *http.Response) (Web // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -15503,7 +15500,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) installSiteExtension(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientBeginInstallSiteExtensionOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginInstallSiteExtension" @@ -15526,7 +15523,7 @@ func (client *WebAppsClient) installSiteExtension(ctx context.Context, resourceG } // installSiteExtensionCreateRequest creates the InstallSiteExtension request. -func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, options *WebAppsClientBeginInstallSiteExtensionOptions) (*policy.Request, error) { +func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, _ *WebAppsClientBeginInstallSiteExtensionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15549,7 +15546,7 @@ func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15558,7 +15555,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -15585,7 +15582,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) installSiteExtensionSlot(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientBeginInstallSiteExtensionSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginInstallSiteExtensionSlot" @@ -15608,7 +15605,7 @@ func (client *WebAppsClient) installSiteExtensionSlot(ctx context.Context, resou } // installSiteExtensionSlotCreateRequest creates the InstallSiteExtensionSlot request. -func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, options *WebAppsClientBeginInstallSiteExtensionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, siteExtensionID string, slot string, _ *WebAppsClientBeginInstallSiteExtensionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15635,7 +15632,7 @@ func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15644,7 +15641,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -15671,7 +15668,7 @@ func (client *WebAppsClient) IsCloneable(ctx context.Context, resourceGroupName } // isCloneableCreateRequest creates the IsCloneable request. -func (client *WebAppsClient) isCloneableCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientIsCloneableOptions) (*policy.Request, error) { +func (client *WebAppsClient) isCloneableCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientIsCloneableOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15690,7 +15687,7 @@ func (client *WebAppsClient) isCloneableCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15708,7 +15705,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -15736,7 +15733,7 @@ func (client *WebAppsClient) IsCloneableSlot(ctx context.Context, resourceGroupN } // isCloneableSlotCreateRequest creates the IsCloneableSlot request. -func (client *WebAppsClient) isCloneableSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientIsCloneableSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) isCloneableSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientIsCloneableSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/iscloneable" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15759,7 +15756,7 @@ func (client *WebAppsClient) isCloneableSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15776,7 +15773,7 @@ func (client *WebAppsClient) isCloneableSlotHandleResponse(resp *http.Response) // NewListPager - Description for Get all apps for a subscription. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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]{ @@ -15802,7 +15799,7 @@ func (client *WebAppsClient) NewListPager(options *WebAppsClientListOptions) *ru } // listCreateRequest creates the List request. -func (client *WebAppsClient) listCreateRequest(ctx context.Context, options *WebAppsClientListOptions) (*policy.Request, error) { +func (client *WebAppsClient) listCreateRequest(ctx context.Context, _ *WebAppsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/sites" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -15813,7 +15810,7 @@ func (client *WebAppsClient) listCreateRequest(ctx context.Context, options *Web return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15831,7 +15828,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -15859,7 +15856,7 @@ func (client *WebAppsClient) ListApplicationSettings(ctx context.Context, resour } // listApplicationSettingsCreateRequest creates the ListApplicationSettings request. -func (client *WebAppsClient) listApplicationSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListApplicationSettingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listApplicationSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListApplicationSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15878,7 +15875,7 @@ func (client *WebAppsClient) listApplicationSettingsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15896,7 +15893,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -15926,7 +15923,7 @@ func (client *WebAppsClient) ListApplicationSettingsSlot(ctx context.Context, re } // listApplicationSettingsSlotCreateRequest creates the ListApplicationSettingsSlot request. -func (client *WebAppsClient) listApplicationSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListApplicationSettingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listApplicationSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListApplicationSettingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -15949,7 +15946,7 @@ func (client *WebAppsClient) listApplicationSettingsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15967,7 +15964,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -15995,7 +15992,7 @@ func (client *WebAppsClient) ListAzureStorageAccounts(ctx context.Context, resou } // listAzureStorageAccountsCreateRequest creates the ListAzureStorageAccounts request. -func (client *WebAppsClient) listAzureStorageAccountsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListAzureStorageAccountsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listAzureStorageAccountsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListAzureStorageAccountsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16014,7 +16011,7 @@ func (client *WebAppsClient) listAzureStorageAccountsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16032,7 +16029,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -16062,7 +16059,7 @@ func (client *WebAppsClient) ListAzureStorageAccountsSlot(ctx context.Context, r } // listAzureStorageAccountsSlotCreateRequest creates the ListAzureStorageAccountsSlot request. -func (client *WebAppsClient) listAzureStorageAccountsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListAzureStorageAccountsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listAzureStorageAccountsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListAzureStorageAccountsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16085,7 +16082,7 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16105,7 +16102,7 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotHandleResponse(resp *ht // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - backupID - ID of backup. @@ -16135,7 +16132,7 @@ func (client *WebAppsClient) ListBackupStatusSecrets(ctx context.Context, resour } // listBackupStatusSecretsCreateRequest creates the ListBackupStatusSecrets request. -func (client *WebAppsClient) listBackupStatusSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, request BackupRequest, options *WebAppsClientListBackupStatusSecretsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listBackupStatusSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, request BackupRequest, _ *WebAppsClientListBackupStatusSecretsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16158,7 +16155,7 @@ func (client *WebAppsClient) listBackupStatusSecretsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -16181,7 +16178,7 @@ func (client *WebAppsClient) listBackupStatusSecretsHandleResponse(resp *http.Re // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - backupID - ID of backup. @@ -16212,7 +16209,7 @@ func (client *WebAppsClient) ListBackupStatusSecretsSlot(ctx context.Context, re } // listBackupStatusSecretsSlotCreateRequest creates the ListBackupStatusSecretsSlot request. -func (client *WebAppsClient) listBackupStatusSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request BackupRequest, options *WebAppsClientListBackupStatusSecretsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listBackupStatusSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request BackupRequest, _ *WebAppsClientListBackupStatusSecretsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16239,7 +16236,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -16259,7 +16256,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotHandleResponse(resp *htt // NewListBackupsPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -16287,7 +16284,7 @@ func (client *WebAppsClient) NewListBackupsPager(resourceGroupName string, name } // listBackupsCreateRequest creates the ListBackups request. -func (client *WebAppsClient) listBackupsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListBackupsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listBackupsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListBackupsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16306,7 +16303,7 @@ func (client *WebAppsClient) listBackupsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16323,7 +16320,7 @@ func (client *WebAppsClient) listBackupsHandleResponse(resp *http.Response) (Web // NewListBackupsSlotPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -16353,7 +16350,7 @@ func (client *WebAppsClient) NewListBackupsSlotPager(resourceGroupName string, n } // listBackupsSlotCreateRequest creates the ListBackupsSlot request. -func (client *WebAppsClient) listBackupsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListBackupsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listBackupsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListBackupsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16376,7 +16373,7 @@ func (client *WebAppsClient) listBackupsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16394,7 +16391,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -16423,7 +16420,7 @@ func (client *WebAppsClient) NewListBasicPublishingCredentialsPoliciesPager(reso } // listBasicPublishingCredentialsPoliciesCreateRequest creates the ListBasicPublishingCredentialsPolicies request. -func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListBasicPublishingCredentialsPoliciesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListBasicPublishingCredentialsPoliciesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16442,7 +16439,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16460,7 +16457,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesHandleRespons // NewListBasicPublishingCredentialsPoliciesSlotPager - Description for Returns whether Scm basic auth is allowed and whether // Ftp is allowed for a given site. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -16489,7 +16486,7 @@ func (client *WebAppsClient) NewListBasicPublishingCredentialsPoliciesSlotPager( } // listBasicPublishingCredentialsPoliciesSlotCreateRequest creates the ListBasicPublishingCredentialsPoliciesSlot request. -func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16512,7 +16509,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16529,7 +16526,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotHandleRes // NewListByResourceGroupPager - Description for Gets all web, mobile, and API apps in the specified resource group. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - WebAppsClientListByResourceGroupOptions contains the optional parameters for the WebAppsClient.NewListByResourceGroupPager // method. @@ -16572,7 +16569,7 @@ func (client *WebAppsClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IncludeSlots != nil { reqQP.Set("includeSlots", strconv.FormatBool(*options.IncludeSlots)) } @@ -16593,7 +16590,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -16622,7 +16619,7 @@ func (client *WebAppsClient) NewListConfigurationSnapshotInfoPager(resourceGroup } // listConfigurationSnapshotInfoCreateRequest creates the ListConfigurationSnapshotInfo request. -func (client *WebAppsClient) listConfigurationSnapshotInfoCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListConfigurationSnapshotInfoOptions) (*policy.Request, error) { +func (client *WebAppsClient) listConfigurationSnapshotInfoCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListConfigurationSnapshotInfoOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16641,7 +16638,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16659,7 +16656,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -16689,7 +16686,7 @@ func (client *WebAppsClient) NewListConfigurationSnapshotInfoSlotPager(resourceG } // listConfigurationSnapshotInfoSlotCreateRequest creates the ListConfigurationSnapshotInfoSlot request. -func (client *WebAppsClient) listConfigurationSnapshotInfoSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListConfigurationSnapshotInfoSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listConfigurationSnapshotInfoSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListConfigurationSnapshotInfoSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16712,7 +16709,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16729,7 +16726,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotHandleResponse(res // NewListConfigurationsPager - Description for List the configurations of an app // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -16758,7 +16755,7 @@ func (client *WebAppsClient) NewListConfigurationsPager(resourceGroupName string } // listConfigurationsCreateRequest creates the ListConfigurations request. -func (client *WebAppsClient) listConfigurationsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListConfigurationsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listConfigurationsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListConfigurationsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16777,7 +16774,7 @@ func (client *WebAppsClient) listConfigurationsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16794,7 +16791,7 @@ func (client *WebAppsClient) listConfigurationsHandleResponse(resp *http.Respons // NewListConfigurationsSlotPager - Description for List the configurations of an app // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -16824,7 +16821,7 @@ func (client *WebAppsClient) NewListConfigurationsSlotPager(resourceGroupName st } // listConfigurationsSlotCreateRequest creates the ListConfigurationsSlot request. -func (client *WebAppsClient) listConfigurationsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListConfigurationsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listConfigurationsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListConfigurationsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16847,7 +16844,7 @@ func (client *WebAppsClient) listConfigurationsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16865,7 +16862,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -16893,7 +16890,7 @@ func (client *WebAppsClient) ListConnectionStrings(ctx context.Context, resource } // listConnectionStringsCreateRequest creates the ListConnectionStrings request. -func (client *WebAppsClient) listConnectionStringsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListConnectionStringsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listConnectionStringsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListConnectionStringsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16912,7 +16909,7 @@ func (client *WebAppsClient) listConnectionStringsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16930,7 +16927,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -16960,7 +16957,7 @@ func (client *WebAppsClient) ListConnectionStringsSlot(ctx context.Context, reso } // listConnectionStringsSlotCreateRequest creates the ListConnectionStringsSlot request. -func (client *WebAppsClient) listConnectionStringsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListConnectionStringsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listConnectionStringsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListConnectionStringsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -16983,7 +16980,7 @@ func (client *WebAppsClient) listConnectionStringsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17000,7 +16997,7 @@ func (client *WebAppsClient) listConnectionStringsSlotHandleResponse(resp *http. // NewListContinuousWebJobsPager - Description for List continuous web jobs for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -17029,7 +17026,7 @@ func (client *WebAppsClient) NewListContinuousWebJobsPager(resourceGroupName str } // listContinuousWebJobsCreateRequest creates the ListContinuousWebJobs request. -func (client *WebAppsClient) listContinuousWebJobsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListContinuousWebJobsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listContinuousWebJobsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListContinuousWebJobsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17048,7 +17045,7 @@ func (client *WebAppsClient) listContinuousWebJobsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17065,7 +17062,7 @@ func (client *WebAppsClient) listContinuousWebJobsHandleResponse(resp *http.Resp // NewListContinuousWebJobsSlotPager - Description for List continuous web jobs for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -17095,7 +17092,7 @@ func (client *WebAppsClient) NewListContinuousWebJobsSlotPager(resourceGroupName } // listContinuousWebJobsSlotCreateRequest creates the ListContinuousWebJobsSlot request. -func (client *WebAppsClient) listContinuousWebJobsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListContinuousWebJobsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listContinuousWebJobsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListContinuousWebJobsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17118,7 +17115,7 @@ func (client *WebAppsClient) listContinuousWebJobsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17136,7 +17133,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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". @@ -17165,7 +17162,7 @@ func (client *WebAppsClient) ListDeploymentLog(ctx context.Context, resourceGrou } // listDeploymentLogCreateRequest creates the ListDeploymentLog request. -func (client *WebAppsClient) listDeploymentLogCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, options *WebAppsClientListDeploymentLogOptions) (*policy.Request, error) { +func (client *WebAppsClient) listDeploymentLogCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, _ *WebAppsClientListDeploymentLogOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17188,7 +17185,7 @@ func (client *WebAppsClient) listDeploymentLogCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17206,7 +17203,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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". @@ -17236,7 +17233,7 @@ func (client *WebAppsClient) ListDeploymentLogSlot(ctx context.Context, resource } // listDeploymentLogSlotCreateRequest creates the ListDeploymentLogSlot request. -func (client *WebAppsClient) listDeploymentLogSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, options *WebAppsClientListDeploymentLogSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listDeploymentLogSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, id string, slot string, _ *WebAppsClientListDeploymentLogSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}/log" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17263,7 +17260,7 @@ func (client *WebAppsClient) listDeploymentLogSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17280,7 +17277,7 @@ func (client *WebAppsClient) listDeploymentLogSlotHandleResponse(resp *http.Resp // NewListDeploymentsPager - Description for List deployments for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -17309,7 +17306,7 @@ func (client *WebAppsClient) NewListDeploymentsPager(resourceGroupName string, n } // listDeploymentsCreateRequest creates the ListDeployments request. -func (client *WebAppsClient) listDeploymentsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListDeploymentsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listDeploymentsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListDeploymentsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17328,7 +17325,7 @@ func (client *WebAppsClient) listDeploymentsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17345,7 +17342,7 @@ func (client *WebAppsClient) listDeploymentsHandleResponse(resp *http.Response) // NewListDeploymentsSlotPager - Description for List deployments for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -17375,7 +17372,7 @@ func (client *WebAppsClient) NewListDeploymentsSlotPager(resourceGroupName strin } // listDeploymentsSlotCreateRequest creates the ListDeploymentsSlot request. -func (client *WebAppsClient) listDeploymentsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListDeploymentsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listDeploymentsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListDeploymentsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17398,7 +17395,7 @@ func (client *WebAppsClient) listDeploymentsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17415,7 +17412,7 @@ func (client *WebAppsClient) listDeploymentsSlotHandleResponse(resp *http.Respon // NewListDomainOwnershipIdentifiersPager - Description for Lists ownership identifiers for domain associated with web app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -17444,7 +17441,7 @@ func (client *WebAppsClient) NewListDomainOwnershipIdentifiersPager(resourceGrou } // listDomainOwnershipIdentifiersCreateRequest creates the ListDomainOwnershipIdentifiers request. -func (client *WebAppsClient) listDomainOwnershipIdentifiersCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListDomainOwnershipIdentifiersOptions) (*policy.Request, error) { +func (client *WebAppsClient) listDomainOwnershipIdentifiersCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListDomainOwnershipIdentifiersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17463,7 +17460,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17481,7 +17478,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersHandleResponse(resp * // NewListDomainOwnershipIdentifiersSlotPager - Description for Lists ownership identifiers for domain associated with web // app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -17511,7 +17508,7 @@ func (client *WebAppsClient) NewListDomainOwnershipIdentifiersSlotPager(resource } // listDomainOwnershipIdentifiersSlotCreateRequest creates the ListDomainOwnershipIdentifiersSlot request. -func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListDomainOwnershipIdentifiersSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListDomainOwnershipIdentifiersSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17534,7 +17531,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17552,7 +17549,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17581,7 +17578,7 @@ func (client *WebAppsClient) ListFunctionKeys(ctx context.Context, resourceGroup } // listFunctionKeysCreateRequest creates the ListFunctionKeys request. -func (client *WebAppsClient) listFunctionKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientListFunctionKeysOptions) (*policy.Request, error) { +func (client *WebAppsClient) listFunctionKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, _ *WebAppsClientListFunctionKeysOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/listkeys" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17604,7 +17601,7 @@ func (client *WebAppsClient) listFunctionKeysCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17622,7 +17619,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17652,7 +17649,7 @@ func (client *WebAppsClient) ListFunctionKeysSlot(ctx context.Context, resourceG } // listFunctionKeysSlotCreateRequest creates the ListFunctionKeysSlot request. -func (client *WebAppsClient) listFunctionKeysSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientListFunctionKeysSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listFunctionKeysSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, _ *WebAppsClientListFunctionKeysSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/listkeys" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17679,7 +17676,7 @@ func (client *WebAppsClient) listFunctionKeysSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17697,7 +17694,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17726,7 +17723,7 @@ func (client *WebAppsClient) ListFunctionSecrets(ctx context.Context, resourceGr } // listFunctionSecretsCreateRequest creates the ListFunctionSecrets request. -func (client *WebAppsClient) listFunctionSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, options *WebAppsClientListFunctionSecretsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listFunctionSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, _ *WebAppsClientListFunctionSecretsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/listsecrets" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17749,7 +17746,7 @@ func (client *WebAppsClient) listFunctionSecretsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17767,7 +17764,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17797,7 +17794,7 @@ func (client *WebAppsClient) ListFunctionSecretsSlot(ctx context.Context, resour } // listFunctionSecretsSlotCreateRequest creates the ListFunctionSecretsSlot request. -func (client *WebAppsClient) listFunctionSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, options *WebAppsClientListFunctionSecretsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listFunctionSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, functionName string, slot string, _ *WebAppsClientListFunctionSecretsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/listsecrets" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17824,7 +17821,7 @@ func (client *WebAppsClient) listFunctionSecretsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17841,7 +17838,7 @@ func (client *WebAppsClient) listFunctionSecretsSlotHandleResponse(resp *http.Re // NewListFunctionsPager - Description for List the functions for a web site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -17870,7 +17867,7 @@ func (client *WebAppsClient) NewListFunctionsPager(resourceGroupName string, nam } // listFunctionsCreateRequest creates the ListFunctions request. -func (client *WebAppsClient) listFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListFunctionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListFunctionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17889,7 +17886,7 @@ func (client *WebAppsClient) listFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17907,7 +17904,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -17934,7 +17931,7 @@ func (client *WebAppsClient) ListHostKeys(ctx context.Context, resourceGroupName } // listHostKeysCreateRequest creates the ListHostKeys request. -func (client *WebAppsClient) listHostKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListHostKeysOptions) (*policy.Request, error) { +func (client *WebAppsClient) listHostKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListHostKeysOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/listkeys" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -17953,7 +17950,7 @@ func (client *WebAppsClient) listHostKeysCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17971,7 +17968,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -18000,7 +17997,7 @@ func (client *WebAppsClient) ListHostKeysSlot(ctx context.Context, resourceGroup } // listHostKeysSlotCreateRequest creates the ListHostKeysSlot request. -func (client *WebAppsClient) listHostKeysSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListHostKeysSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listHostKeysSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListHostKeysSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/listkeys" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18023,7 +18020,7 @@ func (client *WebAppsClient) listHostKeysSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18040,7 +18037,7 @@ func (client *WebAppsClient) listHostKeysSlotHandleResponse(resp *http.Response) // NewListHostNameBindingsPager - Description for Get hostname bindings for an app or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -18069,7 +18066,7 @@ func (client *WebAppsClient) NewListHostNameBindingsPager(resourceGroupName stri } // listHostNameBindingsCreateRequest creates the ListHostNameBindings request. -func (client *WebAppsClient) listHostNameBindingsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListHostNameBindingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listHostNameBindingsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListHostNameBindingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18088,7 +18085,7 @@ func (client *WebAppsClient) listHostNameBindingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18105,7 +18102,7 @@ func (client *WebAppsClient) listHostNameBindingsHandleResponse(resp *http.Respo // NewListHostNameBindingsSlotPager - Description for Get hostname bindings for an app or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -18135,7 +18132,7 @@ func (client *WebAppsClient) NewListHostNameBindingsSlotPager(resourceGroupName } // listHostNameBindingsSlotCreateRequest creates the ListHostNameBindingsSlot request. -func (client *WebAppsClient) listHostNameBindingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListHostNameBindingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listHostNameBindingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListHostNameBindingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18158,7 +18155,7 @@ func (client *WebAppsClient) listHostNameBindingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18176,7 +18173,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -18204,7 +18201,7 @@ func (client *WebAppsClient) ListHybridConnections(ctx context.Context, resource } // listHybridConnectionsCreateRequest creates the ListHybridConnections request. -func (client *WebAppsClient) listHybridConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListHybridConnectionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listHybridConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListHybridConnectionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionRelays" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18223,7 +18220,7 @@ func (client *WebAppsClient) listHybridConnectionsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18241,7 +18238,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -18270,7 +18267,7 @@ func (client *WebAppsClient) ListHybridConnectionsSlot(ctx context.Context, reso } // listHybridConnectionsSlotCreateRequest creates the ListHybridConnectionsSlot request. -func (client *WebAppsClient) listHybridConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListHybridConnectionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listHybridConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListHybridConnectionsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionRelays" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18293,7 +18290,7 @@ func (client *WebAppsClient) listHybridConnectionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18310,7 +18307,7 @@ func (client *WebAppsClient) listHybridConnectionsSlotHandleResponse(resp *http. // NewListInstanceFunctionsSlotPager - Description for List the functions for a web site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -18340,7 +18337,7 @@ func (client *WebAppsClient) NewListInstanceFunctionsSlotPager(resourceGroupName } // listInstanceFunctionsSlotCreateRequest creates the ListInstanceFunctionsSlot request. -func (client *WebAppsClient) listInstanceFunctionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceFunctionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceFunctionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListInstanceFunctionsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18363,7 +18360,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18380,7 +18377,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotHandleResponse(resp *http. // NewListInstanceIdentifiersPager - Description for Gets all scale-out instances of an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -18409,7 +18406,7 @@ func (client *WebAppsClient) NewListInstanceIdentifiersPager(resourceGroupName s } // listInstanceIdentifiersCreateRequest creates the ListInstanceIdentifiers request. -func (client *WebAppsClient) listInstanceIdentifiersCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListInstanceIdentifiersOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceIdentifiersCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListInstanceIdentifiersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18428,7 +18425,7 @@ func (client *WebAppsClient) listInstanceIdentifiersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18445,7 +18442,7 @@ func (client *WebAppsClient) listInstanceIdentifiersHandleResponse(resp *http.Re // NewListInstanceIdentifiersSlotPager - Description for Gets all scale-out instances of an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -18475,7 +18472,7 @@ func (client *WebAppsClient) NewListInstanceIdentifiersSlotPager(resourceGroupNa } // listInstanceIdentifiersSlotCreateRequest creates the ListInstanceIdentifiersSlot request. -func (client *WebAppsClient) listInstanceIdentifiersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceIdentifiersSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceIdentifiersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListInstanceIdentifiersSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18498,7 +18495,7 @@ func (client *WebAppsClient) listInstanceIdentifiersSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18516,7 +18513,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18548,7 +18545,7 @@ func (client *WebAppsClient) NewListInstanceProcessModulesPager(resourceGroupNam } // listInstanceProcessModulesCreateRequest creates the ListInstanceProcessModules request. -func (client *WebAppsClient) listInstanceProcessModulesCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientListInstanceProcessModulesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceProcessModulesCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, _ *WebAppsClientListInstanceProcessModulesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18575,7 +18572,7 @@ func (client *WebAppsClient) listInstanceProcessModulesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18593,7 +18590,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18626,7 +18623,7 @@ func (client *WebAppsClient) NewListInstanceProcessModulesSlotPager(resourceGrou } // listInstanceProcessModulesSlotCreateRequest creates the ListInstanceProcessModulesSlot request. -func (client *WebAppsClient) listInstanceProcessModulesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientListInstanceProcessModulesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceProcessModulesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, _ *WebAppsClientListInstanceProcessModulesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18657,7 +18654,7 @@ func (client *WebAppsClient) listInstanceProcessModulesSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18675,7 +18672,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18707,7 +18704,7 @@ func (client *WebAppsClient) NewListInstanceProcessThreadsPager(resourceGroupNam } // listInstanceProcessThreadsCreateRequest creates the ListInstanceProcessThreads request. -func (client *WebAppsClient) listInstanceProcessThreadsCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, options *WebAppsClientListInstanceProcessThreadsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceProcessThreadsCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, instanceID string, _ *WebAppsClientListInstanceProcessThreadsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18734,7 +18731,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18752,7 +18749,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18785,7 +18782,7 @@ func (client *WebAppsClient) NewListInstanceProcessThreadsSlotPager(resourceGrou } // listInstanceProcessThreadsSlotCreateRequest creates the ListInstanceProcessThreadsSlot request. -func (client *WebAppsClient) listInstanceProcessThreadsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, options *WebAppsClientListInstanceProcessThreadsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceProcessThreadsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, instanceID string, _ *WebAppsClientListInstanceProcessThreadsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/threads" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18816,7 +18813,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18834,7 +18831,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -18865,7 +18862,7 @@ func (client *WebAppsClient) NewListInstanceProcessesPager(resourceGroupName str } // listInstanceProcessesCreateRequest creates the ListInstanceProcesses request. -func (client *WebAppsClient) listInstanceProcessesCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, options *WebAppsClientListInstanceProcessesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceProcessesCreateRequest(ctx context.Context, resourceGroupName string, name string, instanceID string, _ *WebAppsClientListInstanceProcessesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18888,7 +18885,7 @@ func (client *WebAppsClient) listInstanceProcessesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18906,7 +18903,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -18938,7 +18935,7 @@ func (client *WebAppsClient) NewListInstanceProcessesSlotPager(resourceGroupName } // listInstanceProcessesSlotCreateRequest creates the ListInstanceProcessesSlot request. -func (client *WebAppsClient) listInstanceProcessesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, options *WebAppsClientListInstanceProcessesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceProcessesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, instanceID string, _ *WebAppsClientListInstanceProcessesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -18965,7 +18962,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18982,7 +18979,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotHandleResponse(resp *http. // NewListInstanceWorkflowsSlotPager - List the workflows for a web site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -19012,7 +19009,7 @@ func (client *WebAppsClient) NewListInstanceWorkflowsSlotPager(resourceGroupName } // listInstanceWorkflowsSlotCreateRequest creates the ListInstanceWorkflowsSlot request. -func (client *WebAppsClient) listInstanceWorkflowsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListInstanceWorkflowsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listInstanceWorkflowsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *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") @@ -19035,7 +19032,7 @@ func (client *WebAppsClient) listInstanceWorkflowsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19053,7 +19050,7 @@ func (client *WebAppsClient) listInstanceWorkflowsSlotHandleResponse(resp *http. // ListMetadata - Description for Gets the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -19080,7 +19077,7 @@ func (client *WebAppsClient) ListMetadata(ctx context.Context, resourceGroupName } // listMetadataCreateRequest creates the ListMetadata request. -func (client *WebAppsClient) listMetadataCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListMetadataOptions) (*policy.Request, error) { +func (client *WebAppsClient) listMetadataCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListMetadataOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19099,7 +19096,7 @@ func (client *WebAppsClient) listMetadataCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19117,7 +19114,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -19146,7 +19143,7 @@ func (client *WebAppsClient) ListMetadataSlot(ctx context.Context, resourceGroup } // listMetadataSlotCreateRequest creates the ListMetadataSlot request. -func (client *WebAppsClient) listMetadataSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListMetadataSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listMetadataSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListMetadataSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19169,7 +19166,7 @@ func (client *WebAppsClient) listMetadataSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19187,7 +19184,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -19216,7 +19213,7 @@ func (client *WebAppsClient) ListNetworkFeatures(ctx context.Context, resourceGr } // listNetworkFeaturesCreateRequest creates the ListNetworkFeatures request. -func (client *WebAppsClient) listNetworkFeaturesCreateRequest(ctx context.Context, resourceGroupName string, name string, view string, options *WebAppsClientListNetworkFeaturesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listNetworkFeaturesCreateRequest(ctx context.Context, resourceGroupName string, name string, view string, _ *WebAppsClientListNetworkFeaturesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkFeatures/{view}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19239,7 +19236,7 @@ func (client *WebAppsClient) listNetworkFeaturesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19257,7 +19254,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -19287,7 +19284,7 @@ func (client *WebAppsClient) ListNetworkFeaturesSlot(ctx context.Context, resour } // listNetworkFeaturesSlotCreateRequest creates the ListNetworkFeaturesSlot request. -func (client *WebAppsClient) listNetworkFeaturesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, view string, slot string, options *WebAppsClientListNetworkFeaturesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listNetworkFeaturesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, view string, slot string, _ *WebAppsClientListNetworkFeaturesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19314,7 +19311,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19331,7 +19328,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotHandleResponse(resp *http.Re // NewListPerfMonCountersPager - Description for Gets perfmon counters for web app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -19379,7 +19376,7 @@ func (client *WebAppsClient) listPerfMonCountersCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -19401,7 +19398,7 @@ func (client *WebAppsClient) listPerfMonCountersHandleResponse(resp *http.Respon // NewListPerfMonCountersSlotPager - Description for Gets perfmon counters for web app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -19454,7 +19451,7 @@ func (client *WebAppsClient) listPerfMonCountersSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -19477,7 +19474,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -19505,7 +19502,7 @@ func (client *WebAppsClient) ListPremierAddOns(ctx context.Context, resourceGrou } // listPremierAddOnsCreateRequest creates the ListPremierAddOns request. -func (client *WebAppsClient) listPremierAddOnsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListPremierAddOnsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPremierAddOnsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListPremierAddOnsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19524,7 +19521,7 @@ func (client *WebAppsClient) listPremierAddOnsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19542,7 +19539,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -19572,7 +19569,7 @@ func (client *WebAppsClient) ListPremierAddOnsSlot(ctx context.Context, resource } // listPremierAddOnsSlotCreateRequest creates the ListPremierAddOnsSlot request. -func (client *WebAppsClient) listPremierAddOnsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListPremierAddOnsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPremierAddOnsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListPremierAddOnsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19595,7 +19592,7 @@ func (client *WebAppsClient) listPremierAddOnsSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19613,7 +19610,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19643,7 +19640,7 @@ func (client *WebAppsClient) NewListProcessModulesPager(resourceGroupName string } // listProcessModulesCreateRequest creates the ListProcessModules request. -func (client *WebAppsClient) listProcessModulesCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientListProcessModulesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProcessModulesCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, _ *WebAppsClientListProcessModulesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19666,7 +19663,7 @@ func (client *WebAppsClient) listProcessModulesCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19684,7 +19681,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19715,7 +19712,7 @@ func (client *WebAppsClient) NewListProcessModulesSlotPager(resourceGroupName st } // listProcessModulesSlotCreateRequest creates the ListProcessModulesSlot request. -func (client *WebAppsClient) listProcessModulesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientListProcessModulesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProcessModulesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, _ *WebAppsClientListProcessModulesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19742,7 +19739,7 @@ func (client *WebAppsClient) listProcessModulesSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19760,7 +19757,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19790,7 +19787,7 @@ func (client *WebAppsClient) NewListProcessThreadsPager(resourceGroupName string } // listProcessThreadsCreateRequest creates the ListProcessThreads request. -func (client *WebAppsClient) listProcessThreadsCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, options *WebAppsClientListProcessThreadsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProcessThreadsCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, _ *WebAppsClientListProcessThreadsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/threads" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19813,7 +19810,7 @@ func (client *WebAppsClient) listProcessThreadsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19831,7 +19828,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19862,7 +19859,7 @@ func (client *WebAppsClient) NewListProcessThreadsSlotPager(resourceGroupName st } // listProcessThreadsSlotCreateRequest creates the ListProcessThreadsSlot request. -func (client *WebAppsClient) listProcessThreadsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, options *WebAppsClientListProcessThreadsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProcessThreadsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, processID string, slot string, _ *WebAppsClientListProcessThreadsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/threads" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19889,7 +19886,7 @@ func (client *WebAppsClient) listProcessThreadsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19907,7 +19904,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -19936,7 +19933,7 @@ func (client *WebAppsClient) NewListProcessesPager(resourceGroupName string, nam } // listProcessesCreateRequest creates the ListProcesses request. -func (client *WebAppsClient) listProcessesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListProcessesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProcessesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListProcessesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -19955,7 +19952,7 @@ func (client *WebAppsClient) listProcessesCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19973,7 +19970,7 @@ 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. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -20003,7 +20000,7 @@ func (client *WebAppsClient) NewListProcessesSlotPager(resourceGroupName string, } // listProcessesSlotCreateRequest creates the ListProcessesSlot request. -func (client *WebAppsClient) listProcessesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListProcessesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProcessesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListProcessesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20026,7 +20023,7 @@ func (client *WebAppsClient) listProcessesSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20043,7 +20040,7 @@ func (client *WebAppsClient) listProcessesSlotHandleResponse(resp *http.Response // NewListProductionSiteDeploymentStatusesPager - List deployment statuses for an app (or deployment slot, if specified). // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -20072,7 +20069,7 @@ func (client *WebAppsClient) NewListProductionSiteDeploymentStatusesPager(resour } // listProductionSiteDeploymentStatusesCreateRequest creates the ListProductionSiteDeploymentStatuses request. -func (client *WebAppsClient) listProductionSiteDeploymentStatusesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListProductionSiteDeploymentStatusesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listProductionSiteDeploymentStatusesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListProductionSiteDeploymentStatusesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deploymentStatus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20091,7 +20088,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20108,7 +20105,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesHandleResponse( // NewListPublicCertificatesPager - Description for Get public certificates for an app or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -20137,7 +20134,7 @@ func (client *WebAppsClient) NewListPublicCertificatesPager(resourceGroupName st } // listPublicCertificatesCreateRequest creates the ListPublicCertificates request. -func (client *WebAppsClient) listPublicCertificatesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListPublicCertificatesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPublicCertificatesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListPublicCertificatesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20156,7 +20153,7 @@ func (client *WebAppsClient) listPublicCertificatesCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20173,7 +20170,7 @@ func (client *WebAppsClient) listPublicCertificatesHandleResponse(resp *http.Res // NewListPublicCertificatesSlotPager - Description for Get public certificates for an app or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -20203,7 +20200,7 @@ func (client *WebAppsClient) NewListPublicCertificatesSlotPager(resourceGroupNam } // listPublicCertificatesSlotCreateRequest creates the ListPublicCertificatesSlot request. -func (client *WebAppsClient) listPublicCertificatesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListPublicCertificatesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPublicCertificatesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListPublicCertificatesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20226,7 +20223,7 @@ func (client *WebAppsClient) listPublicCertificatesSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20244,7 +20241,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -20269,7 +20266,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) listPublishingCredentials(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginListPublishingCredentialsOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginListPublishingCredentials" @@ -20292,7 +20289,7 @@ func (client *WebAppsClient) listPublishingCredentials(ctx context.Context, reso } // listPublishingCredentialsCreateRequest creates the ListPublishingCredentials request. -func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginListPublishingCredentialsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientBeginListPublishingCredentialsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/publishingcredentials/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20311,7 +20308,7 @@ func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20320,7 +20317,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -20347,7 +20344,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) listPublishingCredentialsSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginListPublishingCredentialsSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginListPublishingCredentialsSlot" @@ -20370,7 +20367,7 @@ func (client *WebAppsClient) listPublishingCredentialsSlot(ctx context.Context, } // listPublishingCredentialsSlotCreateRequest creates the ListPublishingCredentialsSlot request. -func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginListPublishingCredentialsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientBeginListPublishingCredentialsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/publishingcredentials/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20393,7 +20390,7 @@ func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20402,7 +20399,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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"} @@ -20431,7 +20428,7 @@ func (client *WebAppsClient) ListPublishingProfileXMLWithSecrets(ctx context.Con } // listPublishingProfileXMLWithSecretsCreateRequest creates the ListPublishingProfileXMLWithSecrets request. -func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, publishingProfileOptions CsmPublishingProfileOptions, options *WebAppsClientListPublishingProfileXMLWithSecretsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ctx context.Context, resourceGroupName string, name string, publishingProfileOptions CsmPublishingProfileOptions, _ *WebAppsClientListPublishingProfileXMLWithSecretsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20450,7 +20447,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/xml"} @@ -20464,7 +20461,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -20495,7 +20492,7 @@ func (client *WebAppsClient) ListPublishingProfileXMLWithSecretsSlot(ctx context } // listPublishingProfileXMLWithSecretsSlotCreateRequest creates the ListPublishingProfileXMLWithSecretsSlot request. -func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, publishingProfileOptions CsmPublishingProfileOptions, options *WebAppsClientListPublishingProfileXMLWithSecretsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, publishingProfileOptions CsmPublishingProfileOptions, _ *WebAppsClientListPublishingProfileXMLWithSecretsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publishxml" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20518,7 +20515,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/xml"} @@ -20531,7 +20528,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -20559,7 +20556,7 @@ func (client *WebAppsClient) ListRelayServiceConnections(ctx context.Context, re } // listRelayServiceConnectionsCreateRequest creates the ListRelayServiceConnections request. -func (client *WebAppsClient) listRelayServiceConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListRelayServiceConnectionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listRelayServiceConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListRelayServiceConnectionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20578,7 +20575,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20597,7 +20594,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsHandleResponse(resp *htt // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -20627,7 +20624,7 @@ func (client *WebAppsClient) ListRelayServiceConnectionsSlot(ctx context.Context } // listRelayServiceConnectionsSlotCreateRequest creates the ListRelayServiceConnectionsSlot request. -func (client *WebAppsClient) listRelayServiceConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListRelayServiceConnectionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listRelayServiceConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListRelayServiceConnectionsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20650,7 +20647,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20667,7 +20664,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotHandleResponse(resp // NewListSiteBackupsPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -20696,7 +20693,7 @@ func (client *WebAppsClient) NewListSiteBackupsPager(resourceGroupName string, n } // listSiteBackupsCreateRequest creates the ListSiteBackups request. -func (client *WebAppsClient) listSiteBackupsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSiteBackupsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSiteBackupsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSiteBackupsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listbackups" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20715,7 +20712,7 @@ func (client *WebAppsClient) listSiteBackupsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20732,7 +20729,7 @@ func (client *WebAppsClient) listSiteBackupsHandleResponse(resp *http.Response) // NewListSiteBackupsSlotPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -20762,7 +20759,7 @@ func (client *WebAppsClient) NewListSiteBackupsSlotPager(resourceGroupName strin } // listSiteBackupsSlotCreateRequest creates the ListSiteBackupsSlot request. -func (client *WebAppsClient) listSiteBackupsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSiteBackupsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSiteBackupsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSiteBackupsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/listbackups" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20785,7 +20782,7 @@ func (client *WebAppsClient) listSiteBackupsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20802,7 +20799,7 @@ func (client *WebAppsClient) listSiteBackupsSlotHandleResponse(resp *http.Respon // NewListSiteContainersPager - Lists all the site containers of a site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListSiteContainersOptions contains the optional parameters for the WebAppsClient.NewListSiteContainersPager @@ -20831,7 +20828,7 @@ func (client *WebAppsClient) NewListSiteContainersPager(resourceGroupName string } // listSiteContainersCreateRequest creates the ListSiteContainers request. -func (client *WebAppsClient) listSiteContainersCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSiteContainersOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSiteContainersCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSiteContainersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sitecontainers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20850,7 +20847,7 @@ func (client *WebAppsClient) listSiteContainersCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20867,7 +20864,7 @@ func (client *WebAppsClient) listSiteContainersHandleResponse(resp *http.Respons // NewListSiteContainersSlotPager - Lists all the site containers of a site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 list of site containers for the production @@ -20898,7 +20895,7 @@ func (client *WebAppsClient) NewListSiteContainersSlotPager(resourceGroupName st } // listSiteContainersSlotCreateRequest creates the ListSiteContainersSlot request. -func (client *WebAppsClient) listSiteContainersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSiteContainersSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSiteContainersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSiteContainersSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sitecontainers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20921,7 +20918,7 @@ func (client *WebAppsClient) listSiteContainersSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20938,7 +20935,7 @@ func (client *WebAppsClient) listSiteContainersSlotHandleResponse(resp *http.Res // NewListSiteExtensionsPager - Description for Get list of siteextensions for a web site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -20967,7 +20964,7 @@ func (client *WebAppsClient) NewListSiteExtensionsPager(resourceGroupName string } // listSiteExtensionsCreateRequest creates the ListSiteExtensions request. -func (client *WebAppsClient) listSiteExtensionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSiteExtensionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSiteExtensionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSiteExtensionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -20986,7 +20983,7 @@ func (client *WebAppsClient) listSiteExtensionsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21003,7 +21000,7 @@ func (client *WebAppsClient) listSiteExtensionsHandleResponse(resp *http.Respons // NewListSiteExtensionsSlotPager - Description for Get list of siteextensions for a web site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -21033,7 +21030,7 @@ func (client *WebAppsClient) NewListSiteExtensionsSlotPager(resourceGroupName st } // listSiteExtensionsSlotCreateRequest creates the ListSiteExtensionsSlot request. -func (client *WebAppsClient) listSiteExtensionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSiteExtensionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSiteExtensionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSiteExtensionsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21056,7 +21053,7 @@ func (client *WebAppsClient) listSiteExtensionsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21074,7 +21071,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -21102,7 +21099,7 @@ func (client *WebAppsClient) ListSitePushSettings(ctx context.Context, resourceG } // listSitePushSettingsCreateRequest creates the ListSitePushSettings request. -func (client *WebAppsClient) listSitePushSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSitePushSettingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSitePushSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSitePushSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21121,7 +21118,7 @@ func (client *WebAppsClient) listSitePushSettingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21139,7 +21136,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -21168,7 +21165,7 @@ func (client *WebAppsClient) ListSitePushSettingsSlot(ctx context.Context, resou } // listSitePushSettingsSlotCreateRequest creates the ListSitePushSettingsSlot request. -func (client *WebAppsClient) listSitePushSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSitePushSettingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSitePushSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSitePushSettingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings/list" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21191,7 +21188,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21210,7 +21207,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotHandleResponse(resp *http.R // (not swapped). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -21238,7 +21235,7 @@ func (client *WebAppsClient) ListSlotConfigurationNames(ctx context.Context, res } // listSlotConfigurationNamesCreateRequest creates the ListSlotConfigurationNames request. -func (client *WebAppsClient) listSlotConfigurationNamesCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSlotConfigurationNamesOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSlotConfigurationNamesCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSlotConfigurationNamesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21257,7 +21254,7 @@ func (client *WebAppsClient) listSlotConfigurationNamesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21275,7 +21272,7 @@ func (client *WebAppsClient) listSlotConfigurationNamesHandleResponse(resp *http // NewListSlotDifferencesFromProductionPager - Description for Get the difference in configuration settings between two web // app slots. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -21305,7 +21302,7 @@ func (client *WebAppsClient) NewListSlotDifferencesFromProductionPager(resourceG } // listSlotDifferencesFromProductionCreateRequest creates the ListSlotDifferencesFromProduction request. -func (client *WebAppsClient) listSlotDifferencesFromProductionCreateRequest(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientListSlotDifferencesFromProductionOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSlotDifferencesFromProductionCreateRequest(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, _ *WebAppsClientListSlotDifferencesFromProductionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsdiffs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21324,7 +21321,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -21344,7 +21341,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionHandleResponse(res // NewListSlotDifferencesSlotPager - Description for Get the difference in configuration settings between two web app slots. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -21375,7 +21372,7 @@ func (client *WebAppsClient) NewListSlotDifferencesSlotPager(resourceGroupName s } // listSlotDifferencesSlotCreateRequest creates the ListSlotDifferencesSlot request. -func (client *WebAppsClient) listSlotDifferencesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientListSlotDifferencesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSlotDifferencesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, _ *WebAppsClientListSlotDifferencesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsdiffs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21398,7 +21395,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -21418,7 +21415,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotHandleResponse(resp *http.Re // NewListSlotSiteDeploymentStatusesSlotPager - List deployment statuses for an app (or deployment slot, if specified). // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -21449,7 +21446,7 @@ func (client *WebAppsClient) NewListSlotSiteDeploymentStatusesSlotPager(resource } // listSlotSiteDeploymentStatusesSlotCreateRequest creates the ListSlotSiteDeploymentStatusesSlot request. -func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSlotSiteDeploymentStatusesSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSlotSiteDeploymentStatusesSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deploymentStatus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21472,7 +21469,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21489,7 +21486,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotHandleResponse(re // NewListSlotsPager - Description for Gets an app's deployment slots. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -21517,7 +21514,7 @@ func (client *WebAppsClient) NewListSlotsPager(resourceGroupName string, name st } // listSlotsCreateRequest creates the ListSlots request. -func (client *WebAppsClient) listSlotsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSlotsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSlotsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSlotsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21536,7 +21533,7 @@ func (client *WebAppsClient) listSlotsCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21553,7 +21550,7 @@ func (client *WebAppsClient) listSlotsHandleResponse(resp *http.Response) (WebAp // NewListSnapshotsPager - Description for Returns all Snapshots to the user. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -21582,7 +21579,7 @@ func (client *WebAppsClient) NewListSnapshotsPager(resourceGroupName string, nam } // listSnapshotsCreateRequest creates the ListSnapshots request. -func (client *WebAppsClient) listSnapshotsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSnapshotsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSnapshotsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSnapshotsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshots" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21601,7 +21598,7 @@ func (client *WebAppsClient) listSnapshotsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21618,7 +21615,7 @@ func (client *WebAppsClient) listSnapshotsHandleResponse(resp *http.Response) (W // NewListSnapshotsFromDRSecondaryPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -21647,7 +21644,7 @@ func (client *WebAppsClient) NewListSnapshotsFromDRSecondaryPager(resourceGroupN } // listSnapshotsFromDRSecondaryCreateRequest creates the ListSnapshotsFromDRSecondary request. -func (client *WebAppsClient) listSnapshotsFromDRSecondaryCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSnapshotsFromDRSecondaryOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSnapshotsFromDRSecondaryCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSnapshotsFromDRSecondaryOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshotsdr" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21666,7 +21663,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21683,7 +21680,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryHandleResponse(resp *ht // NewListSnapshotsFromDRSecondarySlotPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Website Name. // - slot - Website Slot. @@ -21713,7 +21710,7 @@ func (client *WebAppsClient) NewListSnapshotsFromDRSecondarySlotPager(resourceGr } // listSnapshotsFromDRSecondarySlotCreateRequest creates the ListSnapshotsFromDRSecondarySlot request. -func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSnapshotsFromDRSecondarySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSnapshotsFromDRSecondarySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshotsdr" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21736,7 +21733,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21753,7 +21750,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotHandleResponse(resp // NewListSnapshotsSlotPager - Description for Returns all Snapshots to the user. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Website Name. // - slot - Website Slot. @@ -21783,7 +21780,7 @@ func (client *WebAppsClient) NewListSnapshotsSlotPager(resourceGroupName string, } // listSnapshotsSlotCreateRequest creates the ListSnapshotsSlot request. -func (client *WebAppsClient) listSnapshotsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSnapshotsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSnapshotsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSnapshotsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshots" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21806,7 +21803,7 @@ func (client *WebAppsClient) listSnapshotsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21824,7 +21821,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -21852,7 +21849,7 @@ func (client *WebAppsClient) ListSyncFunctionTriggers(ctx context.Context, resou } // listSyncFunctionTriggersCreateRequest creates the ListSyncFunctionTriggers request. -func (client *WebAppsClient) listSyncFunctionTriggersCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSyncFunctionTriggersOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSyncFunctionTriggersCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSyncFunctionTriggersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listsyncfunctiontriggerstatus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21871,7 +21868,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21889,7 +21886,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -21918,7 +21915,7 @@ func (client *WebAppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, r } // listSyncFunctionTriggersSlotCreateRequest creates the ListSyncFunctionTriggersSlot request. -func (client *WebAppsClient) listSyncFunctionTriggersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSyncFunctionTriggersSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSyncFunctionTriggersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSyncFunctionTriggersSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/listsyncfunctiontriggerstatus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -21941,7 +21938,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21959,7 +21956,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -21985,7 +21982,7 @@ func (client *WebAppsClient) ListSyncStatus(ctx context.Context, resourceGroupNa } // listSyncStatusCreateRequest creates the ListSyncStatus request. -func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListSyncStatusOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListSyncStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/listsyncstatus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22004,7 +22001,7 @@ func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22013,7 +22010,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -22041,7 +22038,7 @@ func (client *WebAppsClient) ListSyncStatusSlot(ctx context.Context, resourceGro } // listSyncStatusSlotCreateRequest creates the ListSyncStatusSlot request. -func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListSyncStatusSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListSyncStatusSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/listsyncstatus" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22064,7 +22061,7 @@ func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22072,7 +22069,7 @@ func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context // NewListTriggeredWebJobHistoryPager - Description for List a triggered web job's history for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -22102,7 +22099,7 @@ func (client *WebAppsClient) NewListTriggeredWebJobHistoryPager(resourceGroupNam } // listTriggeredWebJobHistoryCreateRequest creates the ListTriggeredWebJobHistory request. -func (client *WebAppsClient) listTriggeredWebJobHistoryCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientListTriggeredWebJobHistoryOptions) (*policy.Request, error) { +func (client *WebAppsClient) listTriggeredWebJobHistoryCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientListTriggeredWebJobHistoryOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22125,7 +22122,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22143,7 +22140,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryHandleResponse(resp *http // NewListTriggeredWebJobHistorySlotPager - Description for List a triggered web job's history for an app, or a deployment // slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -22174,7 +22171,7 @@ func (client *WebAppsClient) NewListTriggeredWebJobHistorySlotPager(resourceGrou } // listTriggeredWebJobHistorySlotCreateRequest creates the ListTriggeredWebJobHistorySlot request. -func (client *WebAppsClient) listTriggeredWebJobHistorySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientListTriggeredWebJobHistorySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listTriggeredWebJobHistorySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientListTriggeredWebJobHistorySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22201,7 +22198,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22218,7 +22215,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotHandleResponse(resp * // NewListTriggeredWebJobsPager - Description for List triggered web jobs for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -22247,7 +22244,7 @@ func (client *WebAppsClient) NewListTriggeredWebJobsPager(resourceGroupName stri } // listTriggeredWebJobsCreateRequest creates the ListTriggeredWebJobs request. -func (client *WebAppsClient) listTriggeredWebJobsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListTriggeredWebJobsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listTriggeredWebJobsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListTriggeredWebJobsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22266,7 +22263,7 @@ func (client *WebAppsClient) listTriggeredWebJobsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22283,7 +22280,7 @@ func (client *WebAppsClient) listTriggeredWebJobsHandleResponse(resp *http.Respo // NewListTriggeredWebJobsSlotPager - Description for List triggered web jobs for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -22313,7 +22310,7 @@ func (client *WebAppsClient) NewListTriggeredWebJobsSlotPager(resourceGroupName } // listTriggeredWebJobsSlotCreateRequest creates the ListTriggeredWebJobsSlot request. -func (client *WebAppsClient) listTriggeredWebJobsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListTriggeredWebJobsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listTriggeredWebJobsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListTriggeredWebJobsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22336,7 +22333,7 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22353,7 +22350,7 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotHandleResponse(resp *http.R // NewListUsagesPager - Description for Gets the quota usage information of an app (or deployment slot, if specified). // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -22400,7 +22397,7 @@ func (client *WebAppsClient) listUsagesCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -22422,7 +22419,7 @@ func (client *WebAppsClient) listUsagesHandleResponse(resp *http.Response) (WebA // NewListUsagesSlotPager - Description for Gets the quota usage information of an app (or deployment slot, if specified). // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -22475,7 +22472,7 @@ func (client *WebAppsClient) listUsagesSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -22498,7 +22495,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -22526,7 +22523,7 @@ func (client *WebAppsClient) ListVnetConnections(ctx context.Context, resourceGr } // listVnetConnectionsCreateRequest creates the ListVnetConnections request. -func (client *WebAppsClient) listVnetConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListVnetConnectionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listVnetConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListVnetConnectionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22545,7 +22542,7 @@ func (client *WebAppsClient) listVnetConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22563,7 +22560,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -22593,7 +22590,7 @@ func (client *WebAppsClient) ListVnetConnectionsSlot(ctx context.Context, resour } // listVnetConnectionsSlotCreateRequest creates the ListVnetConnectionsSlot request. -func (client *WebAppsClient) listVnetConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListVnetConnectionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listVnetConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListVnetConnectionsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22616,7 +22613,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22633,7 +22630,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotHandleResponse(resp *http.Re // NewListWebJobsPager - Description for List webjobs for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -22661,7 +22658,7 @@ func (client *WebAppsClient) NewListWebJobsPager(resourceGroupName string, name } // listWebJobsCreateRequest creates the ListWebJobs request. -func (client *WebAppsClient) listWebJobsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListWebJobsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listWebJobsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientListWebJobsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/webjobs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22680,7 +22677,7 @@ func (client *WebAppsClient) listWebJobsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22697,7 +22694,7 @@ func (client *WebAppsClient) listWebJobsHandleResponse(resp *http.Response) (Web // NewListWebJobsSlotPager - Description for List webjobs for an app, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -22727,7 +22724,7 @@ func (client *WebAppsClient) NewListWebJobsSlotPager(resourceGroupName string, n } // listWebJobsSlotCreateRequest creates the ListWebJobsSlot request. -func (client *WebAppsClient) listWebJobsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListWebJobsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listWebJobsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientListWebJobsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/webjobs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -22750,7 +22747,7 @@ func (client *WebAppsClient) listWebJobsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22767,7 +22764,7 @@ func (client *WebAppsClient) listWebJobsSlotHandleResponse(resp *http.Response) // NewListWorkflowsPager - List the workflows for a web site, or a deployment slot. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -22796,7 +22793,7 @@ func (client *WebAppsClient) NewListWorkflowsPager(resourceGroupName string, nam } // listWorkflowsCreateRequest creates the ListWorkflows request. -func (client *WebAppsClient) listWorkflowsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListWorkflowsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listWorkflowsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *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") @@ -22815,7 +22812,7 @@ func (client *WebAppsClient) listWorkflowsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22833,7 +22830,7 @@ func (client *WebAppsClient) listWorkflowsHandleResponse(resp *http.Response) (W // 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -22861,7 +22858,7 @@ func (client *WebAppsClient) ListWorkflowsConnections(ctx context.Context, resou } // listWorkflowsConnectionsCreateRequest creates the ListWorkflowsConnections request. -func (client *WebAppsClient) listWorkflowsConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientListWorkflowsConnectionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) listWorkflowsConnectionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *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") @@ -22880,7 +22877,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22898,7 +22895,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsHandleResponse(resp *http.R // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -22927,7 +22924,7 @@ func (client *WebAppsClient) ListWorkflowsConnectionsSlot(ctx context.Context, r } // listWorkflowsConnectionsSlotCreateRequest creates the ListWorkflowsConnectionsSlot request. -func (client *WebAppsClient) listWorkflowsConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientListWorkflowsConnectionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) listWorkflowsConnectionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *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") @@ -22950,7 +22947,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22968,7 +22965,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsSlotHandleResponse(resp *ht // 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - migrationRequestEnvelope - MySql migration options. @@ -22994,7 +22991,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) migrateMySQL(ctx context.Context, resourceGroupName string, name string, migrationRequestEnvelope MigrateMySQLRequest, options *WebAppsClientBeginMigrateMySQLOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginMigrateMySQL" @@ -23017,7 +23014,7 @@ func (client *WebAppsClient) migrateMySQL(ctx context.Context, resourceGroupName } // migrateMySQLCreateRequest creates the MigrateMySQL request. -func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, resourceGroupName string, name string, migrationRequestEnvelope MigrateMySQLRequest, options *WebAppsClientBeginMigrateMySQLOptions) (*policy.Request, error) { +func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, resourceGroupName string, name string, migrationRequestEnvelope MigrateMySQLRequest, _ *WebAppsClientBeginMigrateMySQLOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23036,7 +23033,7 @@ func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, migrationRequestEnvelope); err != nil { @@ -23048,7 +23045,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - subscriptionName - Azure subscription. // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. @@ -23075,7 +23072,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) migrateStorage(ctx context.Context, subscriptionName string, resourceGroupName string, name string, migrationOptions StorageMigrationOptions, options *WebAppsClientBeginMigrateStorageOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginMigrateStorage" @@ -23098,7 +23095,7 @@ func (client *WebAppsClient) migrateStorage(ctx context.Context, subscriptionNam } // migrateStorageCreateRequest creates the MigrateStorage request. -func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, subscriptionName string, resourceGroupName string, name string, migrationOptions StorageMigrationOptions, options *WebAppsClientBeginMigrateStorageOptions) (*policy.Request, error) { +func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, subscriptionName string, resourceGroupName string, name string, migrationOptions StorageMigrationOptions, _ *WebAppsClientBeginMigrateStorageOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migrate" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23117,7 +23114,7 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") reqQP.Set("subscriptionName", subscriptionName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -23131,7 +23128,7 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -23160,7 +23157,7 @@ func (client *WebAppsClient) PutPrivateAccessVnet(ctx context.Context, resourceG } // putPrivateAccessVnetCreateRequest creates the PutPrivateAccessVnet request. -func (client *WebAppsClient) putPrivateAccessVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, access PrivateAccess, options *WebAppsClientPutPrivateAccessVnetOptions) (*policy.Request, error) { +func (client *WebAppsClient) putPrivateAccessVnetCreateRequest(ctx context.Context, resourceGroupName string, name string, access PrivateAccess, _ *WebAppsClientPutPrivateAccessVnetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23179,7 +23176,7 @@ func (client *WebAppsClient) putPrivateAccessVnetCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, access); err != nil { @@ -23201,7 +23198,7 @@ func (client *WebAppsClient) putPrivateAccessVnetHandleResponse(resp *http.Respo // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -23231,7 +23228,7 @@ func (client *WebAppsClient) PutPrivateAccessVnetSlot(ctx context.Context, resou } // putPrivateAccessVnetSlotCreateRequest creates the PutPrivateAccessVnetSlot request. -func (client *WebAppsClient) putPrivateAccessVnetSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, access PrivateAccess, options *WebAppsClientPutPrivateAccessVnetSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) putPrivateAccessVnetSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, access PrivateAccess, _ *WebAppsClientPutPrivateAccessVnetSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateAccess/virtualNetworks" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23254,7 +23251,7 @@ func (client *WebAppsClient) putPrivateAccessVnetSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, access); err != nil { @@ -23275,7 +23272,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -23303,7 +23300,7 @@ func (client *WebAppsClient) RecoverSiteConfigurationSnapshot(ctx context.Contex } // recoverSiteConfigurationSnapshotCreateRequest creates the RecoverSiteConfigurationSnapshot request. -func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, options *WebAppsClientRecoverSiteConfigurationSnapshotOptions) (*policy.Request, error) { +func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, _ *WebAppsClientRecoverSiteConfigurationSnapshotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots/{snapshotId}/recover" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23326,7 +23323,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23335,7 +23332,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -23364,7 +23361,7 @@ func (client *WebAppsClient) RecoverSiteConfigurationSnapshotSlot(ctx context.Co } // recoverSiteConfigurationSnapshotSlotCreateRequest creates the RecoverSiteConfigurationSnapshotSlot request. -func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, slot string, options *WebAppsClientRecoverSiteConfigurationSnapshotSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, snapshotID string, slot string, _ *WebAppsClientRecoverSiteConfigurationSnapshotSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}/recover" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23391,7 +23388,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23401,7 +23398,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c // modified by calling the API with POST. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -23428,7 +23425,7 @@ func (client *WebAppsClient) ResetProductionSlotConfig(ctx context.Context, reso } // resetProductionSlotConfigCreateRequest creates the ResetProductionSlotConfig request. -func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientResetProductionSlotConfigOptions) (*policy.Request, error) { +func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientResetProductionSlotConfigOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resetSlotConfig" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23447,7 +23444,7 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23457,7 +23454,7 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. // modified by calling the API with POST. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -23486,7 +23483,7 @@ func (client *WebAppsClient) ResetSlotConfigurationSlot(ctx context.Context, res } // resetSlotConfigurationSlotCreateRequest creates the ResetSlotConfigurationSlot request. -func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientResetSlotConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientResetSlotConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resetSlotConfig" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23509,7 +23506,7 @@ func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23518,7 +23515,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -23563,7 +23560,7 @@ func (client *WebAppsClient) restartCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -23578,7 +23575,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -23628,7 +23625,7 @@ func (client *WebAppsClient) restartSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -23643,7 +23640,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -23669,7 +23666,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restore(ctx context.Context, resourceGroupName string, name string, backupID string, request RestoreRequest, options *WebAppsClientBeginRestoreOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestore" @@ -23692,7 +23689,7 @@ func (client *WebAppsClient) restore(ctx context.Context, resourceGroupName stri } // restoreCreateRequest creates the Restore request. -func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, request RestoreRequest, options *WebAppsClientBeginRestoreOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, request RestoreRequest, _ *WebAppsClientBeginRestoreOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}/restore" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23715,7 +23712,7 @@ func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -23727,7 +23724,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - request - Information on restore request . @@ -23753,7 +23750,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreFromBackupBlob(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreFromBackupBlob" @@ -23776,7 +23773,7 @@ func (client *WebAppsClient) restoreFromBackupBlob(ctx context.Context, resource } // restoreFromBackupBlobCreateRequest creates the RestoreFromBackupBlob request. -func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Context, resourceGroupName string, name string, request RestoreRequest, _ *WebAppsClientBeginRestoreFromBackupBlobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromBackupBlob" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23795,7 +23792,7 @@ func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -23807,7 +23804,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -23834,7 +23831,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreFromBackupBlobSlot(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreFromBackupBlobSlot" @@ -23857,7 +23854,7 @@ func (client *WebAppsClient) restoreFromBackupBlobSlot(ctx context.Context, reso } // restoreFromBackupBlobSlotCreateRequest creates the RestoreFromBackupBlobSlot request. -func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreFromBackupBlobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request RestoreRequest, _ *WebAppsClientBeginRestoreFromBackupBlobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restoreFromBackupBlob" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23880,7 +23877,7 @@ func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -23892,7 +23889,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - restoreRequest - Deleted web app restore information. @@ -23918,7 +23915,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreFromDeletedApp(ctx context.Context, resourceGroupName string, name string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreFromDeletedApp" @@ -23941,7 +23938,7 @@ func (client *WebAppsClient) restoreFromDeletedApp(ctx context.Context, resource } // restoreFromDeletedAppCreateRequest creates the RestoreFromDeletedApp request. -func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Context, resourceGroupName string, name string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Context, resourceGroupName string, name string, restoreRequest DeletedAppRestoreRequest, _ *WebAppsClientBeginRestoreFromDeletedAppOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromDeletedApp" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -23960,7 +23957,7 @@ func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -23972,7 +23969,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -23999,7 +23996,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreFromDeletedAppSlot(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreFromDeletedAppSlot" @@ -24022,7 +24019,7 @@ func (client *WebAppsClient) restoreFromDeletedAppSlot(ctx context.Context, reso } // restoreFromDeletedAppSlotCreateRequest creates the RestoreFromDeletedAppSlot request. -func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest DeletedAppRestoreRequest, options *WebAppsClientBeginRestoreFromDeletedAppSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest DeletedAppRestoreRequest, _ *WebAppsClientBeginRestoreFromDeletedAppSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restoreFromDeletedApp" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24045,7 +24042,7 @@ func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -24057,7 +24054,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -24085,7 +24082,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreSlot(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreSlot" @@ -24108,7 +24105,7 @@ func (client *WebAppsClient) restoreSlot(ctx context.Context, resourceGroupName } // restoreSlotCreateRequest creates the RestoreSlot request. -func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request RestoreRequest, options *WebAppsClientBeginRestoreSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, backupID string, slot string, request RestoreRequest, _ *WebAppsClientBeginRestoreSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/restore" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24135,7 +24132,7 @@ func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -24147,7 +24144,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -24174,7 +24171,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreSnapshot(ctx context.Context, resourceGroupName string, name string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreSnapshot" @@ -24197,7 +24194,7 @@ func (client *WebAppsClient) restoreSnapshot(ctx context.Context, resourceGroupN } // restoreSnapshotCreateRequest creates the RestoreSnapshot request. -func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, resourceGroupName string, name string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, resourceGroupName string, name string, restoreRequest SnapshotRestoreRequest, _ *WebAppsClientBeginRestoreSnapshotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreSnapshot" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24216,7 +24213,7 @@ func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -24228,7 +24225,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -24256,7 +24253,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) restoreSnapshotSlot(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginRestoreSnapshotSlot" @@ -24279,7 +24276,7 @@ func (client *WebAppsClient) restoreSnapshotSlot(ctx context.Context, resourceGr } // restoreSnapshotSlotCreateRequest creates the RestoreSnapshotSlot request. -func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest SnapshotRestoreRequest, options *WebAppsClientBeginRestoreSnapshotSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, restoreRequest SnapshotRestoreRequest, _ *WebAppsClientBeginRestoreSnapshotSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/restoreSnapshot" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24302,7 +24299,7 @@ func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -24314,7 +24311,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24342,7 +24339,7 @@ func (client *WebAppsClient) RunTriggeredWebJob(ctx context.Context, resourceGro } // runTriggeredWebJobCreateRequest creates the RunTriggeredWebJob request. -func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientRunTriggeredWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientRunTriggeredWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/run" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24365,7 +24362,7 @@ func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24374,7 +24371,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24403,7 +24400,7 @@ func (client *WebAppsClient) RunTriggeredWebJobSlot(ctx context.Context, resourc } // runTriggeredWebJobSlotCreateRequest creates the RunTriggeredWebJobSlot request. -func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientRunTriggeredWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientRunTriggeredWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/run" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24430,7 +24427,7 @@ func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24439,7 +24436,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -24465,7 +24462,7 @@ func (client *WebAppsClient) Start(ctx context.Context, resourceGroupName string } // startCreateRequest creates the Start request. -func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStartOptions) (*policy.Request, error) { +func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientStartOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/start" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24484,7 +24481,7 @@ func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24493,7 +24490,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24521,7 +24518,7 @@ func (client *WebAppsClient) StartContinuousWebJob(ctx context.Context, resource } // startContinuousWebJobCreateRequest creates the StartContinuousWebJob request. -func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientStartContinuousWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientStartContinuousWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/start" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24544,7 +24541,7 @@ func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24553,7 +24550,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24582,7 +24579,7 @@ func (client *WebAppsClient) StartContinuousWebJobSlot(ctx context.Context, reso } // startContinuousWebJobSlotCreateRequest creates the StartContinuousWebJobSlot request. -func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientStartContinuousWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientStartContinuousWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}/start" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24609,7 +24606,7 @@ func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24618,7 +24615,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -24643,7 +24640,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) startNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartNetworkTraceOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginStartNetworkTrace" @@ -24685,7 +24682,7 @@ func (client *WebAppsClient) startNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -24703,7 +24700,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -24729,7 +24726,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) startNetworkTraceSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginStartNetworkTraceSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginStartNetworkTraceSlot" @@ -24775,7 +24772,7 @@ func (client *WebAppsClient) startNetworkTraceSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -24793,7 +24790,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -24820,7 +24817,7 @@ func (client *WebAppsClient) StartSlot(ctx context.Context, resourceGroupName st } // startSlotCreateRequest creates the StartSlot request. -func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStartSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientStartSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/start" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -24843,7 +24840,7 @@ func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24852,7 +24849,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -24899,7 +24896,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -24926,7 +24923,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -24951,7 +24948,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) startWebSiteNetworkTraceOperation(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginStartWebSiteNetworkTraceOperation" @@ -24993,7 +24990,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -25011,7 +25008,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25037,7 +25034,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlot(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginStartWebSiteNetworkTraceOperationSlot" @@ -25083,7 +25080,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -25101,7 +25098,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25153,7 +25150,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -25180,7 +25177,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25206,7 +25203,7 @@ func (client *WebAppsClient) Stop(ctx context.Context, resourceGroupName string, } // stopCreateRequest creates the Stop request. -func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStopOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientStopOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stop" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25225,7 +25222,7 @@ func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25234,7 +25231,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -25262,7 +25259,7 @@ func (client *WebAppsClient) StopContinuousWebJob(ctx context.Context, resourceG } // stopContinuousWebJobCreateRequest creates the StopContinuousWebJob request. -func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, options *WebAppsClientStopContinuousWebJobOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, _ *WebAppsClientStopContinuousWebJobOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}/stop" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25285,7 +25282,7 @@ func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25294,7 +25291,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -25323,7 +25320,7 @@ func (client *WebAppsClient) StopContinuousWebJobSlot(ctx context.Context, resou } // stopContinuousWebJobSlotCreateRequest creates the StopContinuousWebJobSlot request. -func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, options *WebAppsClientStopContinuousWebJobSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, webJobName string, slot string, _ *WebAppsClientStopContinuousWebJobSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}/stop" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25350,7 +25347,7 @@ func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25359,7 +25356,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -25386,7 +25383,7 @@ func (client *WebAppsClient) StopNetworkTrace(ctx context.Context, resourceGroup } // stopNetworkTraceCreateRequest creates the StopNetworkTrace request. -func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStopNetworkTraceOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientStopNetworkTraceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stopNetworkTrace" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25405,7 +25402,7 @@ func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25414,7 +25411,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25442,7 +25439,7 @@ func (client *WebAppsClient) StopNetworkTraceSlot(ctx context.Context, resourceG } // stopNetworkTraceSlotCreateRequest creates the StopNetworkTraceSlot request. -func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStopNetworkTraceSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientStopNetworkTraceSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stopNetworkTrace" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25465,7 +25462,7 @@ func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25474,7 +25471,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25501,7 +25498,7 @@ func (client *WebAppsClient) StopSlot(ctx context.Context, resourceGroupName str } // stopSlotCreateRequest creates the StopSlot request. -func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStopSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientStopSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stop" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25524,7 +25521,7 @@ func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25533,7 +25530,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -25560,7 +25557,7 @@ func (client *WebAppsClient) StopWebSiteNetworkTrace(ctx context.Context, resour } // stopWebSiteNetworkTraceCreateRequest creates the StopWebSiteNetworkTrace request. -func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientStopWebSiteNetworkTraceOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientStopWebSiteNetworkTraceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25579,7 +25576,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25588,7 +25585,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25616,7 +25613,7 @@ func (client *WebAppsClient) StopWebSiteNetworkTraceSlot(ctx context.Context, re } // stopWebSiteNetworkTraceSlotCreateRequest creates the StopWebSiteNetworkTraceSlot request. -func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientStopWebSiteNetworkTraceSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientStopWebSiteNetworkTraceSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/stop" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25639,7 +25636,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25648,7 +25645,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25674,7 +25671,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) swapSlot(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginSwapSlot" @@ -25697,7 +25694,7 @@ func (client *WebAppsClient) swapSlot(ctx context.Context, resourceGroupName str } // swapSlotCreateRequest creates the SwapSlot request. -func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, slotSwapEntity CsmSlotEntity, _ *WebAppsClientBeginSwapSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsswap" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25720,7 +25717,7 @@ func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -25732,7 +25729,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25758,7 +25755,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WebAppsClient) swapSlotWithProduction(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotWithProductionOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginSwapSlotWithProduction" @@ -25781,7 +25778,7 @@ func (client *WebAppsClient) swapSlotWithProduction(ctx context.Context, resourc } // swapSlotWithProductionCreateRequest creates the SwapSlotWithProduction request. -func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, options *WebAppsClientBeginSwapSlotWithProductionOptions) (*policy.Request, error) { +func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Context, resourceGroupName string, name string, slotSwapEntity CsmSlotEntity, _ *WebAppsClientBeginSwapSlotWithProductionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25800,7 +25797,7 @@ func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -25812,7 +25809,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -25839,7 +25836,7 @@ func (client *WebAppsClient) SyncFunctionTriggers(ctx context.Context, resourceG } // syncFunctionTriggersCreateRequest creates the SyncFunctionTriggers request. -func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientSyncFunctionTriggersOptions) (*policy.Request, error) { +func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientSyncFunctionTriggersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/syncfunctiontriggers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25858,7 +25855,7 @@ func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25867,7 +25864,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -25895,7 +25892,7 @@ func (client *WebAppsClient) SyncFunctionTriggersSlot(ctx context.Context, resou } // syncFunctionTriggersSlotCreateRequest creates the SyncFunctionTriggersSlot request. -func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientSyncFunctionTriggersSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientSyncFunctionTriggersSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/syncfunctiontriggers" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25918,7 +25915,7 @@ func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25927,7 +25924,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -25953,7 +25950,7 @@ func (client *WebAppsClient) SyncFunctions(ctx context.Context, resourceGroupNam } // syncFunctionsCreateRequest creates the SyncFunctions request. -func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientSyncFunctionsOptions) (*policy.Request, error) { +func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientSyncFunctionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/sync" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -25972,7 +25969,7 @@ func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25981,7 +25978,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -26009,7 +26006,7 @@ func (client *WebAppsClient) SyncFunctionsSlot(ctx context.Context, resourceGrou } // syncFunctionsSlotCreateRequest creates the SyncFunctionsSlot request. -func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientSyncFunctionsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientSyncFunctionsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/host/default/sync" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26032,7 +26029,7 @@ func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -26041,7 +26038,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -26067,7 +26064,7 @@ func (client *WebAppsClient) SyncRepository(ctx context.Context, resourceGroupNa } // syncRepositoryCreateRequest creates the SyncRepository request. -func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientSyncRepositoryOptions) (*policy.Request, error) { +func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientSyncRepositoryOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sync" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26086,7 +26083,7 @@ func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -26095,7 +26092,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -26123,7 +26120,7 @@ func (client *WebAppsClient) SyncRepositorySlot(ctx context.Context, resourceGro } // syncRepositorySlotCreateRequest creates the SyncRepositorySlot request. -func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, options *WebAppsClientSyncRepositorySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, _ *WebAppsClientSyncRepositorySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sync" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26146,7 +26143,7 @@ func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -26155,7 +26152,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -26183,7 +26180,7 @@ func (client *WebAppsClient) Update(ctx context.Context, resourceGroupName strin } // updateCreateRequest creates the Update request. -func (client *WebAppsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, siteEnvelope SitePatchResource, options *WebAppsClientUpdateOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, siteEnvelope SitePatchResource, _ *WebAppsClientUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26202,7 +26199,7 @@ func (client *WebAppsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -26223,7 +26220,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - appSettings - Application settings of the app. @@ -26252,7 +26249,7 @@ func (client *WebAppsClient) UpdateApplicationSettings(ctx context.Context, reso } // updateApplicationSettingsCreateRequest creates the UpdateApplicationSettings request. -func (client *WebAppsClient) updateApplicationSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, options *WebAppsClientUpdateApplicationSettingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateApplicationSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, appSettings StringDictionary, _ *WebAppsClientUpdateApplicationSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/appsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26271,7 +26268,7 @@ func (client *WebAppsClient) updateApplicationSettingsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -26292,7 +26289,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -26323,7 +26320,7 @@ func (client *WebAppsClient) UpdateApplicationSettingsSlot(ctx context.Context, } // updateApplicationSettingsSlotCreateRequest creates the UpdateApplicationSettingsSlot request. -func (client *WebAppsClient) updateApplicationSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, appSettings StringDictionary, options *WebAppsClientUpdateApplicationSettingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateApplicationSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, appSettings StringDictionary, _ *WebAppsClientUpdateApplicationSettingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26346,7 +26343,7 @@ func (client *WebAppsClient) updateApplicationSettingsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -26367,7 +26364,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - siteAuthSettings - Auth settings associated with web app. @@ -26396,7 +26393,7 @@ func (client *WebAppsClient) UpdateAuthSettings(ctx context.Context, resourceGro } // updateAuthSettingsCreateRequest creates the UpdateAuthSettings request. -func (client *WebAppsClient) updateAuthSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, siteAuthSettings SiteAuthSettings, options *WebAppsClientUpdateAuthSettingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateAuthSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, siteAuthSettings SiteAuthSettings, _ *WebAppsClientUpdateAuthSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26415,7 +26412,7 @@ func (client *WebAppsClient) updateAuthSettingsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettings); err != nil { @@ -26436,7 +26433,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -26466,7 +26463,7 @@ func (client *WebAppsClient) UpdateAuthSettingsSlot(ctx context.Context, resourc } // updateAuthSettingsSlotCreateRequest creates the UpdateAuthSettingsSlot request. -func (client *WebAppsClient) updateAuthSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteAuthSettings SiteAuthSettings, options *WebAppsClientUpdateAuthSettingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateAuthSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteAuthSettings SiteAuthSettings, _ *WebAppsClientUpdateAuthSettingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26489,7 +26486,7 @@ func (client *WebAppsClient) updateAuthSettingsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettings); err != nil { @@ -26510,7 +26507,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - siteAuthSettingsV2 - Auth settings associated with web app. @@ -26539,7 +26536,7 @@ func (client *WebAppsClient) UpdateAuthSettingsV2(ctx context.Context, resourceG } // updateAuthSettingsV2CreateRequest creates the UpdateAuthSettingsV2 request. -func (client *WebAppsClient) updateAuthSettingsV2CreateRequest(ctx context.Context, resourceGroupName string, name string, siteAuthSettingsV2 SiteAuthSettingsV2, options *WebAppsClientUpdateAuthSettingsV2Options) (*policy.Request, error) { +func (client *WebAppsClient) updateAuthSettingsV2CreateRequest(ctx context.Context, resourceGroupName string, name string, siteAuthSettingsV2 SiteAuthSettingsV2, _ *WebAppsClientUpdateAuthSettingsV2Options) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26558,7 +26555,7 @@ func (client *WebAppsClient) updateAuthSettingsV2CreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettingsV2); err != nil { @@ -26579,7 +26576,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -26609,7 +26606,7 @@ func (client *WebAppsClient) UpdateAuthSettingsV2Slot(ctx context.Context, resou } // updateAuthSettingsV2SlotCreateRequest creates the UpdateAuthSettingsV2Slot request. -func (client *WebAppsClient) updateAuthSettingsV2SlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteAuthSettingsV2 SiteAuthSettingsV2, options *WebAppsClientUpdateAuthSettingsV2SlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateAuthSettingsV2SlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteAuthSettingsV2 SiteAuthSettingsV2, _ *WebAppsClientUpdateAuthSettingsV2SlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26632,7 +26629,7 @@ func (client *WebAppsClient) updateAuthSettingsV2SlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettingsV2); err != nil { @@ -26653,7 +26650,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - azureStorageAccounts - Azure storage accounts of the app. @@ -26682,7 +26679,7 @@ func (client *WebAppsClient) UpdateAzureStorageAccounts(ctx context.Context, res } // updateAzureStorageAccountsCreateRequest creates the UpdateAzureStorageAccounts request. -func (client *WebAppsClient) updateAzureStorageAccountsCreateRequest(ctx context.Context, resourceGroupName string, name string, azureStorageAccounts AzureStoragePropertyDictionaryResource, options *WebAppsClientUpdateAzureStorageAccountsOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateAzureStorageAccountsCreateRequest(ctx context.Context, resourceGroupName string, name string, azureStorageAccounts AzureStoragePropertyDictionaryResource, _ *WebAppsClientUpdateAzureStorageAccountsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26701,7 +26698,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, azureStorageAccounts); err != nil { @@ -26722,7 +26719,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -26753,7 +26750,7 @@ func (client *WebAppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, } // updateAzureStorageAccountsSlotCreateRequest creates the UpdateAzureStorageAccountsSlot request. -func (client *WebAppsClient) updateAzureStorageAccountsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, azureStorageAccounts AzureStoragePropertyDictionaryResource, options *WebAppsClientUpdateAzureStorageAccountsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateAzureStorageAccountsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, azureStorageAccounts AzureStoragePropertyDictionaryResource, _ *WebAppsClientUpdateAzureStorageAccountsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26776,7 +26773,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, azureStorageAccounts); err != nil { @@ -26797,7 +26794,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - request - Edited backup configuration. @@ -26826,7 +26823,7 @@ func (client *WebAppsClient) UpdateBackupConfiguration(ctx context.Context, reso } // updateBackupConfigurationCreateRequest creates the UpdateBackupConfiguration request. -func (client *WebAppsClient) updateBackupConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, request BackupRequest, options *WebAppsClientUpdateBackupConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateBackupConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, request BackupRequest, _ *WebAppsClientUpdateBackupConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26845,7 +26842,7 @@ func (client *WebAppsClient) updateBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -26866,7 +26863,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -26897,7 +26894,7 @@ func (client *WebAppsClient) UpdateBackupConfigurationSlot(ctx context.Context, } // updateBackupConfigurationSlotCreateRequest creates the UpdateBackupConfigurationSlot request. -func (client *WebAppsClient) updateBackupConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request BackupRequest, options *WebAppsClientUpdateBackupConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateBackupConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, request BackupRequest, _ *WebAppsClientUpdateBackupConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26920,7 +26917,7 @@ func (client *WebAppsClient) updateBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -26941,7 +26938,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -26970,7 +26967,7 @@ func (client *WebAppsClient) UpdateConfiguration(ctx context.Context, resourceGr } // updateConfigurationCreateRequest creates the UpdateConfiguration request. -func (client *WebAppsClient) updateConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, siteConfig SiteConfigResource, options *WebAppsClientUpdateConfigurationOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateConfigurationCreateRequest(ctx context.Context, resourceGroupName string, name string, siteConfig SiteConfigResource, _ *WebAppsClientUpdateConfigurationOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -26989,7 +26986,7 @@ func (client *WebAppsClient) updateConfigurationCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -27010,7 +27007,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -27040,7 +27037,7 @@ func (client *WebAppsClient) UpdateConfigurationSlot(ctx context.Context, resour } // updateConfigurationSlotCreateRequest creates the UpdateConfigurationSlot request. -func (client *WebAppsClient) updateConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteConfig SiteConfigResource, options *WebAppsClientUpdateConfigurationSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateConfigurationSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteConfig SiteConfigResource, _ *WebAppsClientUpdateConfigurationSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27063,7 +27060,7 @@ func (client *WebAppsClient) updateConfigurationSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -27084,7 +27081,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -27113,7 +27110,7 @@ func (client *WebAppsClient) UpdateConnectionStrings(ctx context.Context, resour } // updateConnectionStringsCreateRequest creates the UpdateConnectionStrings request. -func (client *WebAppsClient) updateConnectionStringsCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionStrings ConnectionStringDictionary, options *WebAppsClientUpdateConnectionStringsOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateConnectionStringsCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionStrings ConnectionStringDictionary, _ *WebAppsClientUpdateConnectionStringsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27132,7 +27129,7 @@ func (client *WebAppsClient) updateConnectionStringsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionStrings); err != nil { @@ -27153,7 +27150,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -27184,7 +27181,7 @@ func (client *WebAppsClient) UpdateConnectionStringsSlot(ctx context.Context, re } // updateConnectionStringsSlotCreateRequest creates the UpdateConnectionStringsSlot request. -func (client *WebAppsClient) updateConnectionStringsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, connectionStrings ConnectionStringDictionary, options *WebAppsClientUpdateConnectionStringsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateConnectionStringsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, connectionStrings ConnectionStringDictionary, _ *WebAppsClientUpdateConnectionStringsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27207,7 +27204,7 @@ func (client *WebAppsClient) updateConnectionStringsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionStrings); err != nil { @@ -27228,7 +27225,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -27257,7 +27254,7 @@ func (client *WebAppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, res } // updateDiagnosticLogsConfigCreateRequest creates the UpdateDiagnosticLogsConfig request. -func (client *WebAppsClient) updateDiagnosticLogsConfigCreateRequest(ctx context.Context, resourceGroupName string, name string, siteLogsConfig SiteLogsConfig, options *WebAppsClientUpdateDiagnosticLogsConfigOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateDiagnosticLogsConfigCreateRequest(ctx context.Context, resourceGroupName string, name string, siteLogsConfig SiteLogsConfig, _ *WebAppsClientUpdateDiagnosticLogsConfigOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27276,7 +27273,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteLogsConfig); err != nil { @@ -27297,7 +27294,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -27328,7 +27325,7 @@ func (client *WebAppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, } // updateDiagnosticLogsConfigSlotCreateRequest creates the UpdateDiagnosticLogsConfigSlot request. -func (client *WebAppsClient) updateDiagnosticLogsConfigSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteLogsConfig SiteLogsConfig, options *WebAppsClientUpdateDiagnosticLogsConfigSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateDiagnosticLogsConfigSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteLogsConfig SiteLogsConfig, _ *WebAppsClientUpdateDiagnosticLogsConfigSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27351,7 +27348,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteLogsConfig); err != nil { @@ -27373,7 +27370,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotHandleResponse(resp * // ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -27403,7 +27400,7 @@ func (client *WebAppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context } // updateDomainOwnershipIdentifierCreateRequest creates the UpdateDomainOwnershipIdentifier request. -func (client *WebAppsClient) updateDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, domainOwnershipIdentifier Identifier, options *WebAppsClientUpdateDomainOwnershipIdentifierOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateDomainOwnershipIdentifierCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, domainOwnershipIdentifier Identifier, _ *WebAppsClientUpdateDomainOwnershipIdentifierOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27426,7 +27423,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -27448,7 +27445,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierHandleResponse(resp // existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -27479,7 +27476,7 @@ func (client *WebAppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Con } // updateDomainOwnershipIdentifierSlotCreateRequest creates the UpdateDomainOwnershipIdentifierSlot request. -func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, domainOwnershipIdentifier Identifier, options *WebAppsClientUpdateDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, domainOwnershipIdentifierName string, slot string, domainOwnershipIdentifier Identifier, _ *WebAppsClientUpdateDomainOwnershipIdentifierSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27506,7 +27503,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -27527,7 +27524,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -27555,7 +27552,7 @@ func (client *WebAppsClient) UpdateFtpAllowed(ctx context.Context, resourceGroup } // updateFtpAllowedCreateRequest creates the UpdateFtpAllowed request. -func (client *WebAppsClient) updateFtpAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateFtpAllowedOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateFtpAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, _ *WebAppsClientUpdateFtpAllowedOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27574,7 +27571,7 @@ func (client *WebAppsClient) updateFtpAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -27595,7 +27592,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -27623,7 +27620,7 @@ func (client *WebAppsClient) UpdateFtpAllowedSlot(ctx context.Context, resourceG } // updateFtpAllowedSlotCreateRequest creates the UpdateFtpAllowedSlot request. -func (client *WebAppsClient) updateFtpAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateFtpAllowedSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateFtpAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, _ *WebAppsClientUpdateFtpAllowedSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/ftp" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27646,7 +27643,7 @@ func (client *WebAppsClient) updateFtpAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -27667,7 +27664,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -27698,7 +27695,7 @@ func (client *WebAppsClient) UpdateHybridConnection(ctx context.Context, resourc } // updateHybridConnectionCreateRequest creates the UpdateHybridConnection request. -func (client *WebAppsClient) updateHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, connectionEnvelope HybridConnection, options *WebAppsClientUpdateHybridConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateHybridConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, connectionEnvelope HybridConnection, _ *WebAppsClientUpdateHybridConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27725,7 +27722,7 @@ func (client *WebAppsClient) updateHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -27746,7 +27743,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -27778,7 +27775,7 @@ func (client *WebAppsClient) UpdateHybridConnectionSlot(ctx context.Context, res } // updateHybridConnectionSlotCreateRequest creates the UpdateHybridConnectionSlot request. -func (client *WebAppsClient) updateHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope HybridConnection, options *WebAppsClientUpdateHybridConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateHybridConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope HybridConnection, _ *WebAppsClientUpdateHybridConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27809,7 +27806,7 @@ func (client *WebAppsClient) updateHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -27830,7 +27827,7 @@ func (client *WebAppsClient) updateHybridConnectionSlotHandleResponse(resp *http // UpdateMachineKey - Updates the machine key of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientUpdateMachineKeyOptions contains the optional parameters for the WebAppsClient.UpdateMachineKey @@ -27858,7 +27855,7 @@ func (client *WebAppsClient) UpdateMachineKey(ctx context.Context, resourceGroup } // updateMachineKeyCreateRequest creates the UpdateMachineKey request. -func (client *WebAppsClient) updateMachineKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientUpdateMachineKeyOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateMachineKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *WebAppsClientUpdateMachineKeyOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/updatemachinekey" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27877,7 +27874,7 @@ func (client *WebAppsClient) updateMachineKeyCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -27895,7 +27892,7 @@ func (client *WebAppsClient) updateMachineKeyHandleResponse(resp *http.Response) // UpdateMetadata - Description for Replaces the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -27923,7 +27920,7 @@ func (client *WebAppsClient) UpdateMetadata(ctx context.Context, resourceGroupNa } // updateMetadataCreateRequest creates the UpdateMetadata request. -func (client *WebAppsClient) updateMetadataCreateRequest(ctx context.Context, resourceGroupName string, name string, metadata StringDictionary, options *WebAppsClientUpdateMetadataOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateMetadataCreateRequest(ctx context.Context, resourceGroupName string, name string, metadata StringDictionary, _ *WebAppsClientUpdateMetadataOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/metadata" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -27942,7 +27939,7 @@ func (client *WebAppsClient) updateMetadataCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, metadata); err != nil { @@ -27963,7 +27960,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -27993,7 +27990,7 @@ func (client *WebAppsClient) UpdateMetadataSlot(ctx context.Context, resourceGro } // updateMetadataSlotCreateRequest creates the UpdateMetadataSlot request. -func (client *WebAppsClient) updateMetadataSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, metadata StringDictionary, options *WebAppsClientUpdateMetadataSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateMetadataSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, metadata StringDictionary, _ *WebAppsClientUpdateMetadataSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/metadata" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28016,7 +28013,7 @@ func (client *WebAppsClient) updateMetadataSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, metadata); err != nil { @@ -28037,7 +28034,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -28067,7 +28064,7 @@ func (client *WebAppsClient) UpdatePremierAddOn(ctx context.Context, resourceGro } // updatePremierAddOnCreateRequest creates the UpdatePremierAddOn request. -func (client *WebAppsClient) updatePremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource, options *WebAppsClientUpdatePremierAddOnOptions) (*policy.Request, error) { +func (client *WebAppsClient) updatePremierAddOnCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, premierAddOn PremierAddOnPatchResource, _ *WebAppsClientUpdatePremierAddOnOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28090,7 +28087,7 @@ func (client *WebAppsClient) updatePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -28111,7 +28108,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -28143,7 +28140,7 @@ func (client *WebAppsClient) UpdatePremierAddOnSlot(ctx context.Context, resourc } // updatePremierAddOnSlotCreateRequest creates the UpdatePremierAddOnSlot request. -func (client *WebAppsClient) updatePremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, premierAddOn PremierAddOnPatchResource, options *WebAppsClientUpdatePremierAddOnSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updatePremierAddOnSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, premierAddOnName string, slot string, premierAddOn PremierAddOnPatchResource, _ *WebAppsClientUpdatePremierAddOnSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28170,7 +28167,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -28192,7 +28189,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotHandleResponse(resp *http.Res // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -28222,7 +28219,7 @@ func (client *WebAppsClient) UpdateRelayServiceConnection(ctx context.Context, r } // updateRelayServiceConnectionCreateRequest creates the UpdateRelayServiceConnection request. -func (client *WebAppsClient) updateRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientUpdateRelayServiceConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateRelayServiceConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, connectionEnvelope RelayServiceConnectionEntity, _ *WebAppsClientUpdateRelayServiceConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28245,7 +28242,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -28267,7 +28264,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionHandleResponse(resp *ht // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -28299,7 +28296,7 @@ func (client *WebAppsClient) UpdateRelayServiceConnectionSlot(ctx context.Contex } // updateRelayServiceConnectionSlotCreateRequest creates the UpdateRelayServiceConnectionSlot request. -func (client *WebAppsClient) updateRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, connectionEnvelope RelayServiceConnectionEntity, options *WebAppsClientUpdateRelayServiceConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateRelayServiceConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, entityName string, slot string, connectionEnvelope RelayServiceConnectionEntity, _ *WebAppsClientUpdateRelayServiceConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28326,7 +28323,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -28347,7 +28344,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -28375,7 +28372,7 @@ func (client *WebAppsClient) UpdateScmAllowed(ctx context.Context, resourceGroup } // updateScmAllowedCreateRequest creates the UpdateScmAllowed request. -func (client *WebAppsClient) updateScmAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateScmAllowedOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateScmAllowedCreateRequest(ctx context.Context, resourceGroupName string, name string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, _ *WebAppsClientUpdateScmAllowedOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28394,7 +28391,7 @@ func (client *WebAppsClient) updateScmAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -28415,7 +28412,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -28443,7 +28440,7 @@ func (client *WebAppsClient) UpdateScmAllowedSlot(ctx context.Context, resourceG } // updateScmAllowedSlotCreateRequest creates the UpdateScmAllowedSlot request. -func (client *WebAppsClient) updateScmAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, options *WebAppsClientUpdateScmAllowedSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateScmAllowedSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, csmPublishingAccessPoliciesEntity CsmPublishingCredentialsPoliciesEntity, _ *WebAppsClientUpdateScmAllowedSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/scm" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28466,7 +28463,7 @@ func (client *WebAppsClient) updateScmAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -28487,7 +28484,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - pushSettings - Push settings associated with web app. @@ -28516,7 +28513,7 @@ func (client *WebAppsClient) UpdateSitePushSettings(ctx context.Context, resourc } // updateSitePushSettingsCreateRequest creates the UpdateSitePushSettings request. -func (client *WebAppsClient) updateSitePushSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, pushSettings PushSettings, options *WebAppsClientUpdateSitePushSettingsOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSitePushSettingsCreateRequest(ctx context.Context, resourceGroupName string, name string, pushSettings PushSettings, _ *WebAppsClientUpdateSitePushSettingsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/pushsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28535,7 +28532,7 @@ func (client *WebAppsClient) updateSitePushSettingsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, pushSettings); err != nil { @@ -28556,7 +28553,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -28586,7 +28583,7 @@ func (client *WebAppsClient) UpdateSitePushSettingsSlot(ctx context.Context, res } // updateSitePushSettingsSlotCreateRequest creates the UpdateSitePushSettingsSlot request. -func (client *WebAppsClient) updateSitePushSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, pushSettings PushSettings, options *WebAppsClientUpdateSitePushSettingsSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSitePushSettingsSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, pushSettings PushSettings, _ *WebAppsClientUpdateSitePushSettingsSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28609,7 +28606,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, pushSettings); err != nil { @@ -28631,7 +28628,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotHandleResponse(resp *http // app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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 @@ -28661,7 +28658,7 @@ func (client *WebAppsClient) UpdateSlot(ctx context.Context, resourceGroupName s } // updateSlotCreateRequest creates the UpdateSlot request. -func (client *WebAppsClient) updateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope SitePatchResource, options *WebAppsClientUpdateSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteEnvelope SitePatchResource, _ *WebAppsClientUpdateSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28684,7 +28681,7 @@ func (client *WebAppsClient) updateSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -28706,7 +28703,7 @@ func (client *WebAppsClient) updateSlotHandleResponse(resp *http.Response) (WebA // with the slot during swap operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-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. @@ -28735,7 +28732,7 @@ func (client *WebAppsClient) UpdateSlotConfigurationNames(ctx context.Context, r } // updateSlotConfigurationNamesCreateRequest creates the UpdateSlotConfigurationNames request. -func (client *WebAppsClient) updateSlotConfigurationNamesCreateRequest(ctx context.Context, resourceGroupName string, name string, slotConfigNames SlotConfigNamesResource, options *WebAppsClientUpdateSlotConfigurationNamesOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSlotConfigurationNamesCreateRequest(ctx context.Context, resourceGroupName string, name string, slotConfigNames SlotConfigNamesResource, _ *WebAppsClientUpdateSlotConfigurationNamesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28754,7 +28751,7 @@ func (client *WebAppsClient) updateSlotConfigurationNamesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotConfigNames); err != nil { @@ -28775,7 +28772,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -28804,7 +28801,7 @@ func (client *WebAppsClient) UpdateSourceControl(ctx context.Context, resourceGr } // updateSourceControlCreateRequest creates the UpdateSourceControl request. -func (client *WebAppsClient) updateSourceControlCreateRequest(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, options *WebAppsClientUpdateSourceControlOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSourceControlCreateRequest(ctx context.Context, resourceGroupName string, name string, siteSourceControl SiteSourceControl, _ *WebAppsClientUpdateSourceControlOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28823,7 +28820,7 @@ func (client *WebAppsClient) updateSourceControlCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -28844,7 +28841,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -28875,7 +28872,7 @@ func (client *WebAppsClient) UpdateSourceControlSlot(ctx context.Context, resour } // updateSourceControlSlotCreateRequest creates the UpdateSourceControlSlot request. -func (client *WebAppsClient) updateSourceControlSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, options *WebAppsClientUpdateSourceControlSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSourceControlSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, siteSourceControl SiteSourceControl, _ *WebAppsClientUpdateSourceControlSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28898,7 +28895,7 @@ func (client *WebAppsClient) updateSourceControlSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -28921,7 +28918,7 @@ func (client *WebAppsClient) updateSourceControlSlotHandleResponse(resp *http.Re // 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -28950,7 +28947,7 @@ func (client *WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheck(ctx co } // updateSwiftVirtualNetworkConnectionWithCheckCreateRequest creates the UpdateSwiftVirtualNetworkConnectionWithCheck request. -func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckCreateRequest(ctx context.Context, resourceGroupName string, name string, connectionEnvelope SwiftVirtualNetwork, _ *WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -28969,7 +28966,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -28993,7 +28990,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckHandleR // 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -29024,7 +29021,7 @@ func (client *WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheckSlot(ct } // updateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest creates the UpdateSwiftVirtualNetworkConnectionWithCheckSlot request. -func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, connectionEnvelope SwiftVirtualNetwork, options *WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, slot string, connectionEnvelope SwiftVirtualNetwork, _ *WebAppsClientUpdateSwiftVirtualNetworkConnectionWithCheckSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -29047,7 +29044,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29069,7 +29066,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotHan // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -29099,7 +29096,7 @@ func (client *WebAppsClient) UpdateVnetConnection(ctx context.Context, resourceG } // updateVnetConnectionCreateRequest creates the UpdateVnetConnection request. -func (client *WebAppsClient) updateVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, connectionEnvelope VnetInfoResource, options *WebAppsClientUpdateVnetConnectionOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateVnetConnectionCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, connectionEnvelope VnetInfoResource, _ *WebAppsClientUpdateVnetConnectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -29122,7 +29119,7 @@ func (client *WebAppsClient) updateVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29143,7 +29140,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -29174,7 +29171,7 @@ func (client *WebAppsClient) UpdateVnetConnectionGateway(ctx context.Context, re } // updateVnetConnectionGatewayCreateRequest creates the UpdateVnetConnectionGateway request. -func (client *WebAppsClient) updateVnetConnectionGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, options *WebAppsClientUpdateVnetConnectionGatewayOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateVnetConnectionGatewayCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway, _ *WebAppsClientUpdateVnetConnectionGatewayOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -29201,7 +29198,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewayCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29222,7 +29219,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -29255,7 +29252,7 @@ func (client *WebAppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context } // updateVnetConnectionGatewaySlotCreateRequest creates the UpdateVnetConnectionGatewaySlot request. -func (client *WebAppsClient) updateVnetConnectionGatewaySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, connectionEnvelope VnetGateway, options *WebAppsClientUpdateVnetConnectionGatewaySlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateVnetConnectionGatewaySlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, gatewayName string, slot string, connectionEnvelope VnetGateway, _ *WebAppsClientUpdateVnetConnectionGatewaySlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -29286,7 +29283,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29308,7 +29305,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotHandleResponse(resp // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -29340,7 +29337,7 @@ func (client *WebAppsClient) UpdateVnetConnectionSlot(ctx context.Context, resou } // updateVnetConnectionSlotCreateRequest creates the UpdateVnetConnectionSlot request. -func (client *WebAppsClient) updateVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, connectionEnvelope VnetInfoResource, options *WebAppsClientUpdateVnetConnectionSlotOptions) (*policy.Request, error) { +func (client *WebAppsClient) updateVnetConnectionSlotCreateRequest(ctx context.Context, resourceGroupName string, name string, vnetName string, slot string, connectionEnvelope VnetInfoResource, _ *WebAppsClientUpdateVnetConnectionSlotOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -29367,7 +29364,7 @@ func (client *WebAppsClient) updateVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { 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 3a0ddb49b244..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go +++ /dev/null @@ -1,4792 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebApps.json -func ExampleWebAppsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // }, - // { - // Name: to.Ptr("sitef7252"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef7252.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net"), - // to.Ptr("sitef7252.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef7252.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef7252.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef7252"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppsByResourceGroup.json -func ExampleWebAppsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListByResourceGroupPager("testrg123", &armappservice.WebAppsClientListByResourceGroupOptions{IncludeSlots: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // }, - // { - // Name: to.Ptr("sitef7252"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef7252"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef7252.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net"), - // to.Ptr("sitef7252.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef7252.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef7252.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef7252.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef7252"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebApp.json -func ExampleWebAppsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().Get(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // SKU: to.Ptr("Standard"), - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CloneWebApp.json -func ExampleWebAppsClient_BeginCreateOrUpdate_cloneWebApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdate(ctx, "testrg123", "sitef6141", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - CloningInfo: &armappservice.CloningInfo{ - AppSettingsOverrides: map[string]*string{ - "Setting1": to.Ptr("NewValue1"), - "Setting3": to.Ptr("NewValue5"), - }, - CloneCustomHostNames: to.Ptr(true), - CloneSourceControl: to.Ptr(true), - ConfigureLoadBalancing: to.Ptr(false), - HostingEnvironment: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites"), - Overwrite: to.Ptr(false), - SourceWebAppID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478"), - SourceWebAppLocation: to.Ptr("West Europe"), - }, - }, - }, 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateFunctionAppFlexConsumption.json -func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateFlexConsumptionFunctionApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdate(ctx, "testrg123", "sitef6141", armappservice.Site{ - Kind: to.Ptr("functionapp,linux"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - FunctionAppConfig: &armappservice.FunctionAppConfig{ - Deployment: &armappservice.FunctionsDeployment{ - Storage: &armappservice.FunctionsDeploymentStorage{ - Type: to.Ptr(armappservice.FunctionsDeploymentStorageTypeBlobContainer), - Authentication: &armappservice.FunctionsDeploymentStorageAuthentication{ - Type: to.Ptr(armappservice.AuthenticationTypeStorageAccountConnectionString), - StorageAccountConnectionStringName: to.Ptr("TheAppSettingName"), - }, - Value: to.Ptr("https://storageAccountName.blob.core.windows.net/containername"), - }, - }, - Runtime: &armappservice.FunctionsRuntime{ - Name: to.Ptr(armappservice.RuntimeNamePython), - Version: to.Ptr("3.11"), - }, - ScaleAndConcurrency: &armappservice.FunctionsScaleAndConcurrency{ - InstanceMemoryMB: to.Ptr[int32](2048), - MaximumInstanceCount: to.Ptr[int32](100), - }, - }, - SiteConfig: &armappservice.SiteConfig{ - AppSettings: []*armappservice.NameValuePair{ - { - Name: to.Ptr("AzureWebJobsStorage"), - Value: to.Ptr("DefaultEndpointsProtocol=https;AccountName=StorageAccountName;AccountKey=Sanitized;EndpointSuffix=core.windows.net"), - }, - { - Name: to.Ptr("APPLICATIONINSIGHTS_CONNECTION_STRING"), - Value: to.Ptr("InstrumentationKey=Sanitized;IngestionEndpoint=Sanitized;LiveEndpoint=Sanitized"), - }}, - }, - }, - }, 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(false), - // ClientCertEnabled: to.Ptr(false), - // ContainerSize: to.Ptr[int32](2048), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // FunctionAppConfig: &armappservice.FunctionAppConfig{ - // Deployment: &armappservice.FunctionsDeployment{ - // Storage: &armappservice.FunctionsDeploymentStorage{ - // Type: to.Ptr(armappservice.FunctionsDeploymentStorageTypeBlobContainer), - // Authentication: &armappservice.FunctionsDeploymentStorageAuthentication{ - // Type: to.Ptr(armappservice.AuthenticationTypeStorageAccountConnectionString), - // StorageAccountConnectionStringName: to.Ptr("TheAppSettingName"), - // }, - // Value: to.Ptr("https://storageAccountName.blob.core.windows.net/containername"), - // }, - // }, - // Runtime: &armappservice.FunctionsRuntime{ - // Name: to.Ptr(armappservice.RuntimeNamePython), - // Version: to.Ptr("3.11"), - // }, - // ScaleAndConcurrency: &armappservice.FunctionsScaleAndConcurrency{ - // InstanceMemoryMB: to.Ptr[int32](2048), - // MaximumInstanceCount: to.Ptr[int32](100), - // }, - // }, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HTTPSOnly: to.Ptr(true), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-08T16:24:54.800Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // PublicNetworkAccess: to.Ptr("Enabled"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // IPSecurityRestrictions: []*armappservice.IPSecurityRestriction{ - // { - // Name: to.Ptr("Allow all"), - // Description: to.Ptr("Allow all access"), - // Action: to.Ptr("Allow"), - // IPAddress: to.Ptr("Any"), - // Priority: to.Ptr[int32](2147483647), - // }}, - // KeyVaultReferenceIdentity: to.Ptr(""), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr(""), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr(""), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmIPSecurityRestrictions: []*armappservice.IPSecurityRestriction{ - // { - // Name: to.Ptr("Allow all"), - // Description: to.Ptr("Allow all access"), - // Action: to.Ptr("Allow"), - // IPAddress: to.Ptr("Any"), - // Priority: to.Ptr[int32](2147483647), - // }}, - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(false), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetBackupRestoreEnabled: to.Ptr(false), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json -func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateFlexConsumptionFunctionAppWithDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdate(ctx, "testrg123", "sitef6141", armappservice.Site{ - Kind: to.Ptr("functionapp,linux"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - FunctionAppConfig: &armappservice.FunctionAppConfig{ - Deployment: &armappservice.FunctionsDeployment{ - Storage: &armappservice.FunctionsDeploymentStorage{ - Type: to.Ptr(armappservice.FunctionsDeploymentStorageTypeBlobContainer), - Authentication: &armappservice.FunctionsDeploymentStorageAuthentication{ - Type: to.Ptr(armappservice.AuthenticationTypeStorageAccountConnectionString), - StorageAccountConnectionStringName: to.Ptr("TheAppSettingName"), - }, - Value: to.Ptr("https://storageAccountName.blob.core.windows.net/containername"), - }, - }, - Runtime: &armappservice.FunctionsRuntime{ - Name: to.Ptr(armappservice.RuntimeNamePython), - Version: to.Ptr("3.11"), - }, - ScaleAndConcurrency: &armappservice.FunctionsScaleAndConcurrency{ - AlwaysReady: []*armappservice.FunctionsAlwaysReadyConfig{ - { - Name: to.Ptr("http"), - InstanceCount: to.Ptr[int32](2), - }}, - InstanceMemoryMB: to.Ptr[int32](2048), - MaximumInstanceCount: to.Ptr[int32](100), - Triggers: &armappservice.FunctionsScaleAndConcurrencyTriggers{ - HTTP: &armappservice.FunctionsScaleAndConcurrencyTriggersHTTP{ - PerInstanceConcurrency: to.Ptr[int32](16), - }, - }, - }, - }, - SiteConfig: &armappservice.SiteConfig{ - AppSettings: []*armappservice.NameValuePair{ - { - Name: to.Ptr("AzureWebJobsStorage"), - Value: to.Ptr("DefaultEndpointsProtocol=https;AccountName=StorageAccountName;AccountKey=Sanitized;EndpointSuffix=core.windows.net"), - }, - { - Name: to.Ptr("APPLICATIONINSIGHTS_CONNECTION_STRING"), - Value: to.Ptr("InstrumentationKey=Sanitized;IngestionEndpoint=Sanitized;LiveEndpoint=Sanitized"), - }}, - }, - }, - }, 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(false), - // ClientCertEnabled: to.Ptr(false), - // ContainerSize: to.Ptr[int32](2048), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // FunctionAppConfig: &armappservice.FunctionAppConfig{ - // Deployment: &armappservice.FunctionsDeployment{ - // Storage: &armappservice.FunctionsDeploymentStorage{ - // Type: to.Ptr(armappservice.FunctionsDeploymentStorageTypeBlobContainer), - // Authentication: &armappservice.FunctionsDeploymentStorageAuthentication{ - // Type: to.Ptr(armappservice.AuthenticationTypeStorageAccountConnectionString), - // StorageAccountConnectionStringName: to.Ptr("TheAppSettingName"), - // }, - // Value: to.Ptr("https://storageAccountName.blob.core.windows.net/containername"), - // }, - // }, - // Runtime: &armappservice.FunctionsRuntime{ - // Name: to.Ptr(armappservice.RuntimeNamePython), - // Version: to.Ptr("3.11"), - // }, - // ScaleAndConcurrency: &armappservice.FunctionsScaleAndConcurrency{ - // AlwaysReady: []*armappservice.FunctionsAlwaysReadyConfig{ - // { - // Name: to.Ptr("http"), - // InstanceCount: to.Ptr[int32](2), - // }}, - // InstanceMemoryMB: to.Ptr[int32](2048), - // MaximumInstanceCount: to.Ptr[int32](100), - // Triggers: &armappservice.FunctionsScaleAndConcurrencyTriggers{ - // HTTP: &armappservice.FunctionsScaleAndConcurrencyTriggersHTTP{ - // PerInstanceConcurrency: to.Ptr[int32](16), - // }, - // }, - // }, - // }, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HTTPSOnly: to.Ptr(true), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-01-08T16:24:54.800Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // PublicNetworkAccess: to.Ptr("Enabled"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // IPSecurityRestrictions: []*armappservice.IPSecurityRestriction{ - // { - // Name: to.Ptr("Allow all"), - // Description: to.Ptr("Allow all access"), - // Action: to.Ptr("Allow"), - // IPAddress: to.Ptr("Any"), - // Priority: to.Ptr[int32](2147483647), - // }}, - // KeyVaultReferenceIdentity: to.Ptr(""), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr(""), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr(""), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmIPSecurityRestrictions: []*armappservice.IPSecurityRestriction{ - // { - // Name: to.Ptr("Allow all"), - // Description: to.Ptr("Allow all access"), - // Action: to.Ptr("Allow"), - // IPAddress: to.Ptr("Any"), - // Priority: to.Ptr[int32](2147483647), - // }}, - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(false), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetBackupRestoreEnabled: to.Ptr(false), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateWebApp.json -func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateWebApp() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdate(ctx, "testrg123", "sitef6141", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteWebApp.json -func ExampleWebAppsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().Delete(ctx, "testrg123", "sitef6141", &armappservice.WebAppsClientDeleteOptions{DeleteMetrics: nil, - DeleteEmptyServerFarm: 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateWebApp.json -func ExampleWebAppsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().Update(ctx, "testrg123", "sitef6141", armappservice.SitePatchResource{ - Properties: &armappservice.SitePatchResourceProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net"), - // to.Ptr("sitef6141.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceConfig: &armappservice.ResourceConfig{ - // CPU: to.Ptr[float64](1), - // Memory: to.Ptr("2.0Gi"), - // }, - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // WorkloadProfileName: to.Ptr("myd4wp"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AnalyzeCustomHostName.json -func ExampleWebAppsClient_AnalyzeCustomHostname() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().AnalyzeCustomHostname(ctx, "testrg123", "sitef6141", &armappservice.WebAppsClientAnalyzeCustomHostnameOptions{HostName: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomHostnameAnalysisResult = armappservice.CustomHostnameAnalysisResult{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Properties: &armappservice.CustomHostnameAnalysisResultProperties{ - // CNameRecords: []*string{ - // to.Ptr("siteog.azurewebsites.net")}, - // ConflictingAppResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/siteog"), - // CustomDomainVerificationFailureInfo: &armappservice.ErrorEntity{ - // Code: to.Ptr("07198"), - // Message: to.Ptr("Custom domain verification failed on conflicting CNAMEs."), - // }, - // CustomDomainVerificationTest: to.Ptr(armappservice.DNSVerificationTestResultPassed), - // HasConflictAcrossSubscription: to.Ptr(true), - // HasConflictOnScaleUnit: to.Ptr(false), - // IsHostnameAlreadyVerified: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ApplySlotConfig.json -func ExampleWebAppsClient_ApplySlotConfigToProduction() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().ApplySlotConfigToProduction(ctx, "testrg123", "sitef6141", armappservice.CsmSlotEntity{ - PreserveVnet: to.Ptr(true), - TargetSlot: to.Ptr("staging"), - }, 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/BackupWebApp.json -func ExampleWebAppsClient_Backup() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().Backup(ctx, "testrg123", "sitef6141", armappservice.BackupRequest{ - Properties: &armappservice.BackupRequestProperties{ - BackupName: to.Ptr("abcdwe"), - BackupSchedule: &armappservice.BackupSchedule{ - FrequencyInterval: to.Ptr[int32](7), - FrequencyUnit: to.Ptr(armappservice.FrequencyUnitDay), - KeepAtLeastOneBackup: to.Ptr(true), - RetentionPeriodInDays: to.Ptr[int32](30), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-02T17:33:11.641Z"); return t }()), - }, - Databases: []*armappservice.DatabaseBackupSetting{ - { - Name: to.Ptr("backenddb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("backend"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }, - { - Name: to.Ptr("statsdb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("stats"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }}, - Enabled: to.Ptr(true), - StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.BackupItem = armappservice.BackupItem{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-04-01"), - // BlobName: to.Ptr("sitef6141_2024-04-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-02T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppBackups.json -func ExampleWebAppsClient_NewListBackupsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListBackupsPager("testrg123", "sitef6141", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.BackupItemCollection = armappservice.BackupItemCollection{ - // Value: []*armappservice.BackupItem{ - // { - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-04-01"), - // BlobName: to.Ptr("sitef6141_2024-04-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-05T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppBackup.json -func ExampleWebAppsClient_GetBackupStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetBackupStatus(ctx, "testrg123", "sitef6141", "12345", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.BackupItem = armappservice.BackupItem{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-04-01"), - // BlobName: to.Ptr("sitef6141_2024-04-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-05T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteWebAppBackup.json -func ExampleWebAppsClient_DeleteBackup() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeleteBackup(ctx, "testrg123", "sitef6141", "12345", 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppBackupWithSecrets.json -func ExampleWebAppsClient_ListBackupStatusSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().ListBackupStatusSecrets(ctx, "testrg123", "sitef6141", "12345", armappservice.BackupRequest{ - Properties: &armappservice.BackupRequestProperties{ - BackupName: to.Ptr("abcdwe"), - BackupSchedule: &armappservice.BackupSchedule{ - FrequencyInterval: to.Ptr[int32](7), - FrequencyUnit: to.Ptr(armappservice.FrequencyUnitDay), - KeepAtLeastOneBackup: to.Ptr(true), - RetentionPeriodInDays: to.Ptr[int32](30), - StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-02T17:33:11.641Z"); return t }()), - }, - Databases: []*armappservice.DatabaseBackupSetting{ - { - Name: to.Ptr("backenddb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("backend"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }, - { - Name: to.Ptr("statsdb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("stats"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }}, - Enabled: to.Ptr(true), - StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.BackupItem = armappservice.BackupItem{ - // Name: to.Ptr("sitef6141"), - // Type: to.Ptr("Microsoft.Web/sites"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), - // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-04-01"), - // BlobName: to.Ptr("sitef6141_2024-04-01"), - // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), - // Databases: []*armappservice.DatabaseBackupSetting{ - // { - // Name: to.Ptr("backenddb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("backend"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }, - // { - // Name: to.Ptr("statsdb"), - // ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - // ConnectionStringName: to.Ptr("stats"), - // DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - // }}, - // FinishedTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-05T17:33:11.641Z"); return t}()), - // BackupID: to.Ptr[int32](12345), - // LastRestoreTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-04T17:33:11.641Z"); return t}()), - // Log: to.Ptr("Succeeded"), - // Scheduled: to.Ptr(true), - // SizeInBytes: to.Ptr[int64](56091883), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - // WebsiteSizeInBytes: to.Ptr[int64](56091883), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/RestoreWebAppBackup.json -func ExampleWebAppsClient_BeginRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginRestore(ctx, "testrg123", "sitef6141", "123244", armappservice.RestoreRequest{ - Properties: &armappservice.RestoreRequestProperties{ - Databases: []*armappservice.DatabaseBackupSetting{ - { - Name: to.Ptr("backenddb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("backend"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }, - { - Name: to.Ptr("statsdb"), - ConnectionString: to.Ptr("DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;=]"), - ConnectionStringName: to.Ptr("stats"), - DatabaseType: to.Ptr(armappservice.DatabaseTypeSQLAzure), - }}, - Overwrite: to.Ptr(true), - SiteName: to.Ptr("sitef6141"), - StorageAccountURL: to.Ptr("DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey="), - }, - }, 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListBasicPublishingCredentialsPoliciesPager("testrg123", "testsite", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PublishingCredentialsPoliciesCollection = armappservice.PublishingCredentialsPoliciesCollection{ - // Value: []*armappservice.CsmPublishingCredentialsPoliciesEntity{ - // { - // Name: to.Ptr("ftp"), - // Type: to.Ptr("Microsoft.Web/sites/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("scm"), - // Type: to.Ptr("Microsoft.Web/sites/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/basicPublishingCredentialsPolicies/scm"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetFtpAllowed(ctx, "rg", "testSite", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppConfigurations.json -func ExampleWebAppsClient_NewListConfigurationsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListConfigurationsPager("testrg123", "sitef6141", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.SiteConfigResourceCollection = armappservice.SiteConfigResourceCollection{ - // Value: []*armappservice.SiteConfigResource{ - // { - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAppSettings.json -func ExampleWebAppsClient_UpdateApplicationSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateApplicationSettings(ctx, "testrg123", "sitef6141", armappservice.StringDictionary{ - Properties: map[string]*string{ - "Setting1": to.Ptr("Value1"), - "Setting2": to.Ptr("Value2"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // Name: to.Ptr("appsettings"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/appsettings"), - // Kind: to.Ptr("app"), - // Properties: map[string]*string{ - // "Setting1": to.Ptr("Value1"), - // "Setting2": to.Ptr("Value2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAppSettings.json -func ExampleWebAppsClient_ListApplicationSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().ListApplicationSettings(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.StringDictionary = armappservice.StringDictionary{ - // Name: to.Ptr("appsettings"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/appsettings"), - // Kind: to.Ptr("app"), - // Properties: map[string]*string{ - // "Setting1": to.Ptr("Value1"), - // "Setting2": to.Ptr("Value2"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAuthSettings.json -func ExampleWebAppsClient_UpdateAuthSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateAuthSettings(ctx, "testrg123", "sitef6141", armappservice.SiteAuthSettings{ - Properties: &armappservice.SiteAuthSettingsProperties{ - AllowedExternalRedirectUrls: []*string{ - to.Ptr("sitef6141.customdomain.net"), - to.Ptr("sitef6141.customdomain.info")}, - ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - DefaultProvider: to.Ptr(armappservice.BuiltInAuthenticationProviderGoogle), - Enabled: to.Ptr(true), - RuntimeVersion: to.Ptr("~1"), - TokenRefreshExtensionHours: to.Ptr[float64](120), - TokenStoreEnabled: to.Ptr(true), - UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionRedirectToLoginPage), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettings = armappservice.SiteAuthSettings{ - // Name: to.Ptr("authsettings"), - // Type: to.Ptr("Microsoft.Web/sites/authsettings"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettings"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsProperties{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("sitef6141.customdomain.net"), - // to.Ptr("sitef6141.customdomain.info")}, - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // DefaultProvider: to.Ptr(armappservice.BuiltInAuthenticationProviderGoogle), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // TokenRefreshExtensionHours: to.Ptr[float64](120), - // TokenStoreEnabled: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionRedirectToLoginPage), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAuthSettings.json -func ExampleWebAppsClient_GetAuthSettings() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAuthSettings(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettings = armappservice.SiteAuthSettings{ - // Name: to.Ptr("authsettings"), - // Type: to.Ptr("Microsoft.Web/sites/authsettings"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettings"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsProperties{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("sitef6141.customdomain.net"), - // to.Ptr("sitef6141.customdomain.info")}, - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // DefaultProvider: to.Ptr(armappservice.BuiltInAuthenticationProviderGoogle), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // TokenRefreshExtensionHours: to.Ptr[float64](120), - // TokenStoreEnabled: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionRedirectToLoginPage), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetAuthSettingsV2WithoutSecrets.json -func ExampleWebAppsClient_GetAuthSettingsV2WithoutSecrets() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAuthSettingsV2WithoutSecrets(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettingsV2 = armappservice.SiteAuthSettingsV2{ - // Name: to.Ptr("authsettingsv2"), - // Type: to.Ptr("Microsoft.Web/sites/authsettingsv2"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettingsv2"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsV2Properties{ - // GlobalValidation: &armappservice.GlobalValidation{ - // ExcludedPaths: []*string{ - // to.Ptr("/nosecrets/Path")}, - // RequireAuthentication: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - // }, - // HTTPSettings: &armappservice.HTTPSettings{ - // ForwardProxy: &armappservice.ForwardProxy{ - // Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - // CustomHostHeaderName: to.Ptr("authHeader"), - // CustomProtoHeaderName: to.Ptr("customProtoHeader"), - // }, - // RequireHTTPS: to.Ptr(true), - // Routes: &armappservice.HTTPSettingsRoutes{ - // APIPrefix: to.Ptr("/authv2/"), - // }, - // }, - // IdentityProviders: &armappservice.IdentityProviders{ - // Google: &armappservice.Google{ - // Enabled: to.Ptr(true), - // Login: &armappservice.LoginScopes{ - // Scopes: []*string{ - // to.Ptr("admin")}, - // }, - // Registration: &armappservice.ClientRegistration{ - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // ClientSecretSettingName: to.Ptr("ClientSecret"), - // }, - // Validation: &armappservice.AllowedAudiencesValidation{ - // AllowedAudiences: []*string{ - // to.Ptr("https://example.com")}, - // }, - // }, - // }, - // Login: &armappservice.Login{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("https://someurl.com")}, - // CookieExpiration: &armappservice.CookieExpiration{ - // Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - // TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - // }, - // Nonce: &armappservice.Nonce{ - // ValidateNonce: to.Ptr(true), - // }, - // PreserveURLFragmentsForLogins: to.Ptr(true), - // Routes: &armappservice.LoginRoutes{ - // LogoutEndpoint: to.Ptr("https://app.com/logout"), - // }, - // TokenStore: &armappservice.TokenStore{ - // Enabled: to.Ptr(true), - // FileSystem: &armappservice.FileSystemTokenStore{ - // Directory: to.Ptr("/wwwroot/sites/example"), - // }, - // TokenRefreshExtensionHours: to.Ptr[float64](96), - // }, - // }, - // Platform: &armappservice.AuthPlatform{ - // ConfigFilePath: to.Ptr("/auth/config.json"), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAuthSettingsV2.json -func ExampleWebAppsClient_UpdateAuthSettingsV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateAuthSettingsV2(ctx, "testrg123", "sitef6141", armappservice.SiteAuthSettingsV2{ - Properties: &armappservice.SiteAuthSettingsV2Properties{ - GlobalValidation: &armappservice.GlobalValidation{ - ExcludedPaths: []*string{ - to.Ptr("/nosecrets/Path")}, - RequireAuthentication: to.Ptr(true), - UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - }, - HTTPSettings: &armappservice.HTTPSettings{ - ForwardProxy: &armappservice.ForwardProxy{ - Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - CustomHostHeaderName: to.Ptr("authHeader"), - CustomProtoHeaderName: to.Ptr("customProtoHeader"), - }, - RequireHTTPS: to.Ptr(true), - Routes: &armappservice.HTTPSettingsRoutes{ - APIPrefix: to.Ptr("/authv2/"), - }, - }, - IdentityProviders: &armappservice.IdentityProviders{ - Google: &armappservice.Google{ - Enabled: to.Ptr(true), - Login: &armappservice.LoginScopes{ - Scopes: []*string{ - to.Ptr("admin")}, - }, - Registration: &armappservice.ClientRegistration{ - ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - ClientSecretSettingName: to.Ptr("ClientSecret"), - }, - Validation: &armappservice.AllowedAudiencesValidation{ - AllowedAudiences: []*string{ - to.Ptr("https://example.com")}, - }, - }, - }, - Login: &armappservice.Login{ - AllowedExternalRedirectUrls: []*string{ - to.Ptr("https://someurl.com")}, - CookieExpiration: &armappservice.CookieExpiration{ - Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - }, - Nonce: &armappservice.Nonce{ - ValidateNonce: to.Ptr(true), - }, - PreserveURLFragmentsForLogins: to.Ptr(true), - Routes: &armappservice.LoginRoutes{ - LogoutEndpoint: to.Ptr("https://app.com/logout"), - }, - TokenStore: &armappservice.TokenStore{ - Enabled: to.Ptr(true), - FileSystem: &armappservice.FileSystemTokenStore{ - Directory: to.Ptr("/wwwroot/sites/example"), - }, - TokenRefreshExtensionHours: to.Ptr[float64](96), - }, - }, - Platform: &armappservice.AuthPlatform{ - ConfigFilePath: to.Ptr("/auth/config.json"), - Enabled: to.Ptr(true), - RuntimeVersion: to.Ptr("~1"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettingsV2 = armappservice.SiteAuthSettingsV2{ - // Name: to.Ptr("authsettingsv2"), - // Type: to.Ptr("Microsoft.Web/sites/authsettingsv2"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettingsv2"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsV2Properties{ - // GlobalValidation: &armappservice.GlobalValidation{ - // ExcludedPaths: []*string{ - // to.Ptr("/nosecrets/Path")}, - // RequireAuthentication: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - // }, - // HTTPSettings: &armappservice.HTTPSettings{ - // ForwardProxy: &armappservice.ForwardProxy{ - // Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - // CustomHostHeaderName: to.Ptr("authHeader"), - // CustomProtoHeaderName: to.Ptr("customProtoHeader"), - // }, - // RequireHTTPS: to.Ptr(true), - // Routes: &armappservice.HTTPSettingsRoutes{ - // APIPrefix: to.Ptr("/authv2/"), - // }, - // }, - // IdentityProviders: &armappservice.IdentityProviders{ - // Google: &armappservice.Google{ - // Enabled: to.Ptr(true), - // Login: &armappservice.LoginScopes{ - // Scopes: []*string{ - // to.Ptr("admin")}, - // }, - // Registration: &armappservice.ClientRegistration{ - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // ClientSecretSettingName: to.Ptr("ClientSecret"), - // }, - // Validation: &armappservice.AllowedAudiencesValidation{ - // AllowedAudiences: []*string{ - // to.Ptr("https://example.com")}, - // }, - // }, - // }, - // Login: &armappservice.Login{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("https://someurl.com")}, - // CookieExpiration: &armappservice.CookieExpiration{ - // Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - // TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - // }, - // Nonce: &armappservice.Nonce{ - // ValidateNonce: to.Ptr(true), - // }, - // PreserveURLFragmentsForLogins: to.Ptr(true), - // Routes: &armappservice.LoginRoutes{ - // LogoutEndpoint: to.Ptr("https://app.com/logout"), - // }, - // TokenStore: &armappservice.TokenStore{ - // Enabled: to.Ptr(true), - // FileSystem: &armappservice.FileSystemTokenStore{ - // Directory: to.Ptr("/wwwroot/sites/example"), - // }, - // TokenRefreshExtensionHours: to.Ptr[float64](96), - // }, - // }, - // Platform: &armappservice.AuthPlatform{ - // ConfigFilePath: to.Ptr("/auth/config.json"), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAuthSettingsV2.json -func ExampleWebAppsClient_GetAuthSettingsV2() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAuthSettingsV2(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteAuthSettingsV2 = armappservice.SiteAuthSettingsV2{ - // Name: to.Ptr("authsettingsv2"), - // Type: to.Ptr("Microsoft.Web/sites/authsettingsv2"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/authsettingsv2"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteAuthSettingsV2Properties{ - // GlobalValidation: &armappservice.GlobalValidation{ - // ExcludedPaths: []*string{ - // to.Ptr("/nosecrets/Path")}, - // RequireAuthentication: to.Ptr(true), - // UnauthenticatedClientAction: to.Ptr(armappservice.UnauthenticatedClientActionV2Return403), - // }, - // HTTPSettings: &armappservice.HTTPSettings{ - // ForwardProxy: &armappservice.ForwardProxy{ - // Convention: to.Ptr(armappservice.ForwardProxyConventionStandard), - // CustomHostHeaderName: to.Ptr("authHeader"), - // CustomProtoHeaderName: to.Ptr("customProtoHeader"), - // }, - // RequireHTTPS: to.Ptr(true), - // Routes: &armappservice.HTTPSettingsRoutes{ - // APIPrefix: to.Ptr("/authv2/"), - // }, - // }, - // IdentityProviders: &armappservice.IdentityProviders{ - // Google: &armappservice.Google{ - // Enabled: to.Ptr(true), - // Login: &armappservice.LoginScopes{ - // Scopes: []*string{ - // to.Ptr("admin")}, - // }, - // Registration: &armappservice.ClientRegistration{ - // ClientID: to.Ptr("42d795a9-8abb-4d06-8534-39528af40f8e.apps.googleusercontent.com"), - // ClientSecretSettingName: to.Ptr("ClientSecret"), - // }, - // Validation: &armappservice.AllowedAudiencesValidation{ - // AllowedAudiences: []*string{ - // to.Ptr("https://example.com")}, - // }, - // }, - // }, - // Login: &armappservice.Login{ - // AllowedExternalRedirectUrls: []*string{ - // to.Ptr("https://someurl.com")}, - // CookieExpiration: &armappservice.CookieExpiration{ - // Convention: to.Ptr(armappservice.CookieExpirationConventionIdentityProviderDerived), - // TimeToExpiration: to.Ptr("2022:09-01T00:00Z"), - // }, - // Nonce: &armappservice.Nonce{ - // ValidateNonce: to.Ptr(true), - // }, - // PreserveURLFragmentsForLogins: to.Ptr(true), - // Routes: &armappservice.LoginRoutes{ - // LogoutEndpoint: to.Ptr("https://app.com/logout"), - // }, - // TokenStore: &armappservice.TokenStore{ - // Enabled: to.Ptr(true), - // FileSystem: &armappservice.FileSystemTokenStore{ - // Directory: to.Ptr("/wwwroot/sites/example"), - // }, - // TokenRefreshExtensionHours: to.Ptr[float64](96), - // }, - // }, - // Platform: &armappservice.AuthPlatform{ - // ConfigFilePath: to.Ptr("/auth/config.json"), - // Enabled: to.Ptr(true), - // RuntimeVersion: to.Ptr("~1"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAzureStorageAccounts.json -func ExampleWebAppsClient_UpdateAzureStorageAccounts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateAzureStorageAccounts(ctx, "testrg123", "sitef6141", armappservice.AzureStoragePropertyDictionaryResource{ - Properties: map[string]*armappservice.AzureStorageInfoValue{ - "account1": { - Type: to.Ptr(armappservice.AzureStorageTypeAzureFiles), - AccessKey: to.Ptr("26515^%@#*"), - AccountName: to.Ptr("testsa"), - MountPath: to.Ptr("/mounts/a/files"), - ShareName: to.Ptr("web"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.AzureStoragePropertyDictionaryResource = armappservice.AzureStoragePropertyDictionaryResource{ - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: map[string]*armappservice.AzureStorageInfoValue{ - // "account1": &armappservice.AzureStorageInfoValue{ - // Type: to.Ptr(armappservice.AzureStorageTypeAzureFiles), - // AccountName: to.Ptr("testsa"), - // MountPath: to.Ptr("/mounts/a/files"), - // ShareName: to.Ptr("web"), - // State: to.Ptr(armappservice.AzureStorageStateOk), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewGetAppSettingsKeyVaultReferencesPager("testrg123", "testc6282", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.APIKVReferenceCollection = armappservice.APIKVReferenceCollection{ - // Value: []*armappservice.APIKVReference{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/config/configreferences/appsettings/secretName"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/config/configreferences/appsettings/secretName2"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName2"), - // SecretVersion: to.Ptr("secretVersion2"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAppSettingKeyVaultReference(ctx, "testrg123", "testc6282", "setting", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.APIKVReference = armappservice.APIKVReference{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/config/configreferences/appsettings/setting"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSiteConfig.json -func ExampleWebAppsClient_GetConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetConfiguration(ctx, "testrg123", "sitef6141", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteConfigResource = armappservice.SiteConfigResource{ - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateSiteConfig.json -func ExampleWebAppsClient_CreateOrUpdateConfiguration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().CreateOrUpdateConfiguration(ctx, "testrg123", "sitef6141", armappservice.SiteConfigResource{ - Properties: &armappservice.SiteConfig{ - AcrUseManagedIdentityCreds: to.Ptr(false), - AlwaysOn: to.Ptr(false), - AppCommandLine: to.Ptr(""), - AutoHealEnabled: to.Ptr(false), - AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{}, - DefaultDocuments: []*string{ - to.Ptr("Default.htm"), - to.Ptr("Default.html"), - to.Ptr("Default.asp"), - to.Ptr("index.htm"), - to.Ptr("index.html"), - to.Ptr("iisstart.htm"), - to.Ptr("default.aspx"), - to.Ptr("index.php"), - to.Ptr("hostingstart.html")}, - DetailedErrorLoggingEnabled: to.Ptr(false), - FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - FunctionAppScaleLimit: to.Ptr[int32](0), - FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - Http20Enabled: to.Ptr(false), - HTTPLoggingEnabled: to.Ptr(false), - LinuxFxVersion: to.Ptr(""), - LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - LogsDirectorySizeLimit: to.Ptr[int32](35), - ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - MinimumElasticInstanceCount: to.Ptr[int32](0), - NetFrameworkVersion: to.Ptr("v4.0"), - NodeVersion: to.Ptr(""), - NumberOfWorkers: to.Ptr[int32](1), - PhpVersion: to.Ptr("5.6"), - PowerShellVersion: to.Ptr(""), - PythonVersion: to.Ptr(""), - RemoteDebuggingEnabled: to.Ptr(false), - RequestTracingEnabled: to.Ptr(false), - ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - Use32BitWorkerProcess: to.Ptr(true), - VirtualApplications: []*armappservice.VirtualApplication{ - { - PhysicalPath: to.Ptr("site\\wwwroot"), - PreloadEnabled: to.Ptr(false), - VirtualPath: to.Ptr("/"), - }}, - VnetName: to.Ptr(""), - VnetPrivatePortsCount: to.Ptr[int32](0), - VnetRouteAllEnabled: to.Ptr(false), - WebSocketsEnabled: to.Ptr(false), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.SiteConfigResource = armappservice.SiteConfigResource{ - // Name: to.Ptr("web"), - // Type: to.Ptr("Microsoft.Web/sites/config"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web"), - // Kind: to.Ptr("app"), - // Properties: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListProductionSiteDeploymentStatusesPager("rg", "testSite", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmDeploymentStatusCollection = armappservice.CsmDeploymentStatusCollection{ - // Value: []*armappservice.CsmDeploymentStatus{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmDeploymentStatus = armappservice.CsmDeploymentStatus{ - // Name: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Type: to.Ptr("Microsoft.Web/sites/deploymentStatus"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Properties: &armappservice.CsmDeploymentStatusProperties{ - // DeploymentID: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // FailedInstancesLogs: []*string{ - // }, - // NumberOfInstancesFailed: to.Ptr[int32](0), - // NumberOfInstancesInProgress: to.Ptr[int32](0), - // NumberOfInstancesSuccessful: to.Ptr[int32](1), - // Status: to.Ptr(armappservice.DeploymentBuildStatusRuntimeSuccessful), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetInstanceInfo(ctx, "testrg123", "tests346", "134987120", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WebSiteInstanceStatus = armappservice.WebSiteInstanceStatus{ - // Name: to.Ptr("134987120"), - // Type: to.Ptr("Microsoft.Web/sites/instances"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/slot/staging/instances/134987120"), - // Properties: &armappservice.WebSiteInstanceStatusProperties{ - // Containers: map[string]*armappservice.ContainerInfo{ - // "c1": &armappservice.ContainerInfo{ - // CurrentTimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2013-10-21T13:28:06.419Z"); return t}()), - // }, - // }, - // DetectorURL: to.Ptr("testsec579"), - // State: to.Ptr(armappservice.SiteRuntimeStateREADY), - // StatusURL: to.Ptr("https://sampleurl"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListSiteBackupsPager("testrg123", "tests346", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.BackupItemCollection = armappservice.BackupItemCollection{ - // Value: []*armappservice.BackupItem{ - // { - // Name: to.Ptr("tests346/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/tests346/slot/staging"), - // Properties: &armappservice.BackupItemProperties{ - // BlobName: to.Ptr("blob1"), - // Status: to.Ptr(armappservice.BackupItemStatusInProgress), - // StorageAccountURL: to.Ptr("https://blobstorage.windows.net"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json -func ExampleWebAppsClient_UpdateMachineKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateMachineKey(ctx, "rg", "contoso", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetNetworkTraceOperation(ctx, "testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NetworkTraceArray = []*armappservice.NetworkTrace{ - // { - // Path: to.Ptr("D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Message: to.Ptr("Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Status: to.Ptr("Succeeded"), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NetworkTraceArray = []*armappservice.NetworkTrace{ - // { - // Path: to.Ptr("D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Message: to.Ptr("Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Status: to.Ptr("Succeeded"), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetNetworkTraces(ctx, "testrg123", "SampleApp", "c291433b-53ad-4c49-8cae-0a293eae1c6d", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.NetworkTraceArray = []*armappservice.NetworkTrace{ - // { - // Path: to.Ptr("D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Message: to.Ptr("Trace file has been saved as D:\\home\\LogFiles\\networktrace\\10.0.0.1_2018_02_01T00_00_00.zip"), - // Status: to.Ptr("Succeeded"), - // }} -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateEndpointConnection(ctx, "rg", "testSite", "connection", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginApproveOrRejectPrivateEndpointConnection(ctx, "rg", "testSite", "connection", armappservice.RemotePrivateEndpointConnectionARMResource{ - Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("connection"), - // Type: to.Ptr("Microsoft.Web/sites/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateLinkResources(ctx, "rg", "testSite", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // { - // Name: to.Ptr("site"), - // Type: to.Ptr("Microsoft.Web/sites/privateLinkResources"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateLinkResources/site"), - // Properties: &armappservice.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sites"), - // RequiredMembers: []*string{ - // to.Ptr("sites")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.testsite.azurewebsites.net")}, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppSlots.json -func ExampleWebAppsClient_NewListSlotsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListSlotsPager("testrg123", "sitef6141", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WebAppCollection = armappservice.WebAppCollection{ - // Value: []*armappservice.Site{ - // { - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-staging.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }, - // { - // Name: to.Ptr("sitef6141/qa"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/qa"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-qa.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-qa.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-qa.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-qa.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppSlot.json -func ExampleWebAppsClient_GetSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetSlot(ctx, "testrg123", "sitef6141", "staging", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-staging.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // SKU: to.Ptr("Standard"), - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CloneWebAppSlot.json -func ExampleWebAppsClient_BeginCreateOrUpdateSlot_cloneWebAppSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdateSlot(ctx, "testrg123", "sitef6141", "staging", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - CloningInfo: &armappservice.CloningInfo{ - AppSettingsOverrides: map[string]*string{ - "Setting1": to.Ptr("NewValue1"), - "Setting3": to.Ptr("NewValue5"), - }, - CloneCustomHostNames: to.Ptr(true), - CloneSourceControl: to.Ptr(true), - ConfigureLoadBalancing: to.Ptr(false), - HostingEnvironment: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites"), - Overwrite: to.Ptr(false), - SourceWebAppID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478/slot/qa"), - SourceWebAppLocation: to.Ptr("West Europe"), - }, - }, - }, 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141-staging.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateWebAppSlot.json -func ExampleWebAppsClient_BeginCreateOrUpdateSlot_createOrUpdateWebAppSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginCreateOrUpdateSlot(ctx, "testrg123", "sitef6141", "staging", armappservice.Site{ - Kind: to.Ptr("app"), - Location: to.Ptr("East US"), - Properties: &armappservice.SiteProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteWebAppSlot.json -func ExampleWebAppsClient_DeleteSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeleteSlot(ctx, "testrg123", "sitef6141", "staging", &armappservice.WebAppsClientDeleteSlotOptions{DeleteMetrics: nil, - DeleteEmptyServerFarm: 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateWebAppSlot.json -func ExampleWebAppsClient_UpdateSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().UpdateSlot(ctx, "testrg123", "sitef6141", "staging", armappservice.SitePatchResource{ - Properties: &armappservice.SitePatchResourceProperties{ - ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Site = armappservice.Site{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/slots"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Kind: to.Ptr("app"), - // Location: to.Ptr("East US"), - // Properties: &armappservice.SiteProperties{ - // AvailabilityState: to.Ptr(armappservice.SiteAvailabilityStateNormal), - // ClientAffinityEnabled: to.Ptr(true), - // ClientCertEnabled: to.Ptr(false), - // ClientCertMode: to.Ptr(armappservice.ClientCertModeRequired), - // ContainerSize: to.Ptr[int32](0), - // CustomDomainVerificationID: to.Ptr("7F3BB652450EF7AD0B6AA33064586E4A9CE823A46DF0B2EC6443A68086E84153"), - // DailyMemoryTimeQuota: to.Ptr[int32](0), - // DefaultHostName: to.Ptr("sitef6141.azurewebsites.net"), - // Enabled: to.Ptr(true), - // EnabledHostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net"), - // to.Ptr("sitef6141-staging.scm.azurewebsites.net")}, - // HostNameSSLStates: []*armappservice.HostNameSSLState{ - // { - // Name: to.Ptr("sitef6141-staging.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeStandard), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }, - // { - // Name: to.Ptr("sitef6141-staging.scm.azurewebsites.net"), - // HostType: to.Ptr(armappservice.HostTypeRepository), - // SSLState: to.Ptr(armappservice.SSLStateDisabled), - // }}, - // HostNames: []*string{ - // to.Ptr("sitef6141-staging.azurewebsites.net")}, - // HostNamesDisabled: to.Ptr(false), - // HTTPSOnly: to.Ptr(false), - // HyperV: to.Ptr(false), - // IsXenon: to.Ptr(false), - // KeyVaultReferenceIdentity: to.Ptr("SystemAssigned"), - // LastModifiedTimeUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:33:11.641Z"); return t}()), - // OutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144"), - // PossibleOutboundIPAddresses: to.Ptr("70.37.102.201,20.225.43.144,20.225.184.122,20.225.184.188"), - // RedundancyMode: to.Ptr(armappservice.RedundancyModeNone), - // RepositorySiteName: to.Ptr("sitef6141"), - // Reserved: to.Ptr(false), - // ResourceGroup: to.Ptr("testrg123"), - // ScmSiteAlsoStopped: to.Ptr(false), - // ServerFarmID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"), - // SiteConfig: &armappservice.SiteConfig{ - // AcrUseManagedIdentityCreds: to.Ptr(false), - // AlwaysOn: to.Ptr(false), - // AppCommandLine: to.Ptr(""), - // AutoHealEnabled: to.Ptr(false), - // AzureStorageAccounts: map[string]*armappservice.AzureStorageInfoValue{ - // }, - // DefaultDocuments: []*string{ - // to.Ptr("Default.htm"), - // to.Ptr("Default.html"), - // to.Ptr("Default.asp"), - // to.Ptr("index.htm"), - // to.Ptr("index.html"), - // to.Ptr("iisstart.htm"), - // to.Ptr("default.aspx"), - // to.Ptr("index.php"), - // to.Ptr("hostingstart.html")}, - // DetailedErrorLoggingEnabled: to.Ptr(false), - // FtpsState: to.Ptr(armappservice.FtpsStateAllAllowed), - // FunctionAppScaleLimit: to.Ptr[int32](0), - // FunctionsRuntimeScaleMonitoringEnabled: to.Ptr(false), - // Http20Enabled: to.Ptr(false), - // HTTPLoggingEnabled: to.Ptr(false), - // LinuxFxVersion: to.Ptr(""), - // LoadBalancing: to.Ptr(armappservice.SiteLoadBalancingLeastRequests), - // LogsDirectorySizeLimit: to.Ptr[int32](35), - // ManagedPipelineMode: to.Ptr(armappservice.ManagedPipelineModeIntegrated), - // MinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // MinimumElasticInstanceCount: to.Ptr[int32](0), - // NetFrameworkVersion: to.Ptr("v4.0"), - // NodeVersion: to.Ptr(""), - // NumberOfWorkers: to.Ptr[int32](1), - // PhpVersion: to.Ptr("5.6"), - // PowerShellVersion: to.Ptr(""), - // PythonVersion: to.Ptr(""), - // RemoteDebuggingEnabled: to.Ptr(false), - // RequestTracingEnabled: to.Ptr(false), - // ScmMinTLSVersion: to.Ptr(armappservice.SupportedTLSVersionsOne2), - // Use32BitWorkerProcess: to.Ptr(true), - // VirtualApplications: []*armappservice.VirtualApplication{ - // { - // PhysicalPath: to.Ptr("site\\wwwroot"), - // PreloadEnabled: to.Ptr(false), - // VirtualPath: to.Ptr("/"), - // }}, - // VnetName: to.Ptr(""), - // VnetPrivatePortsCount: to.Ptr[int32](0), - // VnetRouteAllEnabled: to.Ptr(false), - // WebSocketsEnabled: to.Ptr(false), - // }, - // State: to.Ptr("Running"), - // StorageAccountRequired: to.Ptr(false), - // UsageState: to.Ptr(armappservice.UsageStateNormal), - // VnetContentShareEnabled: to.Ptr(false), - // VnetImagePullEnabled: to.Ptr(false), - // VnetRouteAllEnabled: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AnalyzeCustomHostNameSlot.json -func ExampleWebAppsClient_AnalyzeCustomHostnameSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().AnalyzeCustomHostnameSlot(ctx, "testrg123", "sitef6141", "staging", &armappservice.WebAppsClientAnalyzeCustomHostnameSlotOptions{HostName: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CustomHostnameAnalysisResult = armappservice.CustomHostnameAnalysisResult{ - // Name: to.Ptr("sitef6141/staging"), - // Type: to.Ptr("Microsoft.Web/sites/stagings"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging"), - // Properties: &armappservice.CustomHostnameAnalysisResultProperties{ - // CNameRecords: []*string{ - // to.Ptr("siteog.azurewebsites.net")}, - // ConflictingAppResourceID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/siteog/slots/qa"), - // CustomDomainVerificationFailureInfo: &armappservice.ErrorEntity{ - // Code: to.Ptr("07198"), - // Message: to.Ptr("Custom domain verification failed on conflicting CNAMEs."), - // }, - // CustomDomainVerificationTest: to.Ptr(armappservice.DNSVerificationTestResultPassed), - // HasConflictAcrossSubscription: to.Ptr(true), - // HasConflictOnScaleUnit: to.Ptr(false), - // IsHostnameAlreadyVerified: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListBasicPublishingCredentialsPoliciesSlotPager("testrg123", "testsite", "staging", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.PublishingCredentialsPoliciesCollection = armappservice.PublishingCredentialsPoliciesCollection{ - // Value: []*armappservice.CsmPublishingCredentialsPoliciesEntity{ - // { - // Name: to.Ptr("ftp"), - // Type: to.Ptr("Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/slots/staging/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }, - // { - // Name: to.Ptr("scm"), - // Type: to.Ptr("Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies"), - // ID: to.Ptr("/subscriptions/3fb8d758-2e2c-42e9-a528-a8acdfe87237/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite/slots/staging/basicPublishingCredentialsPolicies/scm"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetFtpAllowedSlot(ctx, "rg", "testSite", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(false), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmPublishingCredentialsPoliciesEntity = armappservice.CsmPublishingCredentialsPoliciesEntity{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/basicPublishingCredentialsPolicies/ftp"), - // Properties: &armappservice.CsmPublishingCredentialsPoliciesEntityProperties{ - // Allow: to.Ptr(true), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewGetAppSettingsKeyVaultReferencesSlotPager("testrg123", "testc6282", "stage", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.APIKVReferenceCollection = armappservice.APIKVReferenceCollection{ - // Value: []*armappservice.APIKVReference{ - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/slots/stage/config/configreferences/appsettings/secretName"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }, - // { - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/slots/stage/config/configreferences/appsettings/secretName2"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName2"), - // SecretVersion: to.Ptr("secretVersion2"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetAppSettingKeyVaultReferenceSlot(ctx, "testrg123", "testc6282", "setting", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.APIKVReference = armappservice.APIKVReference{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testc6282/slots/stage/config/configreferences/appsettings/setting"), - // Properties: &armappservice.APIKVReferenceProperties{ - // SecretName: to.Ptr("secretName"), - // SecretVersion: to.Ptr("secretVersion"), - // VaultName: to.Ptr("keyVaultName"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListSlotSiteDeploymentStatusesSlotPager("rg", "testSite", "stage", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CsmDeploymentStatusCollection = armappservice.CsmDeploymentStatusCollection{ - // Value: []*armappservice.CsmDeploymentStatus{ - // }, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.CsmDeploymentStatus = armappservice.CsmDeploymentStatus{ - // Name: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Type: to.Ptr("Microsoft.Web/sites/slots/deploymentStatus"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/deploymentStatus/eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // Properties: &armappservice.CsmDeploymentStatusProperties{ - // DeploymentID: to.Ptr("eacfd68b-3bbd-4ad9-99c5-98614d89c8e5"), - // FailedInstancesLogs: []*string{ - // }, - // NumberOfInstancesFailed: to.Ptr[int32](0), - // NumberOfInstancesInProgress: to.Ptr[int32](0), - // NumberOfInstancesSuccessful: to.Ptr[int32](1), - // Status: to.Ptr(armappservice.DeploymentBuildStatusRuntimeSuccessful), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateEndpointConnectionSlot(ctx, "rg", "testSite", "connection", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slot/stage/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().BeginApproveOrRejectPrivateEndpointConnectionSlot(ctx, "rg", "testSite", "connection", "stage", armappservice.RemotePrivateEndpointConnectionARMResource{ - Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - 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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RemotePrivateEndpointConnectionARMResource = armappservice.RemotePrivateEndpointConnectionARMResource{ - // Name: to.Ptr("connection"), - // Type: to.Ptr("Microsoft.Web/sites/privateEndpointConnections"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/slots/stage/privateEndpointConnections/connection"), - // Properties: &armappservice.RemotePrivateEndpointConnectionARMResourceProperties{ - // PrivateEndpoint: &armappservice.ArmIDWrapper{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"), - // }, - // PrivateLinkServiceConnectionState: &armappservice.PrivateLinkConnectionState{ - // Description: to.Ptr("Approved by admin."), - // ActionsRequired: to.Ptr(""), - // Status: to.Ptr("Approved"), - // }, - // ProvisioningState: to.Ptr("Succeeded"), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWebAppsClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.Interface = map[string]any{ - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetPrivateLinkResourcesSlot(ctx, "rg", "testSite", "stage", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.PrivateLinkResourcesWrapper = armappservice.PrivateLinkResourcesWrapper{ - // Value: []*armappservice.PrivateLinkResource{ - // { - // Name: to.Ptr("site"), - // Type: to.Ptr("Microsoft.Web/sites/privateLinkResources"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/sites/testSite/privateLinkResources/site"), - // Properties: &armappservice.PrivateLinkResourceProperties{ - // GroupID: to.Ptr("sites"), - // RequiredMembers: []*string{ - // to.Ptr("sites")}, - // RequiredZoneNames: []*string{ - // to.Ptr("privatelink.testsite.azurewebsites.net")}, - // }, - // }}, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteDeployWorkflowArtifacts.json -func ExampleWebAppsClient_DeployWorkflowArtifacts_deleteWorkflowArtifacts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeployWorkflowArtifacts(ctx, "testrg123", "testsite2", &armappservice.WebAppsClientDeployWorkflowArtifactsOptions{WorkflowArtifacts: &armappservice.WorkflowArtifacts{ - FilesToDelete: []*string{ - to.Ptr("test/workflow.json"), - to.Ptr("test/")}, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PostDeployWorkflowArtifacts.json -func ExampleWebAppsClient_DeployWorkflowArtifacts_deploysWorkflowArtifacts() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeployWorkflowArtifacts(ctx, "testrg123", "testsite2", &armappservice.WebAppsClientDeployWorkflowArtifactsOptions{WorkflowArtifacts: &armappservice.WorkflowArtifacts{ - AppSettings: map[string]any{ - "eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=", - }, - Files: map[string]any{ - "connections.json": map[string]any{ - "managedApiConnections": map[string]any{}, - "serviceProviderConnections": map[string]any{ - "eventHub": map[string]any{ - "displayName": "example1", - "parameterValues": map[string]any{ - "connectionString": "@appsetting('eventHub_connectionString')", - }, - "serviceProvider": map[string]any{ - "id": "/serviceProviders/eventHub", - }, - }, - }, - }, - "test1/workflow.json": map[string]any{ - "definition": map[string]any{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]any{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]any{}, - "triggers": map[string]any{ - "When_events_are_available_in_Event_hub": map[string]any{ - "type": "ServiceProvider", - "inputs": map[string]any{ - "parameters": map[string]any{ - "eventHubName": "test123", - }, - "serviceProviderConfiguration": map[string]any{ - "operationId": "receiveEvents", - "connectionName": "eventHub", - "serviceProviderId": "/serviceProviders/eventHub", - }, - }, - "splitOn": "@triggerOutputs()?['body']", - }, - }, - }, - "kind": "Stateful", - }, - }, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PostDeployWorkflowArtifactsSlot.json -func ExampleWebAppsClient_DeployWorkflowArtifactsSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWebAppsClient().DeployWorkflowArtifactsSlot(ctx, "testrg123", "testsite2", "testsSlot", &armappservice.WebAppsClientDeployWorkflowArtifactsSlotOptions{WorkflowArtifacts: &armappservice.WorkflowArtifacts{ - AppSettings: map[string]any{ - "eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE=", - }, - Files: map[string]any{ - "connections.json": map[string]any{ - "managedApiConnections": map[string]any{}, - "serviceProviderConnections": map[string]any{ - "eventHub": map[string]any{ - "displayName": "example1", - "parameterValues": map[string]any{ - "connectionString": "@appsetting('eventHub_connectionString')", - }, - "serviceProvider": map[string]any{ - "id": "/serviceProviders/eventHub", - }, - }, - }, - }, - "test1/workflow.json": map[string]any{ - "definition": map[string]any{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]any{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]any{}, - "triggers": map[string]any{ - "When_events_are_available_in_Event_hub": map[string]any{ - "type": "ServiceProvider", - "inputs": map[string]any{ - "parameters": map[string]any{ - "eventHubName": "test123", - }, - "serviceProviderConfiguration": map[string]any{ - "operationId": "receiveEvents", - "connectionName": "eventHub", - "serviceProviderId": "/serviceProviders/eventHub", - }, - }, - "splitOn": "@triggerOutputs()?['body']", - }, - }, - }, - "kind": "Stateful", - }, - }, - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWorkflows.json -func ExampleWebAppsClient_NewListInstanceWorkflowsSlotPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebAppsClient().NewListInstanceWorkflowsSlotPager("testrg123", "testsite2", "staging", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowEnvelopeCollection = armappservice.WorkflowEnvelopeCollection{ - // Value: []*armappservice.WorkflowEnvelope{ - // { - // Name: to.Ptr("testsite2/a1"), - // Type: to.Ptr("Microsoft.Web/sites/workflows"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflows/a1"), - // Kind: to.Ptr("Stateful"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // FlowState: to.Ptr(armappservice.WorkflowStateEnabled), - // Health: &armappservice.WorkflowHealth{ - // State: to.Ptr(armappservice.WorkflowHealthStateHealthy), - // }, - // }, - // }, - // { - // Name: to.Ptr("testsite2/stateful2"), - // Type: to.Ptr("Microsoft.Web/sites/workflows"), - // ID: to.Ptr("/subscriptions/testsub/resourceGroups/testrg/providers/Microsoft.Web/sites/testsite2/workflows/stateful2"), - // Kind: to.Ptr("Stateful"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // FlowState: to.Ptr(armappservice.WorkflowStateEnabled), - // Health: &armappservice.WorkflowHealth{ - // Error: &armappservice.ErrorEntity{ - // Code: to.Ptr("InvalidWorkflowJson"), - // Message: to.Ptr("Invalid character after parsing property name. Expected ':' but got: \". Path '', line 2, position 2."), - // }, - // State: to.Ptr(armappservice.WorkflowHealthStateUnhealthy), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWorkflow.json -func ExampleWebAppsClient_GetInstanceWorkflowSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().GetInstanceWorkflowSlot(ctx, "testrg123", "testsite2", "staging", "stateful1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowEnvelope = armappservice.WorkflowEnvelope{ - // Name: to.Ptr("testsite2/stateful1"), - // Type: to.Ptr("Microsoft.Web/sites/workflows"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflows/stateful1"), - // Kind: to.Ptr("Stateful"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // Files: map[string]any{ - // "connections.json": map[string]any{ - // "managedApiConnections":map[string]any{ - // "office365":map[string]any{ - // "api":map[string]any{ - // "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/office365", - // }, - // "authentication":map[string]any{ - // "type": "Raw", - // "parameter": "@appsetting('office365-connectionKey')", - // "scheme": "Key", - // }, - // "connection":map[string]any{ - // "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/connections/office365-1", - // }, - // "connectionRuntimeUrl": "string", - // }, - // }, - // }, - // "workflow.json": map[string]any{ - // "definition":map[string]any{ - // "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - // "actions":map[string]any{ - // }, - // "contentVersion": "1.0.0.0", - // "outputs":map[string]any{ - // }, - // "parameters":map[string]any{ - // }, - // "triggers":map[string]any{ - // }, - // }, - // }, - // }, - // FlowState: to.Ptr(armappservice.WorkflowStateEnabled), - // Health: &armappservice.WorkflowHealth{ - // State: to.Ptr(armappservice.WorkflowHealthStateHealthy), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWorkflowsConfigurationConnections.json -func ExampleWebAppsClient_ListWorkflowsConnectionsSlot() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebAppsClient().ListWorkflowsConnectionsSlot(ctx, "testrg123", "testsite2", "staging", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowEnvelope = armappservice.WorkflowEnvelope{ - // Name: to.Ptr("testsite2/connections"), - // Type: to.Ptr("Microsoft.Web/sites/workflowsconfiguration"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflowconfigurations/connections"), - // Location: to.Ptr("USAAnywhere"), - // Properties: &armappservice.WorkflowEnvelopeProperties{ - // Files: map[string]any{ - // "connections.json": map[string]any{ - // "managedApiConnections":map[string]any{ - // "office365":map[string]any{ - // "api":map[string]any{ - // "id": "string", - // }, - // "authentication":map[string]any{ - // "type": "Raw", - // "parameter": "@appsetting('office365-connectionKey')", - // "scheme": "Key", - // }, - // "connection":map[string]any{ - // "id": "string", - // }, - // "connectionRuntimeUrl": "string", - // }, - // }, - // }, - // }, - // Health: &armappservice.WorkflowHealth{ - // State: to.Ptr(armappservice.WorkflowHealthStateHealthy), - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go index 174f8168955e..70a54395e09c 100644 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go +++ b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - request - Name availability request. // - options - WebSiteManagementClientCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.CheckNameAvailability // method. @@ -74,7 +71,7 @@ func (client *WebSiteManagementClient) CheckNameAvailability(ctx context.Context } // checkNameAvailabilityCreateRequest creates the CheckNameAvailability request. -func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx context.Context, request ResourceNameAvailabilityRequest, options *WebSiteManagementClientCheckNameAvailabilityOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx context.Context, request ResourceNameAvailabilityRequest, _ *WebSiteManagementClientCheckNameAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -85,7 +82,7 @@ func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -106,7 +103,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientGetPublishingUserOptions contains the optional parameters for the WebSiteManagementClient.GetPublishingUser // method. func (client *WebSiteManagementClient) GetPublishingUser(ctx context.Context, options *WebSiteManagementClientGetPublishingUserOptions) (WebSiteManagementClientGetPublishingUserResponse, error) { @@ -132,14 +129,14 @@ func (client *WebSiteManagementClient) GetPublishingUser(ctx context.Context, op } // getPublishingUserCreateRequest creates the GetPublishingUser request. -func (client *WebSiteManagementClient) getPublishingUserCreateRequest(ctx context.Context, options *WebSiteManagementClientGetPublishingUserOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) getPublishingUserCreateRequest(ctx context.Context, _ *WebSiteManagementClientGetPublishingUserOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/publishingUsers/web" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -157,7 +154,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - sourceControlType - Type of source control // - options - WebSiteManagementClientGetSourceControlOptions contains the optional parameters for the WebSiteManagementClient.GetSourceControl // method. @@ -184,7 +181,7 @@ func (client *WebSiteManagementClient) GetSourceControl(ctx context.Context, sou } // getSourceControlCreateRequest creates the GetSourceControl request. -func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context.Context, sourceControlType string, options *WebSiteManagementClientGetSourceControlOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context.Context, sourceControlType string, _ *WebSiteManagementClientGetSourceControlOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/sourcecontrols/{sourceControlType}" if sourceControlType == "" { return nil, errors.New("parameter sourceControlType cannot be empty") @@ -195,7 +192,7 @@ func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -213,7 +210,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the WebSiteManagementClient.GetSubscriptionDeploymentLocations // method. func (client *WebSiteManagementClient) GetSubscriptionDeploymentLocations(ctx context.Context, options *WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse, error) { @@ -239,7 +236,7 @@ func (client *WebSiteManagementClient) GetSubscriptionDeploymentLocations(ctx co } // getSubscriptionDeploymentLocationsCreateRequest creates the GetSubscriptionDeploymentLocations request. -func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateRequest(ctx context.Context, options *WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateRequest(ctx context.Context, _ *WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -250,7 +247,7 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,7 +264,7 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsHandleR // NewListAseRegionsPager - Description for get a list of available ASE regions and its supported Skus. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListAseRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListAseRegionsPager // method. func (client *WebSiteManagementClient) NewListAseRegionsPager(options *WebSiteManagementClientListAseRegionsOptions) *runtime.Pager[WebSiteManagementClientListAseRegionsResponse] { @@ -294,7 +291,7 @@ func (client *WebSiteManagementClient) NewListAseRegionsPager(options *WebSiteMa } // listAseRegionsCreateRequest creates the ListAseRegions request. -func (client *WebSiteManagementClient) listAseRegionsCreateRequest(ctx context.Context, options *WebSiteManagementClientListAseRegionsOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) listAseRegionsCreateRequest(ctx context.Context, _ *WebSiteManagementClientListAseRegionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/aseRegions" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -305,7 +302,7 @@ func (client *WebSiteManagementClient) listAseRegionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,7 +319,7 @@ func (client *WebSiteManagementClient) listAseRegionsHandleResponse(resp *http.R // NewListBillingMetersPager - Description for Gets a list of meters for a given location. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.NewListBillingMetersPager // method. func (client *WebSiteManagementClient) NewListBillingMetersPager(options *WebSiteManagementClientListBillingMetersOptions) *runtime.Pager[WebSiteManagementClientListBillingMetersResponse] { @@ -360,7 +357,7 @@ func (client *WebSiteManagementClient) listBillingMetersCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.BillingLocation != nil { reqQP.Set("billingLocation", *options.BillingLocation) } @@ -383,7 +380,7 @@ func (client *WebSiteManagementClient) listBillingMetersHandleResponse(resp *htt // NewListCustomHostNameSitesPager - Get custom hostnames under this subscription // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.NewListCustomHostNameSitesPager // method. func (client *WebSiteManagementClient) NewListCustomHostNameSitesPager(options *WebSiteManagementClientListCustomHostNameSitesOptions) *runtime.Pager[WebSiteManagementClientListCustomHostNameSitesResponse] { @@ -421,7 +418,7 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Hostname != nil { reqQP.Set("hostname", *options.Hostname) } @@ -441,7 +438,7 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesHandleResponse(res // NewListGeoRegionsPager - Description for Get a list of available geographical regions. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListGeoRegionsPager // method. func (client *WebSiteManagementClient) NewListGeoRegionsPager(options *WebSiteManagementClientListGeoRegionsOptions) *runtime.Pager[WebSiteManagementClientListGeoRegionsResponse] { @@ -479,7 +476,7 @@ func (client *WebSiteManagementClient) listGeoRegionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.LinuxDynamicWorkersEnabled != nil { reqQP.Set("linuxDynamicWorkersEnabled", strconv.FormatBool(*options.LinuxDynamicWorkersEnabled)) } @@ -508,7 +505,7 @@ func (client *WebSiteManagementClient) listGeoRegionsHandleResponse(resp *http.R // NewListPremierAddOnOffersPager - Description for List all premier add-on offers. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.NewListPremierAddOnOffersPager // method. func (client *WebSiteManagementClient) NewListPremierAddOnOffersPager(options *WebSiteManagementClientListPremierAddOnOffersOptions) *runtime.Pager[WebSiteManagementClientListPremierAddOnOffersResponse] { @@ -535,7 +532,7 @@ func (client *WebSiteManagementClient) NewListPremierAddOnOffersPager(options *W } // listPremierAddOnOffersCreateRequest creates the ListPremierAddOnOffers request. -func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx context.Context, options *WebSiteManagementClientListPremierAddOnOffersOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx context.Context, _ *WebSiteManagementClientListPremierAddOnOffersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -546,7 +543,7 @@ func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -564,7 +561,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListSKUsOptions contains the optional parameters for the WebSiteManagementClient.ListSKUs // method. func (client *WebSiteManagementClient) ListSKUs(ctx context.Context, options *WebSiteManagementClientListSKUsOptions) (WebSiteManagementClientListSKUsResponse, error) { @@ -590,7 +587,7 @@ func (client *WebSiteManagementClient) ListSKUs(ctx context.Context, options *We } // listSKUsCreateRequest creates the ListSKUs request. -func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context, options *WebSiteManagementClientListSKUsOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context, _ *WebSiteManagementClientListSKUsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/skus" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -601,7 +598,7 @@ func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -618,7 +615,7 @@ func (client *WebSiteManagementClient) listSKUsHandleResponse(resp *http.Respons // NewListSiteIdentifiersAssignedToHostNamePager - Description for List all apps that are assigned to a hostname. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - nameIdentifier - Hostname information. // - options - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the // WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager method. @@ -646,7 +643,7 @@ func (client *WebSiteManagementClient) NewListSiteIdentifiersAssignedToHostNameP } // listSiteIdentifiersAssignedToHostNameCreateRequest creates the ListSiteIdentifiersAssignedToHostName request. -func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCreateRequest(ctx context.Context, nameIdentifier NameIdentifier, options *WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCreateRequest(ctx context.Context, nameIdentifier NameIdentifier, _ *WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -657,7 +654,7 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, nameIdentifier); err != nil { @@ -677,7 +674,7 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameHand // NewListSourceControlsPager - Description for Gets the source controls available for Azure websites. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - options - WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.NewListSourceControlsPager // method. func (client *WebSiteManagementClient) NewListSourceControlsPager(options *WebSiteManagementClientListSourceControlsOptions) *runtime.Pager[WebSiteManagementClientListSourceControlsResponse] { @@ -704,14 +701,14 @@ func (client *WebSiteManagementClient) NewListSourceControlsPager(options *WebSi } // listSourceControlsCreateRequest creates the ListSourceControls request. -func (client *WebSiteManagementClient) listSourceControlsCreateRequest(ctx context.Context, options *WebSiteManagementClientListSourceControlsOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) listSourceControlsCreateRequest(ctx context.Context, _ *WebSiteManagementClientListSourceControlsOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/sourcecontrols" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -729,7 +726,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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. @@ -755,7 +752,7 @@ func (client *WebSiteManagementClient) Move(ctx context.Context, resourceGroupNa } // moveCreateRequest creates the Move request. -func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *WebSiteManagementClientMoveOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, _ *WebSiteManagementClientMoveOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -770,7 +767,7 @@ func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, moveResourceEnvelope); err != nil { @@ -782,7 +779,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - userDetails - Details of publishing user // - options - WebSiteManagementClientUpdatePublishingUserOptions contains the optional parameters for the WebSiteManagementClient.UpdatePublishingUser // method. @@ -809,14 +806,14 @@ func (client *WebSiteManagementClient) UpdatePublishingUser(ctx context.Context, } // updatePublishingUserCreateRequest creates the UpdatePublishingUser request. -func (client *WebSiteManagementClient) updatePublishingUserCreateRequest(ctx context.Context, userDetails User, options *WebSiteManagementClientUpdatePublishingUserOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) updatePublishingUserCreateRequest(ctx context.Context, userDetails User, _ *WebSiteManagementClientUpdatePublishingUserOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/publishingUsers/web" req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, userDetails); err != nil { @@ -837,7 +834,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - sourceControlType - Type of source control // - requestMessage - Source control token information // - options - WebSiteManagementClientUpdateSourceControlOptions contains the optional parameters for the WebSiteManagementClient.UpdateSourceControl @@ -865,7 +862,7 @@ func (client *WebSiteManagementClient) UpdateSourceControl(ctx context.Context, } // updateSourceControlCreateRequest creates the UpdateSourceControl request. -func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx context.Context, sourceControlType string, requestMessage SourceControl, options *WebSiteManagementClientUpdateSourceControlOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx context.Context, sourceControlType string, requestMessage SourceControl, _ *WebSiteManagementClientUpdateSourceControlOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/sourcecontrols/{sourceControlType}" if sourceControlType == "" { return nil, errors.New("parameter sourceControlType cannot be empty") @@ -876,7 +873,7 @@ func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, requestMessage); err != nil { @@ -897,7 +894,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -925,7 +922,7 @@ func (client *WebSiteManagementClient) Validate(ctx context.Context, resourceGro } // validateCreateRequest creates the Validate request. -func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, options *WebSiteManagementClientValidateOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, _ *WebSiteManagementClientValidateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -940,7 +937,7 @@ func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, validateRequest); err != nil { @@ -961,7 +958,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-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 @@ -988,7 +985,7 @@ func (client *WebSiteManagementClient) ValidateMove(ctx context.Context, resourc } // validateMoveCreateRequest creates the ValidateMove request. -func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *WebSiteManagementClientValidateMoveOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, _ *WebSiteManagementClientValidateMoveOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1003,7 +1000,7 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, moveResourceEnvelope); err != nil { @@ -1016,7 +1013,7 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con // the Network Security Group rules. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - parameters - VNET information // - options - WebSiteManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the WebSiteManagementClient.VerifyHostingEnvironmentVnet // method. @@ -1043,7 +1040,7 @@ func (client *WebSiteManagementClient) VerifyHostingEnvironmentVnet(ctx context. } // verifyHostingEnvironmentVnetCreateRequest creates the VerifyHostingEnvironmentVnet request. -func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest(ctx context.Context, parameters VnetParameters, options *WebSiteManagementClientVerifyHostingEnvironmentVnetOptions) (*policy.Request, error) { +func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest(ctx context.Context, parameters VnetParameters, _ *WebSiteManagementClientVerifyHostingEnvironmentVnetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -1054,7 +1051,7 @@ func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go deleted file mode 100644 index a91418b1442a..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go +++ /dev/null @@ -1,223 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListCustomHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getCustomHostnamesUnderSubscription() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebSiteManagementClient().NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CustomHostnameSitesCollection = armappservice.CustomHostnameSitesCollection{ - // Value: []*armappservice.CustomHostnameSites{ - // { - // Name: to.Ptr("mywebapp.azurewebsites.net"), - // Type: to.Ptr("Microsoft.Web/customhostnameSites"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/customhostnameSites/mywebapp.azurewebsites.net"), - // Properties: &armappservice.CustomHostnameSitesProperties{ - // CustomHostname: to.Ptr("mywebapp.azurewebsites.net"), - // Region: to.Ptr("West US"), - // SiteResourceIDs: []*armappservice.Identifier{ - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus-rg/providers/Microsoft.Web/sites/mywebapp"), - // }}, - // }, - // }, - // { - // Name: to.Ptr("www.example.com"), - // Type: to.Ptr("Microsoft.Web/customhostnameSites"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/customhostnameSites/www.example.com"), - // Properties: &armappservice.CustomHostnameSitesProperties{ - // CustomHostname: to.Ptr("www.example.com"), - // Region: to.Ptr("West US 2"), - // SiteResourceIDs: []*armappservice.Identifier{ - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app1"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app2"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app3"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListCustomSpecificHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getSpecificCustomHostnameUnderSubscription() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebSiteManagementClient().NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: to.Ptr("www.example.com")}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.CustomHostnameSitesCollection = armappservice.CustomHostnameSitesCollection{ - // Value: []*armappservice.CustomHostnameSites{ - // { - // Name: to.Ptr("www.example.com"), - // Type: to.Ptr("Microsoft.Web/customhostnameSites"), - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/customhostnameSites/www.example.com"), - // Properties: &armappservice.CustomHostnameSitesProperties{ - // CustomHostname: to.Ptr("www.example.com"), - // Region: to.Ptr("West US 2"), - // SiteResourceIDs: []*armappservice.Identifier{ - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app1"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app2"), - // }, - // { - // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westus2-rg/providers/Microsoft.Web/sites/westus2app3"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAseRegions.json -func ExampleWebSiteManagementClient_NewListAseRegionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWebSiteManagementClient().NewListAseRegionsPager(nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.AseRegionCollection = armappservice.AseRegionCollection{ - // Value: []*armappservice.AseRegion{ - // { - // Type: to.Ptr("Microsoft.Web/aseRegions"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/aseRegions"), - // Properties: &armappservice.AseRegionProperties{ - // AvailableOS: []*string{ - // to.Ptr("Windows"), - // to.Ptr("Linux"), - // to.Ptr("HyperV")}, - // AvailableSKU: []*string{ - // to.Ptr("I1v2"), - // to.Ptr("I2v2"), - // to.Ptr("I3v2")}, - // DedicatedHost: to.Ptr(true), - // DisplayName: to.Ptr("southcentralus"), - // Standard: to.Ptr(true), - // ZoneRedundant: to.Ptr(true), - // }, - // }, - // { - // Type: to.Ptr("Microsoft.Web/aseRegions"), - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/aseRegions"), - // Properties: &armappservice.AseRegionProperties{ - // AvailableOS: []*string{ - // to.Ptr("Windows"), - // to.Ptr("Linux")}, - // AvailableSKU: []*string{ - // to.Ptr("I1v4"), - // to.Ptr("I2v2"), - // to.Ptr("I3v2")}, - // DedicatedHost: to.Ptr(true), - // DisplayName: to.Ptr("northcentralus"), - // Standard: to.Ptr(true), - // ZoneRedundant: to.Ptr(true), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWebSiteManagementClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.VnetValidationFailureDetails = armappservice.VnetValidationFailureDetails{ - // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/verifyHostingEnvironmentVnet"), - // Properties: &armappservice.VnetValidationFailureDetailsProperties{ - // Failed: to.Ptr(false), - // FailedTests: []*armappservice.VnetValidationTestFailure{ - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go index c5932944874c..b7f17a4798cb 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -78,7 +75,7 @@ func (client *WorkflowRunActionRepetitionsClient) Get(ctx context.Context, resou } // getCreateRequest creates the Get request. -func (client *WorkflowRunActionRepetitionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionRepetitionsClientGetOptions) (*policy.Request, error) { +func (client *WorkflowRunActionRepetitionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, _ *WorkflowRunActionRepetitionsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -113,7 +110,7 @@ func (client *WorkflowRunActionRepetitionsClient) getCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -130,7 +127,7 @@ func (client *WorkflowRunActionRepetitionsClient) getHandleResponse(resp *http.R // NewListPager - Get all of a workflow run action repetitions. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -162,7 +159,7 @@ func (client *WorkflowRunActionRepetitionsClient) NewListPager(resourceGroupName } // listCreateRequest creates the List request. -func (client *WorkflowRunActionRepetitionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionRepetitionsClientListOptions) (*policy.Request, error) { +func (client *WorkflowRunActionRepetitionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, _ *WorkflowRunActionRepetitionsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -193,7 +190,7 @@ func (client *WorkflowRunActionRepetitionsClient) listCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -210,7 +207,7 @@ func (client *WorkflowRunActionRepetitionsClient) listHandleResponse(resp *http. // NewListExpressionTracesPager - Lists a workflow run expression trace. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -243,7 +240,7 @@ func (client *WorkflowRunActionRepetitionsClient) NewListExpressionTracesPager(r } // listExpressionTracesCreateRequest creates the ListExpressionTraces request. -func (client *WorkflowRunActionRepetitionsClient) listExpressionTracesCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionRepetitionsClientListExpressionTracesOptions) (*policy.Request, error) { +func (client *WorkflowRunActionRepetitionsClient) listExpressionTracesCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, _ *WorkflowRunActionRepetitionsClientListExpressionTracesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/listExpressionTraces" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -278,7 +275,7 @@ func (client *WorkflowRunActionRepetitionsClient) listExpressionTracesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 8c1e41114d1b..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go +++ /dev/null @@ -1,216 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionRepetitionsClient().NewListPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunActionRepetitionDefinitionCollection = armappservice.WorkflowRunActionRepetitionDefinitionCollection{ - // Value: []*armappservice.WorkflowRunActionRepetitionDefinition{ - // { - // Name: to.Ptr("000000"), - // Type: to.Ptr("/workflows/runs/actions/repetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/testAction/repetitions/000000"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("0d8152bb-e198-44a9-bde8-5138eea16dd4"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.226Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.217Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // InputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // }, - // ContentSize: to.Ptr[int64](8), - // ContentVersion: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000000/contents/ActionInputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000000%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=vw4BDdYp4Ap5RXdM7tY_wl9C38DeAHfnixLBEOpideA"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // }, - // ContentSize: to.Ptr[int64](8), - // ContentVersion: to.Ptr("8q1zMKS5ZyHBrPF+qF1xXw=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000000/contents/ActionOutputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000000%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=y8Wq7jbu85tmlMo_1zpRyqNJuoCaQCFQtZ3bgSovLY0"), - // }, - // TrackingID: to.Ptr("0d8152bb-e198-44a9-bde8-5138eea16dd4"), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](0), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }, - // { - // Name: to.Ptr("000001"), - // Type: to.Ptr("/workflows/runs/actions/repetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/testAction/repetitions/000001"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.101Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.092Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // InputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionInputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dLmnt50joimEMK4k9rR6njHQh94iSFJ9rrDxFbkEg5M"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionOutputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=B3-X5sqIAv1Lb31GOD34ZgIRUXGuiM2QllWiNwXFYAw"), - // }, - // TrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](1), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionRepetitionsClient().Get(ctx, "testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", "000001", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRunActionRepetitionDefinition = armappservice.WorkflowRunActionRepetitionDefinition{ - // Name: to.Ptr("000001"), - // Type: to.Ptr("/workflows/runs/actions/repetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/testAction/repetitions/000001"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.101Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.092Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // InputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionInputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dLmnt50joimEMK4k9rR6njHQh94iSFJ9rrDxFbkEg5M"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // }, - // ContentSize: to.Ptr[int64](6), - // ContentVersion: to.Ptr("OA3i83YHGYVch+N8BQJIRQ=="), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/2dfde2fce2584c49bea17ef0b04c95f4/runs/08586776228332053161046300351/actions/testAction/repetitions/000001/contents/ActionOutputs?api-version=2016-10-01&se=2018-04-18T21%3A00%3A00.0000000Z&sp=%2Fruns%2F08586776228332053161046300351%2Factions%2FtestAction%2Frepetitions%2F000001%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=B3-X5sqIAv1Lb31GOD34ZgIRUXGuiM2QllWiNwXFYAw"), - // }, - // TrackingID: to.Ptr("f84f23eb-b331-4772-9f39-cc307fa83bc3"), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](1), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionRepetitionsClient().NewListExpressionTracesPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", "000001", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Inputs { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ExpressionTraces = armappservice.ExpressionTraces{ - // Inputs: []*armappservice.ExpressionRoot{ - // { - // Text: to.Ptr("items('For_each')?['OccuringLocation']?['Environment']"), - // Value: "PROD", - // Path: to.Ptr(""), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go index e7b7a019456d..6ba1198acd12 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -20,7 +17,8 @@ import ( "strings" ) -// WorkflowRunActionRepetitionsRequestHistoriesClient contains the methods for the WorkflowRunActionRepetitionsRequestHistories group. +// WorkflowRunActionRepetitionsRequestHistoriesClient contains the methods for the WorkflowRunActionRepetitionsRequestHistories +// group. // Don't use this type directly, use NewWorkflowRunActionRepetitionsRequestHistoriesClient() instead. type WorkflowRunActionRepetitionsRequestHistoriesClient struct { internal *arm.Client @@ -46,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -79,7 +77,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) Get(ctx contex } // getCreateRequest creates the Get request. -func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, requestHistoryName string, options *WorkflowRunActionRepetitionsRequestHistoriesClientGetOptions) (*policy.Request, error) { +func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, requestHistoryName string, _ *WorkflowRunActionRepetitionsRequestHistoriesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories/{requestHistoryName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -118,7 +116,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -135,7 +133,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getHandleRespo // NewListPager - List a workflow run repetition request history. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -168,7 +166,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) NewListPager(r } // listCreateRequest creates the List request. -func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionRepetitionsRequestHistoriesClientListOptions) (*policy.Request, error) { +func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, _ *WorkflowRunActionRepetitionsRequestHistoriesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -203,7 +201,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) listCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 fe7c0791e45a..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionRepetitionsRequestHistoriesClient().NewListPager("test-resource-group", "test-name", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", "000001", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.RequestHistoryListResult = armappservice.RequestHistoryListResult{ - // Value: []*armappservice.RequestHistory{ - // { - // Name: to.Ptr("08586611142732800686"), - // Type: to.Ptr("/workflows/runs/actions/requestHistories"), - // ID: to.Ptr("/workflows/test-workflow/runs/08586611142736787787412824395CU21/actions/HTTP_Webhook/requestHistories/08586611142732800686"), - // Properties: &armappservice.RequestHistoryProperties{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:52.186Z"); return t}()), - // Response: &armappservice.Response{ - // BodyLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // }, - // ContentSize: to.Ptr[int64](137), - // ContentVersion: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // URI: to.Ptr("https://tempuri.org"), - // }, - // Headers: map[string]any{ - // "Cache-Control": "private", - // "Date": "Thu, 25 Oct 2018 18:36:51 GMT", - // "Location": "http://www.bing.com/", - // "Server": "Microsoft-IIS/10.0", - // "X-AspNet-Version": "4.0.30319", - // "X-Powered-By": "ASP.NET", - // }, - // StatusCode: to.Ptr[int32](302), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:51.920Z"); return t}()), - // Request: &armappservice.Request{ - // Method: to.Ptr("GET"), - // Headers: map[string]any{ - // "Accept-Language": "en-US", - // "User-Agent": "azure-logic-apps/1.0,(workflow 80244732be3648f59d2084fd979cdd56; version 08586611142904036539)", - // "x-ms-action-tracking-id": "ad27f634-6523-492f-924e-9a75e28619c8", - // "x-ms-client-request-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-client-tracking-id": "08586611142736787787412824395CU21", - // "x-ms-correlation-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-execution-location": "brazilsouth", - // "x-ms-tracking-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-workflow-id": "80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-name": "test-workflow", - // "x-ms-workflow-operation-name": "HTTP_Webhook", - // "x-ms-workflow-resourcegroup-name": "test-resource-group", - // "x-ms-workflow-run-id": "08586611142736787787412824395CU21", - // "x-ms-workflow-run-tracking-id": "b4cd2e77-f949-4d8c-8753-791407aebde8", - // "x-ms-workflow-subscription-capacity": "Large", - // "x-ms-workflow-subscription-id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - // "x-ms-workflow-system-id": "/locations/brazilsouth/scaleunits/prod-17/workflows/80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-version": "08586611142904036539", - // }, - // URI: to.Ptr("http://tempuri.org"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionRepetitionsRequestHistoriesClient().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) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.RequestHistory = armappservice.RequestHistory{ - // Name: to.Ptr("08586611142732800686"), - // Type: to.Ptr("/workflows/runs/actions/requestHistories"), - // ID: to.Ptr("/workflows/test-workflow/runs/08586611142736787787412824395CU21/actions/HTTP_Webhook/requestHistories/08586611142732800686"), - // Properties: &armappservice.RequestHistoryProperties{ - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:52.186Z"); return t}()), - // Response: &armappservice.Response{ - // BodyLink: &armappservice.ContentLink{ - // ContentHash: &armappservice.ContentHash{ - // Algorithm: to.Ptr("md5"), - // Value: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // }, - // ContentSize: to.Ptr[int64](137), - // ContentVersion: to.Ptr("2LOOAR8Eh2pd7AvRHXUhRg=="), - // URI: to.Ptr("https://tempuri.org"), - // }, - // Headers: map[string]any{ - // "Cache-Control": "private", - // "Date": "Thu, 25 Oct 2018 18:36:51 GMT", - // "Location": "http://www.bing.com/", - // "Server": "Microsoft-IIS/10.0", - // "X-AspNet-Version": "4.0.30319", - // "X-Powered-By": "ASP.NET", - // }, - // StatusCode: to.Ptr[int32](302), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-25T18:36:51.920Z"); return t}()), - // Request: &armappservice.Request{ - // Method: to.Ptr("GET"), - // Headers: map[string]any{ - // "Accept-Language": "en-US", - // "User-Agent": "azure-logic-apps/1.0,(workflow 80244732be3648f59d2084fd979cdd56; version 08586611142904036539)", - // "x-ms-action-tracking-id": "ad27f634-6523-492f-924e-9a75e28619c8", - // "x-ms-client-request-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-client-tracking-id": "08586611142736787787412824395CU21", - // "x-ms-correlation-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-execution-location": "brazilsouth", - // "x-ms-tracking-id": "ad484925-4148-4dd0-9488-07aed418b256", - // "x-ms-workflow-id": "80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-name": "test-workflow", - // "x-ms-workflow-operation-name": "HTTP_Webhook", - // "x-ms-workflow-resourcegroup-name": "test-resource-group", - // "x-ms-workflow-run-id": "08586611142736787787412824395CU21", - // "x-ms-workflow-run-tracking-id": "b4cd2e77-f949-4d8c-8753-791407aebde8", - // "x-ms-workflow-subscription-capacity": "Large", - // "x-ms-workflow-subscription-id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - // "x-ms-workflow-system-id": "/locations/brazilsouth/scaleunits/prod-17/workflows/80244732be3648f59d2084fd979cdd56", - // "x-ms-workflow-version": "08586611142904036539", - // }, - // URI: to.Ptr("http://tempuri.org"), - // }, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go index e30b4b9ee4bb..3ad23b165b5b 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -77,7 +74,7 @@ func (client *WorkflowRunActionsClient) Get(ctx context.Context, resourceGroupNa } // getCreateRequest creates the Get request. -func (client *WorkflowRunActionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionsClientGetOptions) (*policy.Request, error) { +func (client *WorkflowRunActionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, _ *WorkflowRunActionsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -108,7 +105,7 @@ func (client *WorkflowRunActionsClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -125,7 +122,7 @@ func (client *WorkflowRunActionsClient) getHandleResponse(resp *http.Response) ( // NewListPager - Gets a list of workflow run actions. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -189,7 +186,7 @@ func (client *WorkflowRunActionsClient) listCreateRequest(ctx context.Context, r if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -206,7 +203,7 @@ func (client *WorkflowRunActionsClient) listHandleResponse(resp *http.Response) // NewListExpressionTracesPager - Lists a workflow run expression trace. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -238,7 +235,7 @@ func (client *WorkflowRunActionsClient) NewListExpressionTracesPager(resourceGro } // listExpressionTracesCreateRequest creates the ListExpressionTraces request. -func (client *WorkflowRunActionsClient) listExpressionTracesCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionsClientListExpressionTracesOptions) (*policy.Request, error) { +func (client *WorkflowRunActionsClient) listExpressionTracesCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, _ *WorkflowRunActionsClientListExpressionTracesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/listExpressionTraces" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -269,7 +266,7 @@ func (client *WorkflowRunActionsClient) listExpressionTracesCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 33ba8e0476c7..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go +++ /dev/null @@ -1,147 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionsClient().NewListPager("test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", &armappservice.WorkflowRunActionsClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunActionListResult = armappservice.WorkflowRunActionListResult{ - // Value: []*armappservice.WorkflowRunAction{ - // { - // ID: to.Ptr("/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP"), - // Name: to.Ptr("HTTP"), - // Type: to.Ptr("/workflows/runs/actions"), - // Properties: &armappservice.WorkflowRunActionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // ActionTrackingID: to.Ptr("56063357-45dd-4278-9be5-8220ce0cc9ca"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.545Z"); return t}()), - // InputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](138), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionInputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dJ6F00000aaaabbbbccccddddeeeeffff78co"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](15660), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionOutputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=fIIgF00000aaaabbbbccccddddeeeeffffWRU0"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.305Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionsClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", "HTTP", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRunAction = armappservice.WorkflowRunAction{ - // ID: to.Ptr("/workflows/test-workflow/runs/08586676746934337772206998657CU22/actions/HTTP"), - // Name: to.Ptr("HTTP"), - // Type: to.Ptr("/workflows/runs/actions"), - // Properties: &armappservice.WorkflowRunActionProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // ActionTrackingID: to.Ptr("56063357-45dd-4278-9be5-8220ce0cc9ca"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.545Z"); return t}()), - // InputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](138), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionInputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionInputs%2Fread&sv=1.0&sig=dJ6F00000aaaabbbbccccddddeeeeffff78co"), - // }, - // OutputsLink: &armappservice.ContentLink{ - // ContentSize: to.Ptr[int64](15660), - // URI: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/000012345678900000000056a41a/runs/00000aaaabbbbccccddddeeeeffff/actions/HTTP/contents/ActionOutputs?api-version=2018-11-01&code=examplecode=2022-04-13T03%3A00%3A00.0000000Z&sp=%2Fruns%2F00000aaaabbbbccccddddeeeeffff%2Factions%2FHTTP%2Fcontents%2FActionOutputs%2Fread&sv=1.0&sig=fIIgF00000aaaabbbbccccddddeeeeffffWRU0"), - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.305Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionsClient().NewListExpressionTracesPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "testAction", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Inputs { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.ExpressionTraces = armappservice.ExpressionTraces{ - // Inputs: []*armappservice.ExpressionRoot{ - // { - // Text: to.Ptr("add(4, 4)"), - // Value: float64(8), - // Path: to.Ptr(""), - // }}, - // } - } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go index 82a2ce0c107e..7e08f09facff 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -78,7 +75,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) Get(ctx context.Context, } // getCreateRequest creates the Get request. -func (client *WorkflowRunActionScopeRepetitionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, options *WorkflowRunActionScopeRepetitionsClientGetOptions) (*policy.Request, error) { +func (client *WorkflowRunActionScopeRepetitionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, repetitionName string, _ *WorkflowRunActionScopeRepetitionsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions/{repetitionName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -113,7 +110,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -130,7 +127,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getHandleResponse(resp *h // NewListPager - List the workflow run action scoped repetitions. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -162,7 +159,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) NewListPager(resourceGrou } // listCreateRequest creates the List request. -func (client *WorkflowRunActionScopeRepetitionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, options *WorkflowRunActionScopeRepetitionsClientListOptions) (*policy.Request, error) { +func (client *WorkflowRunActionScopeRepetitionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, actionName string, _ *WorkflowRunActionScopeRepetitionsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/actions/{actionName}/scopeRepetitions" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -193,7 +190,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) listCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 50ba37f6fd45..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go +++ /dev/null @@ -1,126 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunActionScopeRepetitionsClient().NewListPager("testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "for_each", nil) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunActionRepetitionDefinitionCollection = armappservice.WorkflowRunActionRepetitionDefinitionCollection{ - // Value: []*armappservice.WorkflowRunActionRepetitionDefinition{ - // { - // Name: to.Ptr("000000"), - // Type: to.Ptr("/workflows/runs/actions/scopeRepetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/for_each/scopeRepetitions/000000"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("NotSpecified"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("5c0e7c24-4891-44e8-b631-8084c5531dd5"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.624Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.209Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](0), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }, - // { - // Name: to.Ptr("000001"), - // Type: to.Ptr("/workflows/runs/actions/scopeRepetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/for_each/scopeRepetitions/000001"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("NotSpecified"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("1682d0bd-7189-4478-b333-fe364a80bd69"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.227Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.068Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](1), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunActionScopeRepetitionsClient().Get(ctx, "testResourceGroup", "test-name", "testFlow", "08586776228332053161046300351", "for_each", "000000", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRunActionRepetitionDefinition = armappservice.WorkflowRunActionRepetitionDefinition{ - // Name: to.Ptr("000000"), - // Type: to.Ptr("/workflows/runs/actions/scopeRepetitions"), - // ID: to.Ptr("/workflows/testFlow/runs/08586776228332053161046300351/actions/for_each/scopeRepetitions/000000"), - // Properties: &armappservice.WorkflowRunActionRepetitionProperties{ - // Code: to.Ptr("NotSpecified"), - // Correlation: &armappservice.RunActionCorrelation{ - // ClientTrackingID: to.Ptr("08586775357427610445444523191"), - // ActionTrackingID: to.Ptr("5c0e7c24-4891-44e8-b631-8084c5531dd5"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.624Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-18T17:05:57.209Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // RepetitionIndexes: []*armappservice.RepetitionIndex{ - // { - // ItemIndex: to.Ptr[int32](0), - // ScopeName: to.Ptr("For_each"), - // }}, - // }, - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go index 441780639bfa..8298ccb10876 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -75,7 +72,7 @@ func (client *WorkflowRunsClient) Cancel(ctx context.Context, resourceGroupName } // cancelCreateRequest creates the Cancel request. -func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, options *WorkflowRunsClientCancelOptions) (*policy.Request, error) { +func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, _ *WorkflowRunsClientCancelOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}/cancel" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -102,7 +99,7 @@ func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -111,7 +108,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -140,7 +137,7 @@ func (client *WorkflowRunsClient) Get(ctx context.Context, resourceGroupName str } // getCreateRequest creates the Get request. -func (client *WorkflowRunsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, options *WorkflowRunsClientGetOptions) (*policy.Request, error) { +func (client *WorkflowRunsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, runName string, _ *WorkflowRunsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/runs/{runName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -167,7 +164,7 @@ func (client *WorkflowRunsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -184,7 +181,7 @@ func (client *WorkflowRunsClient) getHandleResponse(resp *http.Response) (Workfl // NewListPager - Gets a list of workflow runs. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -242,7 +239,7 @@ func (client *WorkflowRunsClient) listCreateRequest(ctx context.Context, resourc if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil 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 d384bb8f6e72..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go +++ /dev/null @@ -1,149 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowRunsClient().NewListPager("test-resource-group", "test-name", "test-workflow", &armappservice.WorkflowRunsClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowRunListResult = armappservice.WorkflowRunListResult{ - // Value: []*armappservice.WorkflowRun{ - // { - // ID: to.Ptr("workflows/test-workflow/runs/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("workflows/runs"), - // Properties: &armappservice.WorkflowRunProperties{ - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.577Z"); return t}()), - // Outputs: map[string]*armappservice.WorkflowOutputParameter{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // Trigger: &armappservice.WorkflowRunTrigger{ - // Name: to.Ptr("Recurrence"), - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.038Z"); return t}()), - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.634Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.038Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // WaitEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044Z"); return t}()), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676754160363885"), - // Type: to.Ptr("workflows/versions"), - // ID: to.Ptr("workflows/test-workflow/versions/08586676754160363885"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowRunsClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586676746934337772206998657CU22", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowRun = armappservice.WorkflowRun{ - // ID: to.Ptr("/workflows/test-workflow/runs/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("workflows/runs"), - // Properties: &armappservice.WorkflowRunProperties{ - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.577Z"); return t}()), - // Outputs: map[string]*armappservice.WorkflowOutputParameter{ - // }, - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // Trigger: &armappservice.WorkflowRunTrigger{ - // Name: to.Ptr("Recurrence"), - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.038Z"); return t}()), - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.634Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.038Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // WaitEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.044Z"); return t}()), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676754160363885"), - // Type: to.Ptr("workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow/versions/08586676754160363885"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWorkflowRunsClient().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 8874ac3ff58a..07f26a2d51b0 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflows_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -46,7 +43,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -75,7 +72,7 @@ func (client *WorkflowsClient) RegenerateAccessKey(ctx context.Context, resource } // regenerateAccessKeyCreateRequest creates the RegenerateAccessKey request. -func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, keyType RegenerateActionParameter, options *WorkflowsClientRegenerateAccessKeyOptions) (*policy.Request, error) { +func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, keyType RegenerateActionParameter, _ *WorkflowsClientRegenerateAccessKeyOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/regenerateAccessKey" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -98,7 +95,7 @@ func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, keyType); err != nil { @@ -110,7 +107,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -138,7 +135,7 @@ func (client *WorkflowsClient) Validate(ctx context.Context, resourceGroupName s } // validateCreateRequest creates the Validate request. -func (client *WorkflowsClient) validateCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, validate Workflow, options *WorkflowsClientValidateOptions) (*policy.Request, error) { +func (client *WorkflowsClient) validateCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, validate Workflow, _ *WorkflowsClientValidateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/validate" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -161,7 +158,7 @@ func (client *WorkflowsClient) validateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, validate); err != nil { 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 8123dce3fafa..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go +++ /dev/null @@ -1,67 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWorkflowsClient().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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = clientFactory.NewWorkflowsClient().Validate(ctx, "test-resource-group", "test-name", "test-workflow", armappservice.Workflow{ - Properties: &armappservice.WorkflowProperties{ - Definition: map[string]any{ - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": map[string]any{}, - "contentVersion": "1.0.0.0", - "outputs": map[string]any{}, - "parameters": map[string]any{}, - "triggers": map[string]any{}, - }, - 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 76ca6d3fdd62..10c621f4d7d0 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -78,7 +75,7 @@ func (client *WorkflowTriggerHistoriesClient) Get(ctx context.Context, resourceG } // getCreateRequest creates the Get request. -func (client *WorkflowTriggerHistoriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *WorkflowTriggerHistoriesClientGetOptions) (*policy.Request, error) { +func (client *WorkflowTriggerHistoriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, _ *WorkflowTriggerHistoriesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -109,7 +106,7 @@ func (client *WorkflowTriggerHistoriesClient) getCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -126,7 +123,7 @@ func (client *WorkflowTriggerHistoriesClient) getHandleResponse(resp *http.Respo // NewListPager - Gets a list of workflow trigger histories. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -190,7 +187,7 @@ func (client *WorkflowTriggerHistoriesClient) listCreateRequest(ctx context.Cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -208,7 +205,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -236,7 +233,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WorkflowTriggerHistoriesClient) resubmit(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *WorkflowTriggerHistoriesClientBeginResubmitOptions) (*http.Response, error) { var err error const operationName = "WorkflowTriggerHistoriesClient.BeginResubmit" @@ -259,7 +256,7 @@ func (client *WorkflowTriggerHistoriesClient) resubmit(ctx context.Context, reso } // resubmitCreateRequest creates the Resubmit request. -func (client *WorkflowTriggerHistoriesClient) resubmitCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, options *WorkflowTriggerHistoriesClientBeginResubmitOptions) (*policy.Request, error) { +func (client *WorkflowTriggerHistoriesClient) resubmitCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, historyName string, _ *WorkflowTriggerHistoriesClientBeginResubmitOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}/resubmit" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -290,7 +287,7 @@ func (client *WorkflowTriggerHistoriesClient) resubmitCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 fa710f60ce54..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go +++ /dev/null @@ -1,131 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowTriggerHistoriesClient().NewListPager("testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", &armappservice.WorkflowTriggerHistoriesClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowTriggerHistoryListResult = armappservice.WorkflowTriggerHistoryListResult{ - // Value: []*armappservice.WorkflowTriggerHistory{ - // { - // ID: to.Ptr("/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/triggers/histories"), - // Properties: &armappservice.WorkflowTriggerHistoryProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.298Z"); return t}()), - // Fired: to.Ptr(true), - // Run: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/runs"), - // ID: to.Ptr("/workflows/testWorkflowName/runs/08586676746934337772206998657CU22"), - // }, - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.634Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.038Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggerHistoriesClient().Get(ctx, "testResourceGroup", "test-name", "testWorkflowName", "testTriggerName", "08586676746934337772206998657CU22", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowTriggerHistory = armappservice.WorkflowTriggerHistory{ - // ID: to.Ptr("/workflows/testWorkflowName/triggers/testTriggerName/histories/08586676746934337772206998657CU22"), - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/triggers/histories"), - // Properties: &armappservice.WorkflowTriggerHistoryProperties{ - // Code: to.Ptr("OK"), - // Correlation: &armappservice.Correlation{ - // ClientTrackingID: to.Ptr("08586676746934337772206998657CU22"), - // }, - // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.298Z"); return t}()), - // Fired: to.Ptr(true), - // Run: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676746934337772206998657CU22"), - // Type: to.Ptr("/workflows/runs"), - // ID: to.Ptr("/workflows/testWorkflowName/runs/08586676746934337772206998657CU22"), - // }, - // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:31.634Z"); return t}()), - // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T20:16:32.038Z"); return t}()), - // Status: to.Ptr(armappservice.WorkflowStatusSucceeded), - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWorkflowTriggerHistoriesClient().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 3d9ec02719f1..ad0cb14681bc 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -76,7 +73,7 @@ func (client *WorkflowTriggersClient) Get(ctx context.Context, resourceGroupName } // getCreateRequest creates the Get request. -func (client *WorkflowTriggersClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientGetOptions) (*policy.Request, error) { +func (client *WorkflowTriggersClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, _ *WorkflowTriggersClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -103,7 +100,7 @@ func (client *WorkflowTriggersClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -121,7 +118,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -151,7 +148,7 @@ func (client *WorkflowTriggersClient) GetSchemaJSON(ctx context.Context, resourc } // getSchemaJSONCreateRequest creates the GetSchemaJSON request. -func (client *WorkflowTriggersClient) getSchemaJSONCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientGetSchemaJSONOptions) (*policy.Request, error) { +func (client *WorkflowTriggersClient) getSchemaJSONCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, _ *WorkflowTriggersClientGetSchemaJSONOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/schemas/json" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -178,7 +175,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -195,7 +192,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONHandleResponse(resp *http.Res // NewListPager - Gets a list of workflow triggers. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -254,7 +251,7 @@ func (client *WorkflowTriggersClient) listCreateRequest(ctx context.Context, res if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -272,7 +269,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -302,7 +299,7 @@ func (client *WorkflowTriggersClient) ListCallbackURL(ctx context.Context, resou } // listCallbackURLCreateRequest creates the ListCallbackURL request. -func (client *WorkflowTriggersClient) listCallbackURLCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientListCallbackURLOptions) (*policy.Request, error) { +func (client *WorkflowTriggersClient) listCallbackURLCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, _ *WorkflowTriggersClientListCallbackURLOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/listCallbackUrl" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -329,7 +326,7 @@ func (client *WorkflowTriggersClient) listCallbackURLCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -347,7 +344,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -374,7 +371,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 func (client *WorkflowTriggersClient) run(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientBeginRunOptions) (*http.Response, error) { var err error const operationName = "WorkflowTriggersClient.BeginRun" @@ -397,7 +394,7 @@ func (client *WorkflowTriggersClient) run(ctx context.Context, resourceGroupName } // runCreateRequest creates the Run request. -func (client *WorkflowTriggersClient) runCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, options *WorkflowTriggersClientBeginRunOptions) (*policy.Request, error) { +func (client *WorkflowTriggersClient) runCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, triggerName string, _ *WorkflowTriggersClientBeginRunOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/run" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -424,7 +421,7 @@ func (client *WorkflowTriggersClient) runCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-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 f338dfb4b346..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go +++ /dev/null @@ -1,176 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowTriggersClient().NewListPager("test-resource-group", "test-name", "test-workflow", &armappservice.WorkflowTriggersClientListOptions{Top: nil, - Filter: nil, - }) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowTriggerListResult = armappservice.WorkflowTriggerListResult{ - // Value: []*armappservice.WorkflowTrigger{ - // { - // ID: to.Ptr("/workflows/test-workflow/triggers/manual"), - // Name: to.Ptr("manual"), - // Type: to.Ptr("/workflows/triggers"), - // Properties: &armappservice.WorkflowTriggerProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:47:49.528Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T17:32:30.249Z"); return t}()), - // ProvisioningState: to.Ptr(armappservice.WorkflowTriggerProvisioningStateSucceeded), - // State: to.Ptr(armappservice.WorkflowStateEnabled), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676800160476478"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow/versions/08586676800160476478"), - // }, - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggersClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "manual", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowTrigger = armappservice.WorkflowTrigger{ - // ID: to.Ptr("/workflows/test-workflow/triggers/manual"), - // Name: to.Ptr("manual"), - // Type: to.Ptr("/workflows/triggers"), - // Properties: &armappservice.WorkflowTriggerProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T18:47:49.528Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-10T17:32:30.249Z"); return t}()), - // ProvisioningState: to.Ptr(armappservice.WorkflowTriggerProvisioningStateSucceeded), - // State: to.Ptr(armappservice.WorkflowStateEnabled), - // Workflow: &armappservice.ResourceReference{ - // Name: to.Ptr("08586676800160476478"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow/versions/08586676800160476478"), - // }, - // }, - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_ListCallbackUrl.json -func ExampleWorkflowTriggersClient_ListCallbackURL() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggersClient().ListCallbackURL(ctx, "test-resource-group", "test-name", "test-workflow", "manual", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowTriggerCallbackURL = armappservice.WorkflowTriggerCallbackURL{ - // Method: to.Ptr("POST"), - // BasePath: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/fb9c8d79b15f41ce9b12861862f43546/versions/08587100027316071865/triggers/manualTrigger/paths/invoke"), - // Queries: &armappservice.WorkflowTriggerListCallbackURLQueries{ - // APIVersion: to.Ptr("2018-07-01-preview"), - // Sig: to.Ptr("IxEQ_ygZf6WNEQCbjV0Vs6p6Y4DyNEJVAa86U5B4xhk"), - // Sp: to.Ptr("/versions/08587100027316071865/triggers/manualTrigger/run"), - // Sv: to.Ptr("1.0"), - // }, - // Value: to.Ptr("https://test-site.azurewebsites.net:443/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/fb9c8d79b15f41ce9b12861862f43546/versions/08587100027316071865/triggers/manualTrigger/paths/invoke?api-version=2015-08-01-preview&sp=%2Fversions%2F08587100027316071865%2Ftriggers%2FmanualTrigger%2Frun&sv=1.0&sig=IxEQ_ygZf6WNEQCbjV0Vs6p6Y4DyNEJVAa86U5B4xhk"), - // } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := clientFactory.NewWorkflowTriggersClient().BeginRun(ctx, "test-resource-group", "test-name", "test-workflow", "recurrence", 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/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_GetSchemaJson.json -func ExampleWorkflowTriggersClient_GetSchemaJSON() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowTriggersClient().GetSchemaJSON(ctx, "testResourceGroup", "test-name", "testWorkflow", "testTrigger", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.JSONSchema = armappservice.JSONSchema{ - // Content: to.Ptr("JsonContent"), - // Title: to.Ptr("JsonTitle"), - // } -} diff --git a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go index 172997ca8d9d..705574909ba7 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go @@ -1,6 +1,3 @@ -//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. DO NOT EDIT. @@ -47,7 +44,7 @@ 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 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -76,7 +73,7 @@ func (client *WorkflowVersionsClient) Get(ctx context.Context, resourceGroupName } // getCreateRequest creates the Get request. -func (client *WorkflowVersionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, versionID string, options *WorkflowVersionsClientGetOptions) (*policy.Request, error) { +func (client *WorkflowVersionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, workflowName string, versionID string, _ *WorkflowVersionsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/versions/{versionId}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -103,7 +100,7 @@ func (client *WorkflowVersionsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -120,7 +117,7 @@ func (client *WorkflowVersionsClient) getHandleResponse(resp *http.Response) (Wo // NewListPager - Gets a list of workflow versions. // -// Generated from API version 2024-04-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -176,7 +173,7 @@ func (client *WorkflowVersionsClient) listCreateRequest(ctx context.Context, res if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-04-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil 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 1a609a7131c7..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go +++ /dev/null @@ -1,138 +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. -// DO NOT EDIT. - -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/v4" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := clientFactory.NewWorkflowVersionsClient().NewListPager("test-resource-group", "test-name", "test-workflow", &armappservice.WorkflowVersionsClientListOptions{Top: nil}) - for pager.More() { - page, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range page.Value { - // You could use page here. We use blank identifier for just demo purposes. - _ = v - } - // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // page.WorkflowVersionListResult = armappservice.WorkflowVersionListResult{ - // Value: []*armappservice.WorkflowVersion{ - // { - // Name: to.Ptr("test-workflow"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow"), - // Properties: &armappservice.WorkflowVersionProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T22:54:54.353Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-25T01:39:21.436Z"); return t}()), - // Definition: map[string]any{ - // "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - // "actions":map[string]any{ - // }, - // "contentVersion": "1.0.0.0", - // "outputs":map[string]any{ - // }, - // "parameters":map[string]any{ - // }, - // "triggers":map[string]any{ - // }, - // }, - // EndpointsConfiguration: &armappservice.FlowEndpointsConfiguration{ - // Connector: &armappservice.FlowEndpoints{ - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // Workflow: &armappservice.FlowEndpoints{ - // AccessEndpointIPAddresses: []*armappservice.IPAddress{ - // }, - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // }, - // Parameters: map[string]*armappservice.WorkflowParameter{ - // }, - // Version: to.Ptr("08586677515911718341"), - // }, - // }}, - // } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/b5d78da207e9c5d8f82e95224039867271f47cdf/specification/web/resource-manager/Microsoft.Web/stable/2024-04-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() - clientFactory, err := armappservice.NewClientFactory("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := clientFactory.NewWorkflowVersionsClient().Get(ctx, "test-resource-group", "test-name", "test-workflow", "08586676824806722526", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // You could use response here. We use blank identifier for just demo purposes. - _ = res - // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. - // res.WorkflowVersion = armappservice.WorkflowVersion{ - // Name: to.Ptr("test-workflow"), - // Type: to.Ptr("/workflows/versions"), - // ID: to.Ptr("/workflows/test-workflow"), - // Properties: &armappservice.WorkflowVersionProperties{ - // ChangedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-09T22:54:54.353Z"); return t}()), - // CreatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-04-25T01:39:21.436Z"); return t}()), - // Definition: map[string]any{ - // "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - // "actions":map[string]any{ - // }, - // "contentVersion": "1.0.0.0", - // "outputs":map[string]any{ - // }, - // "parameters":map[string]any{ - // }, - // "triggers":map[string]any{ - // }, - // }, - // EndpointsConfiguration: &armappservice.FlowEndpointsConfiguration{ - // Connector: &armappservice.FlowEndpoints{ - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // Workflow: &armappservice.FlowEndpoints{ - // AccessEndpointIPAddresses: []*armappservice.IPAddress{ - // }, - // OutgoingIPAddresses: []*armappservice.IPAddress{ - // }, - // }, - // }, - // Parameters: map[string]*armappservice.WorkflowParameter{ - // }, - // Version: to.Ptr("08586677515911718341"), - // }, - // } -}