diff --git a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md index e349f098eeed..ba780611fcc1 100644 --- a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md +++ b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md @@ -1,5 +1,43 @@ # Release History +## 5.0.0 (2024-11-07) +### Breaking Changes + +- Type of `AppCertificate.Properties` has been changed from `*AppCertificateProperties` to `*CertificateProperties` +- Type of `AppCertificateCollection.Value` has been changed from `[]*AppCertificate` to `[]*CertificateGetResource` +- Type of `AppCertificatePatchResource.Properties` has been changed from `*AppCertificatePatchResourceProperties` to `*CertificatePatchResourceProperties` +- Struct `AppCertificatePatchResourceProperties` has been removed +- Struct `AppCertificateProperties` has been removed +- Field `AppCertificate` of struct `CertificatesClientGetResponse` has been removed + +### Features Added + +- New value `SiteLoadBalancingLeastRequestsWithTieBreaker` added to enum type `SiteLoadBalancing` +- New enum type `AutoGeneratedDomainNameLabelScope` with values `AutoGeneratedDomainNameLabelScopeNoReuse`, `AutoGeneratedDomainNameLabelScopeResourceGroupReuse`, `AutoGeneratedDomainNameLabelScopeSubscriptionReuse`, `AutoGeneratedDomainNameLabelScopeTenantReuse` +- New enum type `IPMode` with values `IPModeIPv4`, `IPModeIPv4AndIPv6`, `IPModeIPv6` +- 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 function `*WebAppsClient.UpdateMachineKey(context.Context, string, string, *WebAppsClientUpdateMachineKeyOptions) (WebAppsClientUpdateMachineKeyResponse, error)` +- New struct `CertificateGetResource` +- New struct `CertificateGetResourceProperties` +- New struct `CertificatePatchResourceProperties` +- New struct `CertificateProperties` +- New struct `CipherSuites` +- New anonymous field `CertificateGetResource` in struct `CertificatesClientGetResponse` +- New field `AutoGeneratedDomainNameLabelScope`, `EndToEndEncryptionEnabled`, `IPMode`, `SKU` in struct `SiteProperties` +- New field `PhysicalZone` in struct `WebSiteInstanceStatusProperties` + + ## 4.0.0 (2024-08-08) ### Breaking Changes diff --git a/sdk/resourcemanager/appservice/armappservice/README.md b/sdk/resourcemanager/appservice/armappservice/README.md index b0160a1ae3c3..45be8aa95e51 100644 --- a/sdk/resourcemanager/appservice/armappservice/README.md +++ b/sdk/resourcemanager/appservice/armappservice/README.md @@ -1,6 +1,6 @@ # Azure App Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5) The `armappservice` module provides operations for working with Azure App Service. @@ -20,7 +20,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 90ba0dc755e5..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/21c2852d62ccc3abe9cc3800c989c6826f8363dc/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.0.0 -tag: package-2023-12 +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 5e1d90a78cb1..ea83d0d0fbd4 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go @@ -46,7 +46,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 2023-12-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 +72,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 2023-12-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" @@ -114,7 +114,7 @@ func (client *CertificateOrdersClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +126,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 2023-12-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 +153,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 2023-12-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" @@ -199,7 +199,7 @@ func (client *CertificateOrdersClient) createOrUpdateCertificateCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +211,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 2023-12-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 @@ -257,7 +257,7 @@ func (client *CertificateOrdersClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +266,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 2023-12-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. @@ -317,7 +317,7 @@ func (client *CertificateOrdersClient) deleteCertificateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +326,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 2023-12-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. @@ -372,7 +372,7 @@ func (client *CertificateOrdersClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +390,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 2023-12-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. @@ -442,7 +442,7 @@ func (client *CertificateOrdersClient) getCertificateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +459,7 @@ func (client *CertificateOrdersClient) getCertificateHandleResponse(resp *http.R // NewListPager - Description for List all certificate orders in a subscription. // -// Generated from API version 2023-12-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] { @@ -497,7 +497,7 @@ func (client *CertificateOrdersClient) listCreateRequest(ctx context.Context, op return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +514,7 @@ func (client *CertificateOrdersClient) listHandleResponse(resp *http.Response) ( // NewListByResourceGroupPager - Description for Get certificate orders in a resource group. // -// Generated from API version 2023-12-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. @@ -557,7 +557,7 @@ func (client *CertificateOrdersClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +574,7 @@ func (client *CertificateOrdersClient) listByResourceGroupHandleResponse(resp *h // NewListCertificatesPager - Description for List all certificates associated with a certificate order. // -// Generated from API version 2023-12-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 @@ -622,7 +622,7 @@ func (client *CertificateOrdersClient) listCertificatesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +640,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 2023-12-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. @@ -687,7 +687,7 @@ func (client *CertificateOrdersClient) reissueCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +699,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 2023-12-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 @@ -745,7 +745,7 @@ func (client *CertificateOrdersClient) renewCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +757,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 2023-12-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 @@ -803,7 +803,7 @@ func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +813,7 @@ func (client *CertificateOrdersClient) resendEmailCreateRequest(ctx context.Cont // certificate order // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -860,7 +860,7 @@ func (client *CertificateOrdersClient) resendRequestEmailsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +872,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 2023-12-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 @@ -919,7 +919,7 @@ func (client *CertificateOrdersClient) retrieveCertificateActionsCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +937,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 2023-12-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 @@ -984,7 +984,7 @@ func (client *CertificateOrdersClient) retrieveCertificateEmailHistoryCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1008,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 2023-12-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. @@ -1056,7 +1056,7 @@ func (client *CertificateOrdersClient) retrieveSiteSealCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1077,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 2023-12-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. @@ -1125,7 +1125,7 @@ func (client *CertificateOrdersClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1146,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 2023-12-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. @@ -1199,7 +1199,7 @@ func (client *CertificateOrdersClient) updateCertificateCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1220,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 2023-12-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. @@ -1257,7 +1257,7 @@ func (client *CertificateOrdersClient) validatePurchaseInformationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1269,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 2023-12-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 @@ -1315,7 +1315,7 @@ func (client *CertificateOrdersClient) verifyDomainOwnershipCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 6cd16932aac7..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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 a6c43190ade3..744d3a344066 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go @@ -48,7 +48,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 2023-12-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 +100,7 @@ func (client *CertificateOrdersDiagnosticsClient) getAppServiceCertificateOrderD return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -127,7 +127,7 @@ func (client *CertificateOrdersDiagnosticsClient) getAppServiceCertificateOrderD // NewListAppServiceCertificateOrderDetectorResponsePager - Description for Microsoft.CertificateRegistration to get the list // of detectors for this RP. // -// Generated from API version 2023-12-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 @@ -175,7 +175,7 @@ func (client *CertificateOrdersDiagnosticsClient) listAppServiceCertificateOrder return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 192033543c08..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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 9085cd4a22c8..941dc1f9d39b 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go @@ -40,7 +40,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 2023-12-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] { @@ -74,7 +74,7 @@ func (client *CertificateRegistrationProviderClient) listOperationsCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 6b8722c0ea98..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-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 050590b627d1..5f341c68dc58 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificates_client.go @@ -46,7 +46,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 2023-12-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. @@ -94,7 +94,7 @@ func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +115,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 2023-12-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. @@ -160,7 +160,7 @@ func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +169,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 2023-12-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. @@ -215,7 +215,7 @@ func (client *CertificatesClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -224,7 +224,7 @@ func (client *CertificatesClient) getCreateRequest(ctx context.Context, resource // getHandleResponse handles the Get response. func (client *CertificatesClient) getHandleResponse(resp *http.Response) (CertificatesClientGetResponse, error) { result := CertificatesClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.AppCertificate); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.CertificateGetResource); err != nil { return CertificatesClientGetResponse{}, err } return result, nil @@ -232,7 +232,7 @@ func (client *CertificatesClient) getHandleResponse(resp *http.Response) (Certif // NewListPager - Description for Get all certificates for a subscription. // -// Generated from API version 2023-12-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 +269,7 @@ func (client *CertificatesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +291,7 @@ func (client *CertificatesClient) listHandleResponse(resp *http.Response) (Certi // NewListByResourceGroupPager - Description for Get all certificates in a resource group. // -// Generated from API version 2023-12-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. @@ -334,7 +334,7 @@ func (client *CertificatesClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +352,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 2023-12-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. @@ -399,7 +399,7 @@ func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 3c436c303b2c..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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..eb721e82817c 100644 --- a/sdk/resourcemanager/appservice/armappservice/client_factory.go +++ b/sdk/resourcemanager/appservice/armappservice/client_factory.go @@ -178,6 +178,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 668aacc35cfa..2ee59fa9eee8 100644 --- a/sdk/resourcemanager/appservice/armappservice/constants.go +++ b/sdk/resourcemanager/appservice/armappservice/constants.go @@ -10,7 +10,7 @@ package armappservice const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice" - moduleVersion = "v4.0.0" + moduleVersion = "v5.0.0" ) // ActiveRevisionsMode - ActiveRevisionsMode controls how active revisions are handled for the Container app:Multiple: multiple @@ -94,6 +94,26 @@ func PossibleAuthenticationTypeValues() []AuthenticationType { } } +// AutoGeneratedDomainNameLabelScope - Specifies the scope of uniqueness for the default hostname during resource creation +type AutoGeneratedDomainNameLabelScope string + +const ( + AutoGeneratedDomainNameLabelScopeNoReuse AutoGeneratedDomainNameLabelScope = "NoReuse" + AutoGeneratedDomainNameLabelScopeResourceGroupReuse AutoGeneratedDomainNameLabelScope = "ResourceGroupReuse" + AutoGeneratedDomainNameLabelScopeSubscriptionReuse AutoGeneratedDomainNameLabelScope = "SubscriptionReuse" + AutoGeneratedDomainNameLabelScopeTenantReuse AutoGeneratedDomainNameLabelScope = "TenantReuse" +) + +// PossibleAutoGeneratedDomainNameLabelScopeValues returns the possible values for the AutoGeneratedDomainNameLabelScope const type. +func PossibleAutoGeneratedDomainNameLabelScopeValues() []AutoGeneratedDomainNameLabelScope { + return []AutoGeneratedDomainNameLabelScope{ + AutoGeneratedDomainNameLabelScopeNoReuse, + AutoGeneratedDomainNameLabelScopeResourceGroupReuse, + AutoGeneratedDomainNameLabelScopeSubscriptionReuse, + AutoGeneratedDomainNameLabelScopeTenantReuse, + } +} + // AutoHealActionType - Predefined action to be taken. type AutoHealActionType string @@ -1089,6 +1109,24 @@ func PossibleIPFilterTagValues() []IPFilterTag { } } +// IPMode - Specifies the IP mode of the app. +type IPMode string + +const ( + IPModeIPv4 IPMode = "IPv4" + IPModeIPv4AndIPv6 IPMode = "IPv4AndIPv6" + IPModeIPv6 IPMode = "IPv6" +) + +// PossibleIPModeValues returns the possible values for the IPMode const type. +func PossibleIPModeValues() []IPMode { + return []IPMode{ + IPModeIPv4, + IPModeIPv4AndIPv6, + IPModeIPv6, + } +} + // InAvailabilityReasonType - Invalid indicates the name provided does not match Azure App Service naming requirements. AlreadyExists // indicates that the name is already in use and is therefore unavailable. type InAvailabilityReasonType string @@ -1990,18 +2028,20 @@ func PossibleSiteExtensionTypeValues() []SiteExtensionType { type SiteLoadBalancing string const ( - SiteLoadBalancingLeastRequests SiteLoadBalancing = "LeastRequests" - SiteLoadBalancingLeastResponseTime SiteLoadBalancing = "LeastResponseTime" - SiteLoadBalancingPerSiteRoundRobin SiteLoadBalancing = "PerSiteRoundRobin" - SiteLoadBalancingRequestHash SiteLoadBalancing = "RequestHash" - SiteLoadBalancingWeightedRoundRobin SiteLoadBalancing = "WeightedRoundRobin" - SiteLoadBalancingWeightedTotalTraffic SiteLoadBalancing = "WeightedTotalTraffic" + SiteLoadBalancingLeastRequests SiteLoadBalancing = "LeastRequests" + SiteLoadBalancingLeastRequestsWithTieBreaker SiteLoadBalancing = "LeastRequestsWithTieBreaker" + SiteLoadBalancingLeastResponseTime SiteLoadBalancing = "LeastResponseTime" + SiteLoadBalancingPerSiteRoundRobin SiteLoadBalancing = "PerSiteRoundRobin" + SiteLoadBalancingRequestHash SiteLoadBalancing = "RequestHash" + SiteLoadBalancingWeightedRoundRobin SiteLoadBalancing = "WeightedRoundRobin" + SiteLoadBalancingWeightedTotalTraffic SiteLoadBalancing = "WeightedTotalTraffic" ) // PossibleSiteLoadBalancingValues returns the possible values for the SiteLoadBalancing const type. func PossibleSiteLoadBalancingValues() []SiteLoadBalancing { return []SiteLoadBalancing{ SiteLoadBalancingLeastRequests, + SiteLoadBalancingLeastRequestsWithTieBreaker, SiteLoadBalancingLeastResponseTime, SiteLoadBalancingPerSiteRoundRobin, SiteLoadBalancingRequestHash, diff --git a/sdk/resourcemanager/appservice/armappservice/containerapps_client.go b/sdk/resourcemanager/appservice/armappservice/containerapps_client.go index 74c70e4abdda..733267a17c4d 100644 --- a/sdk/resourcemanager/appservice/armappservice/containerapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/containerapps_client.go @@ -46,7 +46,7 @@ func NewContainerAppsClient(subscriptionID string, credential azcore.TokenCreden // BeginCreateOrUpdate - Description for Create or update a Container App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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 @@ -71,7 +71,7 @@ func (client *ContainerAppsClient) BeginCreateOrUpdate(ctx context.Context, reso // CreateOrUpdate - Description for Create or update a Container App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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" @@ -113,7 +113,7 @@ func (client *ContainerAppsClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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, containerAppEnvelope); err != nil { @@ -125,7 +125,7 @@ func (client *ContainerAppsClient) createOrUpdateCreateRequest(ctx context.Conte // BeginDelete - Description for Delete a Container App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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 @@ -150,7 +150,7 @@ func (client *ContainerAppsClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Description for Delete a Container App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 func (client *ContainerAppsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *ContainerAppsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ContainerAppsClient.BeginDelete" @@ -192,7 +192,7 @@ func (client *ContainerAppsClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -201,7 +201,7 @@ func (client *ContainerAppsClient) deleteCreateRequest(ctx context.Context, reso // Get - Get the properties of a Container App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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. @@ -247,7 +247,7 @@ func (client *ContainerAppsClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -264,7 +264,7 @@ func (client *ContainerAppsClient) getHandleResponse(resp *http.Response) (Conta // NewListByResourceGroupPager - Get the Container Apps in a given resource group. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - ContainerAppsClientListByResourceGroupOptions contains the optional parameters for the ContainerAppsClient.NewListByResourceGroupPager // method. @@ -307,7 +307,7 @@ func (client *ContainerAppsClient) listByResourceGroupCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -324,7 +324,7 @@ func (client *ContainerAppsClient) listByResourceGroupHandleResponse(resp *http. // NewListBySubscriptionPager - Get the Container Apps in a given subscription. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - options - ContainerAppsClientListBySubscriptionOptions contains the optional parameters for the ContainerAppsClient.NewListBySubscriptionPager // method. func (client *ContainerAppsClient) NewListBySubscriptionPager(options *ContainerAppsClientListBySubscriptionOptions) *runtime.Pager[ContainerAppsClientListBySubscriptionResponse] { @@ -362,7 +362,7 @@ func (client *ContainerAppsClient) listBySubscriptionCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,7 +380,7 @@ func (client *ContainerAppsClient) listBySubscriptionHandleResponse(resp *http.R // ListSecrets - List secrets for a container app // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - name - Name of the Container App. // - options - ContainerAppsClientListSecretsOptions contains the optional parameters for the ContainerAppsClient.ListSecrets // method. @@ -422,7 +422,7 @@ func (client *ContainerAppsClient) listSecretsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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/containerapps_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/containerapps_client_example_test.go deleted file mode 100644 index 33a75461851a..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 index 233195d6a3c1..308dc0d86a03 100644 --- a/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client.go @@ -46,7 +46,7 @@ func NewContainerAppsRevisionsClient(subscriptionID string, credential azcore.To // ActivateRevision - Activates a revision for a Container App // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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 @@ -97,7 +97,7 @@ func (client *ContainerAppsRevisionsClient) activateRevisionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -106,7 +106,7 @@ func (client *ContainerAppsRevisionsClient) activateRevisionCreateRequest(ctx co // DeactivateRevision - Deactivates a revision for a Container App // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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 @@ -157,7 +157,7 @@ func (client *ContainerAppsRevisionsClient) deactivateRevisionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -166,7 +166,7 @@ func (client *ContainerAppsRevisionsClient) deactivateRevisionCreateRequest(ctx // GetRevision - Get a revision of a Container App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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. @@ -218,7 +218,7 @@ func (client *ContainerAppsRevisionsClient) getRevisionCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -235,7 +235,7 @@ func (client *ContainerAppsRevisionsClient) getRevisionHandleResponse(resp *http // NewListRevisionsPager - Get the Revisions for a given Container App. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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 @@ -283,7 +283,7 @@ func (client *ContainerAppsRevisionsClient) listRevisionsCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -301,7 +301,7 @@ func (client *ContainerAppsRevisionsClient) listRevisionsHandleResponse(resp *ht // RestartRevision - Restarts a revision for a Container App // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-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 @@ -352,7 +352,7 @@ func (client *ContainerAppsRevisionsClient) restartRevisionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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/containerappsrevisions_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/containerappsrevisions_client_example_test.go deleted file mode 100644 index 5836f298d23d..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 787e3ae139e8..d8f72f0fbe53 100644 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go @@ -46,7 +46,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 2023-12-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. @@ -92,7 +92,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +109,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationHandleResponse(res // NewListPager - Description for Get all deleted apps for a subscription. // -// Generated from API version 2023-12-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]{ @@ -146,7 +146,7 @@ func (client *DeletedWebAppsClient) listCreateRequest(ctx context.Context, optio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +163,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 2023-12-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] { @@ -205,7 +205,7 @@ func (client *DeletedWebAppsClient) listByLocationCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 de714ddbb4d1..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 fc4984c505f3..39a6ca1bb846 100644 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go @@ -47,7 +47,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 2023-12-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 +104,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -131,7 +131,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 2023-12-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 +193,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -220,7 +220,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 2023-12-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 +277,7 @@ func (client *DiagnosticsClient) executeSiteDetectorCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -304,7 +304,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 2023-12-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 +366,7 @@ func (client *DiagnosticsClient) executeSiteDetectorSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -393,7 +393,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 2023-12-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 +445,7 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -472,7 +472,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 2023-12-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 @@ -529,7 +529,7 @@ func (client *DiagnosticsClient) getSiteAnalysisCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +547,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 2023-12-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 @@ -609,7 +609,7 @@ func (client *DiagnosticsClient) getSiteAnalysisSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +627,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 2023-12-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 @@ -684,7 +684,7 @@ func (client *DiagnosticsClient) getSiteDetectorCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +702,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 2023-12-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 +754,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -781,7 +781,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 2023-12-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 +838,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -865,7 +865,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 2023-12-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 @@ -927,7 +927,7 @@ func (client *DiagnosticsClient) getSiteDetectorSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +945,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 2023-12-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 @@ -997,7 +997,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategoryCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1015,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 2023-12-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 @@ -1072,7 +1072,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1089,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotHandleResponse(res // NewListHostingEnvironmentDetectorResponsesPager - Description for List Hosting Environment Detector Responses // -// Generated from API version 2023-12-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 @@ -1137,7 +1137,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1154,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesHandleRe // NewListSiteAnalysesPager - Description for Get Site Analyses // -// Generated from API version 2023-12-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 @@ -1207,7 +1207,7 @@ func (client *DiagnosticsClient) listSiteAnalysesCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1224,7 @@ func (client *DiagnosticsClient) listSiteAnalysesHandleResponse(resp *http.Respo // NewListSiteAnalysesSlotPager - Description for Get Site Analyses // -// Generated from API version 2023-12-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 @@ -1282,7 +1282,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1299,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotHandleResponse(resp *http.R // NewListSiteDetectorResponsesPager - Description for List Site Detector Responses // -// Generated from API version 2023-12-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 @@ -1347,7 +1347,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1364,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesHandleResponse(resp *h // NewListSiteDetectorResponsesSlotPager - Description for List Site Detector Responses // -// Generated from API version 2023-12-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 @@ -1417,7 +1417,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1434,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotHandleResponse(res // NewListSiteDetectorsPager - Description for Get Detectors // -// Generated from API version 2023-12-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 @@ -1487,7 +1487,7 @@ func (client *DiagnosticsClient) listSiteDetectorsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1504,7 @@ func (client *DiagnosticsClient) listSiteDetectorsHandleResponse(resp *http.Resp // NewListSiteDetectorsSlotPager - Description for Get Detectors // -// Generated from API version 2023-12-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 @@ -1562,7 +1562,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1579,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotHandleResponse(resp *http. // NewListSiteDiagnosticCategoriesPager - Description for Get Diagnostics Categories // -// Generated from API version 2023-12-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 @@ -1627,7 +1627,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1644,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesHandleResponse(resp // NewListSiteDiagnosticCategoriesSlotPager - Description for Get Diagnostics Categories // -// Generated from API version 2023-12-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 @@ -1697,7 +1697,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 d325b7c2e75d..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 924ad1a968e1..a031f7a1e3dd 100644 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go @@ -40,7 +40,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 2023-12-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] { @@ -74,7 +74,7 @@ func (client *DomainRegistrationProviderClient) listOperationsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 0c7941681b98..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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 dafccabcfd72..12cd8f129570 100644 --- a/sdk/resourcemanager/appservice/armappservice/domains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domains_client.go @@ -47,7 +47,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 2023-12-01 +// Generated from API version 2024-11-01 // - identifier - Name of the domain. // - options - DomainsClientCheckAvailabilityOptions contains the optional parameters for the DomainsClient.CheckAvailability // method. @@ -85,7 +85,7 @@ func (client *DomainsClient) checkAvailabilityCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +106,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 2023-12-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 +132,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 2023-12-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" @@ -174,7 +174,7 @@ func (client *DomainsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +187,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 2023-12-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. @@ -240,7 +240,7 @@ func (client *DomainsClient) createOrUpdateOwnershipIdentifierCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +261,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 2023-12-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 +306,7 @@ func (client *DomainsClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ForceHardDeleteDomain != nil { reqQP.Set("forceHardDeleteDomain", strconv.FormatBool(*options.ForceHardDeleteDomain)) } @@ -318,7 +318,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 2023-12-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. @@ -369,7 +369,7 @@ func (client *DomainsClient) deleteOwnershipIdentifierCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +378,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 2023-12-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. @@ -424,7 +424,7 @@ func (client *DomainsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +442,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 2023-12-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) { @@ -479,7 +479,7 @@ func (client *DomainsClient) getControlCenterSsoRequestCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +497,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 2023-12-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. @@ -549,7 +549,7 @@ func (client *DomainsClient) getOwnershipIdentifierCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +566,7 @@ func (client *DomainsClient) getOwnershipIdentifierHandleResponse(resp *http.Res // NewListPager - Description for Get all domains in a subscription. // -// Generated from API version 2023-12-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]{ @@ -603,7 +603,7 @@ func (client *DomainsClient) listCreateRequest(ctx context.Context, options *Dom return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +620,7 @@ func (client *DomainsClient) listHandleResponse(resp *http.Response) (DomainsCli // NewListByResourceGroupPager - Description for Get all domains in a resource group. // -// Generated from API version 2023-12-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. @@ -663,7 +663,7 @@ func (client *DomainsClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +680,7 @@ func (client *DomainsClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListOwnershipIdentifiersPager - Description for Lists domain ownership identifiers. // -// Generated from API version 2023-12-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 @@ -728,7 +728,7 @@ func (client *DomainsClient) listOwnershipIdentifiersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +745,7 @@ func (client *DomainsClient) listOwnershipIdentifiersHandleResponse(resp *http.R // NewListRecommendationsPager - Description for Get domain name recommendations based on keywords. // -// Generated from API version 2023-12-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. @@ -784,7 +784,7 @@ func (client *DomainsClient) listRecommendationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +805,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 2023-12-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. @@ -850,7 +850,7 @@ func (client *DomainsClient) renewCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +859,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 2023-12-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. @@ -905,7 +905,7 @@ func (client *DomainsClient) transferOutCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +923,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 2023-12-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. @@ -970,7 +970,7 @@ func (client *DomainsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +992,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 2023-12-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. @@ -1045,7 +1045,7 @@ func (client *DomainsClient) updateOwnershipIdentifierCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 d712cb246b34..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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 82fd29dd0e9b..fca6f6b49ebb 100644 --- a/sdk/resourcemanager/appservice/armappservice/environments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/environments_client.go @@ -47,7 +47,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 2023-12-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 +72,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 2023-12-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" @@ -118,7 +118,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +129,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate // BeginChangeVnet - Description for Move an App Service Environment to a different VNET. // -// Generated from API version 2023-12-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 +172,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 2023-12-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" @@ -214,7 +214,7 @@ func (client *EnvironmentsClient) changeVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +235,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 2023-12-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 +261,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 2023-12-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" @@ -303,7 +303,7 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +315,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 2023-12-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 +341,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 2023-12-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" @@ -383,7 +383,7 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +395,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 2023-12-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 +422,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 2023-12-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" @@ -468,7 +468,7 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +480,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 2023-12-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 +505,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 2023-12-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 +547,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ForceDelete != nil { reqQP.Set("forceDelete", strconv.FormatBool(*options.ForceDelete)) } @@ -559,7 +559,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 2023-12-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 @@ -606,7 +606,7 @@ func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +624,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 2023-12-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 +649,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 2023-12-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" @@ -695,7 +695,7 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +704,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 2023-12-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. @@ -750,7 +750,7 @@ func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +768,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 2023-12-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 @@ -815,7 +815,7 @@ func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +833,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 2023-12-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 @@ -880,7 +880,7 @@ func (client *EnvironmentsClient) getAseV3NetworkingConfigurationCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +898,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 2023-12-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. @@ -950,7 +950,7 @@ func (client *EnvironmentsClient) getDiagnosticsItemCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +968,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 2023-12-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 @@ -1016,7 +1016,7 @@ func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1034,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 2023-12-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 @@ -1081,7 +1081,7 @@ func (client *EnvironmentsClient) getMultiRolePoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1099,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 2023-12-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 @@ -1147,7 +1147,7 @@ func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1165,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 2023-12-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. @@ -1217,7 +1217,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1235,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionHandleResponse(res // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoints associated with a hosting // environment // -// Generated from API version 2023-12-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 @@ -1283,7 +1283,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionListCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1301,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 2023-12-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 @@ -1348,7 +1348,7 @@ func (client *EnvironmentsClient) getPrivateLinkResourcesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1366,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 2023-12-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. @@ -1412,7 +1412,7 @@ func (client *EnvironmentsClient) getVipInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1430,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 2023-12-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. @@ -1482,7 +1482,7 @@ func (client *EnvironmentsClient) getWorkerPoolCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1499,7 @@ func (client *EnvironmentsClient) getWorkerPoolHandleResponse(resp *http.Respons // NewListPager - Description for Get all App Service Environments for a subscription. // -// Generated from API version 2023-12-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]{ @@ -1536,7 +1536,7 @@ func (client *EnvironmentsClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1553,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 2023-12-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 @@ -1601,7 +1601,7 @@ func (client *EnvironmentsClient) listAppServicePlansCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1618,7 @@ func (client *EnvironmentsClient) listAppServicePlansHandleResponse(resp *http.R // NewListByResourceGroupPager - Description for Get all App Service Environments in a resource group. // -// Generated from API version 2023-12-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. @@ -1661,7 +1661,7 @@ func (client *EnvironmentsClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1678,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 2023-12-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 @@ -1726,7 +1726,7 @@ func (client *EnvironmentsClient) listCapacitiesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1744,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 2023-12-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 @@ -1791,7 +1791,7 @@ func (client *EnvironmentsClient) listDiagnosticsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1809,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 2023-12-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 @@ -1857,7 +1857,7 @@ func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1875,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 2023-12-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. @@ -1928,7 +1928,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1945,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsHand // NewListMultiRolePoolSKUsPager - Description for Get available SKUs for scaling a multi-role pool. // -// Generated from API version 2023-12-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 @@ -1993,7 +1993,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2010,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsHandleResponse(resp *http // NewListMultiRolePoolsPager - Description for Get all multi-role pools. // -// Generated from API version 2023-12-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 @@ -2058,7 +2058,7 @@ func (client *EnvironmentsClient) listMultiRolePoolsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2075,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 2023-12-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 @@ -2123,7 +2123,7 @@ func (client *EnvironmentsClient) listMultiRoleUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2141,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 2023-12-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 @@ -2188,7 +2188,7 @@ func (client *EnvironmentsClient) listOperationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2205,7 @@ func (client *EnvironmentsClient) listOperationsHandleResponse(resp *http.Respon // NewListUsagesPager - Description for Get global usage metrics of an App Service Environment. // -// Generated from API version 2023-12-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 +2253,7 @@ func (client *EnvironmentsClient) listUsagesCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2275,7 @@ func (client *EnvironmentsClient) listUsagesHandleResponse(resp *http.Response) // NewListWebAppsPager - Description for Get all apps in an App Service Environment. // -// Generated from API version 2023-12-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 +2323,7 @@ func (client *EnvironmentsClient) listWebAppsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.PropertiesToInclude != nil { reqQP.Set("propertiesToInclude", *options.PropertiesToInclude) } @@ -2343,7 +2343,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 2023-12-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. @@ -2396,7 +2396,7 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2413,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 2023-12-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. @@ -2466,7 +2466,7 @@ func (client *EnvironmentsClient) listWebWorkerUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2484,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 2023-12-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. @@ -2542,7 +2542,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2559,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsHandleR // NewListWorkerPoolSKUsPager - Description for Get available SKUs for scaling a worker pool. // -// Generated from API version 2023-12-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. @@ -2612,7 +2612,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2629,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsHandleResponse(resp *http.Re // NewListWorkerPoolsPager - Description for Get all worker pools of an App Service Environment. // -// Generated from API version 2023-12-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 @@ -2677,7 +2677,7 @@ func (client *EnvironmentsClient) listWorkerPoolsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2695,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 2023-12-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. @@ -2740,7 +2740,7 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2748,7 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou // BeginResume - Description for Resume an App Service Environment. // -// Generated from API version 2023-12-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 +2790,7 @@ func (client *EnvironmentsClient) BeginResume(ctx context.Context, resourceGroup // Resume - Description for Resume an App Service Environment. // -// Generated from API version 2023-12-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" @@ -2832,7 +2832,7 @@ func (client *EnvironmentsClient) resumeCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2849,7 @@ func (client *EnvironmentsClient) resumeHandleResponse(resp *http.Response) (Env // BeginSuspend - Description for Suspend an App Service Environment. // -// Generated from API version 2023-12-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 +2891,7 @@ func (client *EnvironmentsClient) BeginSuspend(ctx context.Context, resourceGrou // Suspend - Description for Suspend an App Service Environment. // -// Generated from API version 2023-12-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" @@ -2933,7 +2933,7 @@ func (client *EnvironmentsClient) suspendCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2951,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 2023-12-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 @@ -2997,7 +2997,7 @@ func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3006,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 2023-12-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. @@ -3053,7 +3053,7 @@ func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3074,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 2023-12-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 @@ -3121,7 +3121,7 @@ func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3142,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 2023-12-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 @@ -3189,7 +3189,7 @@ func (client *EnvironmentsClient) updateAseNetworkingConfigurationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3210,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 2023-12-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. @@ -3258,7 +3258,7 @@ func (client *EnvironmentsClient) updateMultiRolePoolCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3279,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 2023-12-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. @@ -3332,7 +3332,7 @@ func (client *EnvironmentsClient) updateWorkerPoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3353,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 2023-12-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 +3378,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 2023-12-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" @@ -3420,7 +3420,7 @@ func (client *EnvironmentsClient) upgradeCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 c90a297e6f2b..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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-08T20: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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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..34fdac52ae71 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go index 2c6e1f2ff709..09cb647fe7ca 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go index fab9a92f7082..f9c8329f2e83 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go @@ -15,7 +15,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" ) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go index 715684e400cb..4f8f051d00e5 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go @@ -16,7 +16,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" @@ -199,7 +199,7 @@ func (c *CertificatesServerTransport) dispatchGet(req *http.Request) (*http.Resp 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) + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).CertificateGetResource, req) if err != nil { return nil, err } diff --git a/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go index abf0440fa9f3..4b760de6776e 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/containerapps_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go index d3204b9f60bb..51d4dbcd9e5d 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/containerappsrevisions_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go index f7781d506eee..8a18dfef37f0 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go b/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go index be90d15c4371..a391375f56a5 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go index 84657f77dd42..d2f142710de6 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go @@ -15,7 +15,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" ) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go b/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go index e4dbda23df4e..0b3910322e00 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go b/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go index fa8598c3f6eb..879d92fd61b1 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go b/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go index ef05f106c3f8..979acf431a31 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go @@ -15,7 +15,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/global_server.go b/sdk/resourcemanager/appservice/armappservice/fake/global_server.go index 24be75f9d3b2..8ef25d1d2ff4 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/global_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/global_server.go @@ -15,7 +15,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go b/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go index 9afda8468b41..bb0d06a3deae 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go b/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go index ebe4c895691e..4aec73636e0e 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go index 5132c647400c..8a7860854d67 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go @@ -15,7 +15,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go b/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go index 7ede912023b4..533e0ef32262 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go b/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go index 3be20b938529..1a77ec77f7be 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go b/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go index b55da94c6d22..af774ab4ce2f 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go @@ -37,6 +37,7 @@ type ServerFactory struct { ProviderServer ProviderServer RecommendationsServer RecommendationsServer ResourceHealthMetadataServer ResourceHealthMetadataServer + SiteCertificatesServer SiteCertificatesServer StaticSitesServer StaticSitesServer TopLevelDomainsServer TopLevelDomainsServer WebAppsServer WebAppsServer @@ -84,6 +85,7 @@ type ServerFactoryTransport struct { trProviderServer *ProviderServerTransport trRecommendationsServer *RecommendationsServerTransport trResourceHealthMetadataServer *ResourceHealthMetadataServerTransport + trSiteCertificatesServer *SiteCertificatesServerTransport trStaticSitesServer *StaticSitesServerTransport trTopLevelDomainsServer *TopLevelDomainsServerTransport trWebAppsServer *WebAppsServerTransport @@ -188,6 +190,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..0301cc4424c6 --- /dev/null +++ b/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go @@ -0,0 +1,542 @@ +//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/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")} + } + + var resp *http.Response + var err error + + switch method { + case "SiteCertificatesClient.CreateOrUpdate": + resp, err = s.dispatchCreateOrUpdate(req) + case "SiteCertificatesClient.CreateOrUpdateSlot": + resp, err = s.dispatchCreateOrUpdateSlot(req) + case "SiteCertificatesClient.Delete": + resp, err = s.dispatchDelete(req) + case "SiteCertificatesClient.DeleteSlot": + resp, err = s.dispatchDeleteSlot(req) + case "SiteCertificatesClient.Get": + resp, err = s.dispatchGet(req) + case "SiteCertificatesClient.GetSlot": + resp, err = s.dispatchGetSlot(req) + case "SiteCertificatesClient.NewListPager": + resp, err = s.dispatchNewListPager(req) + case "SiteCertificatesClient.NewListSlotPager": + resp, err = s.dispatchNewListSlotPager(req) + case "SiteCertificatesClient.Update": + resp, err = s.dispatchUpdate(req) + case "SiteCertificatesClient.UpdateSlot": + resp, err = s.dispatchUpdateSlot(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +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).CertificateGetResource, 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).CertificateGetResource, 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 +} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go b/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go index a4f57a09892c..10a4af0b5061 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go b/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go index 245c53dd4ab4..b8bbd1697f47 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go index 34e3ac40cc54..2929d428850b 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go @@ -16,7 +16,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" @@ -1606,6 +1606,10 @@ type WebAppsServer struct { // HTTP status codes to indicate success: http.StatusOK UpdateHybridConnectionSlot func(ctx context.Context, resourceGroupName string, name string, namespaceName string, relayName string, slot string, connectionEnvelope armappservice.HybridConnection, options *armappservice.WebAppsClientUpdateHybridConnectionSlotOptions) (resp azfake.Responder[armappservice.WebAppsClientUpdateHybridConnectionSlotResponse], errResp azfake.ErrorResponder) + // UpdateMachineKey is the fake for method WebAppsClient.UpdateMachineKey + // HTTP status codes to indicate success: http.StatusOK + UpdateMachineKey func(ctx context.Context, resourceGroupName string, name string, options *armappservice.WebAppsClientUpdateMachineKeyOptions) (resp azfake.Responder[armappservice.WebAppsClientUpdateMachineKeyResponse], errResp azfake.ErrorResponder) + // UpdateMetadata is the fake for method WebAppsClient.UpdateMetadata // HTTP status codes to indicate success: http.StatusOK UpdateMetadata func(ctx context.Context, resourceGroupName string, name string, metadata armappservice.StringDictionary, options *armappservice.WebAppsClientUpdateMetadataOptions) (resp azfake.Responder[armappservice.WebAppsClientUpdateMetadataResponse], errResp azfake.ErrorResponder) @@ -2714,6 +2718,8 @@ func (w *WebAppsServerTransport) Do(req *http.Request) (*http.Response, error) { 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": @@ -19242,6 +19248,39 @@ func (w *WebAppsServerTransport) dispatchUpdateHybridConnectionSlot(req *http.Re return resp, nil } +func (w *WebAppsServerTransport) dispatchUpdateMachineKey(req *http.Request) (*http.Response, error) { + if w.srv.UpdateMachineKey == nil { + return nil, &nonRetriableError{errors.New("fake for method UpdateMachineKey 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~%@]+)/updatemachinekey` + 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 := w.srv.UpdateMachineKey(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).Interface, req) + if err != nil { + return nil, err + } + return resp, nil +} + func (w *WebAppsServerTransport) dispatchUpdateMetadata(req *http.Request) (*http.Response, error) { if w.srv.UpdateMetadata == nil { return nil, &nonRetriableError{errors.New("fake for method UpdateMetadata not implemented")} diff --git a/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go b/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go index d2ed56fa1384..f98cad2535cc 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go index fcb4f34529a8..1945e563a904 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go index d0ba77c8d38e..3d7f09e5476d 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go index afd0ce7710cb..956b3d0cb505 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go index 1f15ab408180..27c1f655e0df 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go index e36f923c45df..f78c12a07e1f 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go index f7d135dee1fa..b55a2f1b9b6c 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go @@ -15,7 +15,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go index 1e198effd5b3..fd98db95136a 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go index 6515a05ca1df..67c56b1c989f 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go index fb7408ac5721..012382f7eaff 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go @@ -16,7 +16,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" diff --git a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go index 7ba919708892..f6c5a3415fa4 100644 --- a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go +++ b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go @@ -45,7 +45,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 2023-12-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. @@ -88,7 +88,7 @@ func (client *GetUsagesInLocationClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 eae91eeccb44..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 36aa474f459a..4ac11a5b3811 100644 --- a/sdk/resourcemanager/appservice/armappservice/global_client.go +++ b/sdk/resourcemanager/appservice/armappservice/global_client.go @@ -46,7 +46,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 2023-12-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) { @@ -87,7 +87,7 @@ func (client *GlobalClient) getDeletedWebAppCreateRequest(ctx context.Context, d return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +105,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 2023-12-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. @@ -147,7 +147,7 @@ func (client *GlobalClient) getDeletedWebAppSnapshotsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +165,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 2023-12-01 +// Generated from API version 2024-11-01 // - location - Location name // - operationID - Operation Id // - options - GlobalClientGetSubscriptionOperationWithAsyncResponseOptions contains the optional parameters for the GlobalClient.GetSubscriptionOperationWithAsyncResponse @@ -211,7 +211,7 @@ func (client *GlobalClient) getSubscriptionOperationWithAsyncResponseCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 71bb298eff9c..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 29e79bc4c553..a7af35640bde 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.13.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 -) +require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // 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.25.0 // indirect golang.org/x/net v0.27.0 // indirect - golang.org/x/sys v0.22.0 // indirect golang.org/x/text v0.16.0 // indirect ) diff --git a/sdk/resourcemanager/appservice/armappservice/go.sum b/sdk/resourcemanager/appservice/armappservice/go.sum index 09d275cb9a37..917448a001b7 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.sum +++ b/sdk/resourcemanager/appservice/armappservice/go.sum @@ -1,29 +1,12 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 h1:GJHeeA2N7xrG3q30L2UXDyuWRzDM900/65j70wcM4Ww= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0/go.mod h1:l38EPgmsp71HHLq9j7De57JcKOWPyhrsW1Awm1JS6K0= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 h1:tfLQ34V6F7tVSwoTf/4lH5sE0o6eCJuNDTmH09nDpbc= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg= 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-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -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/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/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= -golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= 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 cf90bc71f064..76d1a3f4ee1a 100644 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go @@ -46,7 +46,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 2023-12-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 +72,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 2023-12-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" @@ -114,7 +114,7 @@ func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +126,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 2023-12-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 +151,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 2023-12-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" @@ -193,7 +193,7 @@ func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +202,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 2023-12-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. @@ -248,7 +248,7 @@ func (client *KubeEnvironmentsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +265,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 2023-12-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. @@ -308,7 +308,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +325,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupHandleResponse(resp *ht // NewListBySubscriptionPager - Description for Get all Kubernetes Environments for a subscription. // -// Generated from API version 2023-12-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] { @@ -363,7 +363,7 @@ func (client *KubeEnvironmentsClient) listBySubscriptionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +381,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 2023-12-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. @@ -428,7 +428,7 @@ func (client *KubeEnvironmentsClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 6e3ebf3482bb..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 0d2281bdf174..904f6771ee38 100644 --- a/sdk/resourcemanager/appservice/armappservice/models.go +++ b/sdk/resourcemanager/appservice/armappservice/models.go @@ -194,11 +194,13 @@ type AppCertificate struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // Certificate resource specific properties - Properties *AppCertificateProperties + Properties *CertificateProperties // Resource tags. Tags map[string]*string @@ -216,7 +218,7 @@ type AppCertificate struct { // AppCertificateCollection - Collection of certificates. type AppCertificateCollection struct { // REQUIRED; Collection of resources. - Value []*AppCertificate + Value []*CertificateGetResource // READ-ONLY; Link to next page of resources. NextLink *string @@ -228,7 +230,7 @@ type AppCertificatePatchResource struct { Kind *string // CertificatePatchResource resource specific properties - Properties *AppCertificatePatchResourceProperties + Properties *CertificatePatchResourceProperties // READ-ONLY; Resource Id. ID *string @@ -240,138 +242,6 @@ type AppCertificatePatchResource struct { Type *string } -// AppCertificatePatchResourceProperties - CertificatePatchResource resource specific properties -type AppCertificatePatchResourceProperties struct { - // CNAME of the certificate to be issued via free certificate - CanonicalName *string - - // Method of domain validation for free cert - DomainValidationMethod *string - - // Host names the certificate applies to. - HostNames []*string - - // Key Vault Csm resource Id. - KeyVaultID *string - - // Key Vault secret name. - KeyVaultSecretName *string - - // Certificate password. - Password *string - - // Pfx blob. - PfxBlob []byte - - // Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - ServerFarmID *string - - // READ-ONLY; Raw bytes of .cer file - CerBlob []byte - - // READ-ONLY; Certificate expiration date. - ExpirationDate *time.Time - - // READ-ONLY; Friendly name of the certificate. - FriendlyName *string - - // READ-ONLY; Specification for the App Service Environment to use for the certificate. - HostingEnvironmentProfile *HostingEnvironmentProfile - - // READ-ONLY; Certificate issue Date. - IssueDate *time.Time - - // READ-ONLY; Certificate issuer. - Issuer *string - - // READ-ONLY; Status of the Key Vault secret. - KeyVaultSecretStatus *KeyVaultSecretStatus - - // READ-ONLY; Public key hash. - PublicKeyHash *string - - // READ-ONLY; Self link. - SelfLink *string - - // READ-ONLY; App name. - SiteName *string - - // READ-ONLY; Subject name of the certificate. - SubjectName *string - - // READ-ONLY; Certificate thumbprint. - Thumbprint *string - - // READ-ONLY; Is the certificate valid?. - Valid *bool -} - -// AppCertificateProperties - Certificate resource specific properties -type AppCertificateProperties struct { - // CNAME of the certificate to be issued via free certificate - CanonicalName *string - - // Method of domain validation for free cert - DomainValidationMethod *string - - // Host names the certificate applies to. - HostNames []*string - - // Key Vault Csm resource Id. - KeyVaultID *string - - // Key Vault secret name. - KeyVaultSecretName *string - - // Certificate password. - Password *string - - // Pfx blob. - PfxBlob []byte - - // Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". - ServerFarmID *string - - // READ-ONLY; Raw bytes of .cer file - CerBlob []byte - - // READ-ONLY; Certificate expiration date. - ExpirationDate *time.Time - - // READ-ONLY; Friendly name of the certificate. - FriendlyName *string - - // READ-ONLY; Specification for the App Service Environment to use for the certificate. - HostingEnvironmentProfile *HostingEnvironmentProfile - - // READ-ONLY; Certificate issue Date. - IssueDate *time.Time - - // READ-ONLY; Certificate issuer. - Issuer *string - - // READ-ONLY; Status of the Key Vault secret. - KeyVaultSecretStatus *KeyVaultSecretStatus - - // READ-ONLY; Public key hash. - PublicKeyHash *string - - // READ-ONLY; Self link. - SelfLink *string - - // READ-ONLY; App name. - SiteName *string - - // READ-ONLY; Subject name of the certificate. - SubjectName *string - - // READ-ONLY; Certificate thumbprint. - Thumbprint *string - - // READ-ONLY; Is the certificate valid?. - Valid *bool -} - // AppInsightsWebAppStackSettings - App Insights Web App stack settings. type AppInsightsWebAppStackSettings struct { // READ-ONLY; true if Application Insights is disabled by default for the stack; otherwise, false. @@ -1108,12 +978,103 @@ type CertificateEmail struct { TimeStamp *time.Time } +// CertificateGetResource - SSL certificate for an app. +type CertificateGetResource 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 + + // Certificate resource specific properties + Properties *CertificateGetResourceProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Resource Id. + ID *string + + // READ-ONLY; Resource Name. + Name *string + + // READ-ONLY; Resource type. + Type *string +} + +// CertificateGetResourceProperties - Certificate resource specific properties +type CertificateGetResourceProperties struct { + // CNAME of the certificate to be issued via free certificate + CanonicalName *string + + // Method of domain validation for free cert + DomainValidationMethod *string + + // Host names the certificate applies to. + HostNames []*string + + // Key Vault Csm resource Id. + KeyVaultID *string + + // Key Vault secret name. + KeyVaultSecretName *string + + // Pfx blob. + PfxBlob []byte + + // Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + ServerFarmID *string + + // READ-ONLY; Raw bytes of .cer file + CerBlob []byte + + // READ-ONLY; Certificate expiration date. + ExpirationDate *time.Time + + // READ-ONLY; Friendly name of the certificate. + FriendlyName *string + + // READ-ONLY; Specification for the App Service Environment to use for the certificate. + HostingEnvironmentProfile *HostingEnvironmentProfile + + // READ-ONLY; Certificate issue Date. + IssueDate *time.Time + + // READ-ONLY; Certificate issuer. + Issuer *string + + // READ-ONLY; Status of the Key Vault secret. + KeyVaultSecretStatus *KeyVaultSecretStatus + + // READ-ONLY; Public key hash. + PublicKeyHash *string + + // READ-ONLY; Self link. + SelfLink *string + + // READ-ONLY; App name. + SiteName *string + + // READ-ONLY; Subject name of the certificate. + SubjectName *string + + // READ-ONLY; Certificate thumbprint. + Thumbprint *string + + // READ-ONLY; Is the certificate valid?. + Valid *bool +} + // CertificateOrder - SSL certificate purchase order. type CertificateOrder struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // AppServiceCertificateOrder resource specific properties @@ -1319,12 +1280,146 @@ type CertificatePatchResource struct { Type *string } +// CertificatePatchResourceProperties - CertificatePatchResource resource specific properties +type CertificatePatchResourceProperties struct { + // CNAME of the certificate to be issued via free certificate + CanonicalName *string + + // Method of domain validation for free cert + DomainValidationMethod *string + + // Host names the certificate applies to. + HostNames []*string + + // Key Vault Csm resource Id. + KeyVaultID *string + + // Key Vault secret name. + KeyVaultSecretName *string + + // Certificate password. + Password *string + + // Pfx blob. + PfxBlob []byte + + // Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + ServerFarmID *string + + // READ-ONLY; Raw bytes of .cer file + CerBlob []byte + + // READ-ONLY; Certificate expiration date. + ExpirationDate *time.Time + + // READ-ONLY; Friendly name of the certificate. + FriendlyName *string + + // READ-ONLY; Specification for the App Service Environment to use for the certificate. + HostingEnvironmentProfile *HostingEnvironmentProfile + + // READ-ONLY; Certificate issue Date. + IssueDate *time.Time + + // READ-ONLY; Certificate issuer. + Issuer *string + + // READ-ONLY; Status of the Key Vault secret. + KeyVaultSecretStatus *KeyVaultSecretStatus + + // READ-ONLY; Public key hash. + PublicKeyHash *string + + // READ-ONLY; Self link. + SelfLink *string + + // READ-ONLY; App name. + SiteName *string + + // READ-ONLY; Subject name of the certificate. + SubjectName *string + + // READ-ONLY; Certificate thumbprint. + Thumbprint *string + + // READ-ONLY; Is the certificate valid?. + Valid *bool +} + +// CertificateProperties - Certificate resource specific properties +type CertificateProperties struct { + // CNAME of the certificate to be issued via free certificate + CanonicalName *string + + // Method of domain validation for free cert + DomainValidationMethod *string + + // Host names the certificate applies to. + HostNames []*string + + // Key Vault Csm resource Id. + KeyVaultID *string + + // Key Vault secret name. + KeyVaultSecretName *string + + // Certificate password. + Password *string + + // Pfx blob. + PfxBlob []byte + + // Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". + ServerFarmID *string + + // READ-ONLY; Raw bytes of .cer file + CerBlob []byte + + // READ-ONLY; Certificate expiration date. + ExpirationDate *time.Time + + // READ-ONLY; Friendly name of the certificate. + FriendlyName *string + + // READ-ONLY; Specification for the App Service Environment to use for the certificate. + HostingEnvironmentProfile *HostingEnvironmentProfile + + // READ-ONLY; Certificate issue Date. + IssueDate *time.Time + + // READ-ONLY; Certificate issuer. + Issuer *string + + // READ-ONLY; Status of the Key Vault secret. + KeyVaultSecretStatus *KeyVaultSecretStatus + + // READ-ONLY; Public key hash. + PublicKeyHash *string + + // READ-ONLY; Self link. + SelfLink *string + + // READ-ONLY; App name. + SiteName *string + + // READ-ONLY; Subject name of the certificate. + SubjectName *string + + // READ-ONLY; Certificate thumbprint. + Thumbprint *string + + // READ-ONLY; Is the certificate valid?. + Valid *bool +} + // CertificateResource - Key Vault container ARM resource for a certificate that is purchased through Azure. type CertificateResource struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // Core resource properties @@ -1343,6 +1438,12 @@ type CertificateResource struct { Type *string } +// CipherSuites - Describes valid TLS cipher suites. +type CipherSuites struct { + // List of TLS Cipher Suites that are supported by App Service. + Suites []*string +} + // ClientRegistration - The configuration settings of the app registration for providers that have client ids and client secrets type ClientRegistration struct { // The Client ID of the app used for login. @@ -1506,7 +1607,9 @@ type ContainerApp struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 @@ -2819,7 +2922,9 @@ type Domain struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // Domain resource specific properties @@ -3199,7 +3304,9 @@ type EnvironmentResource struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // Core resource properties @@ -4435,7 +4542,9 @@ type KubeEnvironment struct { // Extended Location. ExtendedLocation *ExtendedLocation - // Kind of resource. + // 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 // KubeEnvironment resource specific properties @@ -5194,7 +5303,9 @@ type Plan struct { // Extended Location. ExtendedLocation *ExtendedLocation - // Kind of resource. + // 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 // AppServicePlan resource specific properties @@ -5396,7 +5507,9 @@ type PremierAddOn struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // PremierAddOn resource specific properties @@ -6542,7 +6655,9 @@ type Resource struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 // Resource tags. @@ -6852,7 +6967,9 @@ type Revision struct { // REQUIRED; Resource Location. Location *string - // Kind of resource. + // 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 @@ -7087,7 +7204,9 @@ type Site struct { // Managed service identity. Identity *ManagedServiceIdentity - // Kind of resource. + // 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 // Site resource specific properties @@ -8075,6 +8194,9 @@ type SitePhpErrorLogFlagProperties struct { // SiteProperties - Site resource specific properties type SiteProperties struct { + // Specifies the scope of uniqueness for the default hostname during resource creation + AutoGeneratedDomainNameLabelScope *AutoGeneratedDomainNameLabelScope + // true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same // session to the same instance. Default is true. ClientAffinityEnabled *bool @@ -8112,6 +8234,9 @@ type SiteProperties struct { // true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline). Enabled *bool + // Whether to use end to end encryption between the FrontEnd and the Worker + EndToEndEncryptionEnabled *bool + // Configuration specific of the Azure Function app. FunctionAppConfig *FunctionAppConfig @@ -8131,6 +8256,9 @@ type SiteProperties struct { // Hyper-V sandbox. HyperV *bool + // Specifies the IP mode of the app. + IPMode *IPMode + // Obsolete: Hyper-V sandbox. IsXenon *bool @@ -8226,6 +8354,10 @@ type SiteProperties struct { // READ-ONLY; Name of the resource group the app belongs to. Read-only. ResourceGroup *string + // READ-ONLY; Current SKU of application based on associated App Service Plan. Some valid SKU values are Free, Shared, Basic, + // Dynamic, FlexConsumption, Standard, Premium, PremiumV2, PremiumV3, Isolated, IsolatedV2 + SKU *string + // READ-ONLY; Status of the last deployment slot swap operation. SlotSwapStatus *SlotSwapStatus @@ -8724,7 +8856,9 @@ type StaticSiteARMResource struct { // Managed service identity. Identity *ManagedServiceIdentity - // Kind of resource. + // 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 // Core resource properties @@ -10499,7 +10633,10 @@ type WebSiteInstanceStatusProperties struct { // Link to the console to web app instance HealthCheckURL *string - State *SiteRuntimeState + + // The physical zone that the instance is in + PhysicalZone *string + State *SiteRuntimeState // Link to the GetStatusApi in Kudu StatusURL *string diff --git a/sdk/resourcemanager/appservice/armappservice/models_serde.go b/sdk/resourcemanager/appservice/armappservice/models_serde.go index cad5d054b890..2f0de48db458 100644 --- a/sdk/resourcemanager/appservice/armappservice/models_serde.go +++ b/sdk/resourcemanager/appservice/armappservice/models_serde.go @@ -667,236 +667,6 @@ func (a *AppCertificatePatchResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AppCertificatePatchResourceProperties. -func (a AppCertificatePatchResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "canonicalName", a.CanonicalName) - populateByteArray(objectMap, "cerBlob", a.CerBlob, func() any { - return runtime.EncodeByteArray(a.CerBlob, runtime.Base64StdFormat) - }) - populate(objectMap, "domainValidationMethod", a.DomainValidationMethod) - populateDateTimeRFC3339(objectMap, "expirationDate", a.ExpirationDate) - populate(objectMap, "friendlyName", a.FriendlyName) - populate(objectMap, "hostNames", a.HostNames) - populate(objectMap, "hostingEnvironmentProfile", a.HostingEnvironmentProfile) - populateDateTimeRFC3339(objectMap, "issueDate", a.IssueDate) - populate(objectMap, "issuer", a.Issuer) - populate(objectMap, "keyVaultId", a.KeyVaultID) - populate(objectMap, "keyVaultSecretName", a.KeyVaultSecretName) - populate(objectMap, "keyVaultSecretStatus", a.KeyVaultSecretStatus) - populate(objectMap, "password", a.Password) - populateByteArray(objectMap, "pfxBlob", a.PfxBlob, func() any { - return runtime.EncodeByteArray(a.PfxBlob, runtime.Base64StdFormat) - }) - populate(objectMap, "publicKeyHash", a.PublicKeyHash) - populate(objectMap, "selfLink", a.SelfLink) - populate(objectMap, "serverFarmId", a.ServerFarmID) - populate(objectMap, "siteName", a.SiteName) - populate(objectMap, "subjectName", a.SubjectName) - populate(objectMap, "thumbprint", a.Thumbprint) - populate(objectMap, "valid", a.Valid) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AppCertificatePatchResourceProperties. -func (a *AppCertificatePatchResourceProperties) 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", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "canonicalName": - err = unpopulate(val, "CanonicalName", &a.CanonicalName) - delete(rawMsg, key) - case "cerBlob": - if val != nil && string(val) != "null" { - err = runtime.DecodeByteArray(string(val), &a.CerBlob, runtime.Base64StdFormat) - } - delete(rawMsg, key) - case "domainValidationMethod": - err = unpopulate(val, "DomainValidationMethod", &a.DomainValidationMethod) - delete(rawMsg, key) - case "expirationDate": - err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &a.ExpirationDate) - delete(rawMsg, key) - case "friendlyName": - err = unpopulate(val, "FriendlyName", &a.FriendlyName) - delete(rawMsg, key) - case "hostNames": - err = unpopulate(val, "HostNames", &a.HostNames) - delete(rawMsg, key) - case "hostingEnvironmentProfile": - err = unpopulate(val, "HostingEnvironmentProfile", &a.HostingEnvironmentProfile) - delete(rawMsg, key) - case "issueDate": - err = unpopulateDateTimeRFC3339(val, "IssueDate", &a.IssueDate) - delete(rawMsg, key) - case "issuer": - err = unpopulate(val, "Issuer", &a.Issuer) - delete(rawMsg, key) - case "keyVaultId": - err = unpopulate(val, "KeyVaultID", &a.KeyVaultID) - delete(rawMsg, key) - case "keyVaultSecretName": - err = unpopulate(val, "KeyVaultSecretName", &a.KeyVaultSecretName) - delete(rawMsg, key) - case "keyVaultSecretStatus": - err = unpopulate(val, "KeyVaultSecretStatus", &a.KeyVaultSecretStatus) - delete(rawMsg, key) - case "password": - err = unpopulate(val, "Password", &a.Password) - delete(rawMsg, key) - case "pfxBlob": - if val != nil && string(val) != "null" { - err = runtime.DecodeByteArray(string(val), &a.PfxBlob, runtime.Base64StdFormat) - } - delete(rawMsg, key) - case "publicKeyHash": - err = unpopulate(val, "PublicKeyHash", &a.PublicKeyHash) - delete(rawMsg, key) - case "selfLink": - err = unpopulate(val, "SelfLink", &a.SelfLink) - delete(rawMsg, key) - case "serverFarmId": - err = unpopulate(val, "ServerFarmID", &a.ServerFarmID) - delete(rawMsg, key) - case "siteName": - err = unpopulate(val, "SiteName", &a.SiteName) - delete(rawMsg, key) - case "subjectName": - err = unpopulate(val, "SubjectName", &a.SubjectName) - delete(rawMsg, key) - case "thumbprint": - err = unpopulate(val, "Thumbprint", &a.Thumbprint) - delete(rawMsg, key) - case "valid": - err = unpopulate(val, "Valid", &a.Valid) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type AppCertificateProperties. -func (a AppCertificateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "canonicalName", a.CanonicalName) - populateByteArray(objectMap, "cerBlob", a.CerBlob, func() any { - return runtime.EncodeByteArray(a.CerBlob, runtime.Base64StdFormat) - }) - populate(objectMap, "domainValidationMethod", a.DomainValidationMethod) - populateDateTimeRFC3339(objectMap, "expirationDate", a.ExpirationDate) - populate(objectMap, "friendlyName", a.FriendlyName) - populate(objectMap, "hostNames", a.HostNames) - populate(objectMap, "hostingEnvironmentProfile", a.HostingEnvironmentProfile) - populateDateTimeRFC3339(objectMap, "issueDate", a.IssueDate) - populate(objectMap, "issuer", a.Issuer) - populate(objectMap, "keyVaultId", a.KeyVaultID) - populate(objectMap, "keyVaultSecretName", a.KeyVaultSecretName) - populate(objectMap, "keyVaultSecretStatus", a.KeyVaultSecretStatus) - populate(objectMap, "password", a.Password) - populateByteArray(objectMap, "pfxBlob", a.PfxBlob, func() any { - return runtime.EncodeByteArray(a.PfxBlob, runtime.Base64StdFormat) - }) - populate(objectMap, "publicKeyHash", a.PublicKeyHash) - populate(objectMap, "selfLink", a.SelfLink) - populate(objectMap, "serverFarmId", a.ServerFarmID) - populate(objectMap, "siteName", a.SiteName) - populate(objectMap, "subjectName", a.SubjectName) - populate(objectMap, "thumbprint", a.Thumbprint) - populate(objectMap, "valid", a.Valid) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AppCertificateProperties. -func (a *AppCertificateProperties) 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", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "canonicalName": - err = unpopulate(val, "CanonicalName", &a.CanonicalName) - delete(rawMsg, key) - case "cerBlob": - if val != nil && string(val) != "null" { - err = runtime.DecodeByteArray(string(val), &a.CerBlob, runtime.Base64StdFormat) - } - delete(rawMsg, key) - case "domainValidationMethod": - err = unpopulate(val, "DomainValidationMethod", &a.DomainValidationMethod) - delete(rawMsg, key) - case "expirationDate": - err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &a.ExpirationDate) - delete(rawMsg, key) - case "friendlyName": - err = unpopulate(val, "FriendlyName", &a.FriendlyName) - delete(rawMsg, key) - case "hostNames": - err = unpopulate(val, "HostNames", &a.HostNames) - delete(rawMsg, key) - case "hostingEnvironmentProfile": - err = unpopulate(val, "HostingEnvironmentProfile", &a.HostingEnvironmentProfile) - delete(rawMsg, key) - case "issueDate": - err = unpopulateDateTimeRFC3339(val, "IssueDate", &a.IssueDate) - delete(rawMsg, key) - case "issuer": - err = unpopulate(val, "Issuer", &a.Issuer) - delete(rawMsg, key) - case "keyVaultId": - err = unpopulate(val, "KeyVaultID", &a.KeyVaultID) - delete(rawMsg, key) - case "keyVaultSecretName": - err = unpopulate(val, "KeyVaultSecretName", &a.KeyVaultSecretName) - delete(rawMsg, key) - case "keyVaultSecretStatus": - err = unpopulate(val, "KeyVaultSecretStatus", &a.KeyVaultSecretStatus) - delete(rawMsg, key) - case "password": - err = unpopulate(val, "Password", &a.Password) - delete(rawMsg, key) - case "pfxBlob": - if val != nil && string(val) != "null" { - err = runtime.DecodeByteArray(string(val), &a.PfxBlob, runtime.Base64StdFormat) - } - delete(rawMsg, key) - case "publicKeyHash": - err = unpopulate(val, "PublicKeyHash", &a.PublicKeyHash) - delete(rawMsg, key) - case "selfLink": - err = unpopulate(val, "SelfLink", &a.SelfLink) - delete(rawMsg, key) - case "serverFarmId": - err = unpopulate(val, "ServerFarmID", &a.ServerFarmID) - delete(rawMsg, key) - case "siteName": - err = unpopulate(val, "SiteName", &a.SiteName) - delete(rawMsg, key) - case "subjectName": - err = unpopulate(val, "SubjectName", &a.SubjectName) - delete(rawMsg, key) - case "thumbprint": - err = unpopulate(val, "Thumbprint", &a.Thumbprint) - delete(rawMsg, key) - case "valid": - err = unpopulate(val, "Valid", &a.Valid) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type AppInsightsWebAppStackSettings. func (a AppInsightsWebAppStackSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2804,6 +2574,168 @@ func (c *CertificateEmail) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CertificateGetResource. +func (c CertificateGetResource) 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 CertificateGetResource. +func (c *CertificateGetResource) 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 CertificateGetResourceProperties. +func (c CertificateGetResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "canonicalName", c.CanonicalName) + populateByteArray(objectMap, "cerBlob", c.CerBlob, func() any { + return runtime.EncodeByteArray(c.CerBlob, runtime.Base64StdFormat) + }) + populate(objectMap, "domainValidationMethod", c.DomainValidationMethod) + populateDateTimeRFC3339(objectMap, "expirationDate", c.ExpirationDate) + populate(objectMap, "friendlyName", c.FriendlyName) + populate(objectMap, "hostNames", c.HostNames) + populate(objectMap, "hostingEnvironmentProfile", c.HostingEnvironmentProfile) + populateDateTimeRFC3339(objectMap, "issueDate", c.IssueDate) + populate(objectMap, "issuer", c.Issuer) + populate(objectMap, "keyVaultId", c.KeyVaultID) + populate(objectMap, "keyVaultSecretName", c.KeyVaultSecretName) + populate(objectMap, "keyVaultSecretStatus", c.KeyVaultSecretStatus) + populateByteArray(objectMap, "pfxBlob", c.PfxBlob, func() any { + return runtime.EncodeByteArray(c.PfxBlob, runtime.Base64StdFormat) + }) + populate(objectMap, "publicKeyHash", c.PublicKeyHash) + populate(objectMap, "selfLink", c.SelfLink) + populate(objectMap, "serverFarmId", c.ServerFarmID) + populate(objectMap, "siteName", c.SiteName) + populate(objectMap, "subjectName", c.SubjectName) + populate(objectMap, "thumbprint", c.Thumbprint) + populate(objectMap, "valid", c.Valid) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificateGetResourceProperties. +func (c *CertificateGetResourceProperties) 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 "canonicalName": + err = unpopulate(val, "CanonicalName", &c.CanonicalName) + delete(rawMsg, key) + case "cerBlob": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.CerBlob, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "domainValidationMethod": + err = unpopulate(val, "DomainValidationMethod", &c.DomainValidationMethod) + delete(rawMsg, key) + case "expirationDate": + err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &c.ExpirationDate) + delete(rawMsg, key) + case "friendlyName": + err = unpopulate(val, "FriendlyName", &c.FriendlyName) + delete(rawMsg, key) + case "hostNames": + err = unpopulate(val, "HostNames", &c.HostNames) + delete(rawMsg, key) + case "hostingEnvironmentProfile": + err = unpopulate(val, "HostingEnvironmentProfile", &c.HostingEnvironmentProfile) + delete(rawMsg, key) + case "issueDate": + err = unpopulateDateTimeRFC3339(val, "IssueDate", &c.IssueDate) + delete(rawMsg, key) + case "issuer": + err = unpopulate(val, "Issuer", &c.Issuer) + delete(rawMsg, key) + case "keyVaultId": + err = unpopulate(val, "KeyVaultID", &c.KeyVaultID) + delete(rawMsg, key) + case "keyVaultSecretName": + err = unpopulate(val, "KeyVaultSecretName", &c.KeyVaultSecretName) + delete(rawMsg, key) + case "keyVaultSecretStatus": + err = unpopulate(val, "KeyVaultSecretStatus", &c.KeyVaultSecretStatus) + delete(rawMsg, key) + case "pfxBlob": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.PfxBlob, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "publicKeyHash": + err = unpopulate(val, "PublicKeyHash", &c.PublicKeyHash) + delete(rawMsg, key) + case "selfLink": + err = unpopulate(val, "SelfLink", &c.SelfLink) + delete(rawMsg, key) + case "serverFarmId": + err = unpopulate(val, "ServerFarmID", &c.ServerFarmID) + delete(rawMsg, key) + case "siteName": + err = unpopulate(val, "SiteName", &c.SiteName) + delete(rawMsg, key) + case "subjectName": + err = unpopulate(val, "SubjectName", &c.SubjectName) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &c.Thumbprint) + delete(rawMsg, key) + case "valid": + err = unpopulate(val, "Valid", &c.Valid) + 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 CertificateOrder. func (c CertificateOrder) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3248,6 +3180,236 @@ func (c *CertificatePatchResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CertificatePatchResourceProperties. +func (c CertificatePatchResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "canonicalName", c.CanonicalName) + populateByteArray(objectMap, "cerBlob", c.CerBlob, func() any { + return runtime.EncodeByteArray(c.CerBlob, runtime.Base64StdFormat) + }) + populate(objectMap, "domainValidationMethod", c.DomainValidationMethod) + populateDateTimeRFC3339(objectMap, "expirationDate", c.ExpirationDate) + populate(objectMap, "friendlyName", c.FriendlyName) + populate(objectMap, "hostNames", c.HostNames) + populate(objectMap, "hostingEnvironmentProfile", c.HostingEnvironmentProfile) + populateDateTimeRFC3339(objectMap, "issueDate", c.IssueDate) + populate(objectMap, "issuer", c.Issuer) + populate(objectMap, "keyVaultId", c.KeyVaultID) + populate(objectMap, "keyVaultSecretName", c.KeyVaultSecretName) + populate(objectMap, "keyVaultSecretStatus", c.KeyVaultSecretStatus) + populate(objectMap, "password", c.Password) + populateByteArray(objectMap, "pfxBlob", c.PfxBlob, func() any { + return runtime.EncodeByteArray(c.PfxBlob, runtime.Base64StdFormat) + }) + populate(objectMap, "publicKeyHash", c.PublicKeyHash) + populate(objectMap, "selfLink", c.SelfLink) + populate(objectMap, "serverFarmId", c.ServerFarmID) + populate(objectMap, "siteName", c.SiteName) + populate(objectMap, "subjectName", c.SubjectName) + populate(objectMap, "thumbprint", c.Thumbprint) + populate(objectMap, "valid", c.Valid) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificatePatchResourceProperties. +func (c *CertificatePatchResourceProperties) 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 "canonicalName": + err = unpopulate(val, "CanonicalName", &c.CanonicalName) + delete(rawMsg, key) + case "cerBlob": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.CerBlob, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "domainValidationMethod": + err = unpopulate(val, "DomainValidationMethod", &c.DomainValidationMethod) + delete(rawMsg, key) + case "expirationDate": + err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &c.ExpirationDate) + delete(rawMsg, key) + case "friendlyName": + err = unpopulate(val, "FriendlyName", &c.FriendlyName) + delete(rawMsg, key) + case "hostNames": + err = unpopulate(val, "HostNames", &c.HostNames) + delete(rawMsg, key) + case "hostingEnvironmentProfile": + err = unpopulate(val, "HostingEnvironmentProfile", &c.HostingEnvironmentProfile) + delete(rawMsg, key) + case "issueDate": + err = unpopulateDateTimeRFC3339(val, "IssueDate", &c.IssueDate) + delete(rawMsg, key) + case "issuer": + err = unpopulate(val, "Issuer", &c.Issuer) + delete(rawMsg, key) + case "keyVaultId": + err = unpopulate(val, "KeyVaultID", &c.KeyVaultID) + delete(rawMsg, key) + case "keyVaultSecretName": + err = unpopulate(val, "KeyVaultSecretName", &c.KeyVaultSecretName) + delete(rawMsg, key) + case "keyVaultSecretStatus": + err = unpopulate(val, "KeyVaultSecretStatus", &c.KeyVaultSecretStatus) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &c.Password) + delete(rawMsg, key) + case "pfxBlob": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.PfxBlob, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "publicKeyHash": + err = unpopulate(val, "PublicKeyHash", &c.PublicKeyHash) + delete(rawMsg, key) + case "selfLink": + err = unpopulate(val, "SelfLink", &c.SelfLink) + delete(rawMsg, key) + case "serverFarmId": + err = unpopulate(val, "ServerFarmID", &c.ServerFarmID) + delete(rawMsg, key) + case "siteName": + err = unpopulate(val, "SiteName", &c.SiteName) + delete(rawMsg, key) + case "subjectName": + err = unpopulate(val, "SubjectName", &c.SubjectName) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &c.Thumbprint) + delete(rawMsg, key) + case "valid": + err = unpopulate(val, "Valid", &c.Valid) + 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 CertificateProperties. +func (c CertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "canonicalName", c.CanonicalName) + populateByteArray(objectMap, "cerBlob", c.CerBlob, func() any { + return runtime.EncodeByteArray(c.CerBlob, runtime.Base64StdFormat) + }) + populate(objectMap, "domainValidationMethod", c.DomainValidationMethod) + populateDateTimeRFC3339(objectMap, "expirationDate", c.ExpirationDate) + populate(objectMap, "friendlyName", c.FriendlyName) + populate(objectMap, "hostNames", c.HostNames) + populate(objectMap, "hostingEnvironmentProfile", c.HostingEnvironmentProfile) + populateDateTimeRFC3339(objectMap, "issueDate", c.IssueDate) + populate(objectMap, "issuer", c.Issuer) + populate(objectMap, "keyVaultId", c.KeyVaultID) + populate(objectMap, "keyVaultSecretName", c.KeyVaultSecretName) + populate(objectMap, "keyVaultSecretStatus", c.KeyVaultSecretStatus) + populate(objectMap, "password", c.Password) + populateByteArray(objectMap, "pfxBlob", c.PfxBlob, func() any { + return runtime.EncodeByteArray(c.PfxBlob, runtime.Base64StdFormat) + }) + populate(objectMap, "publicKeyHash", c.PublicKeyHash) + populate(objectMap, "selfLink", c.SelfLink) + populate(objectMap, "serverFarmId", c.ServerFarmID) + populate(objectMap, "siteName", c.SiteName) + populate(objectMap, "subjectName", c.SubjectName) + populate(objectMap, "thumbprint", c.Thumbprint) + populate(objectMap, "valid", c.Valid) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CertificateProperties. +func (c *CertificateProperties) 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 "canonicalName": + err = unpopulate(val, "CanonicalName", &c.CanonicalName) + delete(rawMsg, key) + case "cerBlob": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.CerBlob, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "domainValidationMethod": + err = unpopulate(val, "DomainValidationMethod", &c.DomainValidationMethod) + delete(rawMsg, key) + case "expirationDate": + err = unpopulateDateTimeRFC3339(val, "ExpirationDate", &c.ExpirationDate) + delete(rawMsg, key) + case "friendlyName": + err = unpopulate(val, "FriendlyName", &c.FriendlyName) + delete(rawMsg, key) + case "hostNames": + err = unpopulate(val, "HostNames", &c.HostNames) + delete(rawMsg, key) + case "hostingEnvironmentProfile": + err = unpopulate(val, "HostingEnvironmentProfile", &c.HostingEnvironmentProfile) + delete(rawMsg, key) + case "issueDate": + err = unpopulateDateTimeRFC3339(val, "IssueDate", &c.IssueDate) + delete(rawMsg, key) + case "issuer": + err = unpopulate(val, "Issuer", &c.Issuer) + delete(rawMsg, key) + case "keyVaultId": + err = unpopulate(val, "KeyVaultID", &c.KeyVaultID) + delete(rawMsg, key) + case "keyVaultSecretName": + err = unpopulate(val, "KeyVaultSecretName", &c.KeyVaultSecretName) + delete(rawMsg, key) + case "keyVaultSecretStatus": + err = unpopulate(val, "KeyVaultSecretStatus", &c.KeyVaultSecretStatus) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &c.Password) + delete(rawMsg, key) + case "pfxBlob": + if val != nil && string(val) != "null" { + err = runtime.DecodeByteArray(string(val), &c.PfxBlob, runtime.Base64StdFormat) + } + delete(rawMsg, key) + case "publicKeyHash": + err = unpopulate(val, "PublicKeyHash", &c.PublicKeyHash) + delete(rawMsg, key) + case "selfLink": + err = unpopulate(val, "SelfLink", &c.SelfLink) + delete(rawMsg, key) + case "serverFarmId": + err = unpopulate(val, "ServerFarmID", &c.ServerFarmID) + delete(rawMsg, key) + case "siteName": + err = unpopulate(val, "SiteName", &c.SiteName) + delete(rawMsg, key) + case "subjectName": + err = unpopulate(val, "SubjectName", &c.SubjectName) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &c.Thumbprint) + delete(rawMsg, key) + case "valid": + err = unpopulate(val, "Valid", &c.Valid) + 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 CertificateResource. func (c CertificateResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3299,6 +3461,33 @@ func (c *CertificateResource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CipherSuites. +func (c CipherSuites) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "suites", c.Suites) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CipherSuites. +func (c *CipherSuites) 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 "suites": + err = unpopulate(val, "Suites", &c.Suites) + 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 ClientRegistration. func (c ClientRegistration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -19734,6 +19923,7 @@ func (s *SitePhpErrorLogFlagProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SiteProperties. func (s SiteProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "autoGeneratedDomainNameLabelScope", s.AutoGeneratedDomainNameLabelScope) populate(objectMap, "availabilityState", s.AvailabilityState) populate(objectMap, "clientAffinityEnabled", s.ClientAffinityEnabled) populate(objectMap, "clientCertEnabled", s.ClientCertEnabled) @@ -19748,6 +19938,7 @@ func (s SiteProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "defaultHostName", s.DefaultHostName) populate(objectMap, "enabled", s.Enabled) populate(objectMap, "enabledHostNames", s.EnabledHostNames) + populate(objectMap, "endToEndEncryptionEnabled", s.EndToEndEncryptionEnabled) populate(objectMap, "functionAppConfig", s.FunctionAppConfig) populate(objectMap, "httpsOnly", s.HTTPSOnly) populate(objectMap, "hostNameSslStates", s.HostNameSSLStates) @@ -19755,6 +19946,7 @@ func (s SiteProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "hostNamesDisabled", s.HostNamesDisabled) populate(objectMap, "hostingEnvironmentProfile", s.HostingEnvironmentProfile) populate(objectMap, "hyperV", s.HyperV) + populate(objectMap, "ipMode", s.IPMode) populate(objectMap, "inProgressOperationId", s.InProgressOperationID) populate(objectMap, "isDefaultContainer", s.IsDefaultContainer) populate(objectMap, "isXenon", s.IsXenon) @@ -19770,6 +19962,7 @@ func (s SiteProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "reserved", s.Reserved) populate(objectMap, "resourceConfig", s.ResourceConfig) populate(objectMap, "resourceGroup", s.ResourceGroup) + populate(objectMap, "sku", s.SKU) populate(objectMap, "scmSiteAlsoStopped", s.ScmSiteAlsoStopped) populate(objectMap, "serverFarmId", s.ServerFarmID) populate(objectMap, "siteConfig", s.SiteConfig) @@ -19798,6 +19991,9 @@ func (s *SiteProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "autoGeneratedDomainNameLabelScope": + err = unpopulate(val, "AutoGeneratedDomainNameLabelScope", &s.AutoGeneratedDomainNameLabelScope) + delete(rawMsg, key) case "availabilityState": err = unpopulate(val, "AvailabilityState", &s.AvailabilityState) delete(rawMsg, key) @@ -19840,6 +20036,9 @@ func (s *SiteProperties) UnmarshalJSON(data []byte) error { case "enabledHostNames": err = unpopulate(val, "EnabledHostNames", &s.EnabledHostNames) delete(rawMsg, key) + case "endToEndEncryptionEnabled": + err = unpopulate(val, "EndToEndEncryptionEnabled", &s.EndToEndEncryptionEnabled) + delete(rawMsg, key) case "functionAppConfig": err = unpopulate(val, "FunctionAppConfig", &s.FunctionAppConfig) delete(rawMsg, key) @@ -19861,6 +20060,9 @@ func (s *SiteProperties) UnmarshalJSON(data []byte) error { case "hyperV": err = unpopulate(val, "HyperV", &s.HyperV) delete(rawMsg, key) + case "ipMode": + err = unpopulate(val, "IPMode", &s.IPMode) + delete(rawMsg, key) case "inProgressOperationId": err = unpopulate(val, "InProgressOperationID", &s.InProgressOperationID) delete(rawMsg, key) @@ -19906,6 +20108,9 @@ func (s *SiteProperties) UnmarshalJSON(data []byte) error { case "resourceGroup": err = unpopulate(val, "ResourceGroup", &s.ResourceGroup) delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) case "scmSiteAlsoStopped": err = unpopulate(val, "ScmSiteAlsoStopped", &s.ScmSiteAlsoStopped) delete(rawMsg, key) @@ -25612,6 +25817,7 @@ func (w WebSiteInstanceStatusProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "containers", w.Containers) populate(objectMap, "detectorUrl", w.DetectorURL) populate(objectMap, "healthCheckUrl", w.HealthCheckURL) + populate(objectMap, "physicalZone", w.PhysicalZone) populate(objectMap, "state", w.State) populate(objectMap, "statusUrl", w.StatusURL) return json.Marshal(objectMap) @@ -25638,6 +25844,9 @@ func (w *WebSiteInstanceStatusProperties) UnmarshalJSON(data []byte) error { case "healthCheckUrl": err = unpopulate(val, "HealthCheckURL", &w.HealthCheckURL) delete(rawMsg, key) + case "physicalZone": + err = unpopulate(val, "PhysicalZone", &w.PhysicalZone) + delete(rawMsg, key) case "state": err = unpopulate(val, "State", &w.State) delete(rawMsg, key) diff --git a/sdk/resourcemanager/appservice/armappservice/options.go b/sdk/resourcemanager/appservice/armappservice/options.go index a8310baed5d0..8b9995801db5 100644 --- a/sdk/resourcemanager/appservice/armappservice/options.go +++ b/sdk/resourcemanager/appservice/armappservice/options.go @@ -1249,6 +1249,59 @@ 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 { @@ -4084,6 +4137,11 @@ type WebAppsClientUpdateHybridConnectionSlotOptions struct { // placeholder for future optional parameters } +// WebAppsClientUpdateMachineKeyOptions contains the optional parameters for the WebAppsClient.UpdateMachineKey method. +type WebAppsClientUpdateMachineKeyOptions struct { + // placeholder for future optional parameters +} + // WebAppsClientUpdateMetadataOptions contains the optional parameters for the WebAppsClient.UpdateMetadata method. type WebAppsClientUpdateMetadataOptions struct { // placeholder for future optional parameters diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client.go b/sdk/resourcemanager/appservice/armappservice/plans_client.go index e54d1381607c..5d7b813e1394 100644 --- a/sdk/resourcemanager/appservice/armappservice/plans_client.go +++ b/sdk/resourcemanager/appservice/armappservice/plans_client.go @@ -47,7 +47,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 2023-12-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 +73,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 2023-12-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" @@ -115,7 +115,7 @@ func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +127,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 2023-12-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. @@ -185,7 +185,7 @@ func (client *PlansClient) createOrUpdateVnetRouteCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +206,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 2023-12-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. @@ -251,7 +251,7 @@ func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +260,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 2023-12-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. @@ -316,7 +316,7 @@ func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +325,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 2023-12-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. @@ -380,7 +380,7 @@ func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +389,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 2023-12-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. @@ -435,7 +435,7 @@ func (client *PlansClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +453,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 2023-12-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. @@ -510,7 +510,7 @@ func (client *PlansClient) getHybridConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +528,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 2023-12-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 @@ -575,7 +575,7 @@ func (client *PlansClient) getHybridConnectionPlanLimitCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +593,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 2023-12-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. @@ -649,7 +649,7 @@ func (client *PlansClient) getRouteForVnetCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +667,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 2023-12-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. @@ -713,7 +713,7 @@ func (client *PlansClient) getServerFarmSKUsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +731,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 2023-12-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. @@ -783,7 +783,7 @@ func (client *PlansClient) getVnetFromServerFarmCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +801,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 2023-12-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. @@ -857,7 +857,7 @@ func (client *PlansClient) getVnetGatewayCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +874,7 @@ func (client *PlansClient) getVnetGatewayHandleResponse(resp *http.Response) (Pl // NewListPager - Description for Get all App Service plans for a subscription. // -// Generated from API version 2023-12-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 +911,7 @@ func (client *PlansClient) listCreateRequest(ctx context.Context, options *Plans return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Detailed != nil { reqQP.Set("detailed", strconv.FormatBool(*options.Detailed)) } @@ -931,7 +931,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 2023-12-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. @@ -974,7 +974,7 @@ func (client *PlansClient) listByResourceGroupCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +992,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 2023-12-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. @@ -1038,7 +1038,7 @@ func (client *PlansClient) listCapabilitiesCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1056,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 2023-12-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. @@ -1113,7 +1113,7 @@ func (client *PlansClient) listHybridConnectionKeysCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1130,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 2023-12-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 @@ -1178,7 +1178,7 @@ func (client *PlansClient) listHybridConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1196,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 2023-12-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. @@ -1247,7 +1247,7 @@ func (client *PlansClient) listRoutesForVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1264,7 @@ func (client *PlansClient) listRoutesForVnetHandleResponse(resp *http.Response) // NewListUsagesPager - Description for Gets server farm usage information // -// Generated from API version 2023-12-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 +1311,7 @@ func (client *PlansClient) listUsagesCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1334,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 2023-12-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. @@ -1380,7 +1380,7 @@ func (client *PlansClient) listVnetsCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1397,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 2023-12-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 +1450,7 @@ func (client *PlansClient) listWebAppsCreateRequest(ctx context.Context, resourc if options != nil && options.Top != nil { reqQP.Set("$top", *options.Top) } - reqQP.Set("api-version", "2023-12-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 +1472,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 2023-12-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. @@ -1530,7 +1530,7 @@ func (client *PlansClient) listWebAppsByHybridConnectionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1548,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 2023-12-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. @@ -1598,7 +1598,7 @@ func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1607,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 2023-12-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 +1652,7 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -1664,7 +1664,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 2023-12-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. @@ -1711,7 +1711,7 @@ func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1732,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 2023-12-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. @@ -1789,7 +1789,7 @@ func (client *PlansClient) updateVnetGatewayCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1810,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 2023-12-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. @@ -1867,7 +1867,7 @@ func (client *PlansClient) updateVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 68f2e4414a7b..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 6b0615dd371a..a901337edd4b 100644 --- a/sdk/resourcemanager/appservice/armappservice/provider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/provider_client.go @@ -45,7 +45,7 @@ func NewProviderClient(subscriptionID string, credential azcore.TokenCredential, // NewGetAvailableStacksPager - Description for Get available application frameworks and their versions // -// Generated from API version 2023-12-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 +79,7 @@ func (client *ProviderClient) getAvailableStacksCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } @@ -99,7 +99,7 @@ func (client *ProviderClient) getAvailableStacksHandleResponse(resp *http.Respon // NewGetAvailableStacksOnPremPager - Description for Get available application frameworks and their versions // -// Generated from API version 2023-12-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 +137,7 @@ func (client *ProviderClient) getAvailableStacksOnPremCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } @@ -157,7 +157,7 @@ func (client *ProviderClient) getAvailableStacksOnPremHandleResponse(resp *http. // NewGetFunctionAppStacksPager - Description for Get available Function app frameworks and their versions // -// Generated from API version 2023-12-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 +191,7 @@ func (client *ProviderClient) getFunctionAppStacksCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -212,7 +212,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 2023-12-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 +251,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -271,7 +271,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationHandleResponse(resp // NewGetWebAppStacksPager - Description for Get available Web app frameworks and their versions // -// Generated from API version 2023-12-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 +305,7 @@ func (client *ProviderClient) getWebAppStacksCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -325,7 +325,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 2023-12-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 +364,7 @@ func (client *ProviderClient) getWebAppStacksForLocationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -385,7 +385,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 2023-12-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] { @@ -419,7 +419,7 @@ func (client *ProviderClient) listOperationsCreateRequest(ctx context.Context, o return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 590974f23eda..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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, "2023-12-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, "2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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, "2023-12-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, "2023-12-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 6b3f7bc3d2e6..9b2eb373f25f 100644 --- a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go +++ b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go @@ -47,7 +47,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 2023-12-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 @@ -93,7 +93,7 @@ func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +103,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 2023-12-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 @@ -149,7 +149,7 @@ func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +158,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 2023-12-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 @@ -209,7 +209,7 @@ func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +219,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 2023-12-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 @@ -270,7 +270,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +280,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c // in the future. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - name - Rule name // - options - RecommendationsClientDisableRecommendationForSubscriptionOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSubscription // method. @@ -321,7 +321,7 @@ func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +330,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 2023-12-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 +382,7 @@ func (client *RecommendationsClient) getRuleDetailsByHostingEnvironmentCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } @@ -406,7 +406,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 2023-12-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 +458,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } @@ -481,7 +481,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppHandleResponse(resp * // NewListPager - Description for List all recommendations for a subscription. // -// Generated from API version 2023-12-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 +519,7 @@ func (client *RecommendationsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -545,7 +545,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 2023-12-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 +593,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } @@ -618,7 +618,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentHandleRespo // NewListHistoryForWebAppPager - Description for Get past recommendations for an app, optionally specified by the time range. // -// Generated from API version 2023-12-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 +666,7 @@ func (client *RecommendationsClient) listHistoryForWebAppCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } @@ -691,7 +691,7 @@ func (client *RecommendationsClient) listHistoryForWebAppHandleResponse(resp *ht // NewListRecommendedRulesForHostingEnvironmentPager - Description for Get all recommendations for a hosting environment. // -// Generated from API version 2023-12-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 +739,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -764,7 +764,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentHa // NewListRecommendedRulesForWebAppPager - Description for Get all recommendations for an app. // -// Generated from API version 2023-12-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 +812,7 @@ func (client *RecommendationsClient) listRecommendedRulesForWebAppCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -838,7 +838,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 2023-12-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) { @@ -874,7 +874,7 @@ func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +883,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 2023-12-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 @@ -929,7 +929,7 @@ func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +939,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 2023-12-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 @@ -985,7 +985,7 @@ func (client *RecommendationsClient) resetAllFiltersForWebAppCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 e2047a3edbf9..f387ad79f860 100644 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go +++ b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go @@ -46,7 +46,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 2023-12-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 @@ -93,7 +93,7 @@ func (client *ResourceHealthMetadataClient) getBySiteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +111,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 2023-12-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. @@ -163,7 +163,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +180,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotHandleResponse(resp *ht // NewListPager - Description for List all ResourceHealthMetadata for all sites in the subscription. // -// Generated from API version 2023-12-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] { @@ -218,7 +218,7 @@ func (client *ResourceHealthMetadataClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +236,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 2023-12-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. @@ -279,7 +279,7 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +296,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 2023-12-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 @@ -344,7 +344,7 @@ func (client *ResourceHealthMetadataClient) listBySiteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +361,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 2023-12-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. @@ -414,7 +414,7 @@ func (client *ResourceHealthMetadataClient) listBySiteSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 32d996cea816..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 6f0029efb678..3cf2582eade4 100644 --- a/sdk/resourcemanager/appservice/armappservice/responses.go +++ b/sdk/resourcemanager/appservice/armappservice/responses.go @@ -159,7 +159,7 @@ type CertificatesClientDeleteResponse struct { // CertificatesClientGetResponse contains the response from method CertificatesClient.Get. type CertificatesClientGetResponse struct { // SSL certificate for an app. - AppCertificate + CertificateGetResource } // CertificatesClientListByResourceGroupResponse contains the response from method CertificatesClient.NewListByResourceGroupPager. @@ -1154,6 +1154,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. + CertificateGetResource +} + +// SiteCertificatesClientGetSlotResponse contains the response from method SiteCertificatesClient.GetSlot. +type SiteCertificatesClientGetSlotResponse struct { + // SSL certificate for an app. + CertificateGetResource +} + +// 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. @@ -3903,6 +3961,12 @@ type WebAppsClientUpdateHybridConnectionSlotResponse struct { HybridConnection } +// WebAppsClientUpdateMachineKeyResponse contains the response from method WebAppsClient.UpdateMachineKey. +type WebAppsClientUpdateMachineKeyResponse struct { + // Anything + Interface any +} + // WebAppsClientUpdateMetadataResponse contains the response from method WebAppsClient.UpdateMetadata. type WebAppsClientUpdateMetadataResponse struct { // String dictionary resource. diff --git a/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go new file mode 100644 index 000000000000..03576fcae525 --- /dev/null +++ b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go @@ -0,0 +1,752 @@ +//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" +) + +// 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, options *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, options *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, options *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, options *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, options *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.CertificateGetResource); 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, options *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.CertificateGetResource); 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, options *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, options *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, options *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, options *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 9de35ad192bd..3ef04c9bdd6d 100644 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go +++ b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go @@ -47,7 +47,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 2023-12-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 +74,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 2023-12-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" @@ -120,7 +120,7 @@ func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +132,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 2023-12-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. @@ -185,7 +185,7 @@ func (client *StaticSitesClient) createOrUpdateBasicAuthCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +206,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 2023-12-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. @@ -264,7 +264,7 @@ func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +285,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 2023-12-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. @@ -338,7 +338,7 @@ func (client *StaticSitesClient) createOrUpdateDatabaseConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +360,7 @@ func (client *StaticSitesClient) createOrUpdateDatabaseConnectionHandleResponse( // existing static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +387,7 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSite(ctx context.Conte // static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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" @@ -429,7 +429,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +441,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 2023-12-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. @@ -489,7 +489,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +510,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 2023-12-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. @@ -563,7 +563,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +585,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsHandleR // site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -638,7 +638,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +660,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting // group and static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +689,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 2023-12-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" @@ -735,7 +735,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +748,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -796,7 +796,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +817,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 2023-12-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 @@ -864,7 +864,7 @@ func (client *StaticSitesClient) createUserRolesInvitationLinkCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +885,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 2023-12-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 +911,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 2023-12-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" @@ -953,7 +953,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +966,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +993,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 2023-12-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" @@ -1039,7 +1039,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1051,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 2023-12-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. @@ -1107,7 +1107,7 @@ func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1116,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 2023-12-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. @@ -1167,7 +1167,7 @@ func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1176,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 2023-12-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 +1202,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 2023-12-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" @@ -1248,7 +1248,7 @@ func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1257,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 2023-12-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 +1282,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 2023-12-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" @@ -1324,7 +1324,7 @@ func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1333,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 2023-12-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 +1359,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 2023-12-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" @@ -1405,7 +1405,7 @@ func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1414,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 2023-12-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 +1440,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 2023-12-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" @@ -1486,7 +1486,7 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1495,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 2023-12-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. @@ -1551,7 +1551,7 @@ func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1560,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 2023-12-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 +1585,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 2023-12-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" @@ -1627,7 +1627,7 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1636,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 2023-12-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. @@ -1687,7 +1687,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1697,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea // site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -1753,7 +1753,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuil return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1762,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 2023-12-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. @@ -1814,7 +1814,7 @@ func (client *StaticSitesClient) getBasicAuthCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1832,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 2023-12-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. @@ -1889,7 +1889,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1907,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 2023-12-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. @@ -1964,7 +1964,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1981,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsHandleResp // NewGetBuildDatabaseConnectionsPager - Returns overviews of database connections for a static site build // -// Generated from API version 2023-12-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. @@ -2034,7 +2034,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2051,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsHandleResponse(resp // NewGetBuildDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site build // -// Generated from API version 2023-12-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. @@ -2104,7 +2104,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2122,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 2023-12-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. @@ -2174,7 +2174,7 @@ func (client *StaticSitesClient) getDatabaseConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2192,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 2023-12-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. @@ -2244,7 +2244,7 @@ func (client *StaticSitesClient) getDatabaseConnectionWithDetailsCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2261,7 @@ func (client *StaticSitesClient) getDatabaseConnectionWithDetailsHandleResponse( // NewGetDatabaseConnectionsPager - Returns overviews of database connections for a static site // -// Generated from API version 2023-12-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 @@ -2309,7 +2309,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2326,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsHandleResponse(resp *http // NewGetDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site // -// Generated from API version 2023-12-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 @@ -2374,7 +2374,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2392,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 2023-12-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 @@ -2444,7 +2444,7 @@ func (client *StaticSitesClient) getLinkedBackendCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2462,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 2023-12-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 @@ -2519,7 +2519,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2536,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildHandleResponse(resp *ht // NewGetLinkedBackendsPager - Returns details of all backends linked to a static site // -// Generated from API version 2023-12-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 @@ -2584,7 +2584,7 @@ func (client *StaticSitesClient) getLinkedBackendsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2601,7 @@ func (client *StaticSitesClient) getLinkedBackendsHandleResponse(resp *http.Resp // NewGetLinkedBackendsForBuildPager - Returns details of all backends linked to a static site build // -// Generated from API version 2023-12-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 @@ -2654,7 +2654,7 @@ func (client *StaticSitesClient) getLinkedBackendsForBuildCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2672,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 2023-12-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. @@ -2724,7 +2724,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2742,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 2023-12-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 @@ -2790,7 +2790,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionListCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2808,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 2023-12-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 @@ -2855,7 +2855,7 @@ func (client *StaticSitesClient) getPrivateLinkResourcesCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2873,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 2023-12-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 @@ -2920,7 +2920,7 @@ func (client *StaticSitesClient) getStaticSiteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2938,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 2023-12-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. @@ -2990,7 +2990,7 @@ func (client *StaticSitesClient) getStaticSiteBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3007,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 2023-12-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 @@ -3055,7 +3055,7 @@ func (client *StaticSitesClient) getStaticSiteBuildsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3073,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 2023-12-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. @@ -3125,7 +3125,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3142,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainHandleResponse(resp *h // NewGetStaticSitesByResourceGroupPager - Description for Gets all static sites in the specified resource group. // -// Generated from API version 2023-12-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. @@ -3185,7 +3185,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3204,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupHandleResponse(res // with a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -3256,7 +3256,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3275,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteHandleRe // with a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -3332,7 +3332,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3350,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 2023-12-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 @@ -3398,7 +3398,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3416,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 2023-12-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. @@ -3469,7 +3469,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3487,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 2023-12-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 +3514,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 2023-12-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" @@ -3560,7 +3560,7 @@ func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3572,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 2023-12-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 +3600,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 2023-12-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" @@ -3650,7 +3650,7 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3661,7 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con // NewListPager - Description for Get all Static Sites for a subscription. // -// Generated from API version 2023-12-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]{ @@ -3698,7 +3698,7 @@ func (client *StaticSitesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3715,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 2023-12-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 @@ -3763,7 +3763,7 @@ func (client *StaticSitesClient) listBasicAuthCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3781,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 2023-12-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 @@ -3828,7 +3828,7 @@ func (client *StaticSitesClient) listStaticSiteAppSettingsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3846,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 2023-12-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. @@ -3898,7 +3898,7 @@ func (client *StaticSitesClient) listStaticSiteBuildAppSettingsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3916,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 2023-12-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. @@ -3968,7 +3968,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3985,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsHandleRes // NewListStaticSiteBuildFunctionsPager - Description for Gets the functions of a particular static site build. // -// Generated from API version 2023-12-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. @@ -4038,7 +4038,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionsCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4056,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 2023-12-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 @@ -4103,7 +4103,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4120,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesHandleResponse(res // NewListStaticSiteCustomDomainsPager - Description for Gets all static site custom domains for a particular static site. // -// Generated from API version 2023-12-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 @@ -4168,7 +4168,7 @@ func (client *StaticSitesClient) listStaticSiteCustomDomainsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4186,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 2023-12-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 @@ -4233,7 +4233,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4250,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsHandleResponse // NewListStaticSiteFunctionsPager - Description for Gets the functions of a static site. // -// Generated from API version 2023-12-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 @@ -4298,7 +4298,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4316,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 2023-12-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 @@ -4363,7 +4363,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4380,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsHandleResponse(resp *http. // NewListStaticSiteUsersPager - Description for Gets the list of users of a static site. // -// Generated from API version 2023-12-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. @@ -4433,7 +4433,7 @@ func (client *StaticSitesClient) listStaticSiteUsersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4451,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 2023-12-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 @@ -4494,7 +4494,7 @@ func (client *StaticSitesClient) previewWorkflowCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4516,7 @@ func (client *StaticSitesClient) previewWorkflowHandleResponse(resp *http.Respon // site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +4543,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 2023-12-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 +4589,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } @@ -4605,7 +4605,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr // static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +4634,7 @@ func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticS // site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +4684,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBu return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } @@ -4699,7 +4699,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 2023-12-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 @@ -4745,7 +4745,7 @@ func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4757,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 2023-12-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 +4808,7 @@ func (client *StaticSitesClient) unlinkBackendCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } @@ -4820,7 +4820,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 2023-12-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 +4876,7 @@ func (client *StaticSitesClient) unlinkBackendFromBuildCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } @@ -4888,7 +4888,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 2023-12-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. @@ -4946,7 +4946,7 @@ func (client *StaticSitesClient) updateBuildDatabaseConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4967,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 2023-12-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. @@ -5020,7 +5020,7 @@ func (client *StaticSitesClient) updateDatabaseConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5042,7 @@ func (client *StaticSitesClient) updateDatabaseConnectionHandleResponse(resp *ht // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -5090,7 +5090,7 @@ func (client *StaticSitesClient) updateStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5111,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 2023-12-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. @@ -5169,7 +5169,7 @@ func (client *StaticSitesClient) updateStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5190,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 2023-12-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 +5217,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 2023-12-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" @@ -5263,7 +5263,7 @@ func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5275,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 2023-12-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 +5303,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 2023-12-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" @@ -5353,7 +5353,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5366,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex // a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +5395,7 @@ func (client *StaticSitesClient) BeginValidateCustomDomainCanBeAddedToStaticSite // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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" @@ -5441,7 +5441,7 @@ func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSiteCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 1737c722f6f7..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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-27T04: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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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-27T04: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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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-27T04: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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/topleveldomains_client.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go index 8408bd448aaf..a05d0066f543 100644 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go @@ -46,7 +46,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 2023-12-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) { @@ -87,7 +87,7 @@ func (client *TopLevelDomainsClient) getCreateRequest(ctx context.Context, name return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +104,7 @@ func (client *TopLevelDomainsClient) getHandleResponse(resp *http.Response) (Top // NewListPager - Description for Get all top-level domains supported for registration. // -// Generated from API version 2023-12-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] { @@ -142,7 +142,7 @@ func (client *TopLevelDomainsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +159,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 2023-12-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 @@ -203,7 +203,7 @@ func (client *TopLevelDomainsClient) listAgreementsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 68d494ab8b49..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-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 2f182a5fe76f..628825d68886 100644 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/webapps_client.go @@ -47,7 +47,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 2023-12-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. @@ -99,7 +99,7 @@ func (client *WebAppsClient) addPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +120,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 2023-12-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. @@ -179,7 +179,7 @@ func (client *WebAppsClient) addPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +200,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 2023-12-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 +247,7 @@ func (client *WebAppsClient) analyzeCustomHostnameCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } @@ -268,7 +268,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 2023-12-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 +320,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } @@ -342,7 +342,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotHandleResponse(resp *http. // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -389,7 +389,7 @@ func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +401,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 2023-12-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. @@ -453,7 +453,7 @@ func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +465,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 2023-12-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 +490,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 2023-12-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" @@ -536,7 +536,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +548,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 2023-12-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 +573,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 2023-12-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" @@ -623,7 +623,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +635,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 2023-12-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. @@ -682,7 +682,7 @@ func (client *WebAppsClient) backupCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +703,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 2023-12-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. @@ -755,7 +755,7 @@ func (client *WebAppsClient) backupSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +776,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 2023-12-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. @@ -829,7 +829,7 @@ func (client *WebAppsClient) createDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +850,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 2023-12-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. @@ -908,7 +908,7 @@ func (client *WebAppsClient) createDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +929,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 2023-12-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 +956,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 2023-12-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" @@ -1002,7 +1002,7 @@ func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1014,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 2023-12-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 +1042,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 2023-12-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" @@ -1092,7 +1092,7 @@ func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1104,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 2023-12-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 +1131,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 2023-12-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" @@ -1177,7 +1177,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1189,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 2023-12-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 +1217,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 2023-12-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" @@ -1267,7 +1267,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1279,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 2023-12-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 +1305,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 2023-12-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" @@ -1347,7 +1347,7 @@ func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1359,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 2023-12-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 +1386,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 2023-12-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" @@ -1432,7 +1432,7 @@ func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1444,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 2023-12-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 @@ -1491,7 +1491,7 @@ func (client *WebAppsClient) createOneDeployOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1510,7 @@ func (client *WebAppsClient) createOneDeployOperationHandleResponse(resp *http.R // existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +1537,7 @@ func (client *WebAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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" @@ -1579,7 +1579,7 @@ func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1591,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 2023-12-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. @@ -1639,7 +1639,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1660,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 2023-12-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. @@ -1713,7 +1713,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1735,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotHandleResponse(resp // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -1788,7 +1788,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1810,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierHandleRespon // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -1868,7 +1868,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1889,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 2023-12-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. @@ -1947,7 +1947,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1968,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 2023-12-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. @@ -2031,7 +2031,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2052,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 2023-12-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. @@ -2105,7 +2105,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2126,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 2023-12-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. @@ -2184,7 +2184,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2205,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 2023-12-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. @@ -2263,7 +2263,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2284,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 2023-12-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. @@ -2347,7 +2347,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2368,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 2023-12-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. @@ -2426,7 +2426,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2447,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 2023-12-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. @@ -2510,7 +2510,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2531,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 2023-12-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. @@ -2584,7 +2584,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2605,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 2023-12-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. @@ -2663,7 +2663,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2685,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotHandleResponse(r // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -2738,7 +2738,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2760,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionHandleResponse( // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -2819,7 +2819,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2840,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 2023-12-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 @@ -2893,7 +2893,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2914,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 2023-12-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. @@ -2972,7 +2972,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +2994,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerSlotHandleResponse(resp // an existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 +3023,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 2023-12-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" @@ -3069,7 +3069,7 @@ func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3081,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 2023-12-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 +3107,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 2023-12-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" @@ -3149,7 +3149,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3161,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 2023-12-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 +3189,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 2023-12-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" @@ -3235,7 +3235,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3250,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 2023-12-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. @@ -3298,7 +3298,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3322,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 2023-12-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 @@ -3376,7 +3376,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3398,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -3451,7 +3451,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3473,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionHandleResponse(resp *ht // (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -3531,7 +3531,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3553,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayHandleResponse(r // it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -3617,7 +3617,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3639,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotHandleRespon // the connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -3698,7 +3698,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3719,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 2023-12-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 +3764,7 @@ func (client *WebAppsClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } @@ -3779,7 +3779,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 2023-12-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. @@ -3829,7 +3829,7 @@ func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3838,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 2023-12-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 @@ -3884,7 +3884,7 @@ func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3893,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 2023-12-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 @@ -3945,7 +3945,7 @@ func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +3954,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 2023-12-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. @@ -4010,7 +4010,7 @@ func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4019,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 2023-12-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. @@ -4070,7 +4070,7 @@ func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4079,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 2023-12-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. @@ -4135,7 +4135,7 @@ func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4144,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 2023-12-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. @@ -4195,7 +4195,7 @@ func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4204,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 2023-12-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. @@ -4260,7 +4260,7 @@ func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4269,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 2023-12-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. @@ -4320,7 +4320,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4329,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 2023-12-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. @@ -4385,7 +4385,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4394,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 2023-12-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. @@ -4444,7 +4444,7 @@ func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4453,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 2023-12-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. @@ -4509,7 +4509,7 @@ func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4518,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 2023-12-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. @@ -4579,7 +4579,7 @@ func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4588,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 2023-12-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. @@ -4639,7 +4639,7 @@ func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4648,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 2023-12-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. @@ -4704,7 +4704,7 @@ func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4713,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 2023-12-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. @@ -4769,7 +4769,7 @@ func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4778,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 2023-12-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. @@ -4839,7 +4839,7 @@ func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4848,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 2023-12-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. @@ -4904,7 +4904,7 @@ func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4913,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 2023-12-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. @@ -4974,7 +4974,7 @@ func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +4983,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 2023-12-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. @@ -5039,7 +5039,7 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5049,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5106,7 +5106,7 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5116,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5178,7 +5178,7 @@ func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5187,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 2023-12-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. @@ -5238,7 +5238,7 @@ func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5247,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 2023-12-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. @@ -5304,7 +5304,7 @@ func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5313,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 2023-12-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 +5338,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 2023-12-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" @@ -5384,7 +5384,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5393,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 2023-12-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 +5418,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 2023-12-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" @@ -5468,7 +5468,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5478,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5528,7 +5528,7 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5538,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5594,7 +5594,7 @@ func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5603,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 2023-12-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. @@ -5654,7 +5654,7 @@ func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5663,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 2023-12-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. @@ -5719,7 +5719,7 @@ func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5728,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 2023-12-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. @@ -5779,7 +5779,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5788,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 2023-12-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. @@ -5845,7 +5845,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5854,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 2023-12-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 @@ -5905,7 +5905,7 @@ func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5914,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 2023-12-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. @@ -5970,7 +5970,7 @@ func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +5979,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 2023-12-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. @@ -6030,7 +6030,7 @@ func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6039,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 2023-12-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. @@ -6095,7 +6095,7 @@ func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6104,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 2023-12-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 +6154,7 @@ func (client *WebAppsClient) deleteSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } @@ -6169,7 +6169,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 2023-12-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 +6218,7 @@ func (client *WebAppsClient) deleteSourceControlCreateRequest(ctx context.Contex if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2023-12-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 +6227,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 2023-12-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 +6282,7 @@ func (client *WebAppsClient) deleteSourceControlSlotCreateRequest(ctx context.Co if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2023-12-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 +6291,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 2023-12-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 @@ -6337,7 +6337,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6346,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 2023-12-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. @@ -6397,7 +6397,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6406,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 2023-12-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. @@ -6457,7 +6457,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6466,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 2023-12-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. @@ -6522,7 +6522,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6531,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 2023-12-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. @@ -6582,7 +6582,7 @@ func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6591,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 2023-12-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. @@ -6647,7 +6647,7 @@ func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6656,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 2023-12-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 +6702,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6717,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 2023-12-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 +6768,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6784,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 2023-12-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. @@ -6831,7 +6831,7 @@ func (client *WebAppsClient) discoverBackupCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6853,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 2023-12-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. @@ -6906,7 +6906,7 @@ func (client *WebAppsClient) discoverBackupSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6928,7 @@ func (client *WebAppsClient) discoverBackupSlotHandleResponse(resp *http.Respons // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -6974,7 +6974,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +6984,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -7036,7 +7036,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7045,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 2023-12-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. @@ -7091,7 +7091,7 @@ func (client *WebAppsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7109,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 2023-12-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. @@ -7161,7 +7161,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7179,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 2023-12-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. @@ -7235,7 +7235,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7252,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotHandleResponse(re // NewGetAppSettingsKeyVaultReferencesPager - Description for Gets the config reference app settings and status of an app // -// Generated from API version 2023-12-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 @@ -7300,7 +7300,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7318,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesHandleResponse(resp // NewGetAppSettingsKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status of an // app // -// Generated from API version 2023-12-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 @@ -7370,7 +7370,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7388,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 2023-12-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. @@ -7434,7 +7434,7 @@ func (client *WebAppsClient) getAuthSettingsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7452,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 2023-12-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. @@ -7504,7 +7504,7 @@ func (client *WebAppsClient) getAuthSettingsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7522,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 2023-12-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 @@ -7569,7 +7569,7 @@ func (client *WebAppsClient) getAuthSettingsV2CreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7587,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 2023-12-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. @@ -7639,7 +7639,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7658,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotHandleResponse(resp *http.Resp // V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -7705,7 +7705,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7723,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 2023-12-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. @@ -7775,7 +7775,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7793,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 2023-12-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 @@ -7840,7 +7840,7 @@ func (client *WebAppsClient) getBackupConfigurationCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7858,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 2023-12-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 @@ -7911,7 +7911,7 @@ func (client *WebAppsClient) getBackupConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7929,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 2023-12-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. @@ -7980,7 +7980,7 @@ func (client *WebAppsClient) getBackupStatusCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +7998,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 2023-12-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. @@ -8055,7 +8055,7 @@ func (client *WebAppsClient) getBackupStatusSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8074,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 2023-12-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 @@ -8121,7 +8121,7 @@ func (client *WebAppsClient) getConfigurationCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8140,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 2023-12-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. @@ -8192,7 +8192,7 @@ func (client *WebAppsClient) getConfigurationSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8210,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 2023-12-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. @@ -8262,7 +8262,7 @@ func (client *WebAppsClient) getConfigurationSnapshotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8280,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 2023-12-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. @@ -8337,7 +8337,7 @@ func (client *WebAppsClient) getConfigurationSnapshotSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8355,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 2023-12-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 @@ -8401,7 +8401,7 @@ func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8411,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 2023-12-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. @@ -8462,7 +8462,7 @@ func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8472,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 2023-12-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. @@ -8524,7 +8524,7 @@ func (client *WebAppsClient) getContinuousWebJobCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8542,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 2023-12-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. @@ -8599,7 +8599,7 @@ func (client *WebAppsClient) getContinuousWebJobSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8617,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 2023-12-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. @@ -8668,7 +8668,7 @@ func (client *WebAppsClient) getDeploymentCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8686,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 2023-12-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. @@ -8743,7 +8743,7 @@ func (client *WebAppsClient) getDeploymentSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8761,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 2023-12-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 @@ -8808,7 +8808,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8826,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 2023-12-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 @@ -8879,7 +8879,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8897,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 2023-12-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. @@ -8949,7 +8949,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +8967,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 2023-12-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. @@ -9024,7 +9024,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9042,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 2023-12-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. @@ -9088,7 +9088,7 @@ func (client *WebAppsClient) getFtpAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9106,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 2023-12-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 @@ -9157,7 +9157,7 @@ func (client *WebAppsClient) getFtpAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9175,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 2023-12-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. @@ -9226,7 +9226,7 @@ func (client *WebAppsClient) getFunctionCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9244,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 2023-12-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 @@ -9291,7 +9291,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9309,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 2023-12-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. @@ -9361,7 +9361,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9379,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 2023-12-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. @@ -9431,7 +9431,7 @@ func (client *WebAppsClient) getHostNameBindingCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9449,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 2023-12-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. @@ -9506,7 +9506,7 @@ func (client *WebAppsClient) getHostNameBindingSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9524,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 2023-12-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. @@ -9581,7 +9581,7 @@ func (client *WebAppsClient) getHybridConnectionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9599,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 2023-12-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. @@ -9661,7 +9661,7 @@ func (client *WebAppsClient) getHybridConnectionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9679,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 2023-12-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. @@ -9736,7 +9736,7 @@ func (client *WebAppsClient) getInstanceFunctionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9754,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 2023-12-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. @@ -9804,7 +9804,7 @@ func (client *WebAppsClient) getInstanceInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9822,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 2023-12-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. @@ -9878,7 +9878,7 @@ func (client *WebAppsClient) getInstanceInfoSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9896,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 2023-12-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. @@ -9948,7 +9948,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +9966,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 2023-12-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. @@ -10023,7 +10023,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10041,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 2023-12-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. @@ -10093,7 +10093,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10111,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 2023-12-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. @@ -10168,7 +10168,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10186,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10244,7 +10244,7 @@ func (client *WebAppsClient) getInstanceProcessCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10263,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10320,7 +10320,7 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10331,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10393,7 +10393,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10404,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10467,7 +10467,7 @@ func (client *WebAppsClient) getInstanceProcessModuleCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10486,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10554,7 +10554,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10573,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotHandleResponse(resp *ht // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10636,7 +10636,7 @@ func (client *WebAppsClient) getInstanceProcessSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10654,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 2023-12-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. @@ -10711,7 +10711,7 @@ func (client *WebAppsClient) getInstanceWorkflowSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10729,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 2023-12-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. @@ -10775,7 +10775,7 @@ func (client *WebAppsClient) getMSDeployLogCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10793,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 2023-12-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. @@ -10845,7 +10845,7 @@ func (client *WebAppsClient) getMSDeployLogSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10863,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 2023-12-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 @@ -10910,7 +10910,7 @@ func (client *WebAppsClient) getMSDeployStatusCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10928,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 2023-12-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. @@ -10980,7 +10980,7 @@ func (client *WebAppsClient) getMSDeployStatusSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +10999,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 2023-12-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 @@ -11046,7 +11046,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11065,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 2023-12-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. @@ -11117,7 +11117,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11136,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotHandleResponse(resp *http. // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -11188,7 +11188,7 @@ func (client *WebAppsClient) getNetworkTraceOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11207,7 @@ func (client *WebAppsClient) getNetworkTraceOperationHandleResponse(resp *http.R // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -11264,7 +11264,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11283,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotHandleResponse(resp *ht // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -11340,7 +11340,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2CreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11359,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2HandleResponse(resp * // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -11411,7 +11411,7 @@ func (client *WebAppsClient) getNetworkTraceOperationV2CreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11429,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 2023-12-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. @@ -11481,7 +11481,7 @@ func (client *WebAppsClient) getNetworkTracesCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11499,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 2023-12-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. @@ -11556,7 +11556,7 @@ func (client *WebAppsClient) getNetworkTracesSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11574,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 2023-12-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. @@ -11631,7 +11631,7 @@ func (client *WebAppsClient) getNetworkTracesSlotV2CreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11649,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 2023-12-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. @@ -11701,7 +11701,7 @@ func (client *WebAppsClient) getNetworkTracesV2CreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11720,7 @@ func (client *WebAppsClient) getNetworkTracesV2HandleResponse(resp *http.Respons // site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -11767,7 +11767,7 @@ func (client *WebAppsClient) getOneDeployStatusCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11785,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 2023-12-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. @@ -11836,7 +11836,7 @@ func (client *WebAppsClient) getPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11854,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 2023-12-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. @@ -11911,7 +11911,7 @@ func (client *WebAppsClient) getPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11930,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 2023-12-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 @@ -11977,7 +11977,7 @@ func (client *WebAppsClient) getPrivateAccessCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +11996,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 2023-12-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. @@ -12048,7 +12048,7 @@ func (client *WebAppsClient) getPrivateAccessSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12066,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 2023-12-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. @@ -12118,7 +12118,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12136,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 2023-12-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 @@ -12184,7 +12184,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12202,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListHandleResponse(resp // NewGetPrivateEndpointConnectionListSlotPager - Description for Gets the list of private endpoint connections associated // with a site // -// Generated from API version 2023-12-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. @@ -12255,7 +12255,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12273,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 2023-12-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. @@ -12330,7 +12330,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12348,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 2023-12-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 @@ -12395,7 +12395,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12413,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 2023-12-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 @@ -12464,7 +12464,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12482,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12533,7 +12533,7 @@ func (client *WebAppsClient) getProcessCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12551,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12601,7 +12601,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12612,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12668,7 +12668,7 @@ func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12678,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12735,7 +12735,7 @@ func (client *WebAppsClient) getProcessModuleCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12753,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12815,7 +12815,7 @@ func (client *WebAppsClient) getProcessModuleSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12833,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12889,7 +12889,7 @@ func (client *WebAppsClient) getProcessSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12907,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 2023-12-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 +12933,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 2023-12-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" @@ -12979,7 +12979,7 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +12988,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 2023-12-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. @@ -13040,7 +13040,7 @@ func (client *WebAppsClient) getPublicCertificateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13058,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 2023-12-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. @@ -13115,7 +13115,7 @@ func (client *WebAppsClient) getPublicCertificateSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13133,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 2023-12-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. @@ -13185,7 +13185,7 @@ func (client *WebAppsClient) getRelayServiceConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13203,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 2023-12-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. @@ -13261,7 +13261,7 @@ func (client *WebAppsClient) getRelayServiceConnectionSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13279,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 2023-12-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. @@ -13325,7 +13325,7 @@ func (client *WebAppsClient) getScmAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13343,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 2023-12-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 @@ -13394,7 +13394,7 @@ func (client *WebAppsClient) getScmAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13412,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 2023-12-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 @@ -13463,7 +13463,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13481,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 2023-12-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 @@ -13536,7 +13536,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13554,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotHandleR // NewGetSiteConnectionStringKeyVaultReferencesPager - Description for Gets the config reference app settings and status of // an app // -// Generated from API version 2023-12-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 @@ -13602,7 +13602,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13620,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesHandleResp // NewGetSiteConnectionStringKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status // of an app // -// Generated from API version 2023-12-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 @@ -13672,7 +13672,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13690,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 2023-12-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 @@ -13742,7 +13742,7 @@ func (client *WebAppsClient) getSiteContainerCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13760,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 2023-12-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 @@ -13818,7 +13818,7 @@ func (client *WebAppsClient) getSiteContainerSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13836,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 2023-12-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. @@ -13888,7 +13888,7 @@ func (client *WebAppsClient) getSiteExtensionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13906,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 2023-12-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. @@ -13963,7 +13963,7 @@ func (client *WebAppsClient) getSiteExtensionSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +13981,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 2023-12-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 @@ -14028,7 +14028,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14046,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 2023-12-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. @@ -14098,7 +14098,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14116,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 2023-12-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. @@ -14167,7 +14167,7 @@ func (client *WebAppsClient) getSlotCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14185,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 2023-12-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 +14213,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 2023-12-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" @@ -14263,7 +14263,7 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14272,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 2023-12-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 @@ -14319,7 +14319,7 @@ func (client *WebAppsClient) getSourceControlCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14337,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 2023-12-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 @@ -14390,7 +14390,7 @@ func (client *WebAppsClient) getSourceControlSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14408,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 2023-12-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 @@ -14455,7 +14455,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14473,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 2023-12-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 @@ -14526,7 +14526,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14544,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 2023-12-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. @@ -14596,7 +14596,7 @@ func (client *WebAppsClient) getTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14615,7 @@ func (client *WebAppsClient) getTriggeredWebJobHandleResponse(resp *http.Respons // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -14672,7 +14672,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14691,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryHandleResponse(resp *http. // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -14753,7 +14753,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistorySlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14771,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 2023-12-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. @@ -14828,7 +14828,7 @@ func (client *WebAppsClient) getTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14846,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 2023-12-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. @@ -14898,7 +14898,7 @@ func (client *WebAppsClient) getVnetConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14916,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 2023-12-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. @@ -14973,7 +14973,7 @@ func (client *WebAppsClient) getVnetConnectionGatewayCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +14991,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 2023-12-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. @@ -15054,7 +15054,7 @@ func (client *WebAppsClient) getVnetConnectionGatewaySlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15072,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 2023-12-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. @@ -15130,7 +15130,7 @@ func (client *WebAppsClient) getVnetConnectionSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15148,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 2023-12-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. @@ -15199,7 +15199,7 @@ func (client *WebAppsClient) getWebJobCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15217,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 2023-12-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. @@ -15273,7 +15273,7 @@ func (client *WebAppsClient) getWebJobSlotCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15291,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 2023-12-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 @@ -15337,7 +15337,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15347,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 2023-12-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. @@ -15398,7 +15398,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15408,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 2023-12-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. @@ -15459,7 +15459,7 @@ func (client *WebAppsClient) getWorkflowCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15477,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 2023-12-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 +15503,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 2023-12-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" @@ -15549,7 +15549,7 @@ func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15558,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 2023-12-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 +15585,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 2023-12-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" @@ -15635,7 +15635,7 @@ func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15644,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 2023-12-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. @@ -15690,7 +15690,7 @@ func (client *WebAppsClient) isCloneableCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15708,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 2023-12-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. @@ -15759,7 +15759,7 @@ func (client *WebAppsClient) isCloneableSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15776,7 @@ func (client *WebAppsClient) isCloneableSlotHandleResponse(resp *http.Response) // NewListPager - Description for Get all apps for a subscription. // -// Generated from API version 2023-12-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]{ @@ -15813,7 +15813,7 @@ func (client *WebAppsClient) listCreateRequest(ctx context.Context, options *Web return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15831,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 2023-12-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 @@ -15878,7 +15878,7 @@ func (client *WebAppsClient) listApplicationSettingsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15896,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 2023-12-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 @@ -15949,7 +15949,7 @@ func (client *WebAppsClient) listApplicationSettingsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +15967,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 2023-12-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 @@ -16014,7 +16014,7 @@ func (client *WebAppsClient) listAzureStorageAccountsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16032,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 2023-12-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 @@ -16085,7 +16085,7 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16105,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 2023-12-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. @@ -16158,7 +16158,7 @@ func (client *WebAppsClient) listBackupStatusSecretsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16181,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 2023-12-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. @@ -16239,7 +16239,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16259,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotHandleResponse(resp *htt // NewListBackupsPager - Description for Gets existing backups of an app. // -// Generated from API version 2023-12-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. @@ -16306,7 +16306,7 @@ func (client *WebAppsClient) listBackupsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16323,7 @@ func (client *WebAppsClient) listBackupsHandleResponse(resp *http.Response) (Web // NewListBackupsSlotPager - Description for Gets existing backups of an app. // -// Generated from API version 2023-12-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. @@ -16376,7 +16376,7 @@ func (client *WebAppsClient) listBackupsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16394,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 2023-12-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 @@ -16442,7 +16442,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16460,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 2023-12-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 @@ -16512,7 +16512,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16529,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotHandleRes // NewListByResourceGroupPager - Description for Gets all web, mobile, and API apps in the specified resource group. // -// Generated from API version 2023-12-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 +16572,7 @@ func (client *WebAppsClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.IncludeSlots != nil { reqQP.Set("includeSlots", strconv.FormatBool(*options.IncludeSlots)) } @@ -16593,7 +16593,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 2023-12-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 @@ -16641,7 +16641,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16659,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 2023-12-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. @@ -16712,7 +16712,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16729,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotHandleResponse(res // NewListConfigurationsPager - Description for List the configurations of an app // -// Generated from API version 2023-12-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 @@ -16777,7 +16777,7 @@ func (client *WebAppsClient) listConfigurationsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16794,7 @@ func (client *WebAppsClient) listConfigurationsHandleResponse(resp *http.Respons // NewListConfigurationsSlotPager - Description for List the configurations of an app // -// Generated from API version 2023-12-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. @@ -16847,7 +16847,7 @@ func (client *WebAppsClient) listConfigurationsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16865,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 2023-12-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 @@ -16912,7 +16912,7 @@ func (client *WebAppsClient) listConnectionStringsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +16930,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 2023-12-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 @@ -16983,7 +16983,7 @@ func (client *WebAppsClient) listConnectionStringsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17000,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 2023-12-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 @@ -17048,7 +17048,7 @@ func (client *WebAppsClient) listContinuousWebJobsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17065,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 2023-12-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. @@ -17118,7 +17118,7 @@ func (client *WebAppsClient) listContinuousWebJobsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17136,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 2023-12-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". @@ -17188,7 +17188,7 @@ func (client *WebAppsClient) listDeploymentLogCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17206,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 2023-12-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". @@ -17263,7 +17263,7 @@ func (client *WebAppsClient) listDeploymentLogSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17280,7 @@ func (client *WebAppsClient) listDeploymentLogSlotHandleResponse(resp *http.Resp // NewListDeploymentsPager - Description for List deployments for an app, or a deployment slot. // -// Generated from API version 2023-12-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 @@ -17328,7 +17328,7 @@ func (client *WebAppsClient) listDeploymentsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17345,7 @@ func (client *WebAppsClient) listDeploymentsHandleResponse(resp *http.Response) // NewListDeploymentsSlotPager - Description for List deployments for an app, or a deployment slot. // -// Generated from API version 2023-12-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. @@ -17398,7 +17398,7 @@ func (client *WebAppsClient) listDeploymentsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17415,7 @@ func (client *WebAppsClient) listDeploymentsSlotHandleResponse(resp *http.Respon // NewListDomainOwnershipIdentifiersPager - Description for Lists ownership identifiers for domain associated with web app. // -// Generated from API version 2023-12-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 @@ -17463,7 +17463,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17481,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersHandleResponse(resp * // NewListDomainOwnershipIdentifiersSlotPager - Description for Lists ownership identifiers for domain associated with web // app. // -// Generated from API version 2023-12-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. @@ -17534,7 +17534,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17552,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 2023-12-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. @@ -17604,7 +17604,7 @@ func (client *WebAppsClient) listFunctionKeysCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17622,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 2023-12-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. @@ -17679,7 +17679,7 @@ func (client *WebAppsClient) listFunctionKeysSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17697,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 2023-12-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. @@ -17749,7 +17749,7 @@ func (client *WebAppsClient) listFunctionSecretsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17767,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 2023-12-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. @@ -17824,7 +17824,7 @@ func (client *WebAppsClient) listFunctionSecretsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17841,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 2023-12-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 @@ -17889,7 +17889,7 @@ func (client *WebAppsClient) listFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17907,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 2023-12-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. @@ -17953,7 +17953,7 @@ func (client *WebAppsClient) listHostKeysCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +17971,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 2023-12-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. @@ -18023,7 +18023,7 @@ func (client *WebAppsClient) listHostKeysSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18040,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 2023-12-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 @@ -18088,7 +18088,7 @@ func (client *WebAppsClient) listHostNameBindingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18105,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 2023-12-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. @@ -18158,7 +18158,7 @@ func (client *WebAppsClient) listHostNameBindingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18176,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 2023-12-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 @@ -18223,7 +18223,7 @@ func (client *WebAppsClient) listHybridConnectionsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18241,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 2023-12-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. @@ -18293,7 +18293,7 @@ func (client *WebAppsClient) listHybridConnectionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18310,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 2023-12-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. @@ -18363,7 +18363,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18380,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotHandleResponse(resp *http. // NewListInstanceIdentifiersPager - Description for Gets all scale-out instances of an app. // -// Generated from API version 2023-12-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 @@ -18428,7 +18428,7 @@ func (client *WebAppsClient) listInstanceIdentifiersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18445,7 @@ func (client *WebAppsClient) listInstanceIdentifiersHandleResponse(resp *http.Re // NewListInstanceIdentifiersSlotPager - Description for Gets all scale-out instances of an app. // -// Generated from API version 2023-12-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. @@ -18498,7 +18498,7 @@ func (client *WebAppsClient) listInstanceIdentifiersSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18516,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18575,7 +18575,7 @@ func (client *WebAppsClient) listInstanceProcessModulesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18593,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18657,7 +18657,7 @@ func (client *WebAppsClient) listInstanceProcessModulesSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18675,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18734,7 +18734,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18752,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18816,7 +18816,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18834,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 2023-12-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 @@ -18888,7 +18888,7 @@ func (client *WebAppsClient) listInstanceProcessesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18906,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 2023-12-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. @@ -18965,7 +18965,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +18982,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotHandleResponse(resp *http. // NewListInstanceWorkflowsSlotPager - List the workflows for a web site, or a deployment slot. // -// Generated from API version 2023-12-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. @@ -19035,7 +19035,7 @@ func (client *WebAppsClient) listInstanceWorkflowsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19053,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 2023-12-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. @@ -19099,7 +19099,7 @@ func (client *WebAppsClient) listMetadataCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19117,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 2023-12-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. @@ -19169,7 +19169,7 @@ func (client *WebAppsClient) listMetadataSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19187,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 2023-12-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. @@ -19239,7 +19239,7 @@ func (client *WebAppsClient) listNetworkFeaturesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19257,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 2023-12-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. @@ -19314,7 +19314,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19331,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotHandleResponse(resp *http.Re // NewListPerfMonCountersPager - Description for Gets perfmon counters for web app. // -// Generated from API version 2023-12-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 +19379,7 @@ func (client *WebAppsClient) listPerfMonCountersCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19401,7 @@ func (client *WebAppsClient) listPerfMonCountersHandleResponse(resp *http.Respon // NewListPerfMonCountersSlotPager - Description for Gets perfmon counters for web app. // -// Generated from API version 2023-12-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 +19454,7 @@ func (client *WebAppsClient) listPerfMonCountersSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19477,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 2023-12-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 @@ -19524,7 +19524,7 @@ func (client *WebAppsClient) listPremierAddOnsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19542,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 2023-12-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 @@ -19595,7 +19595,7 @@ func (client *WebAppsClient) listPremierAddOnsSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19613,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19666,7 +19666,7 @@ func (client *WebAppsClient) listProcessModulesCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19684,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19742,7 +19742,7 @@ func (client *WebAppsClient) listProcessModulesSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19760,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19813,7 +19813,7 @@ func (client *WebAppsClient) listProcessThreadsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19831,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 2023-12-01 +// Generated from API version 2024-11-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19889,7 +19889,7 @@ func (client *WebAppsClient) listProcessThreadsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19907,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 2023-12-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 @@ -19955,7 +19955,7 @@ func (client *WebAppsClient) listProcessesCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +19973,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 2023-12-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. @@ -20026,7 +20026,7 @@ func (client *WebAppsClient) listProcessesSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20043,7 @@ func (client *WebAppsClient) listProcessesSlotHandleResponse(resp *http.Response // NewListProductionSiteDeploymentStatusesPager - List deployment statuses for an app (or deployment slot, if specified). // -// Generated from API version 2023-12-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 @@ -20091,7 +20091,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20108,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesHandleResponse( // NewListPublicCertificatesPager - Description for Get public certificates for an app or a deployment slot. // -// Generated from API version 2023-12-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 @@ -20156,7 +20156,7 @@ func (client *WebAppsClient) listPublicCertificatesCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20173,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 2023-12-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. @@ -20226,7 +20226,7 @@ func (client *WebAppsClient) listPublicCertificatesSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20244,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 2023-12-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 +20269,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 2023-12-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" @@ -20311,7 +20311,7 @@ func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20320,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 2023-12-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 +20347,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 2023-12-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" @@ -20393,7 +20393,7 @@ func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20402,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 2023-12-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"} @@ -20450,7 +20450,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20464,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -20518,7 +20518,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20531,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 2023-12-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 @@ -20578,7 +20578,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20597,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsHandleResponse(resp *htt // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -20650,7 +20650,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20667,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotHandleResponse(resp // NewListSiteBackupsPager - Description for Gets existing backups of an app. // -// Generated from API version 2023-12-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 @@ -20715,7 +20715,7 @@ func (client *WebAppsClient) listSiteBackupsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20732,7 @@ func (client *WebAppsClient) listSiteBackupsHandleResponse(resp *http.Response) // NewListSiteBackupsSlotPager - Description for Gets existing backups of an app. // -// Generated from API version 2023-12-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. @@ -20785,7 +20785,7 @@ func (client *WebAppsClient) listSiteBackupsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20802,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 2023-12-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 @@ -20850,7 +20850,7 @@ func (client *WebAppsClient) listSiteContainersCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20867,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 2023-12-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 @@ -20921,7 +20921,7 @@ func (client *WebAppsClient) listSiteContainersSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +20938,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 2023-12-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 @@ -20986,7 +20986,7 @@ func (client *WebAppsClient) listSiteExtensionsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21003,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 2023-12-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. @@ -21056,7 +21056,7 @@ func (client *WebAppsClient) listSiteExtensionsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21074,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 2023-12-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 @@ -21121,7 +21121,7 @@ func (client *WebAppsClient) listSitePushSettingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21139,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 2023-12-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. @@ -21191,7 +21191,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21210,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotHandleResponse(resp *http.R // (not swapped). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -21257,7 +21257,7 @@ func (client *WebAppsClient) listSlotConfigurationNamesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21275,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 2023-12-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. @@ -21324,7 +21324,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21344,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionHandleResponse(res // NewListSlotDifferencesSlotPager - Description for Get the difference in configuration settings between two web app slots. // -// Generated from API version 2023-12-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. @@ -21398,7 +21398,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21418,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotHandleResponse(resp *http.Re // NewListSlotSiteDeploymentStatusesSlotPager - List deployment statuses for an app (or deployment slot, if specified). // -// Generated from API version 2023-12-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 @@ -21472,7 +21472,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21489,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotHandleResponse(re // NewListSlotsPager - Description for Gets an app's deployment slots. // -// Generated from API version 2023-12-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. @@ -21536,7 +21536,7 @@ func (client *WebAppsClient) listSlotsCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21553,7 @@ func (client *WebAppsClient) listSlotsHandleResponse(resp *http.Response) (WebAp // NewListSnapshotsPager - Description for Returns all Snapshots to the user. // -// Generated from API version 2023-12-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 @@ -21601,7 +21601,7 @@ func (client *WebAppsClient) listSnapshotsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21618,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 2023-12-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 @@ -21666,7 +21666,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21683,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryHandleResponse(resp *ht // NewListSnapshotsFromDRSecondarySlotPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. // -// Generated from API version 2023-12-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. @@ -21736,7 +21736,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21753,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotHandleResponse(resp // NewListSnapshotsSlotPager - Description for Returns all Snapshots to the user. // -// Generated from API version 2023-12-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. @@ -21806,7 +21806,7 @@ func (client *WebAppsClient) listSnapshotsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21824,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 2023-12-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 @@ -21871,7 +21871,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21889,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 2023-12-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. @@ -21941,7 +21941,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +21959,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 2023-12-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. @@ -22004,7 +22004,7 @@ func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22013,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 2023-12-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. @@ -22064,7 +22064,7 @@ func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22072,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 2023-12-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. @@ -22125,7 +22125,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22143,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 2023-12-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. @@ -22201,7 +22201,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22218,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotHandleResponse(resp * // NewListTriggeredWebJobsPager - Description for List triggered web jobs for an app, or a deployment slot. // -// Generated from API version 2023-12-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 @@ -22266,7 +22266,7 @@ func (client *WebAppsClient) listTriggeredWebJobsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22283,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 2023-12-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. @@ -22336,7 +22336,7 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22353,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 2023-12-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 +22400,7 @@ func (client *WebAppsClient) listUsagesCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22422,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 2023-12-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 +22475,7 @@ func (client *WebAppsClient) listUsagesSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22498,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 2023-12-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 @@ -22545,7 +22545,7 @@ func (client *WebAppsClient) listVnetConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22563,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 2023-12-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 @@ -22616,7 +22616,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22633,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotHandleResponse(resp *http.Re // NewListWebJobsPager - Description for List webjobs for an app, or a deployment slot. // -// Generated from API version 2023-12-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. @@ -22680,7 +22680,7 @@ func (client *WebAppsClient) listWebJobsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22697,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 2023-12-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. @@ -22750,7 +22750,7 @@ func (client *WebAppsClient) listWebJobsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22767,7 @@ func (client *WebAppsClient) listWebJobsSlotHandleResponse(resp *http.Response) // NewListWorkflowsPager - List the workflows for a web site, or a deployment slot. // -// Generated from API version 2023-12-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 @@ -22815,7 +22815,7 @@ func (client *WebAppsClient) listWorkflowsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22833,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 2023-12-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 @@ -22880,7 +22880,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22898,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 2023-12-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. @@ -22950,7 +22950,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +22968,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 2023-12-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 +22994,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 2023-12-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" @@ -23036,7 +23036,7 @@ func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23048,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 2023-12-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 +23075,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 2023-12-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" @@ -23117,7 +23117,7 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23131,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 2023-12-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 @@ -23179,7 +23179,7 @@ func (client *WebAppsClient) putPrivateAccessVnetCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23201,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 2023-12-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. @@ -23254,7 +23254,7 @@ func (client *WebAppsClient) putPrivateAccessVnetSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23275,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 2023-12-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. @@ -23326,7 +23326,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23335,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 2023-12-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. @@ -23391,7 +23391,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23401,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 2023-12-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 @@ -23447,7 +23447,7 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23457,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 2023-12-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 @@ -23509,7 +23509,7 @@ func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23518,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 2023-12-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 +23563,7 @@ func (client *WebAppsClient) restartCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -23578,7 +23578,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 2023-12-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 +23628,7 @@ func (client *WebAppsClient) restartSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -23643,7 +23643,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 2023-12-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 +23669,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 2023-12-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" @@ -23715,7 +23715,7 @@ func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23727,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 2023-12-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 +23753,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 2023-12-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" @@ -23795,7 +23795,7 @@ func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23807,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 2023-12-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 +23834,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 2023-12-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" @@ -23880,7 +23880,7 @@ func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23892,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 2023-12-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 +23918,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 2023-12-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" @@ -23960,7 +23960,7 @@ func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +23972,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 2023-12-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 +23999,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 2023-12-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" @@ -24045,7 +24045,7 @@ func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24057,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 2023-12-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 +24085,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 2023-12-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" @@ -24135,7 +24135,7 @@ func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24147,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 2023-12-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 +24174,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 2023-12-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" @@ -24216,7 +24216,7 @@ func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24228,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 2023-12-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 +24256,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 2023-12-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" @@ -24302,7 +24302,7 @@ func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24314,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 2023-12-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. @@ -24365,7 +24365,7 @@ func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24374,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 2023-12-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. @@ -24430,7 +24430,7 @@ func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24439,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 2023-12-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. @@ -24484,7 +24484,7 @@ func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24493,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 2023-12-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. @@ -24544,7 +24544,7 @@ func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24553,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 2023-12-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. @@ -24609,7 +24609,7 @@ func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24618,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 2023-12-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 +24643,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 2023-12-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 +24685,7 @@ func (client *WebAppsClient) startNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24703,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 2023-12-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 +24729,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 2023-12-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 +24775,7 @@ func (client *WebAppsClient) startNetworkTraceSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24793,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 2023-12-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. @@ -24843,7 +24843,7 @@ func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24852,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 2023-12-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 +24899,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +24926,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 2023-12-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 +24951,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 2023-12-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 +24993,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25011,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 2023-12-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 +25037,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 2023-12-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 +25083,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25101,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 2023-12-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 +25153,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25180,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 2023-12-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. @@ -25225,7 +25225,7 @@ func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25234,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 2023-12-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. @@ -25285,7 +25285,7 @@ func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25294,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 2023-12-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. @@ -25350,7 +25350,7 @@ func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25359,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 2023-12-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 @@ -25405,7 +25405,7 @@ func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25414,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 2023-12-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. @@ -25465,7 +25465,7 @@ func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25474,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 2023-12-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. @@ -25524,7 +25524,7 @@ func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25533,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 2023-12-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 @@ -25579,7 +25579,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25588,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 2023-12-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. @@ -25639,7 +25639,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25648,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 2023-12-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 +25674,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 2023-12-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" @@ -25720,7 +25720,7 @@ func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25732,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 2023-12-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 +25758,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 2023-12-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" @@ -25800,7 +25800,7 @@ func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25812,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 2023-12-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 @@ -25858,7 +25858,7 @@ func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25867,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 2023-12-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. @@ -25918,7 +25918,7 @@ func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25927,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 2023-12-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. @@ -25972,7 +25972,7 @@ func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +25981,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 2023-12-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. @@ -26032,7 +26032,7 @@ func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26041,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 2023-12-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. @@ -26086,7 +26086,7 @@ func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26095,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 2023-12-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. @@ -26146,7 +26146,7 @@ func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26155,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 2023-12-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. @@ -26202,7 +26202,7 @@ func (client *WebAppsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26223,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 2023-12-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. @@ -26271,7 +26271,7 @@ func (client *WebAppsClient) updateApplicationSettingsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26292,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 2023-12-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 @@ -26346,7 +26346,7 @@ func (client *WebAppsClient) updateApplicationSettingsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26367,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 2023-12-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. @@ -26415,7 +26415,7 @@ func (client *WebAppsClient) updateAuthSettingsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26436,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 2023-12-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. @@ -26489,7 +26489,7 @@ func (client *WebAppsClient) updateAuthSettingsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26510,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 2023-12-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. @@ -26558,7 +26558,7 @@ func (client *WebAppsClient) updateAuthSettingsV2CreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26579,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 2023-12-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. @@ -26632,7 +26632,7 @@ func (client *WebAppsClient) updateAuthSettingsV2SlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26653,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 2023-12-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. @@ -26701,7 +26701,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26722,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 2023-12-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 @@ -26776,7 +26776,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26797,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 2023-12-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. @@ -26845,7 +26845,7 @@ func (client *WebAppsClient) updateBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26866,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 2023-12-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 @@ -26920,7 +26920,7 @@ func (client *WebAppsClient) updateBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +26941,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 2023-12-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. @@ -26989,7 +26989,7 @@ func (client *WebAppsClient) updateConfigurationCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27010,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 2023-12-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. @@ -27063,7 +27063,7 @@ func (client *WebAppsClient) updateConfigurationSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27084,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 2023-12-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. @@ -27132,7 +27132,7 @@ func (client *WebAppsClient) updateConnectionStringsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27153,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 2023-12-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 @@ -27207,7 +27207,7 @@ func (client *WebAppsClient) updateConnectionStringsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27228,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 2023-12-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. @@ -27276,7 +27276,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27297,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 2023-12-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 @@ -27351,7 +27351,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27373,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotHandleResponse(resp * // ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -27426,7 +27426,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27448,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierHandleResponse(resp // existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -27506,7 +27506,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27527,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 2023-12-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 @@ -27574,7 +27574,7 @@ func (client *WebAppsClient) updateFtpAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27595,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 2023-12-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 @@ -27646,7 +27646,7 @@ func (client *WebAppsClient) updateFtpAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27667,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 2023-12-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. @@ -27725,7 +27725,7 @@ func (client *WebAppsClient) updateHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +27746,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 2023-12-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. @@ -27809,7 +27809,7 @@ func (client *WebAppsClient) updateHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -27827,10 +27827,75 @@ func (client *WebAppsClient) updateHybridConnectionSlotHandleResponse(resp *http return result, nil } +// UpdateMachineKey - Updates the machine key of an app. +// If the operation fails it returns an *azcore.ResponseError type. +// +// 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 +// method. +func (client *WebAppsClient) UpdateMachineKey(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientUpdateMachineKeyOptions) (WebAppsClientUpdateMachineKeyResponse, error) { + var err error + const operationName = "WebAppsClient.UpdateMachineKey" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateMachineKeyCreateRequest(ctx, resourceGroupName, name, options) + if err != nil { + return WebAppsClientUpdateMachineKeyResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return WebAppsClientUpdateMachineKeyResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return WebAppsClientUpdateMachineKeyResponse{}, err + } + resp, err := client.updateMachineKeyHandleResponse(httpResp) + return resp, err +} + +// updateMachineKeyCreateRequest creates the UpdateMachineKey request. +func (client *WebAppsClient) updateMachineKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, options *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") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if name == "" { + return nil, errors.New("parameter name cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{name}", url.PathEscape(name)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.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 +} + +// updateMachineKeyHandleResponse handles the UpdateMachineKey response. +func (client *WebAppsClient) updateMachineKeyHandleResponse(resp *http.Response) (WebAppsClientUpdateMachineKeyResponse, error) { + result := WebAppsClientUpdateMachineKeyResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Interface); err != nil { + return WebAppsClientUpdateMachineKeyResponse{}, err + } + return result, nil +} + // UpdateMetadata - Description for Replaces the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -27877,7 +27942,7 @@ func (client *WebAppsClient) updateMetadataCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -27898,7 +27963,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 2023-12-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. @@ -27951,7 +28016,7 @@ func (client *WebAppsClient) updateMetadataSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -27972,7 +28037,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 2023-12-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. @@ -28025,7 +28090,7 @@ func (client *WebAppsClient) updatePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28046,7 +28111,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 2023-12-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. @@ -28105,7 +28170,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28127,7 +28192,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotHandleResponse(resp *http.Res // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -28180,7 +28245,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28202,7 +28267,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionHandleResponse(resp *ht // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -28261,7 +28326,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28282,7 +28347,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 2023-12-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 @@ -28329,7 +28394,7 @@ func (client *WebAppsClient) updateScmAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28350,7 +28415,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 2023-12-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 @@ -28401,7 +28466,7 @@ func (client *WebAppsClient) updateScmAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28422,7 +28487,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 2023-12-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. @@ -28470,7 +28535,7 @@ func (client *WebAppsClient) updateSitePushSettingsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28491,7 +28556,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 2023-12-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. @@ -28544,7 +28609,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28566,7 +28631,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotHandleResponse(resp *http // app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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 @@ -28619,7 +28684,7 @@ func (client *WebAppsClient) updateSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28641,7 +28706,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 2023-12-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. @@ -28689,7 +28754,7 @@ func (client *WebAppsClient) updateSlotConfigurationNamesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28710,7 +28775,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 2023-12-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. @@ -28758,7 +28823,7 @@ func (client *WebAppsClient) updateSourceControlCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28779,7 +28844,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 2023-12-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 @@ -28833,7 +28898,7 @@ func (client *WebAppsClient) updateSourceControlSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28856,7 +28921,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 2023-12-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. @@ -28904,7 +28969,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -28928,7 +28993,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 2023-12-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 @@ -28982,7 +29047,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -29004,7 +29069,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotHan // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -29057,7 +29122,7 @@ func (client *WebAppsClient) updateVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -29078,7 +29143,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 2023-12-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. @@ -29136,7 +29201,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewayCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -29157,7 +29222,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 2023-12-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. @@ -29221,7 +29286,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 { @@ -29243,7 +29308,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotHandleResponse(resp // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-12-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. @@ -29302,7 +29367,7 @@ func (client *WebAppsClient) updateVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 6342dd679ec0..000000000000 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go +++ /dev/null @@ -1,4768 +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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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), - // }, - // 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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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-09T00: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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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-09T00: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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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_2023-12-01"), - // BlobName: to.Ptr("sitef6141_2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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_2023-12-01"), - // BlobName: to.Ptr("sitef6141_2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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_2023-12-01"), - // BlobName: to.Ptr("sitef6141_2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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_2023-12-01"), - // BlobName: to.Ptr("sitef6141_2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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), - // }, - // 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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 b3b91e1ceb79..3e13ac6d5ef3 100644 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go +++ b/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go @@ -47,7 +47,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 2023-12-01 +// Generated from API version 2024-11-01 // - request - Name availability request. // - options - WebSiteManagementClientCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.CheckNameAvailability // method. @@ -85,7 +85,7 @@ func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +106,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 2023-12-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) { @@ -139,7 +139,7 @@ func (client *WebSiteManagementClient) getPublishingUserCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +157,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 2023-12-01 +// Generated from API version 2024-11-01 // - sourceControlType - Type of source control // - options - WebSiteManagementClientGetSourceControlOptions contains the optional parameters for the WebSiteManagementClient.GetSourceControl // method. @@ -195,7 +195,7 @@ func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +213,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 2023-12-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) { @@ -250,7 +250,7 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +267,7 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsHandleR // NewListAseRegionsPager - Description for get a list of available ASE regions and its supported Skus. // -// Generated from API version 2023-12-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] { @@ -305,7 +305,7 @@ func (client *WebSiteManagementClient) listAseRegionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +322,7 @@ func (client *WebSiteManagementClient) listAseRegionsHandleResponse(resp *http.R // NewListBillingMetersPager - Description for Gets a list of meters for a given location. // -// Generated from API version 2023-12-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 +360,7 @@ func (client *WebSiteManagementClient) listBillingMetersCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.BillingLocation != nil { reqQP.Set("billingLocation", *options.BillingLocation) } @@ -383,7 +383,7 @@ func (client *WebSiteManagementClient) listBillingMetersHandleResponse(resp *htt // NewListCustomHostNameSitesPager - Get custom hostnames under this subscription // -// Generated from API version 2023-12-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 +421,7 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.Hostname != nil { reqQP.Set("hostname", *options.Hostname) } @@ -441,7 +441,7 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesHandleResponse(res // NewListGeoRegionsPager - Description for Get a list of available geographical regions. // -// Generated from API version 2023-12-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 +479,7 @@ func (client *WebSiteManagementClient) listGeoRegionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-01") + reqQP.Set("api-version", "2024-11-01") if options != nil && options.LinuxDynamicWorkersEnabled != nil { reqQP.Set("linuxDynamicWorkersEnabled", strconv.FormatBool(*options.LinuxDynamicWorkersEnabled)) } @@ -508,7 +508,7 @@ func (client *WebSiteManagementClient) listGeoRegionsHandleResponse(resp *http.R // NewListPremierAddOnOffersPager - Description for List all premier add-on offers. // -// Generated from API version 2023-12-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] { @@ -546,7 +546,7 @@ func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +564,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 2023-12-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) { @@ -601,7 +601,7 @@ func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +618,7 @@ func (client *WebSiteManagementClient) listSKUsHandleResponse(resp *http.Respons // NewListSiteIdentifiersAssignedToHostNamePager - Description for List all apps that are assigned to a hostname. // -// Generated from API version 2023-12-01 +// Generated from API version 2024-11-01 // - nameIdentifier - Hostname information. // - options - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the // WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager method. @@ -657,7 +657,7 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +677,7 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameHand // NewListSourceControlsPager - Description for Gets the source controls available for Azure websites. // -// Generated from API version 2023-12-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] { @@ -711,7 +711,7 @@ func (client *WebSiteManagementClient) listSourceControlsCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +729,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 2023-12-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. @@ -770,7 +770,7 @@ func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +782,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 2023-12-01 +// Generated from API version 2024-11-01 // - userDetails - Details of publishing user // - options - WebSiteManagementClientUpdatePublishingUserOptions contains the optional parameters for the WebSiteManagementClient.UpdatePublishingUser // method. @@ -816,7 +816,7 @@ func (client *WebSiteManagementClient) updatePublishingUserCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +837,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 2023-12-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 @@ -876,7 +876,7 @@ func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +897,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 2023-12-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 @@ -940,7 +940,7 @@ func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +961,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 2023-12-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 @@ -1003,7 +1003,7 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +1016,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 2023-12-01 +// Generated from API version 2024-11-01 // - parameters - VNET information // - options - WebSiteManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the WebSiteManagementClient.VerifyHostingEnvironmentVnet // method. @@ -1054,7 +1054,7 @@ func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 ef715bad6b8d..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 c026f02849e8..ebcd7d4f532c 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go @@ -46,7 +46,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 2023-12-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. @@ -113,7 +113,7 @@ func (client *WorkflowRunActionRepetitionsClient) getCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +130,7 @@ func (client *WorkflowRunActionRepetitionsClient) getHandleResponse(resp *http.R // NewListPager - Get all of a workflow run action repetitions. // -// Generated from API version 2023-12-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. @@ -193,7 +193,7 @@ func (client *WorkflowRunActionRepetitionsClient) listCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +210,7 @@ func (client *WorkflowRunActionRepetitionsClient) listHandleResponse(resp *http. // NewListExpressionTracesPager - Lists a workflow run expression trace. // -// Generated from API version 2023-12-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. @@ -278,7 +278,7 @@ func (client *WorkflowRunActionRepetitionsClient) listExpressionTracesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 108d0f3076c1..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 142b5c36cb8d..0428fef7b62a 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go @@ -46,7 +46,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 2023-12-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. @@ -118,7 +118,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +135,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getHandleRespo // NewListPager - List a workflow run repetition request history. // -// Generated from API version 2023-12-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. @@ -203,7 +203,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) listCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 4f5e015cb6b3..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 29cd774f1824..91a3b35241bc 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go @@ -47,7 +47,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 2023-12-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. @@ -108,7 +108,7 @@ func (client *WorkflowRunActionsClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +125,7 @@ func (client *WorkflowRunActionsClient) getHandleResponse(resp *http.Response) ( // NewListPager - Gets a list of workflow run actions. // -// Generated from API version 2023-12-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 +189,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", "2023-12-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 +206,7 @@ func (client *WorkflowRunActionsClient) listHandleResponse(resp *http.Response) // NewListExpressionTracesPager - Lists a workflow run expression trace. // -// Generated from API version 2023-12-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. @@ -269,7 +269,7 @@ func (client *WorkflowRunActionsClient) listExpressionTracesCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 d5a01ad051bc..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 81fe81f6e306..5645c0d7e33e 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go @@ -46,7 +46,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 2023-12-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. @@ -113,7 +113,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +130,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getHandleResponse(resp *h // NewListPager - List the workflow run action scoped repetitions. // -// Generated from API version 2023-12-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. @@ -193,7 +193,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) listCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 67bc2b2455e0..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 992645448159..1d5e9b0e6f2a 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go @@ -47,7 +47,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 2023-12-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. @@ -102,7 +102,7 @@ func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +111,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 2023-12-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. @@ -167,7 +167,7 @@ func (client *WorkflowRunsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +184,7 @@ func (client *WorkflowRunsClient) getHandleResponse(resp *http.Response) (Workfl // NewListPager - Gets a list of workflow runs. // -// Generated from API version 2023-12-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 +242,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", "2023-12-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 ea7a11479456..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 b381d0d88ae6..78aa9d676ab2 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflows_client.go @@ -46,7 +46,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 2023-12-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. @@ -98,7 +98,7 @@ func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +110,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 2023-12-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. @@ -161,7 +161,7 @@ func (client *WorkflowsClient) validateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 e592d402e3b5..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 52f9a2cafeb6..3b3fbcde5447 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go @@ -47,7 +47,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 2023-12-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. @@ -109,7 +109,7 @@ func (client *WorkflowTriggerHistoriesClient) getCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +126,7 @@ func (client *WorkflowTriggerHistoriesClient) getHandleResponse(resp *http.Respo // NewListPager - Gets a list of workflow trigger histories. // -// Generated from API version 2023-12-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 +190,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", "2023-12-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 +208,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 2023-12-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 +236,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 2023-12-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" @@ -290,7 +290,7 @@ func (client *WorkflowTriggerHistoriesClient) resubmitCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 add71ec91c52..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 184b76a0b4a3..549d4296f9fd 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go @@ -47,7 +47,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 2023-12-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. @@ -103,7 +103,7 @@ func (client *WorkflowTriggersClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +121,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 2023-12-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. @@ -178,7 +178,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +195,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONHandleResponse(resp *http.Res // NewListPager - Gets a list of workflow triggers. // -// Generated from API version 2023-12-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 +254,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", "2023-12-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 +272,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 2023-12-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. @@ -329,7 +329,7 @@ func (client *WorkflowTriggersClient) listCallbackURLCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +347,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 2023-12-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 +374,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 2023-12-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" @@ -424,7 +424,7 @@ func (client *WorkflowTriggersClient) runCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 0469110e8d3c..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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 eaf4ea0873b7..f1bfb0298fb6 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go @@ -47,7 +47,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 2023-12-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. @@ -103,7 +103,7 @@ func (client *WorkflowVersionsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-12-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 +120,7 @@ func (client *WorkflowVersionsClient) getHandleResponse(resp *http.Response) (Wo // NewListPager - Gets a list of workflow versions. // -// Generated from API version 2023-12-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 +176,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", "2023-12-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 85bed4363acc..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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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/21c2852d62ccc3abe9cc3800c989c6826f8363dc/specification/web/resource-manager/Microsoft.Web/stable/2023-12-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"), - // }, - // } -}