diff --git a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md index cce16abccbc2..7b56c2c2eb30 100644 --- a/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md +++ b/sdk/resourcemanager/appservice/armappservice/CHANGELOG.md @@ -1,5 +1,75 @@ # Release History +## 6.0.0 (2025-11-25) +### Breaking Changes + +- Function `*ClientFactory.NewWebSiteManagementClient` has been removed +- Function `NewWebSiteManagementClient` has been removed +- Function `*WebSiteManagementClient.CheckNameAvailability` has been removed +- Function `*WebSiteManagementClient.GetPublishingUser` has been removed +- Function `*WebSiteManagementClient.GetSourceControl` has been removed +- Function `*WebSiteManagementClient.GetSubscriptionDeploymentLocations` has been removed +- Function `*WebSiteManagementClient.NewListAseRegionsPager` has been removed +- Function `*WebSiteManagementClient.NewListBillingMetersPager` has been removed +- Function `*WebSiteManagementClient.NewListCustomHostNameSitesPager` has been removed +- Function `*WebSiteManagementClient.NewListGeoRegionsPager` has been removed +- Function `*WebSiteManagementClient.NewListPremierAddOnOffersPager` has been removed +- Function `*WebSiteManagementClient.ListSKUs` has been removed +- Function `*WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager` has been removed +- Function `*WebSiteManagementClient.NewListSourceControlsPager` has been removed +- Function `*WebSiteManagementClient.Move` has been removed +- Function `*WebSiteManagementClient.RegionalCheckNameAvailability` has been removed +- Function `*WebSiteManagementClient.UpdatePublishingUser` has been removed +- Function `*WebSiteManagementClient.UpdateSourceControl` has been removed +- Function `*WebSiteManagementClient.Validate` has been removed +- Function `*WebSiteManagementClient.ValidateMove` has been removed +- Function `*WebSiteManagementClient.VerifyHostingEnvironmentVnet` has been removed + +### Features Added + +- New enum type `InstallScriptType` with values `InstallScriptTypePlatformStorage`, `InstallScriptTypeRemoteAzureBlob` +- New enum type `RegistryAdapterType` with values `RegistryAdapterTypeBinary`, `RegistryAdapterTypeDWord`, `RegistryAdapterTypeExpandString`, `RegistryAdapterTypeMultiString`, `RegistryAdapterTypeQWord`, `RegistryAdapterTypeString` +- New enum type `StorageMountType` with values `StorageMountTypeAzureFiles`, `StorageMountTypeFileShare`, `StorageMountTypeLocalStorage` +- New function `*ClientFactory.NewManagementClient() *ManagementClient` +- New function `NewManagementClient(string, azcore.TokenCredential, *arm.ClientOptions) (*ManagementClient, error)` +- New function `*ManagementClient.CheckNameAvailability(context.Context, ResourceNameAvailabilityRequest, *ManagementClientCheckNameAvailabilityOptions) (ManagementClientCheckNameAvailabilityResponse, error)` +- New function `*ManagementClient.GetPublishingUser(context.Context, *ManagementClientGetPublishingUserOptions) (ManagementClientGetPublishingUserResponse, error)` +- New function `*ManagementClient.GetSourceControl(context.Context, string, *ManagementClientGetSourceControlOptions) (ManagementClientGetSourceControlResponse, error)` +- New function `*ManagementClient.GetSubscriptionDeploymentLocations(context.Context, *ManagementClientGetSubscriptionDeploymentLocationsOptions) (ManagementClientGetSubscriptionDeploymentLocationsResponse, error)` +- New function `*ManagementClient.NewListAseRegionsPager(*ManagementClientListAseRegionsOptions) *runtime.Pager[ManagementClientListAseRegionsResponse]` +- New function `*ManagementClient.NewListBillingMetersPager(*ManagementClientListBillingMetersOptions) *runtime.Pager[ManagementClientListBillingMetersResponse]` +- New function `*ManagementClient.NewListCustomHostNameSitesPager(*ManagementClientListCustomHostNameSitesOptions) *runtime.Pager[ManagementClientListCustomHostNameSitesResponse]` +- New function `*ManagementClient.NewListGeoRegionsPager(*ManagementClientListGeoRegionsOptions) *runtime.Pager[ManagementClientListGeoRegionsResponse]` +- New function `*ManagementClient.NewListPremierAddOnOffersPager(*ManagementClientListPremierAddOnOffersOptions) *runtime.Pager[ManagementClientListPremierAddOnOffersResponse]` +- New function `*ManagementClient.ListSKUs(context.Context, *ManagementClientListSKUsOptions) (ManagementClientListSKUsResponse, error)` +- New function `*ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager(NameIdentifier, *ManagementClientListSiteIdentifiersAssignedToHostNameOptions) *runtime.Pager[ManagementClientListSiteIdentifiersAssignedToHostNameResponse]` +- New function `*ManagementClient.NewListSourceControlsPager(*ManagementClientListSourceControlsOptions) *runtime.Pager[ManagementClientListSourceControlsResponse]` +- New function `*ManagementClient.Move(context.Context, string, CsmMoveResourceEnvelope, *ManagementClientMoveOptions) (ManagementClientMoveResponse, error)` +- New function `*ManagementClient.RegionalCheckNameAvailability(context.Context, string, DnlResourceNameAvailabilityRequest, *ManagementClientRegionalCheckNameAvailabilityOptions) (ManagementClientRegionalCheckNameAvailabilityResponse, error)` +- New function `*ManagementClient.UpdatePublishingUser(context.Context, User, *ManagementClientUpdatePublishingUserOptions) (ManagementClientUpdatePublishingUserResponse, error)` +- New function `*ManagementClient.UpdateSourceControl(context.Context, string, SourceControl, *ManagementClientUpdateSourceControlOptions) (ManagementClientUpdateSourceControlResponse, error)` +- New function `*ManagementClient.Validate(context.Context, string, ValidateRequest, *ManagementClientValidateOptions) (ManagementClientValidateResponse, error)` +- New function `*ManagementClient.ValidateMove(context.Context, string, CsmMoveResourceEnvelope, *ManagementClientValidateMoveOptions) (ManagementClientValidateMoveResponse, error)` +- New function `*ManagementClient.VerifyHostingEnvironmentVnet(context.Context, VnetParameters, *ManagementClientVerifyHostingEnvironmentVnetOptions) (ManagementClientVerifyHostingEnvironmentVnetResponse, error)` +- New function `*PlansClient.GetServerFarmInstanceDetails(context.Context, string, string, *PlansClientGetServerFarmInstanceDetailsOptions) (PlansClientGetServerFarmInstanceDetailsResponse, error)` +- New function `*PlansClient.GetServerFarmRdpPassword(context.Context, string, string, *PlansClientGetServerFarmRdpPasswordOptions) (PlansClientGetServerFarmRdpPasswordResponse, error)` +- New function `*PlansClient.RecycleManagedInstanceWorker(context.Context, string, string, string, *PlansClientRecycleManagedInstanceWorkerOptions) (PlansClientRecycleManagedInstanceWorkerResponse, error)` +- New struct `DefaultIdentity` +- New struct `InstallScript` +- New struct `InstallScriptSource` +- New struct `KeyVaultReferenceWithStatus` +- New struct `RegistryAdapter` +- New struct `ServerFarmInstance` +- New struct `ServerFarmInstanceDetails` +- New struct `ServerFarmNetworkSettings` +- New struct `ServerFarmRdpDetails` +- New struct `StorageMount` +- New field `Identity` in struct `Plan` +- New field `Identity` in struct `PlanPatchResource` +- New field `InstallScripts`, `IsCustomMode`, `Network`, `PlanDefaultIdentity`, `RdpEnabled`, `RegistryAdapters`, `StorageMounts` in struct `PlanProperties` +- New field `PublicNetworkAccess` in struct `SitePatchResourceProperties` + + ## 5.0.0 (2025-06-12) ### Breaking Changes diff --git a/sdk/resourcemanager/appservice/armappservice/README.md b/sdk/resourcemanager/appservice/armappservice/README.md index b2b2e3bc5da2..820ad9a7f16d 100644 --- a/sdk/resourcemanager/appservice/armappservice/README.md +++ b/sdk/resourcemanager/appservice/armappservice/README.md @@ -18,7 +18,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve Install the Azure App Service module: ```sh -go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5 +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6 ``` ## Authorization diff --git a/sdk/resourcemanager/appservice/armappservice/autorest.md b/sdk/resourcemanager/appservice/armappservice/autorest.md index b0c809a19cdb..bca5d503802f 100644 --- a/sdk/resourcemanager/appservice/armappservice/autorest.md +++ b/sdk/resourcemanager/appservice/armappservice/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 5.0.0 -tag: package-2024-11 +module-version: 6.0.0 +tag: package-2025-03 ``` \ 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 5c3b00018d68..b7854a249d8b 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateorders_client.go @@ -27,7 +27,7 @@ type CertificateOrdersClient struct { // NewCertificateOrdersClient creates a new instance of CertificateOrdersClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewCertificateOrdersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateOrdersClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go index e90e128aa791..f211b051b389 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateorders_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListAppServiceCertificateOrdersBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ListAppServiceCertificateOrdersBySubscription.json func ExampleCertificateOrdersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -118,7 +118,7 @@ func ExampleCertificateOrdersClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ValidateAppServiceCertificatePurchaseInformationBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ValidateAppServiceCertificatePurchaseInformationBySubscription.json func ExampleCertificateOrdersClient_ValidatePurchaseInformation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -154,7 +154,7 @@ func ExampleCertificateOrdersClient_ValidatePurchaseInformation() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListAppServiceCertificateOrdersByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ListAppServiceCertificateOrdersByResourceGroup.json func ExampleCertificateOrdersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -254,7 +254,7 @@ func ExampleCertificateOrdersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -346,7 +346,7 @@ func ExampleCertificateOrdersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/CreateAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/CreateAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -461,7 +461,7 @@ func ExampleCertificateOrdersClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/DeleteAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/DeleteAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -478,7 +478,7 @@ func ExampleCertificateOrdersClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/UpdateAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/UpdateAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -588,7 +588,7 @@ func ExampleCertificateOrdersClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListCertificatesByAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ListCertificatesByAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_NewListCertificatesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -638,7 +638,7 @@ func ExampleCertificateOrdersClient_NewListCertificatesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/GetAppServiceCertificate.json func ExampleCertificateOrdersClient_GetCertificate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -669,7 +669,7 @@ func ExampleCertificateOrdersClient_GetCertificate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/CreateAppServiceCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/CreateAppServiceCertificate.json func ExampleCertificateOrdersClient_BeginCreateOrUpdateCertificate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -710,7 +710,7 @@ func ExampleCertificateOrdersClient_BeginCreateOrUpdateCertificate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/DeleteAppServiceCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/DeleteAppServiceCertificate.json func ExampleCertificateOrdersClient_DeleteCertificate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -727,7 +727,7 @@ func ExampleCertificateOrdersClient_DeleteCertificate() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/UpdateAppServiceCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/UpdateAppServiceCertificate.json func ExampleCertificateOrdersClient_UpdateCertificate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -763,7 +763,7 @@ func ExampleCertificateOrdersClient_UpdateCertificate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ReissueAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ReissueAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_Reissue() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -787,7 +787,7 @@ func ExampleCertificateOrdersClient_Reissue() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RenewAppServiceCertificateOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/RenewAppServiceCertificateOrder.json func ExampleCertificateOrdersClient_Renew() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -810,7 +810,7 @@ func ExampleCertificateOrdersClient_Renew() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ResendAppServiceCertificateOrderEmail.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ResendAppServiceCertificateOrderEmail.json func ExampleCertificateOrdersClient_ResendEmail() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -827,7 +827,7 @@ func ExampleCertificateOrdersClient_ResendEmail() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ResendDomainOwnershipVerificationEmail.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ResendDomainOwnershipVerificationEmail.json func ExampleCertificateOrdersClient_ResendRequestEmails() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -846,7 +846,7 @@ func ExampleCertificateOrdersClient_ResendRequestEmails() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RetrieveSiteSeal.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/RetrieveSiteSeal.json func ExampleCertificateOrdersClient_RetrieveSiteSeal() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -872,7 +872,7 @@ func ExampleCertificateOrdersClient_RetrieveSiteSeal() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/VerifyDomainOwnership.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/VerifyDomainOwnership.json func ExampleCertificateOrdersClient_VerifyDomainOwnership() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -889,7 +889,7 @@ func ExampleCertificateOrdersClient_VerifyDomainOwnership() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RetrieveCertificateOrderActions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/RetrieveCertificateOrderActions.json func ExampleCertificateOrdersClient_RetrieveCertificateActions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -922,7 +922,7 @@ func ExampleCertificateOrdersClient_RetrieveCertificateActions() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/RetrieveCertificateEmailHistory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/RetrieveCertificateEmailHistory.json func ExampleCertificateOrdersClient_RetrieveCertificateEmailHistory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go index 3e7be75c602f..156517cfe000 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client.go @@ -28,7 +28,7 @@ type CertificateOrdersDiagnosticsClient struct { // NewCertificateOrdersDiagnosticsClient creates a new instance of CertificateOrdersDiagnosticsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewCertificateOrdersDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateOrdersDiagnosticsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go index b38e1ff7589a..da20f2ceb6e3 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateordersdiagnostics_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json func ExampleCertificateOrdersDiagnosticsClient_NewListAppServiceCertificateOrderDetectorResponsePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -62,7 +62,7 @@ func ExampleCertificateOrdersDiagnosticsClient_NewListAppServiceCertificateOrder } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json func ExampleCertificateOrdersDiagnosticsClient_GetAppServiceCertificateOrderDetectorResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go index 377f460fca4b..7a94bfc1e2a2 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client.go @@ -22,7 +22,7 @@ type CertificateRegistrationProviderClient struct { // NewCertificateRegistrationProviderClient creates a new instance of CertificateRegistrationProviderClient with the specified values. // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewCertificateRegistrationProviderClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateRegistrationProviderClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go index ecbd3e8f0e3f..26ad4b98bf8d 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/certificateregistrationprovider_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-11-01/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/certificateregistration/resource-manager/Microsoft.CertificateRegistration/CertificateRegistration/stable/2024-11-01/examples/ListOperations.json func ExampleCertificateRegistrationProviderClient_NewListOperationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/certificates_client.go b/sdk/resourcemanager/appservice/armappservice/certificates_client.go index 20b31f52be79..3a24c9cebc03 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client.go +++ b/sdk/resourcemanager/appservice/armappservice/certificates_client.go @@ -27,7 +27,7 @@ type CertificatesClient struct { // NewCertificatesClient creates a new instance of CertificatesClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificatesClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewCertificatesClient(subscriptionID string, credential azcore.TokenCredent // CreateOrUpdate - Description for Create or update a certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the certificate. // - certificateEnvelope - Details of certificate, if it exists already. @@ -91,7 +91,7 @@ func (client *CertificatesClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { @@ -112,7 +112,7 @@ func (client *CertificatesClient) createOrUpdateHandleResponse(resp *http.Respon // Delete - Description for Delete a certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the certificate. // - options - CertificatesClientDeleteOptions contains the optional parameters for the CertificatesClient.Delete method. @@ -157,7 +157,7 @@ func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -166,7 +166,7 @@ func (client *CertificatesClient) deleteCreateRequest(ctx context.Context, resou // Get - Description for Get a certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the certificate. // - options - CertificatesClientGetOptions contains the optional parameters for the CertificatesClient.Get method. @@ -212,7 +212,7 @@ func (client *CertificatesClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -229,7 +229,7 @@ func (client *CertificatesClient) getHandleResponse(resp *http.Response) (Certif // NewListPager - Description for Get all certificates for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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]{ @@ -266,7 +266,7 @@ func (client *CertificatesClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -288,7 +288,7 @@ func (client *CertificatesClient) listHandleResponse(resp *http.Response) (Certi // NewListByResourceGroupPager - Description for Get all certificates in a resource group. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - CertificatesClientListByResourceGroupOptions contains the optional parameters for the CertificatesClient.NewListByResourceGroupPager // method. @@ -331,7 +331,7 @@ func (client *CertificatesClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -349,7 +349,7 @@ func (client *CertificatesClient) listByResourceGroupHandleResponse(resp *http.R // Update - Description for Create or update a certificate. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the certificate. // - certificateEnvelope - Details of certificate, if it exists already. @@ -396,7 +396,7 @@ func (client *CertificatesClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 1aa0ba9952a8..db1eb2a2932f 100644 --- a/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/certificates_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCertificates.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCertificates.json func ExampleCertificatesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,7 +78,7 @@ func ExampleCertificatesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCertificatesByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCertificatesByResourceGroup.json func ExampleCertificatesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -138,7 +138,7 @@ func ExampleCertificatesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetCertificate.json func ExampleCertificatesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -174,7 +174,7 @@ func ExampleCertificatesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateCertificate.json func ExampleCertificatesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -217,7 +217,7 @@ func ExampleCertificatesClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteCertificate.json func ExampleCertificatesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -234,7 +234,7 @@ func ExampleCertificatesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchCertificate.json func ExampleCertificatesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/client_factory.go b/sdk/resourcemanager/appservice/armappservice/client_factory.go index 6dea36b64b64..fff3fca8e096 100644 --- a/sdk/resourcemanager/appservice/armappservice/client_factory.go +++ b/sdk/resourcemanager/appservice/armappservice/client_factory.go @@ -127,6 +127,14 @@ func (c *ClientFactory) NewKubeEnvironmentsClient() *KubeEnvironmentsClient { } } +// NewManagementClient creates a new instance of ManagementClient. +func (c *ClientFactory) NewManagementClient() *ManagementClient { + return &ManagementClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + // NewPlansClient creates a new instance of PlansClient. func (c *ClientFactory) NewPlansClient() *PlansClient { return &PlansClient{ @@ -191,14 +199,6 @@ func (c *ClientFactory) NewWebAppsClient() *WebAppsClient { } } -// NewWebSiteManagementClient creates a new instance of WebSiteManagementClient. -func (c *ClientFactory) NewWebSiteManagementClient() *WebSiteManagementClient { - return &WebSiteManagementClient{ - subscriptionID: c.subscriptionID, - internal: c.internal, - } -} - // NewWorkflowRunActionRepetitionsClient creates a new instance of WorkflowRunActionRepetitionsClient. func (c *ClientFactory) NewWorkflowRunActionRepetitionsClient() *WorkflowRunActionRepetitionsClient { return &WorkflowRunActionRepetitionsClient{ diff --git a/sdk/resourcemanager/appservice/armappservice/constants.go b/sdk/resourcemanager/appservice/armappservice/constants.go index 7ed8783102bd..4d37fc4d0516 100644 --- a/sdk/resourcemanager/appservice/armappservice/constants.go +++ b/sdk/resourcemanager/appservice/armappservice/constants.go @@ -5,11 +5,6 @@ package armappservice -const ( - moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice" - moduleVersion = "v5.0.0" -) - // AppServicePlanRestrictions - App Service plans this offer is restricted to. type AppServicePlanRestrictions string @@ -1125,6 +1120,22 @@ func PossibleInsightStatusValues() []InsightStatus { } } +// InstallScriptType - Type of the install script. +type InstallScriptType string + +const ( + InstallScriptTypePlatformStorage InstallScriptType = "PlatformStorage" + InstallScriptTypeRemoteAzureBlob InstallScriptType = "RemoteAzureBlob" +) + +// PossibleInstallScriptTypeValues returns the possible values for the InstallScriptType const type. +func PossibleInstallScriptTypeValues() []InstallScriptType { + return []InstallScriptType{ + InstallScriptTypePlatformStorage, + InstallScriptTypeRemoteAzureBlob, + } +} + // IssueType - Represents the type of the Detector type IssueType string @@ -1351,7 +1362,6 @@ func PossibleManagedPipelineModeValues() []ManagedPipelineMode { } } -// ManagedServiceIdentityType - Type of managed service identity. type ManagedServiceIdentityType string const ( @@ -1619,6 +1629,30 @@ func PossibleRedundancyModeValues() []RedundancyMode { } } +// RegistryAdapterType - Type of the registry adapter. +type RegistryAdapterType string + +const ( + RegistryAdapterTypeBinary RegistryAdapterType = "Binary" + RegistryAdapterTypeDWord RegistryAdapterType = "DWord" + RegistryAdapterTypeExpandString RegistryAdapterType = "Expand_String" + RegistryAdapterTypeMultiString RegistryAdapterType = "Multi_String" + RegistryAdapterTypeQWord RegistryAdapterType = "QWord" + RegistryAdapterTypeString RegistryAdapterType = "String" +) + +// PossibleRegistryAdapterTypeValues returns the possible values for the RegistryAdapterType const type. +func PossibleRegistryAdapterTypeValues() []RegistryAdapterType { + return []RegistryAdapterType{ + RegistryAdapterTypeBinary, + RegistryAdapterTypeDWord, + RegistryAdapterTypeExpandString, + RegistryAdapterTypeMultiString, + RegistryAdapterTypeQWord, + RegistryAdapterTypeString, + } +} + // RenderingType - Rendering Type type RenderingType string @@ -2036,6 +2070,24 @@ func PossibleStatusOptionsValues() []StatusOptions { } } +// StorageMountType - Type of the storage mount. +type StorageMountType string + +const ( + StorageMountTypeAzureFiles StorageMountType = "AzureFiles" + StorageMountTypeFileShare StorageMountType = "FileShare" + StorageMountTypeLocalStorage StorageMountType = "LocalStorage" +) + +// PossibleStorageMountTypeValues returns the possible values for the StorageMountType const type. +func PossibleStorageMountTypeValues() []StorageMountType { + return []StorageMountType{ + StorageMountTypeAzureFiles, + StorageMountTypeFileShare, + StorageMountTypeLocalStorage, + } +} + type StorageType string const ( diff --git a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go index 3c1a32ffd557..52fa8c33d222 100644 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client.go @@ -27,7 +27,7 @@ type DeletedWebAppsClient struct { // NewDeletedWebAppsClient creates a new instance of DeletedWebAppsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewDeletedWebAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedWebAppsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewDeletedWebAppsClient(subscriptionID string, credential azcore.TokenCrede // GetDeletedWebAppByLocation - Description for Get deleted app for a subscription at location. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 // - options - DeletedWebAppsClientGetDeletedWebAppByLocationOptions contains the optional parameters for the DeletedWebAppsClient.GetDeletedWebAppByLocation // method. @@ -89,7 +89,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -106,7 +106,7 @@ func (client *DeletedWebAppsClient) getDeletedWebAppByLocationHandleResponse(res // NewListPager - Description for Get all deleted apps for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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]{ @@ -143,7 +143,7 @@ func (client *DeletedWebAppsClient) listCreateRequest(ctx context.Context, _ *De return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -160,7 +160,7 @@ func (client *DeletedWebAppsClient) listHandleResponse(resp *http.Response) (Del // NewListByLocationPager - Description for Get all deleted apps for a subscription at location // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - DeletedWebAppsClientListByLocationOptions contains the optional parameters for the DeletedWebAppsClient.NewListByLocationPager // method. func (client *DeletedWebAppsClient) NewListByLocationPager(location string, options *DeletedWebAppsClientListByLocationOptions) *runtime.Pager[DeletedWebAppsClientListByLocationResponse] { @@ -202,7 +202,7 @@ func (client *DeletedWebAppsClient) listByLocationCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 424bdbf75391..53edef9d08ff 100644 --- a/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/deletedwebapps_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListDeletedWebAppsByLocation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListDeletedWebAppsByLocation.json func ExampleDeletedWebAppsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -60,7 +60,7 @@ func ExampleDeletedWebAppsClient_NewListByLocationPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebAppByLocation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebAppByLocation.json func ExampleDeletedWebAppsClient_GetDeletedWebAppByLocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go index 0fd42ae9cd0d..a0fb52f79efe 100644 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go +++ b/sdk/resourcemanager/appservice/armappservice/diagnostics_client.go @@ -28,7 +28,7 @@ type DiagnosticsClient struct { // NewDiagnosticsClient creates a new instance of DiagnosticsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewDiagnosticsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DiagnosticsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewDiagnosticsClient(subscriptionID string, credential azcore.TokenCredenti // ExecuteSiteAnalysis - Description for Execute Analysis // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Category Name @@ -101,7 +101,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -128,7 +128,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisHandleResponse(resp *http.Re // ExecuteSiteAnalysisSlot - Description for Execute Analysis // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Category Name @@ -190,7 +190,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -217,7 +217,7 @@ func (client *DiagnosticsClient) executeSiteAnalysisSlotHandleResponse(resp *htt // ExecuteSiteDetector - Description for Execute Detector // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -274,7 +274,7 @@ func (client *DiagnosticsClient) executeSiteDetectorCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -301,7 +301,7 @@ func (client *DiagnosticsClient) executeSiteDetectorHandleResponse(resp *http.Re // ExecuteSiteDetectorSlot - Description for Execute Detector // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -363,7 +363,7 @@ func (client *DiagnosticsClient) executeSiteDetectorSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -390,7 +390,7 @@ func (client *DiagnosticsClient) executeSiteDetectorSlotHandleResponse(resp *htt // GetHostingEnvironmentDetectorResponse - Description for Get Hosting Environment Detector Response // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - App Service Environment Name // - detectorName - Detector Resource Name @@ -442,7 +442,7 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -469,7 +469,7 @@ func (client *DiagnosticsClient) getHostingEnvironmentDetectorResponseHandleResp // GetSiteAnalysis - Description for Get Site Analysis // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -526,7 +526,7 @@ func (client *DiagnosticsClient) getSiteAnalysisCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -544,7 +544,7 @@ func (client *DiagnosticsClient) getSiteAnalysisHandleResponse(resp *http.Respon // GetSiteAnalysisSlot - Description for Get Site Analysis // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -606,7 +606,7 @@ func (client *DiagnosticsClient) getSiteAnalysisSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -624,7 +624,7 @@ func (client *DiagnosticsClient) getSiteAnalysisSlotHandleResponse(resp *http.Re // GetSiteDetector - Description for Get Detector // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -681,7 +681,7 @@ func (client *DiagnosticsClient) getSiteDetectorCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -699,7 +699,7 @@ func (client *DiagnosticsClient) getSiteDetectorHandleResponse(resp *http.Respon // GetSiteDetectorResponse - Description for Get site detector response // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -751,7 +751,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -778,7 +778,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseHandleResponse(resp *htt // GetSiteDetectorResponseSlot - Description for Get site detector response // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - detectorName - Detector Resource Name @@ -835,7 +835,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.EndTime != nil { reqQP.Set("endTime", options.EndTime.Format(time.RFC3339Nano)) } @@ -862,7 +862,7 @@ func (client *DiagnosticsClient) getSiteDetectorResponseSlotHandleResponse(resp // GetSiteDetectorSlot - Description for Get Detector // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -924,7 +924,7 @@ func (client *DiagnosticsClient) getSiteDetectorSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -942,7 +942,7 @@ func (client *DiagnosticsClient) getSiteDetectorSlotHandleResponse(resp *http.Re // GetSiteDiagnosticCategory - Description for Get Diagnostics Category // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -994,7 +994,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategoryCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1012,7 +1012,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategoryHandleResponse(resp *h // GetSiteDiagnosticCategorySlot - Description for Get Diagnostics Category // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1069,7 +1069,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1086,7 +1086,7 @@ func (client *DiagnosticsClient) getSiteDiagnosticCategorySlotHandleResponse(res // NewListHostingEnvironmentDetectorResponsesPager - Description for List Hosting Environment Detector Responses // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site Name // - options - DiagnosticsClientListHostingEnvironmentDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.NewListHostingEnvironmentDetectorResponsesPager @@ -1134,7 +1134,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1151,7 +1151,7 @@ func (client *DiagnosticsClient) listHostingEnvironmentDetectorResponsesHandleRe // NewListSiteAnalysesPager - Description for Get Site Analyses // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1204,7 +1204,7 @@ func (client *DiagnosticsClient) listSiteAnalysesCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1221,7 +1221,7 @@ func (client *DiagnosticsClient) listSiteAnalysesHandleResponse(resp *http.Respo // NewListSiteAnalysesSlotPager - Description for Get Site Analyses // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1279,7 +1279,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1296,7 +1296,7 @@ func (client *DiagnosticsClient) listSiteAnalysesSlotHandleResponse(resp *http.R // NewListSiteDetectorResponsesPager - Description for List Site Detector Responses // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - options - DiagnosticsClientListSiteDetectorResponsesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDetectorResponsesPager @@ -1344,7 +1344,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1361,7 +1361,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesHandleResponse(resp *h // NewListSiteDetectorResponsesSlotPager - Description for List Site Detector Responses // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - slot - Slot Name @@ -1414,7 +1414,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1431,7 +1431,7 @@ func (client *DiagnosticsClient) listSiteDetectorResponsesSlotHandleResponse(res // NewListSiteDetectorsPager - Description for Get Detectors // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1484,7 +1484,7 @@ func (client *DiagnosticsClient) listSiteDetectorsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1501,7 +1501,7 @@ func (client *DiagnosticsClient) listSiteDetectorsHandleResponse(resp *http.Resp // NewListSiteDetectorsSlotPager - Description for Get Detectors // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - diagnosticCategory - Diagnostic Category @@ -1559,7 +1559,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1576,7 +1576,7 @@ func (client *DiagnosticsClient) listSiteDetectorsSlotHandleResponse(resp *http. // NewListSiteDiagnosticCategoriesPager - Description for Get Diagnostics Categories // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - options - DiagnosticsClientListSiteDiagnosticCategoriesOptions contains the optional parameters for the DiagnosticsClient.NewListSiteDiagnosticCategoriesPager @@ -1624,7 +1624,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1641,7 +1641,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesHandleResponse(resp // NewListSiteDiagnosticCategoriesSlotPager - Description for Get Diagnostics Categories // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site Name // - slot - Slot Name @@ -1694,7 +1694,7 @@ func (client *DiagnosticsClient) listSiteDiagnosticCategoriesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 612eb78279ed..9b23d77b9468 100644 --- a/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/diagnostics_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListHostingEnvironmentDetectorResponses.json func ExampleDiagnosticsClient_NewListHostingEnvironmentDetectorResponsesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,7 +57,7 @@ func ExampleDiagnosticsClient_NewListHostingEnvironmentDetectorResponsesPager() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetHostingEnvironmentDetectorResponse.json func ExampleDiagnosticsClient_GetHostingEnvironmentDetectorResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -187,7 +187,7 @@ func ExampleDiagnosticsClient_GetHostingEnvironmentDetectorResponse() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponses.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponses.json func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppDetectorResponses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -227,7 +227,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppDetectorRe } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppSlotDetectorResponses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -267,7 +267,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorResponsesPager_getAppSlotDetect } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppDetectorResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -397,7 +397,7 @@ func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppDetectorResponse() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppSlotDetectorResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -527,7 +527,7 @@ func ExampleDiagnosticsClient_GetSiteDetectorResponse_getAppSlotDetectorResponse // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategories.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategories.json func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppDiagnosticCategories() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -562,7 +562,7 @@ func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppDiagno } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppSlotDiagnosticCategories() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -597,7 +597,7 @@ func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesPager_listAppSlotDi } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppDiagnosticCategory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -624,7 +624,7 @@ func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppDiagnosticCategory // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppSlotDiagnosticCategory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -651,7 +651,7 @@ func ExampleDiagnosticsClient_GetSiteDiagnosticCategory_getAppSlotDiagnosticCate // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalyses.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalyses.json func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppAnalyses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -714,7 +714,7 @@ func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppAnalyses() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalysesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalysesSlot.json func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppSlotAnalyses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -777,7 +777,7 @@ func ExampleDiagnosticsClient_NewListSiteAnalysesPager_listAppSlotAnalyses() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json func ExampleDiagnosticsClient_GetSiteAnalysis_getAppAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -804,7 +804,7 @@ func ExampleDiagnosticsClient_GetSiteAnalysis_getAppAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json func ExampleDiagnosticsClient_GetSiteAnalysis_getAppSlotAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -831,7 +831,7 @@ func ExampleDiagnosticsClient_GetSiteAnalysis_getAppSlotAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysis.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysis.json func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -958,7 +958,7 @@ func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteSlotAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1085,7 +1085,7 @@ func ExampleDiagnosticsClient_ExecuteSiteAnalysis_executeSiteSlotAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectors.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectors.json func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppDetectors() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1275,7 +1275,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppDetectors() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorsSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorsSlot.json func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppSlotDetectors() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1339,7 +1339,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorsPager_listAppSlotDetectors() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json func ExampleDiagnosticsClient_GetSiteDetector_getAppDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1368,7 +1368,7 @@ func ExampleDiagnosticsClient_GetSiteDetector_getAppDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json func ExampleDiagnosticsClient_GetSiteDetector_getAppSlotDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1397,7 +1397,7 @@ func ExampleDiagnosticsClient_GetSiteDetector_getAppSlotDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetector.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetector.json func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1435,7 +1435,7 @@ func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteSlotDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1473,7 +1473,7 @@ func ExampleDiagnosticsClient_ExecuteSiteDetector_executeSiteSlotDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponses.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponses.json func ExampleDiagnosticsClient_NewListSiteDetectorResponsesSlotPager_getAppDetectorResponses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1513,7 +1513,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorResponsesSlotPager_getAppDetect } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorResponsesSlot.json func ExampleDiagnosticsClient_NewListSiteDetectorResponsesSlotPager_getAppSlotDetectorResponses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1553,7 +1553,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorResponsesSlotPager_getAppSlotDe } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponse.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponse.json func ExampleDiagnosticsClient_GetSiteDetectorResponseSlot_getAppDetectorResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1683,7 +1683,7 @@ func ExampleDiagnosticsClient_GetSiteDetectorResponseSlot_getAppDetectorResponse // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorResponseSlot.json func ExampleDiagnosticsClient_GetSiteDetectorResponseSlot_getAppSlotDetectorResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1813,7 +1813,7 @@ func ExampleDiagnosticsClient_GetSiteDetectorResponseSlot_getAppSlotDetectorResp // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategories.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategories.json func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesSlotPager_listAppDiagnosticCategories() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1848,7 +1848,7 @@ func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesSlotPager_listAppDi } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDiagnosticCategoriesSlot.json func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesSlotPager_listAppSlotDiagnosticCategories() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1883,7 +1883,7 @@ func ExampleDiagnosticsClient_NewListSiteDiagnosticCategoriesSlotPager_listAppSl } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategory.json func ExampleDiagnosticsClient_GetSiteDiagnosticCategorySlot_getAppDiagnosticCategory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1910,7 +1910,7 @@ func ExampleDiagnosticsClient_GetSiteDiagnosticCategorySlot_getAppDiagnosticCate // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDiagnosticCategorySlot.json func ExampleDiagnosticsClient_GetSiteDiagnosticCategorySlot_getAppSlotDiagnosticCategory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1937,7 +1937,7 @@ func ExampleDiagnosticsClient_GetSiteDiagnosticCategorySlot_getAppSlotDiagnostic // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalyses.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalyses.json func ExampleDiagnosticsClient_NewListSiteAnalysesSlotPager_listAppAnalyses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2000,7 +2000,7 @@ func ExampleDiagnosticsClient_NewListSiteAnalysesSlotPager_listAppAnalyses() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteAnalysesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteAnalysesSlot.json func ExampleDiagnosticsClient_NewListSiteAnalysesSlotPager_listAppSlotAnalyses() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2063,7 +2063,7 @@ func ExampleDiagnosticsClient_NewListSiteAnalysesSlotPager_listAppSlotAnalyses() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysis.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysis.json func ExampleDiagnosticsClient_GetSiteAnalysisSlot_getAppAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2090,7 +2090,7 @@ func ExampleDiagnosticsClient_GetSiteAnalysisSlot_getAppAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteAnalysisSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteAnalysisSlot.json func ExampleDiagnosticsClient_GetSiteAnalysisSlot_getAppSlotAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2117,7 +2117,7 @@ func ExampleDiagnosticsClient_GetSiteAnalysisSlot_getAppSlotAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysis.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysis.json func ExampleDiagnosticsClient_ExecuteSiteAnalysisSlot_executeSiteAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2244,7 +2244,7 @@ func ExampleDiagnosticsClient_ExecuteSiteAnalysisSlot_executeSiteAnalysis() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteAnalysisSlot.json func ExampleDiagnosticsClient_ExecuteSiteAnalysisSlot_executeSiteSlotAnalysis() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2371,7 +2371,7 @@ func ExampleDiagnosticsClient_ExecuteSiteAnalysisSlot_executeSiteSlotAnalysis() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectors.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectors.json func ExampleDiagnosticsClient_NewListSiteDetectorsSlotPager_listAppDetectors() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2561,7 +2561,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorsSlotPager_listAppDetectors() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ListSiteDetectorsSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ListSiteDetectorsSlot.json func ExampleDiagnosticsClient_NewListSiteDetectorsSlotPager_listAppSlotDetectors() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2625,7 +2625,7 @@ func ExampleDiagnosticsClient_NewListSiteDetectorsSlotPager_listAppSlotDetectors } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetector.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetector.json func ExampleDiagnosticsClient_GetSiteDetectorSlot_getAppDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2654,7 +2654,7 @@ func ExampleDiagnosticsClient_GetSiteDetectorSlot_getAppDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_GetSiteDetectorSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_GetSiteDetectorSlot.json func ExampleDiagnosticsClient_GetSiteDetectorSlot_getAppSlotDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2683,7 +2683,7 @@ func ExampleDiagnosticsClient_GetSiteDetectorSlot_getAppSlotDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetector.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetector.json func ExampleDiagnosticsClient_ExecuteSiteDetectorSlot_executeSiteDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2721,7 +2721,7 @@ func ExampleDiagnosticsClient_ExecuteSiteDetectorSlot_executeSiteDetector() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Diagnostics_ExecuteSiteDetectorSlot.json func ExampleDiagnosticsClient_ExecuteSiteDetectorSlot_executeSiteSlotDetector() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go index 532bbc419d51..4c420ccf8e2b 100644 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client.go @@ -22,7 +22,7 @@ type DomainRegistrationProviderClient struct { // NewDomainRegistrationProviderClient creates a new instance of DomainRegistrationProviderClient with the specified values. // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewDomainRegistrationProviderClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainRegistrationProviderClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go index 8e6b582dcb56..a01ef62470ae 100644 --- a/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/domainregistrationprovider_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListOperations.json func ExampleDomainRegistrationProviderClient_NewListOperationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/domains_client.go b/sdk/resourcemanager/appservice/armappservice/domains_client.go index 8a742b093781..ce6e5978e65c 100644 --- a/sdk/resourcemanager/appservice/armappservice/domains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/domains_client.go @@ -28,7 +28,7 @@ type DomainsClient struct { // NewDomainsClient creates a new instance of DomainsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DomainsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go index 250b05acfc21..482379aa1ec8 100644 --- a/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/domains_client_example_test.go @@ -17,10 +17,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/CheckDomainAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/CheckDomainAvailability.json func ExampleDomainsClient_CheckAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -47,7 +47,7 @@ func ExampleDomainsClient_CheckAvailability() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainsBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainsBySubscription.json func ExampleDomainsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -175,7 +175,7 @@ func ExampleDomainsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainControlCenterSsoRequest.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetDomainControlCenterSsoRequest.json func ExampleDomainsClient_GetControlCenterSsoRequest() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -200,7 +200,7 @@ func ExampleDomainsClient_GetControlCenterSsoRequest() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainRecommendations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainRecommendations.json func ExampleDomainsClient_NewListRecommendationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -240,7 +240,7 @@ func ExampleDomainsClient_NewListRecommendationsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainsByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainsByResourceGroup.json func ExampleDomainsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -368,7 +368,7 @@ func ExampleDomainsClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetDomain.json func ExampleDomainsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -488,7 +488,7 @@ func ExampleDomainsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomain.json func ExampleDomainsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -695,7 +695,7 @@ func ExampleDomainsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomain.json func ExampleDomainsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -712,7 +712,7 @@ func ExampleDomainsClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomain.json func ExampleDomainsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -913,7 +913,7 @@ func ExampleDomainsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListDomainOwnershipIdentifiers.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListDomainOwnershipIdentifiers.json func ExampleDomainsClient_NewListOwnershipIdentifiersPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -949,7 +949,7 @@ func ExampleDomainsClient_NewListOwnershipIdentifiersPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetDomainOwnershipIdentifier.json func ExampleDomainsClient_GetOwnershipIdentifier() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -977,7 +977,7 @@ func ExampleDomainsClient_GetOwnershipIdentifier() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomainOwnershipIdentifier.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/CreateAppServiceDomainOwnershipIdentifier.json func ExampleDomainsClient_CreateOrUpdateOwnershipIdentifier() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1009,7 +1009,7 @@ func ExampleDomainsClient_CreateOrUpdateOwnershipIdentifier() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/DeleteAppServiceDomainOwnershipIdentifier.json func ExampleDomainsClient_DeleteOwnershipIdentifier() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1026,7 +1026,7 @@ func ExampleDomainsClient_DeleteOwnershipIdentifier() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/UpdateAppServiceDomainOwnershipIdentifier.json func ExampleDomainsClient_UpdateOwnershipIdentifier() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1058,7 +1058,7 @@ func ExampleDomainsClient_UpdateOwnershipIdentifier() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/RenewDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/RenewDomain.json func ExampleDomainsClient_Renew() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1075,7 +1075,7 @@ func ExampleDomainsClient_Renew() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/TransferOutDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/TransferOutDomain.json func ExampleDomainsClient_TransferOut() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/environments_client.go b/sdk/resourcemanager/appservice/armappservice/environments_client.go index 7d217ce93174..3fb7fdf131b9 100644 --- a/sdk/resourcemanager/appservice/armappservice/environments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/environments_client.go @@ -28,7 +28,7 @@ type EnvironmentsClient struct { // NewEnvironmentsClient creates a new instance of EnvironmentsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EnvironmentsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewEnvironmentsClient(subscriptionID string, credential azcore.TokenCredent // BeginApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the @@ -69,7 +69,7 @@ func (client *EnvironmentsClient) BeginApproveOrRejectPrivateEndpointConnection( // ApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -115,7 +115,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -126,7 +126,7 @@ func (client *EnvironmentsClient) approveOrRejectPrivateEndpointConnectionCreate // BeginChangeVnet - Description for Move an App Service Environment to a different VNET. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - vnetInfo - Details for the new virtual network. @@ -169,7 +169,7 @@ func (client *EnvironmentsClient) BeginChangeVnet(ctx context.Context, resourceG // ChangeVnet - Description for Move an App Service Environment to a different VNET. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -211,7 +211,7 @@ func (client *EnvironmentsClient) changeVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, vnetInfo); err != nil { @@ -232,7 +232,7 @@ func (client *EnvironmentsClient) changeVnetHandleResponse(resp *http.Response) // BeginCreateOrUpdate - Description for Create or update an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - hostingEnvironmentEnvelope - Configuration details of the App Service Environment. @@ -258,7 +258,7 @@ func (client *EnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, resou // CreateOrUpdate - Description for Create or update an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -300,7 +300,7 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostingEnvironmentEnvelope); err != nil { @@ -312,7 +312,7 @@ func (client *EnvironmentsClient) createOrUpdateCreateRequest(ctx context.Contex // BeginCreateOrUpdateMultiRolePool - Description for Create or update a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - multiRolePoolEnvelope - Properties of the multi-role pool. @@ -338,7 +338,7 @@ func (client *EnvironmentsClient) BeginCreateOrUpdateMultiRolePool(ctx context.C // CreateOrUpdateMultiRolePool - Description for Create or update a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -380,7 +380,7 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, multiRolePoolEnvelope); err != nil { @@ -392,7 +392,7 @@ func (client *EnvironmentsClient) createOrUpdateMultiRolePoolCreateRequest(ctx c // BeginCreateOrUpdateWorkerPool - Description for Create or update a worker pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -419,7 +419,7 @@ func (client *EnvironmentsClient) BeginCreateOrUpdateWorkerPool(ctx context.Cont // CreateOrUpdateWorkerPool - Description for Create or update a worker pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -465,7 +465,7 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, workerPoolEnvelope); err != nil { @@ -477,7 +477,7 @@ func (client *EnvironmentsClient) createOrUpdateWorkerPoolCreateRequest(ctx cont // BeginDelete - Description for Delete an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientBeginDeleteOptions contains the optional parameters for the EnvironmentsClient.BeginDelete @@ -502,7 +502,7 @@ func (client *EnvironmentsClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Description for Delete an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *EnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginDelete" @@ -544,7 +544,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.ForceDelete != nil { reqQP.Set("forceDelete", strconv.FormatBool(*options.ForceDelete)) } @@ -556,7 +556,7 @@ func (client *EnvironmentsClient) deleteCreateRequest(ctx context.Context, resou // DeleteAseCustomDNSSuffixConfiguration - Delete Custom Dns Suffix configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientDeleteAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.DeleteAseCustomDNSSuffixConfiguration @@ -603,7 +603,7 @@ func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -621,7 +621,7 @@ func (client *EnvironmentsClient) deleteAseCustomDNSSuffixConfigurationHandleRes // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the EnvironmentsClient.BeginDeletePrivateEndpointConnection @@ -646,7 +646,7 @@ func (client *EnvironmentsClient) BeginDeletePrivateEndpointConnection(ctx conte // DeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -692,7 +692,7 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -701,7 +701,7 @@ func (client *EnvironmentsClient) deletePrivateEndpointConnectionCreateRequest(c // Get - Description for Get the properties of an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetOptions contains the optional parameters for the EnvironmentsClient.Get method. @@ -747,7 +747,7 @@ func (client *EnvironmentsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -765,7 +765,7 @@ func (client *EnvironmentsClient) getHandleResponse(resp *http.Response) (Enviro // GetAseCustomDNSSuffixConfiguration - Get Custom Dns Suffix configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.GetAseCustomDNSSuffixConfiguration @@ -812,7 +812,7 @@ func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -830,7 +830,7 @@ func (client *EnvironmentsClient) getAseCustomDNSSuffixConfigurationHandleRespon // GetAseV3NetworkingConfiguration - Description for Get networking configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetAseV3NetworkingConfigurationOptions contains the optional parameters for the EnvironmentsClient.GetAseV3NetworkingConfiguration @@ -877,7 +877,7 @@ func (client *EnvironmentsClient) getAseV3NetworkingConfigurationCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -895,7 +895,7 @@ func (client *EnvironmentsClient) getAseV3NetworkingConfigurationHandleResponse( // GetDiagnosticsItem - Description for Get a diagnostics item for an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - diagnosticsName - Name of the diagnostics item. @@ -947,7 +947,7 @@ func (client *EnvironmentsClient) getDiagnosticsItemCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -965,7 +965,7 @@ func (client *EnvironmentsClient) getDiagnosticsItemHandleResponse(resp *http.Re // NewGetInboundNetworkDependenciesEndpointsPager - Description for Get the network endpoints of all inbound dependencies // of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetInboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.NewGetInboundNetworkDependenciesEndpointsPager @@ -1013,7 +1013,7 @@ func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1031,7 +1031,7 @@ func (client *EnvironmentsClient) getInboundNetworkDependenciesEndpointsHandleRe // GetMultiRolePool - Description for Get properties of a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetMultiRolePoolOptions contains the optional parameters for the EnvironmentsClient.GetMultiRolePool @@ -1078,7 +1078,7 @@ func (client *EnvironmentsClient) getMultiRolePoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1096,7 +1096,7 @@ func (client *EnvironmentsClient) getMultiRolePoolHandleResponse(resp *http.Resp // NewGetOutboundNetworkDependenciesEndpointsPager - Description for Get the network endpoints of all outbound dependencies // of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the EnvironmentsClient.NewGetOutboundNetworkDependenciesEndpointsPager @@ -1144,7 +1144,7 @@ func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1162,7 +1162,7 @@ func (client *EnvironmentsClient) getOutboundNetworkDependenciesEndpointsHandleR // GetPrivateEndpointConnection - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -1214,7 +1214,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1232,7 +1232,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionHandleResponse(res // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoints associated with a hosting // environment // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the EnvironmentsClient.NewGetPrivateEndpointConnectionListPager @@ -1280,7 +1280,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionListCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1298,7 +1298,7 @@ func (client *EnvironmentsClient) getPrivateEndpointConnectionListHandleResponse // GetPrivateLinkResources - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetPrivateLinkResourcesOptions contains the optional parameters for the EnvironmentsClient.GetPrivateLinkResources @@ -1345,7 +1345,7 @@ func (client *EnvironmentsClient) getPrivateLinkResourcesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1363,7 +1363,7 @@ func (client *EnvironmentsClient) getPrivateLinkResourcesHandleResponse(resp *ht // GetVipInfo - Description for Get IP addresses assigned to an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientGetVipInfoOptions contains the optional parameters for the EnvironmentsClient.GetVipInfo method. @@ -1409,7 +1409,7 @@ func (client *EnvironmentsClient) getVipInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1427,7 +1427,7 @@ func (client *EnvironmentsClient) getVipInfoHandleResponse(resp *http.Response) // GetWorkerPool - Description for Get properties of a worker pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -1479,7 +1479,7 @@ func (client *EnvironmentsClient) getWorkerPoolCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1496,7 +1496,7 @@ func (client *EnvironmentsClient) getWorkerPoolHandleResponse(resp *http.Respons // NewListPager - Description for Get all App Service Environments for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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]{ @@ -1533,7 +1533,7 @@ func (client *EnvironmentsClient) listCreateRequest(ctx context.Context, _ *Envi return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1550,7 +1550,7 @@ func (client *EnvironmentsClient) listHandleResponse(resp *http.Response) (Envir // NewListAppServicePlansPager - Description for Get all App Service plans in an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListAppServicePlansOptions contains the optional parameters for the EnvironmentsClient.NewListAppServicePlansPager @@ -1598,7 +1598,7 @@ func (client *EnvironmentsClient) listAppServicePlansCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1615,7 +1615,7 @@ func (client *EnvironmentsClient) listAppServicePlansHandleResponse(resp *http.R // NewListByResourceGroupPager - Description for Get all App Service Environments in a resource group. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - EnvironmentsClientListByResourceGroupOptions contains the optional parameters for the EnvironmentsClient.NewListByResourceGroupPager // method. @@ -1658,7 +1658,7 @@ func (client *EnvironmentsClient) listByResourceGroupCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1675,7 +1675,7 @@ func (client *EnvironmentsClient) listByResourceGroupHandleResponse(resp *http.R // NewListCapacitiesPager - Description for Get the used, available, and total worker capacity an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListCapacitiesOptions contains the optional parameters for the EnvironmentsClient.NewListCapacitiesPager @@ -1723,7 +1723,7 @@ func (client *EnvironmentsClient) listCapacitiesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1741,7 +1741,7 @@ func (client *EnvironmentsClient) listCapacitiesHandleResponse(resp *http.Respon // ListDiagnostics - Description for Get diagnostic information for an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListDiagnosticsOptions contains the optional parameters for the EnvironmentsClient.ListDiagnostics @@ -1788,7 +1788,7 @@ func (client *EnvironmentsClient) listDiagnosticsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1806,7 +1806,7 @@ func (client *EnvironmentsClient) listDiagnosticsHandleResponse(resp *http.Respo // NewListMultiRoleMetricDefinitionsPager - Description for Get metric definitions for a multi-role pool of an App Service // Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListMultiRoleMetricDefinitionsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRoleMetricDefinitionsPager @@ -1854,7 +1854,7 @@ func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1872,7 +1872,7 @@ func (client *EnvironmentsClient) listMultiRoleMetricDefinitionsHandleResponse(r // NewListMultiRolePoolInstanceMetricDefinitionsPager - Description for Get metric definitions for a specific instance of // a multi-role pool of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - instance - Name of the instance in the multi-role pool. @@ -1925,7 +1925,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1942,7 +1942,7 @@ func (client *EnvironmentsClient) listMultiRolePoolInstanceMetricDefinitionsHand // NewListMultiRolePoolSKUsPager - Description for Get available SKUs for scaling a multi-role pool. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListMultiRolePoolSKUsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolSKUsPager @@ -1990,7 +1990,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2007,7 +2007,7 @@ func (client *EnvironmentsClient) listMultiRolePoolSKUsHandleResponse(resp *http // NewListMultiRolePoolsPager - Description for Get all multi-role pools. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListMultiRolePoolsOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRolePoolsPager @@ -2055,7 +2055,7 @@ func (client *EnvironmentsClient) listMultiRolePoolsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2072,7 +2072,7 @@ func (client *EnvironmentsClient) listMultiRolePoolsHandleResponse(resp *http.Re // NewListMultiRoleUsagesPager - Description for Get usage metrics for a multi-role pool of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListMultiRoleUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListMultiRoleUsagesPager @@ -2120,7 +2120,7 @@ func (client *EnvironmentsClient) listMultiRoleUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2138,7 +2138,7 @@ func (client *EnvironmentsClient) listMultiRoleUsagesHandleResponse(resp *http.R // ListOperations - Description for List all currently running operations on the App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListOperationsOptions contains the optional parameters for the EnvironmentsClient.ListOperations @@ -2185,7 +2185,7 @@ func (client *EnvironmentsClient) listOperationsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2202,7 +2202,7 @@ func (client *EnvironmentsClient) listOperationsHandleResponse(resp *http.Respon // NewListUsagesPager - Description for Get global usage metrics of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListUsagesOptions contains the optional parameters for the EnvironmentsClient.NewListUsagesPager @@ -2250,7 +2250,7 @@ func (client *EnvironmentsClient) listUsagesCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -2272,7 +2272,7 @@ func (client *EnvironmentsClient) listUsagesHandleResponse(resp *http.Response) // NewListWebAppsPager - Description for Get all apps in an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListWebAppsOptions contains the optional parameters for the EnvironmentsClient.NewListWebAppsPager @@ -2320,7 +2320,7 @@ func (client *EnvironmentsClient) listWebAppsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.PropertiesToInclude != nil { reqQP.Set("propertiesToInclude", *options.PropertiesToInclude) } @@ -2340,7 +2340,7 @@ func (client *EnvironmentsClient) listWebAppsHandleResponse(resp *http.Response) // NewListWebWorkerMetricDefinitionsPager - Description for Get metric definitions for a worker pool of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -2393,7 +2393,7 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2410,7 +2410,7 @@ func (client *EnvironmentsClient) listWebWorkerMetricDefinitionsHandleResponse(r // NewListWebWorkerUsagesPager - Description for Get usage metrics for a worker pool of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -2463,7 +2463,7 @@ func (client *EnvironmentsClient) listWebWorkerUsagesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2481,7 +2481,7 @@ func (client *EnvironmentsClient) listWebWorkerUsagesHandleResponse(resp *http.R // NewListWorkerPoolInstanceMetricDefinitionsPager - Description for Get metric definitions for a specific instance of a worker // pool of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -2539,7 +2539,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2556,7 +2556,7 @@ func (client *EnvironmentsClient) listWorkerPoolInstanceMetricDefinitionsHandleR // NewListWorkerPoolSKUsPager - Description for Get available SKUs for scaling a worker pool. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -2609,7 +2609,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2626,7 +2626,7 @@ func (client *EnvironmentsClient) listWorkerPoolSKUsHandleResponse(resp *http.Re // NewListWorkerPoolsPager - Description for Get all worker pools of an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientListWorkerPoolsOptions contains the optional parameters for the EnvironmentsClient.NewListWorkerPoolsPager @@ -2674,7 +2674,7 @@ func (client *EnvironmentsClient) listWorkerPoolsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2692,7 +2692,7 @@ func (client *EnvironmentsClient) listWorkerPoolsHandleResponse(resp *http.Respo // Reboot - Description for Reboot all machines in an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientRebootOptions contains the optional parameters for the EnvironmentsClient.Reboot method. @@ -2737,7 +2737,7 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2745,7 +2745,7 @@ func (client *EnvironmentsClient) rebootCreateRequest(ctx context.Context, resou // BeginResume - Description for Resume an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientBeginResumeOptions contains the optional parameters for the EnvironmentsClient.BeginResume @@ -2787,7 +2787,7 @@ func (client *EnvironmentsClient) BeginResume(ctx context.Context, resourceGroup // Resume - Description for Resume an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *EnvironmentsClient) resume(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginResumeOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginResume" @@ -2829,7 +2829,7 @@ func (client *EnvironmentsClient) resumeCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2846,7 +2846,7 @@ func (client *EnvironmentsClient) resumeHandleResponse(resp *http.Response) (Env // BeginSuspend - Description for Suspend an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientBeginSuspendOptions contains the optional parameters for the EnvironmentsClient.BeginSuspend @@ -2888,7 +2888,7 @@ func (client *EnvironmentsClient) BeginSuspend(ctx context.Context, resourceGrou // Suspend - Description for Suspend an App Service Environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *EnvironmentsClient) suspend(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginSuspendOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginSuspend" @@ -2930,7 +2930,7 @@ func (client *EnvironmentsClient) suspendCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2948,7 +2948,7 @@ func (client *EnvironmentsClient) suspendHandleResponse(resp *http.Response) (En // TestUpgradeAvailableNotification - Send a test notification that an upgrade is available for this App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientTestUpgradeAvailableNotificationOptions contains the optional parameters for the EnvironmentsClient.TestUpgradeAvailableNotification @@ -2994,7 +2994,7 @@ func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3003,7 +3003,7 @@ func (client *EnvironmentsClient) testUpgradeAvailableNotificationCreateRequest( // Update - Description for Create or update an App Service Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - hostingEnvironmentEnvelope - Configuration details of the App Service Environment. @@ -3050,7 +3050,7 @@ func (client *EnvironmentsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostingEnvironmentEnvelope); err != nil { @@ -3071,7 +3071,7 @@ func (client *EnvironmentsClient) updateHandleResponse(resp *http.Response) (Env // UpdateAseCustomDNSSuffixConfiguration - Update Custom Dns Suffix configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientUpdateAseCustomDNSSuffixConfigurationOptions contains the optional parameters for the EnvironmentsClient.UpdateAseCustomDNSSuffixConfiguration @@ -3118,7 +3118,7 @@ func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, customDNSSuffixConfiguration); err != nil { @@ -3139,7 +3139,7 @@ func (client *EnvironmentsClient) updateAseCustomDNSSuffixConfigurationHandleRes // UpdateAseNetworkingConfiguration - Description for Update networking configuration of an App Service Environment // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientUpdateAseNetworkingConfigurationOptions contains the optional parameters for the EnvironmentsClient.UpdateAseNetworkingConfiguration @@ -3186,7 +3186,7 @@ func (client *EnvironmentsClient) updateAseNetworkingConfigurationCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, aseNetworkingConfiguration); err != nil { @@ -3207,7 +3207,7 @@ func (client *EnvironmentsClient) updateAseNetworkingConfigurationHandleResponse // UpdateMultiRolePool - Description for Create or update a multi-role pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - multiRolePoolEnvelope - Properties of the multi-role pool. @@ -3255,7 +3255,7 @@ func (client *EnvironmentsClient) updateMultiRolePoolCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, multiRolePoolEnvelope); err != nil { @@ -3276,7 +3276,7 @@ func (client *EnvironmentsClient) updateMultiRolePoolHandleResponse(resp *http.R // UpdateWorkerPool - Description for Create or update a worker pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - workerPoolName - Name of the worker pool. @@ -3329,7 +3329,7 @@ func (client *EnvironmentsClient) updateWorkerPoolCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, workerPoolEnvelope); err != nil { @@ -3350,7 +3350,7 @@ func (client *EnvironmentsClient) updateWorkerPoolHandleResponse(resp *http.Resp // BeginUpgrade - Description for Initiate an upgrade of an App Service Environment if one is available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service Environment. // - options - EnvironmentsClientBeginUpgradeOptions contains the optional parameters for the EnvironmentsClient.BeginUpgrade @@ -3375,7 +3375,7 @@ func (client *EnvironmentsClient) BeginUpgrade(ctx context.Context, resourceGrou // Upgrade - Description for Initiate an upgrade of an App Service Environment if one is available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *EnvironmentsClient) upgrade(ctx context.Context, resourceGroupName string, name string, options *EnvironmentsClientBeginUpgradeOptions) (*http.Response, error) { var err error const operationName = "EnvironmentsClient.BeginUpgrade" @@ -3417,7 +3417,7 @@ func (client *EnvironmentsClient) upgradeCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index f55c355b996b..33eca62169c1 100644 --- a/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/environments_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_List.json func ExampleEnvironmentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -93,7 +93,7 @@ func ExampleEnvironmentsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListByResourceGroup.json func ExampleEnvironmentsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -168,7 +168,7 @@ func ExampleEnvironmentsClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Get.json func ExampleEnvironmentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -235,7 +235,7 @@ func ExampleEnvironmentsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdate.json func ExampleEnvironmentsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -314,7 +314,7 @@ func ExampleEnvironmentsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Delete.json func ExampleEnvironmentsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -335,7 +335,7 @@ func ExampleEnvironmentsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Update.json func ExampleEnvironmentsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -409,7 +409,7 @@ func ExampleEnvironmentsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListCapacities.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListCapacities.json func ExampleEnvironmentsClient_NewListCapacitiesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -464,7 +464,7 @@ func ExampleEnvironmentsClient_NewListCapacitiesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetVipInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetVipInfo.json func ExampleEnvironmentsClient_GetVipInfo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -507,7 +507,7 @@ func ExampleEnvironmentsClient_GetVipInfo() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ChangeVnet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ChangeVnet.json func ExampleEnvironmentsClient_BeginChangeVnet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -545,7 +545,7 @@ func ExampleEnvironmentsClient_BeginChangeVnet() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAseCustomDnsSuffixConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAseCustomDnsSuffixConfiguration.json func ExampleEnvironmentsClient_GetAseCustomDNSSuffixConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -576,7 +576,7 @@ func ExampleEnvironmentsClient_GetAseCustomDNSSuffixConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAseCustomDnsSuffixConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAseCustomDnsSuffixConfiguration.json func ExampleEnvironmentsClient_UpdateAseCustomDNSSuffixConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -613,7 +613,7 @@ func ExampleEnvironmentsClient_UpdateAseCustomDNSSuffixConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteAseCustomDnsSuffixConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteAseCustomDnsSuffixConfiguration.json func ExampleEnvironmentsClient_DeleteAseCustomDNSSuffixConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -635,7 +635,7 @@ func ExampleEnvironmentsClient_DeleteAseCustomDNSSuffixConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetAseV3NetworkingConfiguration.json func ExampleEnvironmentsClient_GetAseV3NetworkingConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -675,7 +675,7 @@ func ExampleEnvironmentsClient_GetAseV3NetworkingConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_UpdateAseNetworkingConfiguration.json func ExampleEnvironmentsClient_UpdateAseNetworkingConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -720,7 +720,7 @@ func ExampleEnvironmentsClient_UpdateAseNetworkingConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListDiagnostics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListDiagnostics.json func ExampleEnvironmentsClient_ListDiagnostics() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -741,7 +741,7 @@ func ExampleEnvironmentsClient_ListDiagnostics() { // res.HostingEnvironmentDiagnosticsArray = []*armappservice.HostingEnvironmentDiagnostics{} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetDiagnosticsItem.json func ExampleEnvironmentsClient_GetDiagnosticsItem() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -764,7 +764,7 @@ func ExampleEnvironmentsClient_GetDiagnosticsItem() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetInboundNetworkDependenciesEndpoints.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetInboundNetworkDependenciesEndpoints.json func ExampleEnvironmentsClient_NewGetInboundNetworkDependenciesEndpointsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -848,7 +848,7 @@ func ExampleEnvironmentsClient_NewGetInboundNetworkDependenciesEndpointsPager() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRolePools.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRolePools.json func ExampleEnvironmentsClient_NewListMultiRolePoolsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -895,7 +895,7 @@ func ExampleEnvironmentsClient_NewListMultiRolePoolsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetMultiRolePool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetMultiRolePool.json func ExampleEnvironmentsClient_GetMultiRolePool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -934,7 +934,7 @@ func ExampleEnvironmentsClient_GetMultiRolePool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json func ExampleEnvironmentsClient_BeginCreateOrUpdateMultiRolePool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -965,7 +965,7 @@ func ExampleEnvironmentsClient_BeginCreateOrUpdateMultiRolePool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json func ExampleEnvironmentsClient_UpdateMultiRolePool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -992,7 +992,7 @@ func ExampleEnvironmentsClient_UpdateMultiRolePool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json func ExampleEnvironmentsClient_NewListMultiRolePoolInstanceMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1044,7 +1044,7 @@ func ExampleEnvironmentsClient_NewListMultiRolePoolInstanceMetricDefinitionsPage } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRoleMetricDefinitions.json func ExampleEnvironmentsClient_NewListMultiRoleMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1096,7 +1096,7 @@ func ExampleEnvironmentsClient_NewListMultiRoleMetricDefinitionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRolePoolSkus.json func ExampleEnvironmentsClient_NewListMultiRolePoolSKUsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1254,7 +1254,7 @@ func ExampleEnvironmentsClient_NewListMultiRolePoolSKUsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_TestUpgradeAvailableNotification.json func ExampleEnvironmentsClient_TestUpgradeAvailableNotification() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1271,7 +1271,7 @@ func ExampleEnvironmentsClient_TestUpgradeAvailableNotification() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Upgrade.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Upgrade.json func ExampleEnvironmentsClient_BeginUpgrade() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1292,7 +1292,7 @@ func ExampleEnvironmentsClient_BeginUpgrade() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListMultiRoleUsages.json func ExampleEnvironmentsClient_NewListMultiRoleUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1321,7 +1321,7 @@ func ExampleEnvironmentsClient_NewListMultiRoleUsagesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListOperations.json func ExampleEnvironmentsClient_ListOperations() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1343,7 +1343,7 @@ func ExampleEnvironmentsClient_ListOperations() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetOutboundNetworkDependenciesEndpoints.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetOutboundNetworkDependenciesEndpoints.json func ExampleEnvironmentsClient_NewGetOutboundNetworkDependenciesEndpointsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2107,7 +2107,7 @@ func ExampleEnvironmentsClient_NewGetOutboundNetworkDependenciesEndpointsPager() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnectionList.json func ExampleEnvironmentsClient_NewGetPrivateEndpointConnectionListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2153,7 +2153,7 @@ func ExampleEnvironmentsClient_NewGetPrivateEndpointConnectionListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateEndpointConnection.json func ExampleEnvironmentsClient_GetPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2191,7 +2191,7 @@ func ExampleEnvironmentsClient_GetPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json func ExampleEnvironmentsClient_BeginApproveOrRejectPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2240,7 +2240,7 @@ func ExampleEnvironmentsClient_BeginApproveOrRejectPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_DeletePrivateEndpointConnection.json func ExampleEnvironmentsClient_BeginDeletePrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2266,7 +2266,7 @@ func ExampleEnvironmentsClient_BeginDeletePrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetPrivateLinkResources.json func ExampleEnvironmentsClient_GetPrivateLinkResources() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2290,7 +2290,7 @@ func ExampleEnvironmentsClient_GetPrivateLinkResources() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Reboot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Reboot.json func ExampleEnvironmentsClient_Reboot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2307,7 +2307,7 @@ func ExampleEnvironmentsClient_Reboot() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Resume.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Resume.json func ExampleEnvironmentsClient_BeginResume() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2343,7 +2343,7 @@ func ExampleEnvironmentsClient_BeginResume() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListAppServicePlans.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListAppServicePlans.json func ExampleEnvironmentsClient_NewListAppServicePlansPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2411,7 +2411,7 @@ func ExampleEnvironmentsClient_NewListAppServicePlansPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWebApps.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWebApps.json func ExampleEnvironmentsClient_NewListWebAppsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2500,7 +2500,7 @@ func ExampleEnvironmentsClient_NewListWebAppsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_Suspend.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_Suspend.json func ExampleEnvironmentsClient_BeginSuspend() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2536,7 +2536,7 @@ func ExampleEnvironmentsClient_BeginSuspend() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListUsages.json func ExampleEnvironmentsClient_NewListUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2574,7 +2574,7 @@ func ExampleEnvironmentsClient_NewListUsagesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWorkerPools.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWorkerPools.json func ExampleEnvironmentsClient_NewListWorkerPoolsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2641,7 +2641,7 @@ func ExampleEnvironmentsClient_NewListWorkerPoolsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_GetWorkerPool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_GetWorkerPool.json func ExampleEnvironmentsClient_GetWorkerPool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2674,7 +2674,7 @@ func ExampleEnvironmentsClient_GetWorkerPool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json func ExampleEnvironmentsClient_BeginCreateOrUpdateWorkerPool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2705,7 +2705,7 @@ func ExampleEnvironmentsClient_BeginCreateOrUpdateWorkerPool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_CreateOrUpdateWorkerPool.json func ExampleEnvironmentsClient_UpdateWorkerPool() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2732,7 +2732,7 @@ func ExampleEnvironmentsClient_UpdateWorkerPool() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json func ExampleEnvironmentsClient_NewListWorkerPoolInstanceMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2776,7 +2776,7 @@ func ExampleEnvironmentsClient_NewListWorkerPoolInstanceMetricDefinitionsPager() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWebWorkerMetricDefinitions.json func ExampleEnvironmentsClient_NewListWebWorkerMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2820,7 +2820,7 @@ func ExampleEnvironmentsClient_NewListWebWorkerMetricDefinitionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWorkerPoolSkus.json func ExampleEnvironmentsClient_NewListWorkerPoolSKUsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2913,7 +2913,7 @@ func ExampleEnvironmentsClient_NewListWorkerPoolSKUsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AppServiceEnvironments_ListWebWorkerUsages.json func ExampleEnvironmentsClient_NewListWebWorkerUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go index c64d688992e3..da4e55dcc0ea 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateorders_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -218,7 +218,7 @@ func (c *CertificateOrdersServerTransport) dispatchBeginCreateOrUpdate(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CertificateOrder](req) @@ -266,7 +266,7 @@ func (c *CertificateOrdersServerTransport) dispatchBeginCreateOrUpdateCertificat const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CertificateResource](req) @@ -316,7 +316,7 @@ func (c *CertificateOrdersServerTransport) dispatchDelete(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -349,7 +349,7 @@ func (c *CertificateOrdersServerTransport) dispatchDeleteCertificate(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -386,7 +386,7 @@ func (c *CertificateOrdersServerTransport) dispatchGet(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -419,7 +419,7 @@ func (c *CertificateOrdersServerTransport) dispatchGetCertificate(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -458,7 +458,7 @@ func (c *CertificateOrdersServerTransport) dispatchNewListPager(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := c.srv.NewListPager(nil) @@ -491,7 +491,7 @@ func (c *CertificateOrdersServerTransport) dispatchNewListByResourceGroupPager(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -528,7 +528,7 @@ func (c *CertificateOrdersServerTransport) dispatchNewListCertificatesPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/certificates` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -567,7 +567,7 @@ func (c *CertificateOrdersServerTransport) dispatchReissue(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/reissue` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.ReissueCertificateOrderRequest](req) @@ -604,7 +604,7 @@ func (c *CertificateOrdersServerTransport) dispatchRenew(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/renew` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RenewCertificateOrderRequest](req) @@ -641,7 +641,7 @@ func (c *CertificateOrdersServerTransport) dispatchResendEmail(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resendEmail` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -674,7 +674,7 @@ func (c *CertificateOrdersServerTransport) dispatchResendRequestEmails(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resendRequestEmails` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.NameIdentifier](req) @@ -711,7 +711,7 @@ func (c *CertificateOrdersServerTransport) dispatchRetrieveCertificateActions(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/retrieveCertificateActions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -744,7 +744,7 @@ func (c *CertificateOrdersServerTransport) dispatchRetrieveCertificateEmailHisto const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/retrieveEmailHistory` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -777,7 +777,7 @@ func (c *CertificateOrdersServerTransport) dispatchRetrieveSiteSeal(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/retrieveSiteSeal` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteSealRequest](req) @@ -814,7 +814,7 @@ func (c *CertificateOrdersServerTransport) dispatchUpdate(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CertificateOrderPatchResource](req) @@ -851,7 +851,7 @@ func (c *CertificateOrdersServerTransport) dispatchUpdateCertificate(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CertificatePatchResource](req) @@ -892,7 +892,7 @@ func (c *CertificateOrdersServerTransport) dispatchValidatePurchaseInformation(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/validateCertificateRegistrationInformation` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CertificateOrder](req) @@ -921,7 +921,7 @@ func (c *CertificateOrdersServerTransport) dispatchVerifyDomainOwnership(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/verifyDomainOwnership` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go index c09dce008a7c..c778a1ea2274 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateordersdiagnostics_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -101,7 +101,7 @@ func (c *CertificateOrdersDiagnosticsServerTransport) dispatchGetAppServiceCerti const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -170,7 +170,7 @@ func (c *CertificateOrdersDiagnosticsServerTransport) dispatchNewListAppServiceC const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.CertificateRegistration/certificateOrders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go index 2fcdc6af8040..a6247962ee71 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificateregistrationprovider_server.go @@ -12,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" ) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go b/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go index 45bbc9bc225b..cc0b406b802b 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/certificates_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -126,7 +126,7 @@ func (c *CertificatesServerTransport) dispatchCreateOrUpdate(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificate](req) @@ -163,7 +163,7 @@ func (c *CertificatesServerTransport) dispatchDelete(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -196,7 +196,7 @@ func (c *CertificatesServerTransport) dispatchGet(req *http.Request) (*http.Resp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -231,7 +231,7 @@ func (c *CertificatesServerTransport) dispatchNewListPager(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/certificates` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -276,7 +276,7 @@ func (c *CertificatesServerTransport) dispatchNewListByResourceGroupPager(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/certificates` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -311,7 +311,7 @@ func (c *CertificatesServerTransport) dispatchUpdate(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/certificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificatePatchResource](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go index f0fb07798cfd..c0daf7aed052 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/deletedwebapps_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -108,7 +108,7 @@ func (d *DeletedWebAppsServerTransport) dispatchGetDeletedWebAppByLocation(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deletedSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } locationParam, err := url.PathUnescape(matches[regex.SubexpIndex("location")]) @@ -143,7 +143,7 @@ func (d *DeletedWebAppsServerTransport) dispatchNewListPager(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/deletedSites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := d.srv.NewListPager(nil) @@ -176,7 +176,7 @@ func (d *DeletedWebAppsServerTransport) dispatchNewListByLocationPager(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deletedSites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } locationParam, err := url.PathUnescape(matches[regex.SubexpIndex("location")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go b/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go index d657de751029..f0b514c69aee 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/diagnostics_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -237,7 +237,7 @@ func (d *DiagnosticsServerTransport) dispatchExecuteSiteAnalysis(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyses/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/execute` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -308,7 +308,7 @@ func (d *DiagnosticsServerTransport) dispatchExecuteSiteAnalysisSlot(req *http.R 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyses/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/execute` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -383,7 +383,7 @@ func (d *DiagnosticsServerTransport) dispatchExecuteSiteDetector(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/execute` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -454,7 +454,7 @@ func (d *DiagnosticsServerTransport) dispatchExecuteSiteDetectorSlot(req *http.R 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/execute` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -529,7 +529,7 @@ func (d *DiagnosticsServerTransport) dispatchGetHostingEnvironmentDetectorRespon const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -596,7 +596,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteAnalysis(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyses/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -637,7 +637,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteAnalysisSlot(req *http.Reque 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyses/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -682,7 +682,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteDetector(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -723,7 +723,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteDetectorResponse(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -790,7 +790,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteDetectorResponseSlot(req *ht 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~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -861,7 +861,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteDetectorSlot(req *http.Reque 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -906,7 +906,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteDiagnosticCategory(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -943,7 +943,7 @@ func (d *DiagnosticsServerTransport) dispatchGetSiteDiagnosticCategorySlot(req * 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -986,7 +986,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListHostingEnvironmentDetectorRe const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1027,7 +1027,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteAnalysesPager(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyses` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1072,7 +1072,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteAnalysesSlotPager(req *h 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyses` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1121,7 +1121,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDetectorResponsesPager(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1162,7 +1162,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDetectorResponsesSlotPag 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~%@]+)/detectors` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1207,7 +1207,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDetectorsPager(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1252,7 +1252,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDetectorsSlotPager(req * 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~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detectors` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1301,7 +1301,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDiagnosticCategoriesPage const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1342,7 +1342,7 @@ func (d *DiagnosticsServerTransport) dispatchNewListSiteDiagnosticCategoriesSlot 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~%@]+)/diagnostics` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go index 6c97c46dd7e9..47045c898648 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/domainregistrationprovider_server.go @@ -12,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" ) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go b/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go index ef0ef025ad19..a3738f18dfc8 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/domains_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -193,7 +193,7 @@ func (d *DomainsServerTransport) dispatchCheckAvailability(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/checkDomainAvailability` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.NameIdentifier](req) @@ -224,7 +224,7 @@ func (d *DomainsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Domain](req) @@ -270,7 +270,7 @@ func (d *DomainsServerTransport) dispatchCreateOrUpdateOwnershipIdentifier(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DomainOwnershipIdentifier](req) @@ -311,7 +311,7 @@ func (d *DomainsServerTransport) dispatchDelete(req *http.Request) (*http.Respon const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -359,7 +359,7 @@ func (d *DomainsServerTransport) dispatchDeleteOwnershipIdentifier(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -396,7 +396,7 @@ func (d *DomainsServerTransport) dispatchGet(req *http.Request) (*http.Response, const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -429,7 +429,7 @@ func (d *DomainsServerTransport) dispatchGetControlCenterSsoRequest(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/generateSsoRequest` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } respr, errRespr := d.srv.GetControlCenterSsoRequest(req.Context(), nil) @@ -454,7 +454,7 @@ func (d *DomainsServerTransport) dispatchGetOwnershipIdentifier(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -493,7 +493,7 @@ func (d *DomainsServerTransport) dispatchNewListPager(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := d.srv.NewListPager(nil) @@ -526,7 +526,7 @@ func (d *DomainsServerTransport) dispatchNewListByResourceGroupPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -563,7 +563,7 @@ func (d *DomainsServerTransport) dispatchNewListOwnershipIdentifiersPager(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -604,7 +604,7 @@ func (d *DomainsServerTransport) dispatchNewListRecommendationsPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/listDomainRecommendations` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DomainRecommendationSearchParameters](req) @@ -639,7 +639,7 @@ func (d *DomainsServerTransport) dispatchRenew(req *http.Request) (*http.Respons const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/renew` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -672,7 +672,7 @@ func (d *DomainsServerTransport) dispatchTransferOut(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/transferOut` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -705,7 +705,7 @@ func (d *DomainsServerTransport) dispatchUpdate(req *http.Request) (*http.Respon const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DomainPatchResource](req) @@ -742,7 +742,7 @@ func (d *DomainsServerTransport) dispatchUpdateOwnershipIdentifier(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/domains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DomainOwnershipIdentifier](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go b/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go index f5173cc8e325..73b65ee5c4c6 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/environments_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -435,7 +435,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginApproveOrRejectPrivateEndpoin const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RemotePrivateEndpointConnectionARMResource](req) @@ -487,7 +487,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginChangeVnet(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/changeVirtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VirtualNetworkProfile](req) @@ -535,7 +535,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginCreateOrUpdate(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.EnvironmentResource](req) @@ -583,7 +583,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginCreateOrUpdateMultiRolePool(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.WorkerPoolResource](req) @@ -631,7 +631,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginCreateOrUpdateWorkerPool(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.WorkerPoolResource](req) @@ -683,7 +683,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginDelete(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -740,7 +740,7 @@ func (e *EnvironmentsServerTransport) dispatchDeleteAseCustomDNSSuffixConfigurat const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/configurations/customdnssuffix` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -775,7 +775,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginDeletePrivateEndpointConnecti const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -821,7 +821,7 @@ func (e *EnvironmentsServerTransport) dispatchGet(req *http.Request) (*http.Resp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -854,7 +854,7 @@ func (e *EnvironmentsServerTransport) dispatchGetAseCustomDNSSuffixConfiguration const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/configurations/customdnssuffix` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -887,7 +887,7 @@ func (e *EnvironmentsServerTransport) dispatchGetAseV3NetworkingConfiguration(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/configurations/networking` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -920,7 +920,7 @@ func (e *EnvironmentsServerTransport) dispatchGetDiagnosticsItem(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -959,7 +959,7 @@ func (e *EnvironmentsServerTransport) dispatchNewGetInboundNetworkDependenciesEn const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/inboundNetworkDependenciesEndpoints` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -998,7 +998,7 @@ func (e *EnvironmentsServerTransport) dispatchGetMultiRolePool(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1033,7 +1033,7 @@ func (e *EnvironmentsServerTransport) dispatchNewGetOutboundNetworkDependenciesE const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/outboundNetworkDependenciesEndpoints` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1072,7 +1072,7 @@ func (e *EnvironmentsServerTransport) dispatchGetPrivateEndpointConnection(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1111,7 +1111,7 @@ func (e *EnvironmentsServerTransport) dispatchNewGetPrivateEndpointConnectionLis const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1150,7 +1150,7 @@ func (e *EnvironmentsServerTransport) dispatchGetPrivateLinkResources(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateLinkResources` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1183,7 +1183,7 @@ func (e *EnvironmentsServerTransport) dispatchGetVipInfo(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capacities/virtualip` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1216,7 +1216,7 @@ func (e *EnvironmentsServerTransport) dispatchGetWorkerPool(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1255,7 +1255,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListPager(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := e.srv.NewListPager(nil) @@ -1288,7 +1288,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListAppServicePlansPager(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/serverfarms` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1329,7 +1329,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListByResourceGroupPager(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1366,7 +1366,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListCapacitiesPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capacities/compute` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1405,7 +1405,7 @@ func (e *EnvironmentsServerTransport) dispatchListDiagnostics(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/diagnostics` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1440,7 +1440,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListMultiRoleMetricDefinitionsP const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default/metricdefinitions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1481,7 +1481,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListMultiRolePoolInstanceMetric const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/metricdefinitions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1526,7 +1526,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListMultiRolePoolSKUsPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default/skus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1567,7 +1567,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListMultiRolePoolsPager(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1608,7 +1608,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListMultiRoleUsagesPager(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1647,7 +1647,7 @@ func (e *EnvironmentsServerTransport) dispatchListOperations(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/operations` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1682,7 +1682,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListUsagesPager(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -1735,7 +1735,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListWebAppsPager(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -1788,7 +1788,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListWebWorkerMetricDefinitionsP const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/metricdefinitions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1833,7 +1833,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListWebWorkerUsagesPager(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1878,7 +1878,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListWorkerPoolInstanceMetricDef const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/metricdefinitions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1927,7 +1927,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListWorkerPoolSKUsPager(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/skus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1972,7 +1972,7 @@ func (e *EnvironmentsServerTransport) dispatchNewListWorkerPoolsPager(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2011,7 +2011,7 @@ func (e *EnvironmentsServerTransport) dispatchReboot(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/reboot` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2046,7 +2046,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginResume(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resume` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2090,7 +2090,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginSuspend(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/suspend` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2132,7 +2132,7 @@ func (e *EnvironmentsServerTransport) dispatchTestUpgradeAvailableNotification(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/testUpgradeAvailableNotification` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2165,7 +2165,7 @@ func (e *EnvironmentsServerTransport) dispatchUpdate(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.EnvironmentPatchResource](req) @@ -2202,7 +2202,7 @@ func (e *EnvironmentsServerTransport) dispatchUpdateAseCustomDNSSuffixConfigurat const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/configurations/customdnssuffix` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CustomDNSSuffixConfiguration](req) @@ -2239,7 +2239,7 @@ func (e *EnvironmentsServerTransport) dispatchUpdateAseNetworkingConfiguration(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/configurations/networking` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AseV3NetworkingConfiguration](req) @@ -2276,7 +2276,7 @@ func (e *EnvironmentsServerTransport) dispatchUpdateMultiRolePool(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/multiRolePools/default` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.WorkerPoolResource](req) @@ -2313,7 +2313,7 @@ func (e *EnvironmentsServerTransport) dispatchUpdateWorkerPool(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workerPools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.WorkerPoolResource](req) @@ -2356,7 +2356,7 @@ func (e *EnvironmentsServerTransport) dispatchBeginUpgrade(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/upgrade` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go b/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go index db24c357f972..98538783fd49 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/getusagesinlocation_server.go @@ -12,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -95,7 +95,7 @@ func (g *GetUsagesInLocationServerTransport) dispatchNewListPager(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } locationParam, err := url.PathUnescape(matches[regex.SubexpIndex("location")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/global_server.go b/sdk/resourcemanager/appservice/armappservice/fake/global_server.go index f2e73c3732f8..56257f5c4e00 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/global_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/global_server.go @@ -12,7 +12,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -101,7 +101,7 @@ func (g *GlobalServerTransport) dispatchGetDeletedWebApp(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/deletedSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } deletedSiteIDParam, err := url.PathUnescape(matches[regex.SubexpIndex("deletedSiteId")]) @@ -130,7 +130,7 @@ func (g *GlobalServerTransport) dispatchGetDeletedWebAppSnapshots(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/deletedSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/snapshots` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } deletedSiteIDParam, err := url.PathUnescape(matches[regex.SubexpIndex("deletedSiteId")]) @@ -159,7 +159,7 @@ func (g *GlobalServerTransport) dispatchGetSubscriptionOperationWithAsyncRespons const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/operations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } locationParam, err := url.PathUnescape(matches[regex.SubexpIndex("location")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go b/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go index 9f3673fd2058..e694d5f5dce8 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/kubeenvironments_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -132,7 +132,7 @@ func (k *KubeEnvironmentsServerTransport) dispatchBeginCreateOrUpdate(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/kubeEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.KubeEnvironment](req) @@ -180,7 +180,7 @@ func (k *KubeEnvironmentsServerTransport) dispatchBeginDelete(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/kubeEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -222,7 +222,7 @@ func (k *KubeEnvironmentsServerTransport) dispatchGet(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/kubeEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -257,7 +257,7 @@ func (k *KubeEnvironmentsServerTransport) dispatchNewListByResourceGroupPager(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/kubeEnvironments` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -294,7 +294,7 @@ func (k *KubeEnvironmentsServerTransport) dispatchNewListBySubscriptionPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/kubeEnvironments` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := k.srv.NewListBySubscriptionPager(nil) @@ -325,7 +325,7 @@ func (k *KubeEnvironmentsServerTransport) dispatchUpdate(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/kubeEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.KubeEnvironmentPatchResource](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go b/sdk/resourcemanager/appservice/armappservice/fake/management_server.go similarity index 59% rename from sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go rename to sdk/resourcemanager/appservice/armappservice/fake/management_server.go index 69b898135ea0..22b0a6842322 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/websitemanagement_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/management_server.go @@ -13,182 +13,182 @@ 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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" "strconv" ) -// WebSiteManagementServer is a fake server for instances of the armappservice.WebSiteManagementClient type. -type WebSiteManagementServer struct { - // CheckNameAvailability is the fake for method WebSiteManagementClient.CheckNameAvailability +// ManagementServer is a fake server for instances of the armappservice.ManagementClient type. +type ManagementServer struct { + // CheckNameAvailability is the fake for method ManagementClient.CheckNameAvailability // HTTP status codes to indicate success: http.StatusOK - CheckNameAvailability func(ctx context.Context, request armappservice.ResourceNameAvailabilityRequest, options *armappservice.WebSiteManagementClientCheckNameAvailabilityOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder) + CheckNameAvailability func(ctx context.Context, request armappservice.ResourceNameAvailabilityRequest, options *armappservice.ManagementClientCheckNameAvailabilityOptions) (resp azfake.Responder[armappservice.ManagementClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder) - // GetPublishingUser is the fake for method WebSiteManagementClient.GetPublishingUser + // GetPublishingUser is the fake for method ManagementClient.GetPublishingUser // HTTP status codes to indicate success: http.StatusOK - GetPublishingUser func(ctx context.Context, options *armappservice.WebSiteManagementClientGetPublishingUserOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientGetPublishingUserResponse], errResp azfake.ErrorResponder) + GetPublishingUser func(ctx context.Context, options *armappservice.ManagementClientGetPublishingUserOptions) (resp azfake.Responder[armappservice.ManagementClientGetPublishingUserResponse], errResp azfake.ErrorResponder) - // GetSourceControl is the fake for method WebSiteManagementClient.GetSourceControl + // GetSourceControl is the fake for method ManagementClient.GetSourceControl // HTTP status codes to indicate success: http.StatusOK - GetSourceControl func(ctx context.Context, sourceControlType string, options *armappservice.WebSiteManagementClientGetSourceControlOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientGetSourceControlResponse], errResp azfake.ErrorResponder) + GetSourceControl func(ctx context.Context, sourceControlType string, options *armappservice.ManagementClientGetSourceControlOptions) (resp azfake.Responder[armappservice.ManagementClientGetSourceControlResponse], errResp azfake.ErrorResponder) - // GetSubscriptionDeploymentLocations is the fake for method WebSiteManagementClient.GetSubscriptionDeploymentLocations + // GetSubscriptionDeploymentLocations is the fake for method ManagementClient.GetSubscriptionDeploymentLocations // HTTP status codes to indicate success: http.StatusOK - GetSubscriptionDeploymentLocations func(ctx context.Context, options *armappservice.WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse], errResp azfake.ErrorResponder) + GetSubscriptionDeploymentLocations func(ctx context.Context, options *armappservice.ManagementClientGetSubscriptionDeploymentLocationsOptions) (resp azfake.Responder[armappservice.ManagementClientGetSubscriptionDeploymentLocationsResponse], errResp azfake.ErrorResponder) - // NewListAseRegionsPager is the fake for method WebSiteManagementClient.NewListAseRegionsPager + // NewListAseRegionsPager is the fake for method ManagementClient.NewListAseRegionsPager // HTTP status codes to indicate success: http.StatusOK - NewListAseRegionsPager func(options *armappservice.WebSiteManagementClientListAseRegionsOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListAseRegionsResponse]) + NewListAseRegionsPager func(options *armappservice.ManagementClientListAseRegionsOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListAseRegionsResponse]) - // NewListBillingMetersPager is the fake for method WebSiteManagementClient.NewListBillingMetersPager + // NewListBillingMetersPager is the fake for method ManagementClient.NewListBillingMetersPager // HTTP status codes to indicate success: http.StatusOK - NewListBillingMetersPager func(options *armappservice.WebSiteManagementClientListBillingMetersOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListBillingMetersResponse]) + NewListBillingMetersPager func(options *armappservice.ManagementClientListBillingMetersOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListBillingMetersResponse]) - // NewListCustomHostNameSitesPager is the fake for method WebSiteManagementClient.NewListCustomHostNameSitesPager + // NewListCustomHostNameSitesPager is the fake for method ManagementClient.NewListCustomHostNameSitesPager // HTTP status codes to indicate success: http.StatusOK - NewListCustomHostNameSitesPager func(options *armappservice.WebSiteManagementClientListCustomHostNameSitesOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListCustomHostNameSitesResponse]) + NewListCustomHostNameSitesPager func(options *armappservice.ManagementClientListCustomHostNameSitesOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListCustomHostNameSitesResponse]) - // NewListGeoRegionsPager is the fake for method WebSiteManagementClient.NewListGeoRegionsPager + // NewListGeoRegionsPager is the fake for method ManagementClient.NewListGeoRegionsPager // HTTP status codes to indicate success: http.StatusOK - NewListGeoRegionsPager func(options *armappservice.WebSiteManagementClientListGeoRegionsOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListGeoRegionsResponse]) + NewListGeoRegionsPager func(options *armappservice.ManagementClientListGeoRegionsOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListGeoRegionsResponse]) - // NewListPremierAddOnOffersPager is the fake for method WebSiteManagementClient.NewListPremierAddOnOffersPager + // NewListPremierAddOnOffersPager is the fake for method ManagementClient.NewListPremierAddOnOffersPager // HTTP status codes to indicate success: http.StatusOK - NewListPremierAddOnOffersPager func(options *armappservice.WebSiteManagementClientListPremierAddOnOffersOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListPremierAddOnOffersResponse]) + NewListPremierAddOnOffersPager func(options *armappservice.ManagementClientListPremierAddOnOffersOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListPremierAddOnOffersResponse]) - // ListSKUs is the fake for method WebSiteManagementClient.ListSKUs + // ListSKUs is the fake for method ManagementClient.ListSKUs // HTTP status codes to indicate success: http.StatusOK - ListSKUs func(ctx context.Context, options *armappservice.WebSiteManagementClientListSKUsOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientListSKUsResponse], errResp azfake.ErrorResponder) + ListSKUs func(ctx context.Context, options *armappservice.ManagementClientListSKUsOptions) (resp azfake.Responder[armappservice.ManagementClientListSKUsResponse], errResp azfake.ErrorResponder) - // NewListSiteIdentifiersAssignedToHostNamePager is the fake for method WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager + // NewListSiteIdentifiersAssignedToHostNamePager is the fake for method ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager // HTTP status codes to indicate success: http.StatusOK - NewListSiteIdentifiersAssignedToHostNamePager func(nameIdentifier armappservice.NameIdentifier, options *armappservice.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse]) + NewListSiteIdentifiersAssignedToHostNamePager func(nameIdentifier armappservice.NameIdentifier, options *armappservice.ManagementClientListSiteIdentifiersAssignedToHostNameOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListSiteIdentifiersAssignedToHostNameResponse]) - // NewListSourceControlsPager is the fake for method WebSiteManagementClient.NewListSourceControlsPager + // NewListSourceControlsPager is the fake for method ManagementClient.NewListSourceControlsPager // HTTP status codes to indicate success: http.StatusOK - NewListSourceControlsPager func(options *armappservice.WebSiteManagementClientListSourceControlsOptions) (resp azfake.PagerResponder[armappservice.WebSiteManagementClientListSourceControlsResponse]) + NewListSourceControlsPager func(options *armappservice.ManagementClientListSourceControlsOptions) (resp azfake.PagerResponder[armappservice.ManagementClientListSourceControlsResponse]) - // Move is the fake for method WebSiteManagementClient.Move + // Move is the fake for method ManagementClient.Move // HTTP status codes to indicate success: http.StatusNoContent - Move func(ctx context.Context, resourceGroupName string, moveResourceEnvelope armappservice.CsmMoveResourceEnvelope, options *armappservice.WebSiteManagementClientMoveOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientMoveResponse], errResp azfake.ErrorResponder) + Move func(ctx context.Context, resourceGroupName string, moveResourceEnvelope armappservice.CsmMoveResourceEnvelope, options *armappservice.ManagementClientMoveOptions) (resp azfake.Responder[armappservice.ManagementClientMoveResponse], errResp azfake.ErrorResponder) - // RegionalCheckNameAvailability is the fake for method WebSiteManagementClient.RegionalCheckNameAvailability + // RegionalCheckNameAvailability is the fake for method ManagementClient.RegionalCheckNameAvailability // HTTP status codes to indicate success: http.StatusOK - RegionalCheckNameAvailability func(ctx context.Context, location string, request armappservice.DnlResourceNameAvailabilityRequest, options *armappservice.WebSiteManagementClientRegionalCheckNameAvailabilityOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientRegionalCheckNameAvailabilityResponse], errResp azfake.ErrorResponder) + RegionalCheckNameAvailability func(ctx context.Context, location string, request armappservice.DnlResourceNameAvailabilityRequest, options *armappservice.ManagementClientRegionalCheckNameAvailabilityOptions) (resp azfake.Responder[armappservice.ManagementClientRegionalCheckNameAvailabilityResponse], errResp azfake.ErrorResponder) - // UpdatePublishingUser is the fake for method WebSiteManagementClient.UpdatePublishingUser + // UpdatePublishingUser is the fake for method ManagementClient.UpdatePublishingUser // HTTP status codes to indicate success: http.StatusOK - UpdatePublishingUser func(ctx context.Context, userDetails armappservice.User, options *armappservice.WebSiteManagementClientUpdatePublishingUserOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientUpdatePublishingUserResponse], errResp azfake.ErrorResponder) + UpdatePublishingUser func(ctx context.Context, userDetails armappservice.User, options *armappservice.ManagementClientUpdatePublishingUserOptions) (resp azfake.Responder[armappservice.ManagementClientUpdatePublishingUserResponse], errResp azfake.ErrorResponder) - // UpdateSourceControl is the fake for method WebSiteManagementClient.UpdateSourceControl + // UpdateSourceControl is the fake for method ManagementClient.UpdateSourceControl // HTTP status codes to indicate success: http.StatusOK - UpdateSourceControl func(ctx context.Context, sourceControlType string, requestMessage armappservice.SourceControl, options *armappservice.WebSiteManagementClientUpdateSourceControlOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientUpdateSourceControlResponse], errResp azfake.ErrorResponder) + UpdateSourceControl func(ctx context.Context, sourceControlType string, requestMessage armappservice.SourceControl, options *armappservice.ManagementClientUpdateSourceControlOptions) (resp azfake.Responder[armappservice.ManagementClientUpdateSourceControlResponse], errResp azfake.ErrorResponder) - // Validate is the fake for method WebSiteManagementClient.Validate + // Validate is the fake for method ManagementClient.Validate // HTTP status codes to indicate success: http.StatusOK - Validate func(ctx context.Context, resourceGroupName string, validateRequest armappservice.ValidateRequest, options *armappservice.WebSiteManagementClientValidateOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientValidateResponse], errResp azfake.ErrorResponder) + Validate func(ctx context.Context, resourceGroupName string, validateRequest armappservice.ValidateRequest, options *armappservice.ManagementClientValidateOptions) (resp azfake.Responder[armappservice.ManagementClientValidateResponse], errResp azfake.ErrorResponder) - // ValidateMove is the fake for method WebSiteManagementClient.ValidateMove + // ValidateMove is the fake for method ManagementClient.ValidateMove // HTTP status codes to indicate success: http.StatusNoContent - ValidateMove func(ctx context.Context, resourceGroupName string, moveResourceEnvelope armappservice.CsmMoveResourceEnvelope, options *armappservice.WebSiteManagementClientValidateMoveOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientValidateMoveResponse], errResp azfake.ErrorResponder) + ValidateMove func(ctx context.Context, resourceGroupName string, moveResourceEnvelope armappservice.CsmMoveResourceEnvelope, options *armappservice.ManagementClientValidateMoveOptions) (resp azfake.Responder[armappservice.ManagementClientValidateMoveResponse], errResp azfake.ErrorResponder) - // VerifyHostingEnvironmentVnet is the fake for method WebSiteManagementClient.VerifyHostingEnvironmentVnet + // VerifyHostingEnvironmentVnet is the fake for method ManagementClient.VerifyHostingEnvironmentVnet // HTTP status codes to indicate success: http.StatusOK - VerifyHostingEnvironmentVnet func(ctx context.Context, parameters armappservice.VnetParameters, options *armappservice.WebSiteManagementClientVerifyHostingEnvironmentVnetOptions) (resp azfake.Responder[armappservice.WebSiteManagementClientVerifyHostingEnvironmentVnetResponse], errResp azfake.ErrorResponder) + VerifyHostingEnvironmentVnet func(ctx context.Context, parameters armappservice.VnetParameters, options *armappservice.ManagementClientVerifyHostingEnvironmentVnetOptions) (resp azfake.Responder[armappservice.ManagementClientVerifyHostingEnvironmentVnetResponse], errResp azfake.ErrorResponder) } -// NewWebSiteManagementServerTransport creates a new instance of WebSiteManagementServerTransport with the provided implementation. -// The returned WebSiteManagementServerTransport instance is connected to an instance of armappservice.WebSiteManagementClient via the +// NewManagementServerTransport creates a new instance of ManagementServerTransport with the provided implementation. +// The returned ManagementServerTransport instance is connected to an instance of armappservice.ManagementClient via the // azcore.ClientOptions.Transporter field in the client's constructor parameters. -func NewWebSiteManagementServerTransport(srv *WebSiteManagementServer) *WebSiteManagementServerTransport { - return &WebSiteManagementServerTransport{ +func NewManagementServerTransport(srv *ManagementServer) *ManagementServerTransport { + return &ManagementServerTransport{ srv: srv, - newListAseRegionsPager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListAseRegionsResponse]](), - newListBillingMetersPager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListBillingMetersResponse]](), - newListCustomHostNameSitesPager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListCustomHostNameSitesResponse]](), - newListGeoRegionsPager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListGeoRegionsResponse]](), - newListPremierAddOnOffersPager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListPremierAddOnOffersResponse]](), - newListSiteIdentifiersAssignedToHostNamePager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse]](), - newListSourceControlsPager: newTracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListSourceControlsResponse]](), + newListAseRegionsPager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListAseRegionsResponse]](), + newListBillingMetersPager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListBillingMetersResponse]](), + newListCustomHostNameSitesPager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListCustomHostNameSitesResponse]](), + newListGeoRegionsPager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListGeoRegionsResponse]](), + newListPremierAddOnOffersPager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListPremierAddOnOffersResponse]](), + newListSiteIdentifiersAssignedToHostNamePager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListSiteIdentifiersAssignedToHostNameResponse]](), + newListSourceControlsPager: newTracker[azfake.PagerResponder[armappservice.ManagementClientListSourceControlsResponse]](), } } -// WebSiteManagementServerTransport connects instances of armappservice.WebSiteManagementClient to instances of WebSiteManagementServer. -// Don't use this type directly, use NewWebSiteManagementServerTransport instead. -type WebSiteManagementServerTransport struct { - srv *WebSiteManagementServer - newListAseRegionsPager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListAseRegionsResponse]] - newListBillingMetersPager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListBillingMetersResponse]] - newListCustomHostNameSitesPager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListCustomHostNameSitesResponse]] - newListGeoRegionsPager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListGeoRegionsResponse]] - newListPremierAddOnOffersPager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListPremierAddOnOffersResponse]] - newListSiteIdentifiersAssignedToHostNamePager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse]] - newListSourceControlsPager *tracker[azfake.PagerResponder[armappservice.WebSiteManagementClientListSourceControlsResponse]] +// ManagementServerTransport connects instances of armappservice.ManagementClient to instances of ManagementServer. +// Don't use this type directly, use NewManagementServerTransport instead. +type ManagementServerTransport struct { + srv *ManagementServer + newListAseRegionsPager *tracker[azfake.PagerResponder[armappservice.ManagementClientListAseRegionsResponse]] + newListBillingMetersPager *tracker[azfake.PagerResponder[armappservice.ManagementClientListBillingMetersResponse]] + newListCustomHostNameSitesPager *tracker[azfake.PagerResponder[armappservice.ManagementClientListCustomHostNameSitesResponse]] + newListGeoRegionsPager *tracker[azfake.PagerResponder[armappservice.ManagementClientListGeoRegionsResponse]] + newListPremierAddOnOffersPager *tracker[azfake.PagerResponder[armappservice.ManagementClientListPremierAddOnOffersResponse]] + newListSiteIdentifiersAssignedToHostNamePager *tracker[azfake.PagerResponder[armappservice.ManagementClientListSiteIdentifiersAssignedToHostNameResponse]] + newListSourceControlsPager *tracker[azfake.PagerResponder[armappservice.ManagementClientListSourceControlsResponse]] } -// Do implements the policy.Transporter interface for WebSiteManagementServerTransport. -func (w *WebSiteManagementServerTransport) Do(req *http.Request) (*http.Response, error) { +// Do implements the policy.Transporter interface for ManagementServerTransport. +func (m *ManagementServerTransport) Do(req *http.Request) (*http.Response, error) { rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) method, ok := rawMethod.(string) if !ok { return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} } - return w.dispatchToMethodFake(req, method) + return m.dispatchToMethodFake(req, method) } -func (w *WebSiteManagementServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { +func (m *ManagementServerTransport) dispatchToMethodFake(req *http.Request, method string) (*http.Response, error) { resultChan := make(chan result) defer close(resultChan) go func() { var intercepted bool var res result - if webSiteManagementServerTransportInterceptor != nil { - res.resp, res.err, intercepted = webSiteManagementServerTransportInterceptor.Do(req) + if managementServerTransportInterceptor != nil { + res.resp, res.err, intercepted = managementServerTransportInterceptor.Do(req) } if !intercepted { switch method { - case "WebSiteManagementClient.CheckNameAvailability": - res.resp, res.err = w.dispatchCheckNameAvailability(req) - case "WebSiteManagementClient.GetPublishingUser": - res.resp, res.err = w.dispatchGetPublishingUser(req) - case "WebSiteManagementClient.GetSourceControl": - res.resp, res.err = w.dispatchGetSourceControl(req) - case "WebSiteManagementClient.GetSubscriptionDeploymentLocations": - res.resp, res.err = w.dispatchGetSubscriptionDeploymentLocations(req) - case "WebSiteManagementClient.NewListAseRegionsPager": - res.resp, res.err = w.dispatchNewListAseRegionsPager(req) - case "WebSiteManagementClient.NewListBillingMetersPager": - res.resp, res.err = w.dispatchNewListBillingMetersPager(req) - case "WebSiteManagementClient.NewListCustomHostNameSitesPager": - res.resp, res.err = w.dispatchNewListCustomHostNameSitesPager(req) - case "WebSiteManagementClient.NewListGeoRegionsPager": - res.resp, res.err = w.dispatchNewListGeoRegionsPager(req) - case "WebSiteManagementClient.NewListPremierAddOnOffersPager": - res.resp, res.err = w.dispatchNewListPremierAddOnOffersPager(req) - case "WebSiteManagementClient.ListSKUs": - res.resp, res.err = w.dispatchListSKUs(req) - case "WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager": - res.resp, res.err = w.dispatchNewListSiteIdentifiersAssignedToHostNamePager(req) - case "WebSiteManagementClient.NewListSourceControlsPager": - res.resp, res.err = w.dispatchNewListSourceControlsPager(req) - case "WebSiteManagementClient.Move": - res.resp, res.err = w.dispatchMove(req) - case "WebSiteManagementClient.RegionalCheckNameAvailability": - res.resp, res.err = w.dispatchRegionalCheckNameAvailability(req) - case "WebSiteManagementClient.UpdatePublishingUser": - res.resp, res.err = w.dispatchUpdatePublishingUser(req) - case "WebSiteManagementClient.UpdateSourceControl": - res.resp, res.err = w.dispatchUpdateSourceControl(req) - case "WebSiteManagementClient.Validate": - res.resp, res.err = w.dispatchValidate(req) - case "WebSiteManagementClient.ValidateMove": - res.resp, res.err = w.dispatchValidateMove(req) - case "WebSiteManagementClient.VerifyHostingEnvironmentVnet": - res.resp, res.err = w.dispatchVerifyHostingEnvironmentVnet(req) + case "ManagementClient.CheckNameAvailability": + res.resp, res.err = m.dispatchCheckNameAvailability(req) + case "ManagementClient.GetPublishingUser": + res.resp, res.err = m.dispatchGetPublishingUser(req) + case "ManagementClient.GetSourceControl": + res.resp, res.err = m.dispatchGetSourceControl(req) + case "ManagementClient.GetSubscriptionDeploymentLocations": + res.resp, res.err = m.dispatchGetSubscriptionDeploymentLocations(req) + case "ManagementClient.NewListAseRegionsPager": + res.resp, res.err = m.dispatchNewListAseRegionsPager(req) + case "ManagementClient.NewListBillingMetersPager": + res.resp, res.err = m.dispatchNewListBillingMetersPager(req) + case "ManagementClient.NewListCustomHostNameSitesPager": + res.resp, res.err = m.dispatchNewListCustomHostNameSitesPager(req) + case "ManagementClient.NewListGeoRegionsPager": + res.resp, res.err = m.dispatchNewListGeoRegionsPager(req) + case "ManagementClient.NewListPremierAddOnOffersPager": + res.resp, res.err = m.dispatchNewListPremierAddOnOffersPager(req) + case "ManagementClient.ListSKUs": + res.resp, res.err = m.dispatchListSKUs(req) + case "ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager": + res.resp, res.err = m.dispatchNewListSiteIdentifiersAssignedToHostNamePager(req) + case "ManagementClient.NewListSourceControlsPager": + res.resp, res.err = m.dispatchNewListSourceControlsPager(req) + case "ManagementClient.Move": + res.resp, res.err = m.dispatchMove(req) + case "ManagementClient.RegionalCheckNameAvailability": + res.resp, res.err = m.dispatchRegionalCheckNameAvailability(req) + case "ManagementClient.UpdatePublishingUser": + res.resp, res.err = m.dispatchUpdatePublishingUser(req) + case "ManagementClient.UpdateSourceControl": + res.resp, res.err = m.dispatchUpdateSourceControl(req) + case "ManagementClient.Validate": + res.resp, res.err = m.dispatchValidate(req) + case "ManagementClient.ValidateMove": + res.resp, res.err = m.dispatchValidateMove(req) + case "ManagementClient.VerifyHostingEnvironmentVnet": + res.resp, res.err = m.dispatchVerifyHostingEnvironmentVnet(req) default: res.err = fmt.Errorf("unhandled API %s", method) } @@ -208,21 +208,21 @@ func (w *WebSiteManagementServerTransport) dispatchToMethodFake(req *http.Reques } } -func (w *WebSiteManagementServerTransport) dispatchCheckNameAvailability(req *http.Request) (*http.Response, error) { - if w.srv.CheckNameAvailability == nil { +func (m *ManagementServerTransport) dispatchCheckNameAvailability(req *http.Request) (*http.Response, error) { + if m.srv.CheckNameAvailability == nil { return nil, &nonRetriableError{errors.New("fake for method CheckNameAvailability not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/checknameavailability` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.ResourceNameAvailabilityRequest](req) if err != nil { return nil, err } - respr, errRespr := w.srv.CheckNameAvailability(req.Context(), body, nil) + respr, errRespr := m.srv.CheckNameAvailability(req.Context(), body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -237,11 +237,11 @@ func (w *WebSiteManagementServerTransport) dispatchCheckNameAvailability(req *ht return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchGetPublishingUser(req *http.Request) (*http.Response, error) { - if w.srv.GetPublishingUser == nil { +func (m *ManagementServerTransport) dispatchGetPublishingUser(req *http.Request) (*http.Response, error) { + if m.srv.GetPublishingUser == nil { return nil, &nonRetriableError{errors.New("fake for method GetPublishingUser not implemented")} } - respr, errRespr := w.srv.GetPublishingUser(req.Context(), nil) + respr, errRespr := m.srv.GetPublishingUser(req.Context(), nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -256,21 +256,21 @@ func (w *WebSiteManagementServerTransport) dispatchGetPublishingUser(req *http.R return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchGetSourceControl(req *http.Request) (*http.Response, error) { - if w.srv.GetSourceControl == nil { +func (m *ManagementServerTransport) dispatchGetSourceControl(req *http.Request) (*http.Response, error) { + if m.srv.GetSourceControl == nil { return nil, &nonRetriableError{errors.New("fake for method GetSourceControl not implemented")} } const regexStr = `/providers/Microsoft\.Web/sourcecontrols/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } sourceControlTypeParam, err := url.PathUnescape(matches[regex.SubexpIndex("sourceControlType")]) if err != nil { return nil, err } - respr, errRespr := w.srv.GetSourceControl(req.Context(), sourceControlTypeParam, nil) + respr, errRespr := m.srv.GetSourceControl(req.Context(), sourceControlTypeParam, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -285,17 +285,17 @@ func (w *WebSiteManagementServerTransport) dispatchGetSourceControl(req *http.Re return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchGetSubscriptionDeploymentLocations(req *http.Request) (*http.Response, error) { - if w.srv.GetSubscriptionDeploymentLocations == nil { +func (m *ManagementServerTransport) dispatchGetSubscriptionDeploymentLocations(req *http.Request) (*http.Response, error) { + if m.srv.GetSubscriptionDeploymentLocations == nil { return nil, &nonRetriableError{errors.New("fake for method GetSubscriptionDeploymentLocations not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/deploymentLocations` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } - respr, errRespr := w.srv.GetSubscriptionDeploymentLocations(req.Context(), nil) + respr, errRespr := m.srv.GetSubscriptionDeploymentLocations(req.Context(), nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -310,22 +310,22 @@ func (w *WebSiteManagementServerTransport) dispatchGetSubscriptionDeploymentLoca return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListAseRegionsPager(req *http.Request) (*http.Response, error) { - if w.srv.NewListAseRegionsPager == nil { +func (m *ManagementServerTransport) dispatchNewListAseRegionsPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListAseRegionsPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListAseRegionsPager not implemented")} } - newListAseRegionsPager := w.newListAseRegionsPager.get(req) + newListAseRegionsPager := m.newListAseRegionsPager.get(req) if newListAseRegionsPager == nil { const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/aseRegions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } - resp := w.srv.NewListAseRegionsPager(nil) + resp := m.srv.NewListAseRegionsPager(nil) newListAseRegionsPager = &resp - w.newListAseRegionsPager.add(req, newListAseRegionsPager) - server.PagerResponderInjectNextLinks(newListAseRegionsPager, req, func(page *armappservice.WebSiteManagementClientListAseRegionsResponse, createLink func() string) { + m.newListAseRegionsPager.add(req, newListAseRegionsPager) + server.PagerResponderInjectNextLinks(newListAseRegionsPager, req, func(page *armappservice.ManagementClientListAseRegionsResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -334,25 +334,25 @@ func (w *WebSiteManagementServerTransport) dispatchNewListAseRegionsPager(req *h return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListAseRegionsPager.remove(req) + m.newListAseRegionsPager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListAseRegionsPager) { - w.newListAseRegionsPager.remove(req) + m.newListAseRegionsPager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListBillingMetersPager(req *http.Request) (*http.Response, error) { - if w.srv.NewListBillingMetersPager == nil { +func (m *ManagementServerTransport) dispatchNewListBillingMetersPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListBillingMetersPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListBillingMetersPager not implemented")} } - newListBillingMetersPager := w.newListBillingMetersPager.get(req) + newListBillingMetersPager := m.newListBillingMetersPager.get(req) if newListBillingMetersPager == nil { const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/billingMeters` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -366,17 +366,17 @@ func (w *WebSiteManagementServerTransport) dispatchNewListBillingMetersPager(req return nil, err } oSTypeParam := getOptional(oSTypeUnescaped) - var options *armappservice.WebSiteManagementClientListBillingMetersOptions + var options *armappservice.ManagementClientListBillingMetersOptions if billingLocationParam != nil || oSTypeParam != nil { - options = &armappservice.WebSiteManagementClientListBillingMetersOptions{ + options = &armappservice.ManagementClientListBillingMetersOptions{ BillingLocation: billingLocationParam, OSType: oSTypeParam, } } - resp := w.srv.NewListBillingMetersPager(options) + resp := m.srv.NewListBillingMetersPager(options) newListBillingMetersPager = &resp - w.newListBillingMetersPager.add(req, newListBillingMetersPager) - server.PagerResponderInjectNextLinks(newListBillingMetersPager, req, func(page *armappservice.WebSiteManagementClientListBillingMetersResponse, createLink func() string) { + m.newListBillingMetersPager.add(req, newListBillingMetersPager) + server.PagerResponderInjectNextLinks(newListBillingMetersPager, req, func(page *armappservice.ManagementClientListBillingMetersResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -385,25 +385,25 @@ func (w *WebSiteManagementServerTransport) dispatchNewListBillingMetersPager(req return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListBillingMetersPager.remove(req) + m.newListBillingMetersPager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListBillingMetersPager) { - w.newListBillingMetersPager.remove(req) + m.newListBillingMetersPager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListCustomHostNameSitesPager(req *http.Request) (*http.Response, error) { - if w.srv.NewListCustomHostNameSitesPager == nil { +func (m *ManagementServerTransport) dispatchNewListCustomHostNameSitesPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListCustomHostNameSitesPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListCustomHostNameSitesPager not implemented")} } - newListCustomHostNameSitesPager := w.newListCustomHostNameSitesPager.get(req) + newListCustomHostNameSitesPager := m.newListCustomHostNameSitesPager.get(req) if newListCustomHostNameSitesPager == nil { const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/customhostnameSites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -412,16 +412,16 @@ func (w *WebSiteManagementServerTransport) dispatchNewListCustomHostNameSitesPag return nil, err } hostnameParam := getOptional(hostnameUnescaped) - var options *armappservice.WebSiteManagementClientListCustomHostNameSitesOptions + var options *armappservice.ManagementClientListCustomHostNameSitesOptions if hostnameParam != nil { - options = &armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{ + options = &armappservice.ManagementClientListCustomHostNameSitesOptions{ Hostname: hostnameParam, } } - resp := w.srv.NewListCustomHostNameSitesPager(options) + resp := m.srv.NewListCustomHostNameSitesPager(options) newListCustomHostNameSitesPager = &resp - w.newListCustomHostNameSitesPager.add(req, newListCustomHostNameSitesPager) - server.PagerResponderInjectNextLinks(newListCustomHostNameSitesPager, req, func(page *armappservice.WebSiteManagementClientListCustomHostNameSitesResponse, createLink func() string) { + m.newListCustomHostNameSitesPager.add(req, newListCustomHostNameSitesPager) + server.PagerResponderInjectNextLinks(newListCustomHostNameSitesPager, req, func(page *armappservice.ManagementClientListCustomHostNameSitesResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -430,25 +430,25 @@ func (w *WebSiteManagementServerTransport) dispatchNewListCustomHostNameSitesPag return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListCustomHostNameSitesPager.remove(req) + m.newListCustomHostNameSitesPager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListCustomHostNameSitesPager) { - w.newListCustomHostNameSitesPager.remove(req) + m.newListCustomHostNameSitesPager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListGeoRegionsPager(req *http.Request) (*http.Response, error) { - if w.srv.NewListGeoRegionsPager == nil { +func (m *ManagementServerTransport) dispatchNewListGeoRegionsPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListGeoRegionsPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListGeoRegionsPager not implemented")} } - newListGeoRegionsPager := w.newListGeoRegionsPager.get(req) + newListGeoRegionsPager := m.newListGeoRegionsPager.get(req) if newListGeoRegionsPager == nil { const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/geoRegions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -481,19 +481,28 @@ func (w *WebSiteManagementServerTransport) dispatchNewListGeoRegionsPager(req *h if err != nil { return nil, err } - var options *armappservice.WebSiteManagementClientListGeoRegionsOptions - if sKUParam != nil || linuxWorkersEnabledParam != nil || xenonWorkersEnabledParam != nil || linuxDynamicWorkersEnabledParam != nil { - options = &armappservice.WebSiteManagementClientListGeoRegionsOptions{ + customModeWorkersEnabledUnescaped, err := url.QueryUnescape(qp.Get("customModeWorkersEnabled ")) + if err != nil { + return nil, err + } + customModeWorkersEnabledParam, err := parseOptional(customModeWorkersEnabledUnescaped, strconv.ParseBool) + if err != nil { + return nil, err + } + var options *armappservice.ManagementClientListGeoRegionsOptions + if sKUParam != nil || linuxWorkersEnabledParam != nil || xenonWorkersEnabledParam != nil || linuxDynamicWorkersEnabledParam != nil || customModeWorkersEnabledParam != nil { + options = &armappservice.ManagementClientListGeoRegionsOptions{ SKU: sKUParam, LinuxWorkersEnabled: linuxWorkersEnabledParam, XenonWorkersEnabled: xenonWorkersEnabledParam, LinuxDynamicWorkersEnabled: linuxDynamicWorkersEnabledParam, + CustomModeWorkersEnabled: customModeWorkersEnabledParam, } } - resp := w.srv.NewListGeoRegionsPager(options) + resp := m.srv.NewListGeoRegionsPager(options) newListGeoRegionsPager = &resp - w.newListGeoRegionsPager.add(req, newListGeoRegionsPager) - server.PagerResponderInjectNextLinks(newListGeoRegionsPager, req, func(page *armappservice.WebSiteManagementClientListGeoRegionsResponse, createLink func() string) { + m.newListGeoRegionsPager.add(req, newListGeoRegionsPager) + server.PagerResponderInjectNextLinks(newListGeoRegionsPager, req, func(page *armappservice.ManagementClientListGeoRegionsResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -502,31 +511,31 @@ func (w *WebSiteManagementServerTransport) dispatchNewListGeoRegionsPager(req *h return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListGeoRegionsPager.remove(req) + m.newListGeoRegionsPager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListGeoRegionsPager) { - w.newListGeoRegionsPager.remove(req) + m.newListGeoRegionsPager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListPremierAddOnOffersPager(req *http.Request) (*http.Response, error) { - if w.srv.NewListPremierAddOnOffersPager == nil { +func (m *ManagementServerTransport) dispatchNewListPremierAddOnOffersPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListPremierAddOnOffersPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListPremierAddOnOffersPager not implemented")} } - newListPremierAddOnOffersPager := w.newListPremierAddOnOffersPager.get(req) + newListPremierAddOnOffersPager := m.newListPremierAddOnOffersPager.get(req) if newListPremierAddOnOffersPager == nil { const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/premieraddonoffers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } - resp := w.srv.NewListPremierAddOnOffersPager(nil) + resp := m.srv.NewListPremierAddOnOffersPager(nil) newListPremierAddOnOffersPager = &resp - w.newListPremierAddOnOffersPager.add(req, newListPremierAddOnOffersPager) - server.PagerResponderInjectNextLinks(newListPremierAddOnOffersPager, req, func(page *armappservice.WebSiteManagementClientListPremierAddOnOffersResponse, createLink func() string) { + m.newListPremierAddOnOffersPager.add(req, newListPremierAddOnOffersPager) + server.PagerResponderInjectNextLinks(newListPremierAddOnOffersPager, req, func(page *armappservice.ManagementClientListPremierAddOnOffersResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -535,26 +544,26 @@ func (w *WebSiteManagementServerTransport) dispatchNewListPremierAddOnOffersPage return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListPremierAddOnOffersPager.remove(req) + m.newListPremierAddOnOffersPager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListPremierAddOnOffersPager) { - w.newListPremierAddOnOffersPager.remove(req) + m.newListPremierAddOnOffersPager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchListSKUs(req *http.Request) (*http.Response, error) { - if w.srv.ListSKUs == nil { +func (m *ManagementServerTransport) dispatchListSKUs(req *http.Request) (*http.Response, error) { + if m.srv.ListSKUs == nil { return nil, &nonRetriableError{errors.New("fake for method ListSKUs not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/skus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } - respr, errRespr := w.srv.ListSKUs(req.Context(), nil) + respr, errRespr := m.srv.ListSKUs(req.Context(), nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -569,26 +578,26 @@ func (w *WebSiteManagementServerTransport) dispatchListSKUs(req *http.Request) ( return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListSiteIdentifiersAssignedToHostNamePager(req *http.Request) (*http.Response, error) { - if w.srv.NewListSiteIdentifiersAssignedToHostNamePager == nil { +func (m *ManagementServerTransport) dispatchNewListSiteIdentifiersAssignedToHostNamePager(req *http.Request) (*http.Response, error) { + if m.srv.NewListSiteIdentifiersAssignedToHostNamePager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListSiteIdentifiersAssignedToHostNamePager not implemented")} } - newListSiteIdentifiersAssignedToHostNamePager := w.newListSiteIdentifiersAssignedToHostNamePager.get(req) + newListSiteIdentifiersAssignedToHostNamePager := m.newListSiteIdentifiersAssignedToHostNamePager.get(req) if newListSiteIdentifiersAssignedToHostNamePager == nil { const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/listSitesAssignedToHostName` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.NameIdentifier](req) if err != nil { return nil, err } - resp := w.srv.NewListSiteIdentifiersAssignedToHostNamePager(body, nil) + resp := m.srv.NewListSiteIdentifiersAssignedToHostNamePager(body, nil) newListSiteIdentifiersAssignedToHostNamePager = &resp - w.newListSiteIdentifiersAssignedToHostNamePager.add(req, newListSiteIdentifiersAssignedToHostNamePager) - server.PagerResponderInjectNextLinks(newListSiteIdentifiersAssignedToHostNamePager, req, func(page *armappservice.WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse, createLink func() string) { + m.newListSiteIdentifiersAssignedToHostNamePager.add(req, newListSiteIdentifiersAssignedToHostNamePager) + server.PagerResponderInjectNextLinks(newListSiteIdentifiersAssignedToHostNamePager, req, func(page *armappservice.ManagementClientListSiteIdentifiersAssignedToHostNameResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -597,25 +606,25 @@ func (w *WebSiteManagementServerTransport) dispatchNewListSiteIdentifiersAssigne return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListSiteIdentifiersAssignedToHostNamePager.remove(req) + m.newListSiteIdentifiersAssignedToHostNamePager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListSiteIdentifiersAssignedToHostNamePager) { - w.newListSiteIdentifiersAssignedToHostNamePager.remove(req) + m.newListSiteIdentifiersAssignedToHostNamePager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchNewListSourceControlsPager(req *http.Request) (*http.Response, error) { - if w.srv.NewListSourceControlsPager == nil { +func (m *ManagementServerTransport) dispatchNewListSourceControlsPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListSourceControlsPager == nil { return nil, &nonRetriableError{errors.New("fake for method NewListSourceControlsPager not implemented")} } - newListSourceControlsPager := w.newListSourceControlsPager.get(req) + newListSourceControlsPager := m.newListSourceControlsPager.get(req) if newListSourceControlsPager == nil { - resp := w.srv.NewListSourceControlsPager(nil) + resp := m.srv.NewListSourceControlsPager(nil) newListSourceControlsPager = &resp - w.newListSourceControlsPager.add(req, newListSourceControlsPager) - server.PagerResponderInjectNextLinks(newListSourceControlsPager, req, func(page *armappservice.WebSiteManagementClientListSourceControlsResponse, createLink func() string) { + m.newListSourceControlsPager.add(req, newListSourceControlsPager) + server.PagerResponderInjectNextLinks(newListSourceControlsPager, req, func(page *armappservice.ManagementClientListSourceControlsResponse, createLink func() string) { page.NextLink = to.Ptr(createLink()) }) } @@ -624,23 +633,23 @@ func (w *WebSiteManagementServerTransport) dispatchNewListSourceControlsPager(re return nil, err } if !contains([]int{http.StatusOK}, resp.StatusCode) { - w.newListSourceControlsPager.remove(req) + m.newListSourceControlsPager.remove(req) return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} } if !server.PagerResponderMore(newListSourceControlsPager) { - w.newListSourceControlsPager.remove(req) + m.newListSourceControlsPager.remove(req) } return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchMove(req *http.Request) (*http.Response, error) { - if w.srv.Move == nil { +func (m *ManagementServerTransport) dispatchMove(req *http.Request) (*http.Response, error) { + if m.srv.Move == nil { return nil, &nonRetriableError{errors.New("fake for method Move not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/moveResources` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmMoveResourceEnvelope](req) @@ -651,7 +660,7 @@ func (w *WebSiteManagementServerTransport) dispatchMove(req *http.Request) (*htt if err != nil { return nil, err } - respr, errRespr := w.srv.Move(req.Context(), resourceGroupNameParam, body, nil) + respr, errRespr := m.srv.Move(req.Context(), resourceGroupNameParam, body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -666,14 +675,14 @@ func (w *WebSiteManagementServerTransport) dispatchMove(req *http.Request) (*htt return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchRegionalCheckNameAvailability(req *http.Request) (*http.Response, error) { - if w.srv.RegionalCheckNameAvailability == nil { +func (m *ManagementServerTransport) dispatchRegionalCheckNameAvailability(req *http.Request) (*http.Response, error) { + if m.srv.RegionalCheckNameAvailability == nil { return nil, &nonRetriableError{errors.New("fake for method RegionalCheckNameAvailability not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/checknameavailability` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DnlResourceNameAvailabilityRequest](req) @@ -684,7 +693,7 @@ func (w *WebSiteManagementServerTransport) dispatchRegionalCheckNameAvailability if err != nil { return nil, err } - respr, errRespr := w.srv.RegionalCheckNameAvailability(req.Context(), locationParam, body, nil) + respr, errRespr := m.srv.RegionalCheckNameAvailability(req.Context(), locationParam, body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -699,15 +708,15 @@ func (w *WebSiteManagementServerTransport) dispatchRegionalCheckNameAvailability return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchUpdatePublishingUser(req *http.Request) (*http.Response, error) { - if w.srv.UpdatePublishingUser == nil { +func (m *ManagementServerTransport) dispatchUpdatePublishingUser(req *http.Request) (*http.Response, error) { + if m.srv.UpdatePublishingUser == nil { return nil, &nonRetriableError{errors.New("fake for method UpdatePublishingUser not implemented")} } body, err := server.UnmarshalRequestAsJSON[armappservice.User](req) if err != nil { return nil, err } - respr, errRespr := w.srv.UpdatePublishingUser(req.Context(), body, nil) + respr, errRespr := m.srv.UpdatePublishingUser(req.Context(), body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -722,14 +731,14 @@ func (w *WebSiteManagementServerTransport) dispatchUpdatePublishingUser(req *htt return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchUpdateSourceControl(req *http.Request) (*http.Response, error) { - if w.srv.UpdateSourceControl == nil { +func (m *ManagementServerTransport) dispatchUpdateSourceControl(req *http.Request) (*http.Response, error) { + if m.srv.UpdateSourceControl == nil { return nil, &nonRetriableError{errors.New("fake for method UpdateSourceControl not implemented")} } const regexStr = `/providers/Microsoft\.Web/sourcecontrols/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SourceControl](req) @@ -740,7 +749,7 @@ func (w *WebSiteManagementServerTransport) dispatchUpdateSourceControl(req *http if err != nil { return nil, err } - respr, errRespr := w.srv.UpdateSourceControl(req.Context(), sourceControlTypeParam, body, nil) + respr, errRespr := m.srv.UpdateSourceControl(req.Context(), sourceControlTypeParam, body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -755,14 +764,14 @@ func (w *WebSiteManagementServerTransport) dispatchUpdateSourceControl(req *http return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchValidate(req *http.Request) (*http.Response, error) { - if w.srv.Validate == nil { +func (m *ManagementServerTransport) dispatchValidate(req *http.Request) (*http.Response, error) { + if m.srv.Validate == nil { return nil, &nonRetriableError{errors.New("fake for method Validate not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/validate` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.ValidateRequest](req) @@ -773,7 +782,7 @@ func (w *WebSiteManagementServerTransport) dispatchValidate(req *http.Request) ( if err != nil { return nil, err } - respr, errRespr := w.srv.Validate(req.Context(), resourceGroupNameParam, body, nil) + respr, errRespr := m.srv.Validate(req.Context(), resourceGroupNameParam, body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -788,14 +797,14 @@ func (w *WebSiteManagementServerTransport) dispatchValidate(req *http.Request) ( return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchValidateMove(req *http.Request) (*http.Response, error) { - if w.srv.ValidateMove == nil { +func (m *ManagementServerTransport) dispatchValidateMove(req *http.Request) (*http.Response, error) { + if m.srv.ValidateMove == nil { return nil, &nonRetriableError{errors.New("fake for method ValidateMove not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/validateMoveResources` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmMoveResourceEnvelope](req) @@ -806,7 +815,7 @@ func (w *WebSiteManagementServerTransport) dispatchValidateMove(req *http.Reques if err != nil { return nil, err } - respr, errRespr := w.srv.ValidateMove(req.Context(), resourceGroupNameParam, body, nil) + respr, errRespr := m.srv.ValidateMove(req.Context(), resourceGroupNameParam, body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -821,21 +830,21 @@ func (w *WebSiteManagementServerTransport) dispatchValidateMove(req *http.Reques return resp, nil } -func (w *WebSiteManagementServerTransport) dispatchVerifyHostingEnvironmentVnet(req *http.Request) (*http.Response, error) { - if w.srv.VerifyHostingEnvironmentVnet == nil { +func (m *ManagementServerTransport) dispatchVerifyHostingEnvironmentVnet(req *http.Request) (*http.Response, error) { + if m.srv.VerifyHostingEnvironmentVnet == nil { return nil, &nonRetriableError{errors.New("fake for method VerifyHostingEnvironmentVnet not implemented")} } const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/verifyHostingEnvironmentVnet` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetParameters](req) if err != nil { return nil, err } - respr, errRespr := w.srv.VerifyHostingEnvironmentVnet(req.Context(), body, nil) + respr, errRespr := m.srv.VerifyHostingEnvironmentVnet(req.Context(), body, nil) if respErr := server.GetError(errRespr, req); respErr != nil { return nil, respErr } @@ -850,8 +859,8 @@ func (w *WebSiteManagementServerTransport) dispatchVerifyHostingEnvironmentVnet( return resp, nil } -// set this to conditionally intercept incoming requests to WebSiteManagementServerTransport -var webSiteManagementServerTransportInterceptor interface { +// set this to conditionally intercept incoming requests to ManagementServerTransport +var managementServerTransportInterceptor interface { // Do returns true if the server transport should use the returned response/error Do(*http.Request) (*http.Response, error, bool) } diff --git a/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go b/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go index 6bdc1d0d3713..f666b42aa682 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/plans_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -58,6 +58,14 @@ type PlansServer struct { // HTTP status codes to indicate success: http.StatusOK GetRouteForVnet func(ctx context.Context, resourceGroupName string, name string, vnetName string, routeName string, options *armappservice.PlansClientGetRouteForVnetOptions) (resp azfake.Responder[armappservice.PlansClientGetRouteForVnetResponse], errResp azfake.ErrorResponder) + // GetServerFarmInstanceDetails is the fake for method PlansClient.GetServerFarmInstanceDetails + // HTTP status codes to indicate success: http.StatusOK + GetServerFarmInstanceDetails func(ctx context.Context, resourceGroupName string, name string, options *armappservice.PlansClientGetServerFarmInstanceDetailsOptions) (resp azfake.Responder[armappservice.PlansClientGetServerFarmInstanceDetailsResponse], errResp azfake.ErrorResponder) + + // GetServerFarmRdpPassword is the fake for method PlansClient.GetServerFarmRdpPassword + // HTTP status codes to indicate success: http.StatusOK + GetServerFarmRdpPassword func(ctx context.Context, resourceGroupName string, name string, options *armappservice.PlansClientGetServerFarmRdpPasswordOptions) (resp azfake.Responder[armappservice.PlansClientGetServerFarmRdpPasswordResponse], errResp azfake.ErrorResponder) + // GetServerFarmSKUs is the fake for method PlansClient.GetServerFarmSKUs // HTTP status codes to indicate success: http.StatusOK GetServerFarmSKUs func(ctx context.Context, resourceGroupName string, name string, options *armappservice.PlansClientGetServerFarmSKUsOptions) (resp azfake.Responder[armappservice.PlansClientGetServerFarmSKUsResponse], errResp azfake.ErrorResponder) @@ -114,6 +122,10 @@ type PlansServer struct { // HTTP status codes to indicate success: http.StatusNoContent RebootWorker func(ctx context.Context, resourceGroupName string, name string, workerName string, options *armappservice.PlansClientRebootWorkerOptions) (resp azfake.Responder[armappservice.PlansClientRebootWorkerResponse], errResp azfake.ErrorResponder) + // RecycleManagedInstanceWorker is the fake for method PlansClient.RecycleManagedInstanceWorker + // HTTP status codes to indicate success: http.StatusOK + RecycleManagedInstanceWorker func(ctx context.Context, resourceGroupName string, name string, workerName string, options *armappservice.PlansClientRecycleManagedInstanceWorkerOptions) (resp azfake.Responder[armappservice.PlansClientRecycleManagedInstanceWorkerResponse], errResp azfake.ErrorResponder) + // RestartWebApps is the fake for method PlansClient.RestartWebApps // HTTP status codes to indicate success: http.StatusNoContent RestartWebApps func(ctx context.Context, resourceGroupName string, name string, options *armappservice.PlansClientRestartWebAppsOptions) (resp azfake.Responder[armappservice.PlansClientRestartWebAppsResponse], errResp azfake.ErrorResponder) @@ -201,6 +213,10 @@ func (p *PlansServerTransport) dispatchToMethodFake(req *http.Request, method st res.resp, res.err = p.dispatchGetHybridConnectionPlanLimit(req) case "PlansClient.GetRouteForVnet": res.resp, res.err = p.dispatchGetRouteForVnet(req) + case "PlansClient.GetServerFarmInstanceDetails": + res.resp, res.err = p.dispatchGetServerFarmInstanceDetails(req) + case "PlansClient.GetServerFarmRdpPassword": + res.resp, res.err = p.dispatchGetServerFarmRdpPassword(req) case "PlansClient.GetServerFarmSKUs": res.resp, res.err = p.dispatchGetServerFarmSKUs(req) case "PlansClient.GetVnetFromServerFarm": @@ -229,6 +245,8 @@ func (p *PlansServerTransport) dispatchToMethodFake(req *http.Request, method st res.resp, res.err = p.dispatchNewListWebAppsByHybridConnectionPager(req) case "PlansClient.RebootWorker": res.resp, res.err = p.dispatchRebootWorker(req) + case "PlansClient.RecycleManagedInstanceWorker": + res.resp, res.err = p.dispatchRecycleManagedInstanceWorker(req) case "PlansClient.RestartWebApps": res.resp, res.err = p.dispatchRestartWebApps(req) case "PlansClient.Update": @@ -265,7 +283,7 @@ func (p *PlansServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Plan](req) @@ -311,7 +329,7 @@ func (p *PlansServerTransport) dispatchCreateOrUpdateVnetRoute(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/routes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetRoute](req) @@ -356,7 +374,7 @@ func (p *PlansServerTransport) dispatchDelete(req *http.Request) (*http.Response const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -389,7 +407,7 @@ func (p *PlansServerTransport) dispatchDeleteHybridConnection(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -430,7 +448,7 @@ func (p *PlansServerTransport) dispatchDeleteVnetRoute(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/routes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -471,7 +489,7 @@ func (p *PlansServerTransport) dispatchGet(req *http.Request) (*http.Response, e const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -504,7 +522,7 @@ func (p *PlansServerTransport) dispatchGetHybridConnection(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -545,7 +563,7 @@ func (p *PlansServerTransport) dispatchGetHybridConnectionPlanLimit(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionPlanLimits/limit` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -578,7 +596,7 @@ func (p *PlansServerTransport) dispatchGetRouteForVnet(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/routes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -612,6 +630,72 @@ func (p *PlansServerTransport) dispatchGetRouteForVnet(req *http.Request) (*http return resp, nil } +func (p *PlansServerTransport) dispatchGetServerFarmInstanceDetails(req *http.Request) (*http.Response, error) { + if p.srv.GetServerFarmInstanceDetails == nil { + return nil, &nonRetriableError{errors.New("fake for method GetServerFarmInstanceDetails not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listinstances` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if 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 + } + respr, errRespr := p.srv.GetServerFarmInstanceDetails(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).ServerFarmInstanceDetails, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (p *PlansServerTransport) dispatchGetServerFarmRdpPassword(req *http.Request) (*http.Response, error) { + if p.srv.GetServerFarmRdpPassword == nil { + return nil, &nonRetriableError{errors.New("fake for method GetServerFarmRdpPassword not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/getrdppassword` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if 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 + } + respr, errRespr := p.srv.GetServerFarmRdpPassword(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).ServerFarmRdpDetails, req) + if err != nil { + return nil, err + } + return resp, nil +} + func (p *PlansServerTransport) dispatchGetServerFarmSKUs(req *http.Request) (*http.Response, error) { if p.srv.GetServerFarmSKUs == nil { return nil, &nonRetriableError{errors.New("fake for method GetServerFarmSKUs not implemented")} @@ -619,7 +703,7 @@ func (p *PlansServerTransport) dispatchGetServerFarmSKUs(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/skus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -652,7 +736,7 @@ func (p *PlansServerTransport) dispatchGetVnetFromServerFarm(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -689,7 +773,7 @@ func (p *PlansServerTransport) dispatchGetVnetGateway(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -732,7 +816,7 @@ func (p *PlansServerTransport) dispatchNewListPager(req *http.Request) (*http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -780,7 +864,7 @@ func (p *PlansServerTransport) dispatchNewListByResourceGroupPager(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -815,7 +899,7 @@ func (p *PlansServerTransport) dispatchListCapabilities(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/capabilities` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -848,7 +932,7 @@ func (p *PlansServerTransport) dispatchListHybridConnectionKeys(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listKeys` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -891,7 +975,7 @@ func (p *PlansServerTransport) dispatchNewListHybridConnectionsPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionRelays` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -930,7 +1014,7 @@ func (p *PlansServerTransport) dispatchListRoutesForVnet(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/routes` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -969,7 +1053,7 @@ func (p *PlansServerTransport) dispatchNewListUsagesPager(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -1020,7 +1104,7 @@ func (p *PlansServerTransport) dispatchListVnets(req *http.Request) (*http.Respo const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1055,7 +1139,7 @@ func (p *PlansServerTransport) dispatchNewListWebAppsPager(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -1120,7 +1204,7 @@ func (p *PlansServerTransport) dispatchNewListWebAppsByHybridConnectionPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1167,7 +1251,7 @@ func (p *PlansServerTransport) dispatchRebootWorker(req *http.Request) (*http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/reboot` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1197,6 +1281,43 @@ func (p *PlansServerTransport) dispatchRebootWorker(req *http.Request) (*http.Re return resp, nil } +func (p *PlansServerTransport) dispatchRecycleManagedInstanceWorker(req *http.Request) (*http.Response, error) { + if p.srv.RecycleManagedInstanceWorker == nil { + return nil, &nonRetriableError{errors.New("fake for method RecycleManagedInstanceWorker not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recycleinstance` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if 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 + } + workerNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("workerName")]) + if err != nil { + return nil, err + } + respr, errRespr := p.srv.RecycleManagedInstanceWorker(req.Context(), resourceGroupNameParam, nameParam, workerNameParam, 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).Operation, req) + if err != nil { + return nil, err + } + return resp, nil +} + func (p *PlansServerTransport) dispatchRestartWebApps(req *http.Request) (*http.Response, error) { if p.srv.RestartWebApps == nil { return nil, &nonRetriableError{errors.New("fake for method RestartWebApps not implemented")} @@ -1204,7 +1325,7 @@ func (p *PlansServerTransport) dispatchRestartWebApps(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restartSites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -1252,7 +1373,7 @@ func (p *PlansServerTransport) dispatchUpdate(req *http.Request) (*http.Response const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PlanPatchResource](req) @@ -1289,7 +1410,7 @@ func (p *PlansServerTransport) dispatchUpdateVnetGateway(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetGateway](req) @@ -1334,7 +1455,7 @@ func (p *PlansServerTransport) dispatchUpdateVnetRoute(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/serverfarms/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/routes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetRoute](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go b/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go index e7f9cc84fa53..4c570fbf772a 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/provider_server.go @@ -12,7 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -182,7 +182,7 @@ func (p *ProviderServerTransport) dispatchNewGetAvailableStacksOnPremPager(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/availableStacks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -266,7 +266,7 @@ func (p *ProviderServerTransport) dispatchNewGetFunctionAppStacksForLocationPage const regexStr = `/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functionAppStacks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -354,7 +354,7 @@ func (p *ProviderServerTransport) dispatchNewGetWebAppStacksForLocationPager(req const regexStr = `/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/webAppStacks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() diff --git a/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go b/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go index 59b4ea01ebb9..4543bd2c5113 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/recommendations_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -187,7 +187,7 @@ func (r *RecommendationsServerTransport) dispatchDisableAllForHostingEnvironment const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/disable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -225,7 +225,7 @@ func (r *RecommendationsServerTransport) dispatchDisableAllForWebApp(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/disable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -258,7 +258,7 @@ func (r *RecommendationsServerTransport) dispatchDisableRecommendationForHosting const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/disable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -300,7 +300,7 @@ func (r *RecommendationsServerTransport) dispatchDisableRecommendationForSite(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/disable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -337,7 +337,7 @@ func (r *RecommendationsServerTransport) dispatchDisableRecommendationForSubscri const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/recommendations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/disable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) @@ -366,7 +366,7 @@ func (r *RecommendationsServerTransport) dispatchGetRuleDetailsByHostingEnvironm const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -424,7 +424,7 @@ func (r *RecommendationsServerTransport) dispatchGetRuleDetailsByWebApp(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -484,7 +484,7 @@ func (r *RecommendationsServerTransport) dispatchNewListPager(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/recommendations` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -538,7 +538,7 @@ func (r *RecommendationsServerTransport) dispatchNewListHistoryForHostingEnviron const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendationHistory` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -600,7 +600,7 @@ func (r *RecommendationsServerTransport) dispatchNewListHistoryForWebAppPager(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendationHistory` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -662,7 +662,7 @@ func (r *RecommendationsServerTransport) dispatchNewListRecommendedRulesForHosti const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -724,7 +724,7 @@ func (r *RecommendationsServerTransport) dispatchNewListRecommendedRulesForWebAp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -784,7 +784,7 @@ func (r *RecommendationsServerTransport) dispatchResetAllFilters(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/recommendations/reset` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } respr, errRespr := r.srv.ResetAllFilters(req.Context(), nil) @@ -809,7 +809,7 @@ func (r *RecommendationsServerTransport) dispatchResetAllFiltersForHostingEnviro const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/hostingEnvironments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/reset` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -847,7 +847,7 @@ func (r *RecommendationsServerTransport) dispatchResetAllFiltersForWebApp(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recommendations/reset` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go b/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go index c4113dc159ca..bd59ce8c05bc 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/resourcehealthmetadata_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -130,7 +130,7 @@ func (r *ResourceHealthMetadataServerTransport) dispatchGetBySite(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceHealthMetadata/default` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -163,7 +163,7 @@ func (r *ResourceHealthMetadataServerTransport) dispatchGetBySiteSlot(req *http. 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~%@]+)/resourceHealthMetadata/default` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -202,7 +202,7 @@ func (r *ResourceHealthMetadataServerTransport) dispatchNewListPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/resourceHealthMetadata` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := r.srv.NewListPager(nil) @@ -235,7 +235,7 @@ func (r *ResourceHealthMetadataServerTransport) dispatchNewListByResourceGroupPa const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/resourceHealthMetadata` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -272,7 +272,7 @@ func (r *ResourceHealthMetadataServerTransport) dispatchNewListBySitePager(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceHealthMetadata` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -313,7 +313,7 @@ func (r *ResourceHealthMetadataServerTransport) dispatchNewListBySiteSlotPager(r 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~%@]+)/resourceHealthMetadata` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go b/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go index 6dd9fbd37dc5..6c05cf4ae5e8 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/server_factory.go @@ -52,6 +52,9 @@ type ServerFactory struct { // KubeEnvironmentsServer contains the fakes for client KubeEnvironmentsClient KubeEnvironmentsServer KubeEnvironmentsServer + // ManagementServer contains the fakes for client ManagementClient + ManagementServer ManagementServer + // PlansServer contains the fakes for client PlansClient PlansServer PlansServer @@ -76,9 +79,6 @@ type ServerFactory struct { // WebAppsServer contains the fakes for client WebAppsClient WebAppsServer WebAppsServer - // WebSiteManagementServer contains the fakes for client WebSiteManagementClient - WebSiteManagementServer WebSiteManagementServer - // WorkflowRunActionRepetitionsServer contains the fakes for client WorkflowRunActionRepetitionsClient WorkflowRunActionRepetitionsServer WorkflowRunActionRepetitionsServer @@ -133,6 +133,7 @@ type ServerFactoryTransport struct { trGetUsagesInLocationServer *GetUsagesInLocationServerTransport trGlobalServer *GlobalServerTransport trKubeEnvironmentsServer *KubeEnvironmentsServerTransport + trManagementServer *ManagementServerTransport trPlansServer *PlansServerTransport trProviderServer *ProviderServerTransport trRecommendationsServer *RecommendationsServerTransport @@ -141,7 +142,6 @@ type ServerFactoryTransport struct { trStaticSitesServer *StaticSitesServerTransport trTopLevelDomainsServer *TopLevelDomainsServerTransport trWebAppsServer *WebAppsServerTransport - trWebSiteManagementServer *WebSiteManagementServerTransport trWorkflowRunActionRepetitionsServer *WorkflowRunActionRepetitionsServerTransport trWorkflowRunActionRepetitionsRequestHistoriesServer *WorkflowRunActionRepetitionsRequestHistoriesServerTransport trWorkflowRunActionScopeRepetitionsServer *WorkflowRunActionScopeRepetitionsServerTransport @@ -216,6 +216,9 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewKubeEnvironmentsServerTransport(&s.srv.KubeEnvironmentsServer) }) resp, err = s.trKubeEnvironmentsServer.Do(req) + case "ManagementClient": + initServer(s, &s.trManagementServer, func() *ManagementServerTransport { return NewManagementServerTransport(&s.srv.ManagementServer) }) + resp, err = s.trManagementServer.Do(req) case "PlansClient": initServer(s, &s.trPlansServer, func() *PlansServerTransport { return NewPlansServerTransport(&s.srv.PlansServer) }) resp, err = s.trPlansServer.Do(req) @@ -248,11 +251,6 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { case "WebAppsClient": initServer(s, &s.trWebAppsServer, func() *WebAppsServerTransport { return NewWebAppsServerTransport(&s.srv.WebAppsServer) }) resp, err = s.trWebAppsServer.Do(req) - case "WebSiteManagementClient": - initServer(s, &s.trWebSiteManagementServer, func() *WebSiteManagementServerTransport { - return NewWebSiteManagementServerTransport(&s.srv.WebSiteManagementServer) - }) - resp, err = s.trWebSiteManagementServer.Do(req) case "WorkflowRunActionRepetitionsClient": initServer(s, &s.trWorkflowRunActionRepetitionsServer, func() *WorkflowRunActionRepetitionsServerTransport { return NewWorkflowRunActionRepetitionsServerTransport(&s.srv.WorkflowRunActionRepetitionsServer) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go b/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go index 799ebcbb5310..8f3d85cb72c4 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/sitecertificates_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -150,7 +150,7 @@ func (s *SiteCertificatesServerTransport) dispatchCreateOrUpdate(req *http.Reque 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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificate](req) @@ -191,7 +191,7 @@ func (s *SiteCertificatesServerTransport) dispatchCreateOrUpdateSlot(req *http.R 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 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificate](req) @@ -236,7 +236,7 @@ func (s *SiteCertificatesServerTransport) dispatchDelete(req *http.Request) (*ht 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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -273,7 +273,7 @@ func (s *SiteCertificatesServerTransport) dispatchDeleteSlot(req *http.Request) 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 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -314,7 +314,7 @@ func (s *SiteCertificatesServerTransport) dispatchGet(req *http.Request) (*http. 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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -351,7 +351,7 @@ func (s *SiteCertificatesServerTransport) dispatchGetSlot(req *http.Request) (*h 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 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -394,7 +394,7 @@ func (s *SiteCertificatesServerTransport) dispatchNewListPager(req *http.Request 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 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -435,7 +435,7 @@ func (s *SiteCertificatesServerTransport) dispatchNewListSlotPager(req *http.Req 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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -478,7 +478,7 @@ func (s *SiteCertificatesServerTransport) dispatchUpdate(req *http.Request) (*ht 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 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificatePatchResource](req) @@ -519,7 +519,7 @@ func (s *SiteCertificatesServerTransport) dispatchUpdateSlot(req *http.Request) 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 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AppCertificatePatchResource](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go b/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go index 48096e71fd88..f4e9ceb64868 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/staticsites_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -607,7 +607,7 @@ func (s *StaticSitesServerTransport) dispatchBeginApproveOrRejectPrivateEndpoint const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RemotePrivateEndpointConnectionARMResource](req) @@ -657,7 +657,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateBasicAuth(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicAuth/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteBasicAuthPropertiesARMResource](req) @@ -704,7 +704,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateBuildDatabaseConnecti const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DatabaseConnection](req) @@ -749,7 +749,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateDatabaseConnection(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DatabaseConnection](req) @@ -792,7 +792,7 @@ func (s *StaticSitesServerTransport) dispatchBeginCreateOrUpdateStaticSite(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteARMResource](req) @@ -838,7 +838,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateStaticSiteAppSettings const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/appsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -875,7 +875,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateStaticSiteBuildAppSet const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/appsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -916,7 +916,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateStaticSiteBuildFuncti const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/functionappsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -959,7 +959,7 @@ func (s *StaticSitesServerTransport) dispatchBeginCreateOrUpdateStaticSiteCustom const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/customDomains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteCustomDomainRequestPropertiesARMResource](req) @@ -1009,7 +1009,7 @@ func (s *StaticSitesServerTransport) dispatchCreateOrUpdateStaticSiteFunctionApp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/functionappsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -1046,7 +1046,7 @@ func (s *StaticSitesServerTransport) dispatchCreateUserRolesInvitationLink(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/createUserInvitation` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteUserInvitationRequestResource](req) @@ -1085,7 +1085,7 @@ func (s *StaticSitesServerTransport) dispatchBeginCreateZipDeploymentForStaticSi const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/zipdeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteZipDeploymentARMResource](req) @@ -1133,7 +1133,7 @@ func (s *StaticSitesServerTransport) dispatchBeginCreateZipDeploymentForStaticSi const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/zipdeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteZipDeploymentARMResource](req) @@ -1183,7 +1183,7 @@ func (s *StaticSitesServerTransport) dispatchDeleteBuildDatabaseConnection(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1224,7 +1224,7 @@ func (s *StaticSitesServerTransport) dispatchDeleteDatabaseConnection(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1263,7 +1263,7 @@ func (s *StaticSitesServerTransport) dispatchBeginDeletePrivateEndpointConnectio const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1311,7 +1311,7 @@ func (s *StaticSitesServerTransport) dispatchBeginDeleteStaticSite(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1355,7 +1355,7 @@ func (s *StaticSitesServerTransport) dispatchBeginDeleteStaticSiteBuild(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1403,7 +1403,7 @@ func (s *StaticSitesServerTransport) dispatchBeginDeleteStaticSiteCustomDomain(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/customDomains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1449,7 +1449,7 @@ func (s *StaticSitesServerTransport) dispatchDeleteStaticSiteUser(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/authproviders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/users/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1492,7 +1492,7 @@ func (s *StaticSitesServerTransport) dispatchBeginDetachStaticSite(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/detach` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1534,7 +1534,7 @@ func (s *StaticSitesServerTransport) dispatchDetachUserProvidedFunctionAppFromSt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1571,7 +1571,7 @@ func (s *StaticSitesServerTransport) dispatchDetachUserProvidedFunctionAppFromSt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1612,7 +1612,7 @@ func (s *StaticSitesServerTransport) dispatchGetBasicAuth(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicAuth/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1655,7 +1655,7 @@ func (s *StaticSitesServerTransport) dispatchGetBuildDatabaseConnection(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1696,7 +1696,7 @@ func (s *StaticSitesServerTransport) dispatchGetBuildDatabaseConnectionWithDetai const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/show` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1739,7 +1739,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetBuildDatabaseConnectionsPager const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1784,7 +1784,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetBuildDatabaseConnectionsWithD const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/showDatabaseConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1827,7 +1827,7 @@ func (s *StaticSitesServerTransport) dispatchGetDatabaseConnection(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1864,7 +1864,7 @@ func (s *StaticSitesServerTransport) dispatchGetDatabaseConnectionWithDetails(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/show` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1903,7 +1903,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetDatabaseConnectionsPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1944,7 +1944,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetDatabaseConnectionsWithDetail const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/showDatabaseConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -1983,7 +1983,7 @@ func (s *StaticSitesServerTransport) dispatchGetLinkedBackend(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2020,7 +2020,7 @@ func (s *StaticSitesServerTransport) dispatchGetLinkedBackendForBuild(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2063,7 +2063,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetLinkedBackendsPager(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2104,7 +2104,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetLinkedBackendsForBuildPager(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2147,7 +2147,7 @@ func (s *StaticSitesServerTransport) dispatchGetPrivateEndpointConnection(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2186,7 +2186,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetPrivateEndpointConnectionList const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2225,7 +2225,7 @@ func (s *StaticSitesServerTransport) dispatchGetPrivateLinkResources(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateLinkResources` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2258,7 +2258,7 @@ func (s *StaticSitesServerTransport) dispatchGetStaticSite(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2291,7 +2291,7 @@ func (s *StaticSitesServerTransport) dispatchGetStaticSiteBuild(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2330,7 +2330,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetStaticSiteBuildsPager(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2369,7 +2369,7 @@ func (s *StaticSitesServerTransport) dispatchGetStaticSiteCustomDomain(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/customDomains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2408,7 +2408,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetStaticSitesByResourceGroupPag const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2443,7 +2443,7 @@ func (s *StaticSitesServerTransport) dispatchGetUserProvidedFunctionAppForStatic const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2480,7 +2480,7 @@ func (s *StaticSitesServerTransport) dispatchGetUserProvidedFunctionAppForStatic const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2523,7 +2523,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetUserProvidedFunctionAppsForSt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2564,7 +2564,7 @@ func (s *StaticSitesServerTransport) dispatchNewGetUserProvidedFunctionAppsForSt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2609,7 +2609,7 @@ func (s *StaticSitesServerTransport) dispatchBeginLinkBackend(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteLinkedBackendARMResource](req) @@ -2661,7 +2661,7 @@ func (s *StaticSitesServerTransport) dispatchBeginLinkBackendToBuild(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteLinkedBackendARMResource](req) @@ -2717,7 +2717,7 @@ func (s *StaticSitesServerTransport) dispatchNewListPager(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := s.srv.NewListPager(nil) @@ -2750,7 +2750,7 @@ func (s *StaticSitesServerTransport) dispatchNewListBasicAuthPager(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicAuth` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2789,7 +2789,7 @@ func (s *StaticSitesServerTransport) dispatchListStaticSiteAppSettings(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listAppSettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2822,7 +2822,7 @@ func (s *StaticSitesServerTransport) dispatchListStaticSiteBuildAppSettings(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listAppSettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2859,7 +2859,7 @@ func (s *StaticSitesServerTransport) dispatchListStaticSiteBuildFunctionAppSetti const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listFunctionAppSettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2898,7 +2898,7 @@ func (s *StaticSitesServerTransport) dispatchNewListStaticSiteBuildFunctionsPage const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2941,7 +2941,7 @@ func (s *StaticSitesServerTransport) dispatchListStaticSiteConfiguredRoles(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listConfiguredRoles` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -2976,7 +2976,7 @@ func (s *StaticSitesServerTransport) dispatchNewListStaticSiteCustomDomainsPager const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/customDomains` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -3015,7 +3015,7 @@ func (s *StaticSitesServerTransport) dispatchListStaticSiteFunctionAppSettings(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listFunctionAppSettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -3050,7 +3050,7 @@ func (s *StaticSitesServerTransport) dispatchNewListStaticSiteFunctionsPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -3089,7 +3089,7 @@ func (s *StaticSitesServerTransport) dispatchListStaticSiteSecrets(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listSecrets` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -3124,7 +3124,7 @@ func (s *StaticSitesServerTransport) dispatchNewListStaticSiteUsersPager(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/authproviders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listUsers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -3167,7 +3167,7 @@ func (s *StaticSitesServerTransport) dispatchPreviewWorkflow(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/previewStaticSiteWorkflowFile` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSitesWorkflowPreviewRequest](req) @@ -3202,7 +3202,7 @@ func (s *StaticSitesServerTransport) dispatchBeginRegisterUserProvidedFunctionAp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -3269,7 +3269,7 @@ func (s *StaticSitesServerTransport) dispatchBeginRegisterUserProvidedFunctionAp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/userProvidedFunctionApps/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -3338,7 +3338,7 @@ func (s *StaticSitesServerTransport) dispatchResetStaticSiteAPIKey(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resetapikey` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteResetPropertiesARMResource](req) @@ -3375,7 +3375,7 @@ func (s *StaticSitesServerTransport) dispatchUnlinkBackend(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -3427,7 +3427,7 @@ func (s *StaticSitesServerTransport) dispatchUnlinkBackendFromBuild(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -3483,7 +3483,7 @@ func (s *StaticSitesServerTransport) dispatchUpdateBuildDatabaseConnection(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DatabaseConnectionPatchRequest](req) @@ -3528,7 +3528,7 @@ func (s *StaticSitesServerTransport) dispatchUpdateDatabaseConnection(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/databaseConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DatabaseConnectionPatchRequest](req) @@ -3569,7 +3569,7 @@ func (s *StaticSitesServerTransport) dispatchUpdateStaticSite(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSitePatchResource](req) @@ -3606,7 +3606,7 @@ func (s *StaticSitesServerTransport) dispatchUpdateStaticSiteUser(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/authproviders/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/users/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteUserARMResource](req) @@ -3653,7 +3653,7 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateBackend(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/validate` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteLinkedBackendARMResource](req) @@ -3705,7 +3705,7 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateBackendForBuild(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/builds/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/linkedBackends/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/validate` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteLinkedBackendARMResource](req) @@ -3761,7 +3761,7 @@ func (s *StaticSitesServerTransport) dispatchBeginValidateCustomDomainCanBeAdded const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/staticSites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/customDomains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/validate` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StaticSiteCustomDomainRequestPropertiesARMResource](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go b/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go index 31c337477dc9..cc97da458fe4 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/topleveldomains_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -108,7 +108,7 @@ func (t *TopLevelDomainsServerTransport) dispatchGet(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/topLevelDomains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } nameParam, err := url.PathUnescape(matches[regex.SubexpIndex("name")]) @@ -139,7 +139,7 @@ func (t *TopLevelDomainsServerTransport) dispatchNewListPager(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/topLevelDomains` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := t.srv.NewListPager(nil) @@ -172,7 +172,7 @@ func (t *TopLevelDomainsServerTransport) dispatchNewListAgreementsPager(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.DomainRegistration/topLevelDomains/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listAgreements` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.TopLevelDomainAgreementOption](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go b/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go index c34b5c46e564..91a02cc2a69a 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/webapps_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "reflect" @@ -2794,7 +2794,7 @@ func (w *WebAppsServerTransport) dispatchAddPremierAddOn(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PremierAddOn](req) @@ -2835,7 +2835,7 @@ func (w *WebAppsServerTransport) dispatchAddPremierAddOnSlot(req *http.Request) 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~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PremierAddOn](req) @@ -2880,7 +2880,7 @@ func (w *WebAppsServerTransport) dispatchAnalyzeCustomHostname(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/analyzeCustomHostname` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -2925,7 +2925,7 @@ func (w *WebAppsServerTransport) dispatchAnalyzeCustomHostnameSlot(req *http.Req 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~%@]+)/analyzeCustomHostname` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -2974,7 +2974,7 @@ func (w *WebAppsServerTransport) dispatchApplySlotConfigToProduction(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/applySlotConfig` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmSlotEntity](req) @@ -3011,7 +3011,7 @@ func (w *WebAppsServerTransport) dispatchApplySlotConfigurationSlot(req *http.Re 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~%@]+)/applySlotConfig` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmSlotEntity](req) @@ -3054,7 +3054,7 @@ func (w *WebAppsServerTransport) dispatchBeginApproveOrRejectPrivateEndpointConn const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RemotePrivateEndpointConnectionARMResource](req) @@ -3106,7 +3106,7 @@ func (w *WebAppsServerTransport) dispatchBeginApproveOrRejectPrivateEndpointConn 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~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RemotePrivateEndpointConnectionARMResource](req) @@ -3160,7 +3160,7 @@ func (w *WebAppsServerTransport) dispatchBackup(req *http.Request) (*http.Respon const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.BackupRequest](req) @@ -3197,7 +3197,7 @@ func (w *WebAppsServerTransport) dispatchBackupSlot(req *http.Request) (*http.Re 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~%@]+)/backup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.BackupRequest](req) @@ -3238,7 +3238,7 @@ func (w *WebAppsServerTransport) dispatchCreateDeployment(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Deployment](req) @@ -3279,7 +3279,7 @@ func (w *WebAppsServerTransport) dispatchCreateDeploymentSlot(req *http.Request) 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~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Deployment](req) @@ -3326,7 +3326,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateFunction(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.FunctionEnvelope](req) @@ -3378,7 +3378,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateInstanceFunctionSlot(req *ht 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.FunctionEnvelope](req) @@ -3434,7 +3434,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateInstanceMSDeployOperation(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.MSDeploy](req) @@ -3486,7 +3486,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateInstanceMSDeployOperationSlo 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.MSDeploy](req) @@ -3542,7 +3542,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateMSDeployOperation(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.MSDeploy](req) @@ -3590,7 +3590,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateMSDeployOperationSlot(req *h 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~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.MSDeploy](req) @@ -3640,7 +3640,7 @@ func (w *WebAppsServerTransport) dispatchCreateOneDeployOperation(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/onedeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -3675,7 +3675,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Site](req) @@ -3721,7 +3721,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateConfiguration(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteConfigResource](req) @@ -3758,7 +3758,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateConfigurationSlot(req *ht 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~%@]+)/config/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteConfigResource](req) @@ -3799,7 +3799,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateDomainOwnershipIdentifier const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Identifier](req) @@ -3840,7 +3840,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateDomainOwnershipIdentifier 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~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Identifier](req) @@ -3885,7 +3885,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateFunctionSecret(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/keys/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.KeyInfo](req) @@ -3930,7 +3930,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateFunctionSecretSlot(req *h 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/keys/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.KeyInfo](req) @@ -3979,7 +3979,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateHostNameBinding(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostNameBindings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.HostNameBinding](req) @@ -4020,7 +4020,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateHostNameBindingSlot(req * 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~%@]+)/hostNameBindings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.HostNameBinding](req) @@ -4065,7 +4065,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateHostSecret(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/host/default/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.KeyInfo](req) @@ -4110,7 +4110,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateHostSecretSlot(req *http. 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~%@]+)/host/default/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.KeyInfo](req) @@ -4159,7 +4159,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateHybridConnection(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.HybridConnection](req) @@ -4204,7 +4204,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateHybridConnectionSlot(req 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~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.HybridConnection](req) @@ -4253,7 +4253,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdatePublicCertificate(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/publicCertificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PublicCertificate](req) @@ -4294,7 +4294,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdatePublicCertificateSlot(req 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~%@]+)/publicCertificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PublicCertificate](req) @@ -4339,7 +4339,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateRelayServiceConnection(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RelayServiceConnectionEntity](req) @@ -4380,7 +4380,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateRelayServiceConnectionSlo 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~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RelayServiceConnectionEntity](req) @@ -4425,7 +4425,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateSiteContainer(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sitecontainers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteContainer](req) @@ -4466,7 +4466,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateSiteContainerSlot(req *ht 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~%@]+)/sitecontainers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteContainer](req) @@ -4513,7 +4513,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateOrUpdateSlot(req *http.Reque 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~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Site](req) @@ -4565,7 +4565,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateOrUpdateSourceControl(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteSourceControl](req) @@ -4613,7 +4613,7 @@ func (w *WebAppsServerTransport) dispatchBeginCreateOrUpdateSourceControlSlot(re 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~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteSourceControl](req) @@ -4663,7 +4663,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateSwiftVirtualNetworkConnec const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SwiftVirtualNetwork](req) @@ -4700,7 +4700,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateSwiftVirtualNetworkConnec 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~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SwiftVirtualNetwork](req) @@ -4741,7 +4741,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateVnetConnection(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetInfoResource](req) @@ -4782,7 +4782,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateVnetConnectionGateway(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetGateway](req) @@ -4827,7 +4827,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateVnetConnectionGatewaySlot 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetGateway](req) @@ -4876,7 +4876,7 @@ func (w *WebAppsServerTransport) dispatchCreateOrUpdateVnetConnectionSlot(req *h 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetInfoResource](req) @@ -4921,7 +4921,7 @@ func (w *WebAppsServerTransport) dispatchDelete(req *http.Request) (*http.Respon const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -4978,7 +4978,7 @@ func (w *WebAppsServerTransport) dispatchDeleteBackup(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5015,7 +5015,7 @@ func (w *WebAppsServerTransport) dispatchDeleteBackupConfiguration(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/backup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5048,7 +5048,7 @@ func (w *WebAppsServerTransport) dispatchDeleteBackupConfigurationSlot(req *http 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~%@]+)/config/backup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5085,7 +5085,7 @@ func (w *WebAppsServerTransport) dispatchDeleteBackupSlot(req *http.Request) (*h 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~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5126,7 +5126,7 @@ func (w *WebAppsServerTransport) dispatchDeleteContinuousWebJob(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5163,7 +5163,7 @@ func (w *WebAppsServerTransport) dispatchDeleteContinuousWebJobSlot(req *http.Re 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~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5204,7 +5204,7 @@ func (w *WebAppsServerTransport) dispatchDeleteDeployment(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5241,7 +5241,7 @@ func (w *WebAppsServerTransport) dispatchDeleteDeploymentSlot(req *http.Request) 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~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5282,7 +5282,7 @@ func (w *WebAppsServerTransport) dispatchDeleteDomainOwnershipIdentifier(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5319,7 +5319,7 @@ func (w *WebAppsServerTransport) dispatchDeleteDomainOwnershipIdentifierSlot(req 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~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5360,7 +5360,7 @@ func (w *WebAppsServerTransport) dispatchDeleteFunction(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5397,7 +5397,7 @@ func (w *WebAppsServerTransport) dispatchDeleteFunctionSecret(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/keys/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5438,7 +5438,7 @@ func (w *WebAppsServerTransport) dispatchDeleteFunctionSecretSlot(req *http.Requ 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/keys/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5483,7 +5483,7 @@ func (w *WebAppsServerTransport) dispatchDeleteHostNameBinding(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostNameBindings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5520,7 +5520,7 @@ func (w *WebAppsServerTransport) dispatchDeleteHostNameBindingSlot(req *http.Req 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~%@]+)/hostNameBindings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5561,7 +5561,7 @@ func (w *WebAppsServerTransport) dispatchDeleteHostSecret(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/host/default/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5602,7 +5602,7 @@ func (w *WebAppsServerTransport) dispatchDeleteHostSecretSlot(req *http.Request) 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~%@]+)/host/default/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5647,7 +5647,7 @@ func (w *WebAppsServerTransport) dispatchDeleteHybridConnection(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5688,7 +5688,7 @@ func (w *WebAppsServerTransport) dispatchDeleteHybridConnectionSlot(req *http.Re 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~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5733,7 +5733,7 @@ func (w *WebAppsServerTransport) dispatchDeleteInstanceFunctionSlot(req *http.Re 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5774,7 +5774,7 @@ func (w *WebAppsServerTransport) dispatchDeleteInstanceProcess(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5815,7 +5815,7 @@ func (w *WebAppsServerTransport) dispatchDeleteInstanceProcessSlot(req *http.Req 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5860,7 +5860,7 @@ func (w *WebAppsServerTransport) dispatchDeletePremierAddOn(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5897,7 +5897,7 @@ func (w *WebAppsServerTransport) dispatchDeletePremierAddOnSlot(req *http.Reques 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~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5940,7 +5940,7 @@ func (w *WebAppsServerTransport) dispatchBeginDeletePrivateEndpointConnection(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -5988,7 +5988,7 @@ func (w *WebAppsServerTransport) dispatchBeginDeletePrivateEndpointConnectionSlo 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~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6038,7 +6038,7 @@ func (w *WebAppsServerTransport) dispatchDeleteProcess(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6075,7 +6075,7 @@ func (w *WebAppsServerTransport) dispatchDeleteProcessSlot(req *http.Request) (* 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~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6116,7 +6116,7 @@ func (w *WebAppsServerTransport) dispatchDeletePublicCertificate(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/publicCertificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6153,7 +6153,7 @@ func (w *WebAppsServerTransport) dispatchDeletePublicCertificateSlot(req *http.R 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~%@]+)/publicCertificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6194,7 +6194,7 @@ func (w *WebAppsServerTransport) dispatchDeleteRelayServiceConnection(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6231,7 +6231,7 @@ func (w *WebAppsServerTransport) dispatchDeleteRelayServiceConnectionSlot(req *h 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~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6272,7 +6272,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSiteContainer(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sitecontainers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6309,7 +6309,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSiteContainerSlot(req *http.Reque 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~%@]+)/sitecontainers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6350,7 +6350,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSiteExtension(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/siteextensions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6387,7 +6387,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSiteExtensionSlot(req *http.Reque 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~%@]+)/siteextensions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6428,7 +6428,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSlot(req *http.Request) (*http.Re 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~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -6489,7 +6489,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSourceControl(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -6534,7 +6534,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSourceControlSlot(req *http.Reque 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~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -6583,7 +6583,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSwiftVirtualNetwork(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6616,7 +6616,7 @@ func (w *WebAppsServerTransport) dispatchDeleteSwiftVirtualNetworkSlot(req *http 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~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6653,7 +6653,7 @@ func (w *WebAppsServerTransport) dispatchDeleteTriggeredWebJob(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6690,7 +6690,7 @@ func (w *WebAppsServerTransport) dispatchDeleteTriggeredWebJobSlot(req *http.Req 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~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6731,7 +6731,7 @@ func (w *WebAppsServerTransport) dispatchDeleteVnetConnection(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6768,7 +6768,7 @@ func (w *WebAppsServerTransport) dispatchDeleteVnetConnectionSlot(req *http.Requ 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -6809,7 +6809,7 @@ func (w *WebAppsServerTransport) dispatchDeployWorkflowArtifacts(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deployWorkflowArtifacts` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.WorkflowArtifacts](req) @@ -6852,7 +6852,7 @@ func (w *WebAppsServerTransport) dispatchDeployWorkflowArtifactsSlot(req *http.R 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~%@]+)/deployWorkflowArtifacts` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.WorkflowArtifacts](req) @@ -6899,7 +6899,7 @@ func (w *WebAppsServerTransport) dispatchDiscoverBackup(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/discoverbackup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RestoreRequest](req) @@ -6936,7 +6936,7 @@ func (w *WebAppsServerTransport) dispatchDiscoverBackupSlot(req *http.Request) ( 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~%@]+)/discoverbackup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RestoreRequest](req) @@ -6977,7 +6977,7 @@ func (w *WebAppsServerTransport) dispatchGenerateNewSitePublishingPassword(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/newpassword` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7010,7 +7010,7 @@ func (w *WebAppsServerTransport) dispatchGenerateNewSitePublishingPasswordSlot(r 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~%@]+)/newpassword` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7047,7 +7047,7 @@ func (w *WebAppsServerTransport) dispatchGet(req *http.Request) (*http.Response, const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7080,7 +7080,7 @@ func (w *WebAppsServerTransport) dispatchGetAppSettingKeyVaultReference(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/configreferences/appsettings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7117,7 +7117,7 @@ func (w *WebAppsServerTransport) dispatchGetAppSettingKeyVaultReferenceSlot(req 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~%@]+)/config/configreferences/appsettings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7160,7 +7160,7 @@ func (w *WebAppsServerTransport) dispatchNewGetAppSettingsKeyVaultReferencesPage const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/configreferences/appsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7201,7 +7201,7 @@ func (w *WebAppsServerTransport) dispatchNewGetAppSettingsKeyVaultReferencesSlot 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~%@]+)/config/configreferences/appsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7244,7 +7244,7 @@ func (w *WebAppsServerTransport) dispatchGetAuthSettings(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/authsettings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7277,7 +7277,7 @@ func (w *WebAppsServerTransport) dispatchGetAuthSettingsSlot(req *http.Request) 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~%@]+)/config/authsettings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7314,7 +7314,7 @@ func (w *WebAppsServerTransport) dispatchGetAuthSettingsV2(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/authsettingsV2/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7347,7 +7347,7 @@ func (w *WebAppsServerTransport) dispatchGetAuthSettingsV2Slot(req *http.Request 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~%@]+)/config/authsettingsV2/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7384,7 +7384,7 @@ func (w *WebAppsServerTransport) dispatchGetAuthSettingsV2WithoutSecrets(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/authsettingsV2` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7417,7 +7417,7 @@ func (w *WebAppsServerTransport) dispatchGetAuthSettingsV2WithoutSecretsSlot(req 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~%@]+)/config/authsettingsV2` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7454,7 +7454,7 @@ func (w *WebAppsServerTransport) dispatchGetBackupConfiguration(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/backup/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7487,7 +7487,7 @@ func (w *WebAppsServerTransport) dispatchGetBackupConfigurationSlot(req *http.Re 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~%@]+)/config/backup/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7524,7 +7524,7 @@ func (w *WebAppsServerTransport) dispatchGetBackupStatus(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7561,7 +7561,7 @@ func (w *WebAppsServerTransport) dispatchGetBackupStatusSlot(req *http.Request) 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~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7602,7 +7602,7 @@ func (w *WebAppsServerTransport) dispatchGetConfiguration(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7635,7 +7635,7 @@ func (w *WebAppsServerTransport) dispatchGetConfigurationSlot(req *http.Request) 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~%@]+)/config/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7672,7 +7672,7 @@ func (w *WebAppsServerTransport) dispatchGetConfigurationSnapshot(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/web/snapshots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7709,7 +7709,7 @@ func (w *WebAppsServerTransport) dispatchGetConfigurationSnapshotSlot(req *http. 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~%@]+)/config/web/snapshots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7750,7 +7750,7 @@ func (w *WebAppsServerTransport) dispatchGetContainerLogsZip(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/containerlogs/zip/download` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7786,7 +7786,7 @@ func (w *WebAppsServerTransport) dispatchGetContainerLogsZipSlot(req *http.Reque 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~%@]+)/containerlogs/zip/download` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7826,7 +7826,7 @@ func (w *WebAppsServerTransport) dispatchGetContinuousWebJob(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7863,7 +7863,7 @@ func (w *WebAppsServerTransport) dispatchGetContinuousWebJobSlot(req *http.Reque 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~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7904,7 +7904,7 @@ func (w *WebAppsServerTransport) dispatchGetDeployment(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7941,7 +7941,7 @@ func (w *WebAppsServerTransport) dispatchGetDeploymentSlot(req *http.Request) (* 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~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -7982,7 +7982,7 @@ func (w *WebAppsServerTransport) dispatchGetDiagnosticLogsConfiguration(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/logs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8015,7 +8015,7 @@ func (w *WebAppsServerTransport) dispatchGetDiagnosticLogsConfigurationSlot(req 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~%@]+)/config/logs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8052,7 +8052,7 @@ func (w *WebAppsServerTransport) dispatchGetDomainOwnershipIdentifier(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8089,7 +8089,7 @@ func (w *WebAppsServerTransport) dispatchGetDomainOwnershipIdentifierSlot(req *h 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~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8130,7 +8130,7 @@ func (w *WebAppsServerTransport) dispatchGetFtpAllowed(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicPublishingCredentialsPolicies/ftp` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8163,7 +8163,7 @@ func (w *WebAppsServerTransport) dispatchGetFtpAllowedSlot(req *http.Request) (* 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~%@]+)/basicPublishingCredentialsPolicies/ftp` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8200,7 +8200,7 @@ func (w *WebAppsServerTransport) dispatchGetFunction(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8237,7 +8237,7 @@ func (w *WebAppsServerTransport) dispatchGetFunctionsAdminToken(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/admin/token` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8270,7 +8270,7 @@ func (w *WebAppsServerTransport) dispatchGetFunctionsAdminTokenSlot(req *http.Re 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~%@]+)/functions/admin/token` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8307,7 +8307,7 @@ func (w *WebAppsServerTransport) dispatchGetHostNameBinding(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostNameBindings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8344,7 +8344,7 @@ func (w *WebAppsServerTransport) dispatchGetHostNameBindingSlot(req *http.Reques 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~%@]+)/hostNameBindings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8385,7 +8385,7 @@ func (w *WebAppsServerTransport) dispatchGetHybridConnection(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8426,7 +8426,7 @@ func (w *WebAppsServerTransport) dispatchGetHybridConnectionSlot(req *http.Reque 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~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8471,7 +8471,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceFunctionSlot(req *http.Reque 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8512,7 +8512,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceInfo(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8549,7 +8549,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceInfoSlot(req *http.Request) 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8590,7 +8590,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceMSDeployLog(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy/log` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8627,7 +8627,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceMSDeployLogSlot(req *http.Re 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy/log` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8668,7 +8668,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceMsDeployStatus(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8705,7 +8705,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceMsDeployStatusSlot(req *http 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8746,7 +8746,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcess(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8787,7 +8787,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessDump(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/dump` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8831,7 +8831,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessDumpSlot(req *http.Re 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/dump` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8879,7 +8879,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessModule(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8924,7 +8924,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessModuleSlot(req *http. 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 7 { + if len(matches) < 8 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -8973,7 +8973,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceProcessSlot(req *http.Reques 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9018,7 +9018,7 @@ func (w *WebAppsServerTransport) dispatchGetInstanceWorkflowSlot(req *http.Reque 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~%@]+)/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9059,7 +9059,7 @@ func (w *WebAppsServerTransport) dispatchGetMSDeployLog(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy/log` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9092,7 +9092,7 @@ func (w *WebAppsServerTransport) dispatchGetMSDeployLogSlot(req *http.Request) ( 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~%@]+)/extensions/MSDeploy/log` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9129,7 +9129,7 @@ func (w *WebAppsServerTransport) dispatchGetMSDeployStatus(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9162,7 +9162,7 @@ func (w *WebAppsServerTransport) dispatchGetMSDeployStatusSlot(req *http.Request 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~%@]+)/extensions/MSDeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9199,7 +9199,7 @@ func (w *WebAppsServerTransport) dispatchGetMigrateMySQLStatus(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/migratemysql/status` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9232,7 +9232,7 @@ func (w *WebAppsServerTransport) dispatchGetMigrateMySQLStatusSlot(req *http.Req 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~%@]+)/migratemysql/status` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9269,7 +9269,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTraceOperation(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTrace/operationresults/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9306,7 +9306,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTraceOperationSlot(req *http. 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~%@]+)/networkTrace/operationresults/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9347,7 +9347,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTraceOperationSlotV2(req *htt 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~%@]+)/networkTraces/current/operationresults/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9388,7 +9388,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTraceOperationV2(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTraces/current/operationresults/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9425,7 +9425,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTraces(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTrace/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9462,7 +9462,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTracesSlot(req *http.Request) 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~%@]+)/networkTrace/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9503,7 +9503,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTracesSlotV2(req *http.Reques 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~%@]+)/networkTraces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9544,7 +9544,7 @@ func (w *WebAppsServerTransport) dispatchGetNetworkTracesV2(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTraces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9581,7 +9581,7 @@ func (w *WebAppsServerTransport) dispatchGetOneDeployStatus(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/extensions/onedeploy` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9614,7 +9614,7 @@ func (w *WebAppsServerTransport) dispatchGetPremierAddOn(req *http.Request) (*ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9651,7 +9651,7 @@ func (w *WebAppsServerTransport) dispatchGetPremierAddOnSlot(req *http.Request) 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~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9692,7 +9692,7 @@ func (w *WebAppsServerTransport) dispatchGetPrivateAccess(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateAccess/virtualNetworks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9725,7 +9725,7 @@ func (w *WebAppsServerTransport) dispatchGetPrivateAccessSlot(req *http.Request) 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~%@]+)/privateAccess/virtualNetworks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9762,7 +9762,7 @@ func (w *WebAppsServerTransport) dispatchGetPrivateEndpointConnection(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9801,7 +9801,7 @@ func (w *WebAppsServerTransport) dispatchNewGetPrivateEndpointConnectionListPage const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateEndpointConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9842,7 +9842,7 @@ func (w *WebAppsServerTransport) dispatchNewGetPrivateEndpointConnectionListSlot 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~%@]+)/privateEndpointConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9885,7 +9885,7 @@ func (w *WebAppsServerTransport) dispatchGetPrivateEndpointConnectionSlot(req *h 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~%@]+)/privateEndpointConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9926,7 +9926,7 @@ func (w *WebAppsServerTransport) dispatchGetPrivateLinkResources(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateLinkResources` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9959,7 +9959,7 @@ func (w *WebAppsServerTransport) dispatchGetPrivateLinkResourcesSlot(req *http.R 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~%@]+)/privateLinkResources` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -9996,7 +9996,7 @@ func (w *WebAppsServerTransport) dispatchGetProcess(req *http.Request) (*http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10033,7 +10033,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessDump(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/dump` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10073,7 +10073,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessDumpSlot(req *http.Request) ( 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~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/dump` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10117,7 +10117,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessModule(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10158,7 +10158,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessModuleSlot(req *http.Request) 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~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10203,7 +10203,7 @@ func (w *WebAppsServerTransport) dispatchGetProcessSlot(req *http.Request) (*htt 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~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10246,7 +10246,7 @@ func (w *WebAppsServerTransport) dispatchBeginGetProductionSiteDeploymentStatus( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deploymentStatus/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10292,7 +10292,7 @@ func (w *WebAppsServerTransport) dispatchGetPublicCertificate(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/publicCertificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10329,7 +10329,7 @@ func (w *WebAppsServerTransport) dispatchGetPublicCertificateSlot(req *http.Requ 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~%@]+)/publicCertificates/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10370,7 +10370,7 @@ func (w *WebAppsServerTransport) dispatchGetRelayServiceConnection(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10407,7 +10407,7 @@ func (w *WebAppsServerTransport) dispatchGetRelayServiceConnectionSlot(req *http 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~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10448,7 +10448,7 @@ func (w *WebAppsServerTransport) dispatchGetScmAllowed(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicPublishingCredentialsPolicies/scm` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10481,7 +10481,7 @@ func (w *WebAppsServerTransport) dispatchGetScmAllowedSlot(req *http.Request) (* 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~%@]+)/basicPublishingCredentialsPolicies/scm` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10518,7 +10518,7 @@ func (w *WebAppsServerTransport) dispatchGetSiteConnectionStringKeyVaultReferenc const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/configreferences/connectionstrings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10555,7 +10555,7 @@ func (w *WebAppsServerTransport) dispatchGetSiteConnectionStringKeyVaultReferenc 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~%@]+)/config/configreferences/connectionstrings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10598,7 +10598,7 @@ func (w *WebAppsServerTransport) dispatchNewGetSiteConnectionStringKeyVaultRefer const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/configreferences/connectionstrings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10639,7 +10639,7 @@ func (w *WebAppsServerTransport) dispatchNewGetSiteConnectionStringKeyVaultRefer 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~%@]+)/config/configreferences/connectionstrings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10682,7 +10682,7 @@ func (w *WebAppsServerTransport) dispatchGetSiteContainer(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sitecontainers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10719,7 +10719,7 @@ func (w *WebAppsServerTransport) dispatchGetSiteContainerSlot(req *http.Request) 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~%@]+)/sitecontainers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10760,7 +10760,7 @@ func (w *WebAppsServerTransport) dispatchGetSiteExtension(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/siteextensions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10797,7 +10797,7 @@ func (w *WebAppsServerTransport) dispatchGetSiteExtensionSlot(req *http.Request) 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~%@]+)/siteextensions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10838,7 +10838,7 @@ func (w *WebAppsServerTransport) dispatchGetSitePhpErrorLogFlag(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/phplogging` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10871,7 +10871,7 @@ func (w *WebAppsServerTransport) dispatchGetSitePhpErrorLogFlagSlot(req *http.Re 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~%@]+)/phplogging` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10908,7 +10908,7 @@ func (w *WebAppsServerTransport) dispatchGetSlot(req *http.Request) (*http.Respo 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~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10947,7 +10947,7 @@ func (w *WebAppsServerTransport) dispatchBeginGetSlotSiteDeploymentStatusSlot(re 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~%@]+)/deploymentStatus/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -10997,7 +10997,7 @@ func (w *WebAppsServerTransport) dispatchGetSourceControl(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11030,7 +11030,7 @@ func (w *WebAppsServerTransport) dispatchGetSourceControlSlot(req *http.Request) 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~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11067,7 +11067,7 @@ func (w *WebAppsServerTransport) dispatchGetSwiftVirtualNetworkConnection(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11100,7 +11100,7 @@ func (w *WebAppsServerTransport) dispatchGetSwiftVirtualNetworkConnectionSlot(re 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~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11137,7 +11137,7 @@ func (w *WebAppsServerTransport) dispatchGetTriggeredWebJob(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11174,7 +11174,7 @@ func (w *WebAppsServerTransport) dispatchGetTriggeredWebJobHistory(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/history/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11215,7 +11215,7 @@ func (w *WebAppsServerTransport) dispatchGetTriggeredWebJobHistorySlot(req *http 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~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/history/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11260,7 +11260,7 @@ func (w *WebAppsServerTransport) dispatchGetTriggeredWebJobSlot(req *http.Reques 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~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11301,7 +11301,7 @@ func (w *WebAppsServerTransport) dispatchGetVnetConnection(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11338,7 +11338,7 @@ func (w *WebAppsServerTransport) dispatchGetVnetConnectionGateway(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11379,7 +11379,7 @@ func (w *WebAppsServerTransport) dispatchGetVnetConnectionGatewaySlot(req *http. 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11424,7 +11424,7 @@ func (w *WebAppsServerTransport) dispatchGetVnetConnectionSlot(req *http.Request 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11465,7 +11465,7 @@ func (w *WebAppsServerTransport) dispatchGetWebJob(req *http.Request) (*http.Res const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/webjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11502,7 +11502,7 @@ func (w *WebAppsServerTransport) dispatchGetWebJobSlot(req *http.Request) (*http 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~%@]+)/webjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11543,7 +11543,7 @@ func (w *WebAppsServerTransport) dispatchGetWebSiteContainerLogs(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/containerlogs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11579,7 +11579,7 @@ func (w *WebAppsServerTransport) dispatchGetWebSiteContainerLogsSlot(req *http.R 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~%@]+)/containerlogs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11619,7 +11619,7 @@ func (w *WebAppsServerTransport) dispatchGetWorkflow(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11658,7 +11658,7 @@ func (w *WebAppsServerTransport) dispatchBeginInstallSiteExtension(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/siteextensions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11706,7 +11706,7 @@ func (w *WebAppsServerTransport) dispatchBeginInstallSiteExtensionSlot(req *http 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~%@]+)/siteextensions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11756,7 +11756,7 @@ func (w *WebAppsServerTransport) dispatchIsCloneable(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/iscloneable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11789,7 +11789,7 @@ func (w *WebAppsServerTransport) dispatchIsCloneableSlot(req *http.Request) (*ht 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~%@]+)/iscloneable` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11828,7 +11828,7 @@ func (w *WebAppsServerTransport) dispatchNewListPager(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 1 { + if len(matches) < 2 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resp := w.srv.NewListPager(nil) @@ -11859,7 +11859,7 @@ func (w *WebAppsServerTransport) dispatchListApplicationSettings(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/appsettings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11892,7 +11892,7 @@ func (w *WebAppsServerTransport) dispatchListApplicationSettingsSlot(req *http.R 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~%@]+)/config/appsettings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11929,7 +11929,7 @@ func (w *WebAppsServerTransport) dispatchListAzureStorageAccounts(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/azurestorageaccounts/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11962,7 +11962,7 @@ func (w *WebAppsServerTransport) dispatchListAzureStorageAccountsSlot(req *http. 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~%@]+)/config/azurestorageaccounts/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -11999,7 +11999,7 @@ func (w *WebAppsServerTransport) dispatchListBackupStatusSecrets(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.BackupRequest](req) @@ -12040,7 +12040,7 @@ func (w *WebAppsServerTransport) dispatchListBackupStatusSecretsSlot(req *http.R 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~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.BackupRequest](req) @@ -12087,7 +12087,7 @@ func (w *WebAppsServerTransport) dispatchNewListBackupsPager(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12128,7 +12128,7 @@ func (w *WebAppsServerTransport) dispatchNewListBackupsSlotPager(req *http.Reque 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~%@]+)/backups` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12173,7 +12173,7 @@ func (w *WebAppsServerTransport) dispatchNewListBasicPublishingCredentialsPolici const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicPublishingCredentialsPolicies` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12214,7 +12214,7 @@ func (w *WebAppsServerTransport) dispatchNewListBasicPublishingCredentialsPolici 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~%@]+)/basicPublishingCredentialsPolicies` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12259,7 +12259,7 @@ func (w *WebAppsServerTransport) dispatchNewListByResourceGroupPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 2 { + if len(matches) < 3 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -12311,7 +12311,7 @@ func (w *WebAppsServerTransport) dispatchNewListConfigurationSnapshotInfoPager(r const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/web/snapshots` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12352,7 +12352,7 @@ func (w *WebAppsServerTransport) dispatchNewListConfigurationSnapshotInfoSlotPag 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~%@]+)/config/web/snapshots` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12397,7 +12397,7 @@ func (w *WebAppsServerTransport) dispatchNewListConfigurationsPager(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12438,7 +12438,7 @@ func (w *WebAppsServerTransport) dispatchNewListConfigurationsSlotPager(req *htt 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~%@]+)/config` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12481,7 +12481,7 @@ func (w *WebAppsServerTransport) dispatchListConnectionStrings(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/connectionstrings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12514,7 +12514,7 @@ func (w *WebAppsServerTransport) dispatchListConnectionStringsSlot(req *http.Req 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~%@]+)/config/connectionstrings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12553,7 +12553,7 @@ func (w *WebAppsServerTransport) dispatchNewListContinuousWebJobsPager(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/continuouswebjobs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12594,7 +12594,7 @@ func (w *WebAppsServerTransport) dispatchNewListContinuousWebJobsSlotPager(req * 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~%@]+)/continuouswebjobs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12637,7 +12637,7 @@ func (w *WebAppsServerTransport) dispatchListDeploymentLog(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/log` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12674,7 +12674,7 @@ func (w *WebAppsServerTransport) dispatchListDeploymentLogSlot(req *http.Request 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~%@]+)/deployments/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/log` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12717,7 +12717,7 @@ func (w *WebAppsServerTransport) dispatchNewListDeploymentsPager(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deployments` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12758,7 +12758,7 @@ func (w *WebAppsServerTransport) dispatchNewListDeploymentsSlotPager(req *http.R 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~%@]+)/deployments` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12803,7 +12803,7 @@ func (w *WebAppsServerTransport) dispatchNewListDomainOwnershipIdentifiersPager( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12844,7 +12844,7 @@ func (w *WebAppsServerTransport) dispatchNewListDomainOwnershipIdentifiersSlotPa 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~%@]+)/domainOwnershipIdentifiers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12887,7 +12887,7 @@ func (w *WebAppsServerTransport) dispatchListFunctionKeys(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listkeys` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12924,7 +12924,7 @@ func (w *WebAppsServerTransport) dispatchListFunctionKeysSlot(req *http.Request) 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listkeys` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -12965,7 +12965,7 @@ func (w *WebAppsServerTransport) dispatchListFunctionSecrets(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listsecrets` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13002,7 +13002,7 @@ func (w *WebAppsServerTransport) dispatchListFunctionSecretsSlot(req *http.Reque 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~%@]+)/functions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listsecrets` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13045,7 +13045,7 @@ func (w *WebAppsServerTransport) dispatchNewListFunctionsPager(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/functions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13084,7 +13084,7 @@ func (w *WebAppsServerTransport) dispatchListHostKeys(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/host/default/listkeys` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13117,7 +13117,7 @@ func (w *WebAppsServerTransport) dispatchListHostKeysSlot(req *http.Request) (*h 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~%@]+)/host/default/listkeys` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13156,7 +13156,7 @@ func (w *WebAppsServerTransport) dispatchNewListHostNameBindingsPager(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostNameBindings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13197,7 +13197,7 @@ func (w *WebAppsServerTransport) dispatchNewListHostNameBindingsSlotPager(req *h 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~%@]+)/hostNameBindings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13240,7 +13240,7 @@ func (w *WebAppsServerTransport) dispatchListHybridConnections(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionRelays` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13273,7 +13273,7 @@ func (w *WebAppsServerTransport) dispatchListHybridConnectionsSlot(req *http.Req 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~%@]+)/hybridConnectionRelays` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13312,7 +13312,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceFunctionsSlotPager(req * 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~%@]+)/functions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13357,7 +13357,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceIdentifiersPager(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13398,7 +13398,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceIdentifiersSlotPager(req 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~%@]+)/instances` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13443,7 +13443,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceProcessModulesPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13492,7 +13492,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceProcessModulesSlotPager( 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13545,7 +13545,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceProcessThreadsPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/threads` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13594,7 +13594,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceProcessThreadsSlotPager( 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/threads` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13647,7 +13647,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceProcessesPager(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13692,7 +13692,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceProcessesSlotPager(req * 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~%@]+)/instances/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13741,7 +13741,7 @@ func (w *WebAppsServerTransport) dispatchNewListInstanceWorkflowsSlotPager(req * 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~%@]+)/workflows` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13784,7 +13784,7 @@ func (w *WebAppsServerTransport) dispatchListMetadata(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/metadata/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13817,7 +13817,7 @@ func (w *WebAppsServerTransport) dispatchListMetadataSlot(req *http.Request) (*h 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~%@]+)/config/metadata/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13854,7 +13854,7 @@ func (w *WebAppsServerTransport) dispatchListNetworkFeatures(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkFeatures/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13891,7 +13891,7 @@ func (w *WebAppsServerTransport) dispatchListNetworkFeaturesSlot(req *http.Reque 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~%@]+)/networkFeatures/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -13934,7 +13934,7 @@ func (w *WebAppsServerTransport) dispatchNewListPerfMonCountersPager(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/perfcounters` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -13987,7 +13987,7 @@ func (w *WebAppsServerTransport) dispatchNewListPerfMonCountersSlotPager(req *ht 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~%@]+)/perfcounters` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -14042,7 +14042,7 @@ func (w *WebAppsServerTransport) dispatchListPremierAddOns(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/premieraddons` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14075,7 +14075,7 @@ func (w *WebAppsServerTransport) dispatchListPremierAddOnsSlot(req *http.Request 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~%@]+)/premieraddons` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14114,7 +14114,7 @@ func (w *WebAppsServerTransport) dispatchNewListProcessModulesPager(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14159,7 +14159,7 @@ func (w *WebAppsServerTransport) dispatchNewListProcessModulesSlotPager(req *htt 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~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/modules` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14208,7 +14208,7 @@ func (w *WebAppsServerTransport) dispatchNewListProcessThreadsPager(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/threads` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14253,7 +14253,7 @@ func (w *WebAppsServerTransport) dispatchNewListProcessThreadsSlotPager(req *htt 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~%@]+)/processes/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/threads` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14302,7 +14302,7 @@ func (w *WebAppsServerTransport) dispatchNewListProcessesPager(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/processes` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14343,7 +14343,7 @@ func (w *WebAppsServerTransport) dispatchNewListProcessesSlotPager(req *http.Req 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~%@]+)/processes` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14388,7 +14388,7 @@ func (w *WebAppsServerTransport) dispatchNewListProductionSiteDeploymentStatuses const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/deploymentStatus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14429,7 +14429,7 @@ func (w *WebAppsServerTransport) dispatchNewListPublicCertificatesPager(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/publicCertificates` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14470,7 +14470,7 @@ func (w *WebAppsServerTransport) dispatchNewListPublicCertificatesSlotPager(req 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~%@]+)/publicCertificates` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14515,7 +14515,7 @@ func (w *WebAppsServerTransport) dispatchBeginListPublishingCredentials(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/publishingcredentials/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14559,7 +14559,7 @@ func (w *WebAppsServerTransport) dispatchBeginListPublishingCredentialsSlot(req 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~%@]+)/config/publishingcredentials/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14605,7 +14605,7 @@ func (w *WebAppsServerTransport) dispatchListPublishingProfileXMLWithSecrets(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/publishxml` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmPublishingProfileOptions](req) @@ -14645,7 +14645,7 @@ func (w *WebAppsServerTransport) dispatchListPublishingProfileXMLWithSecretsSlot 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~%@]+)/publishxml` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmPublishingProfileOptions](req) @@ -14689,7 +14689,7 @@ func (w *WebAppsServerTransport) dispatchListRelayServiceConnections(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridconnection` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14722,7 +14722,7 @@ func (w *WebAppsServerTransport) dispatchListRelayServiceConnectionsSlot(req *ht 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~%@]+)/hybridconnection` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14761,7 +14761,7 @@ func (w *WebAppsServerTransport) dispatchNewListSiteBackupsPager(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listbackups` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14802,7 +14802,7 @@ func (w *WebAppsServerTransport) dispatchNewListSiteBackupsSlotPager(req *http.R 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~%@]+)/listbackups` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14847,7 +14847,7 @@ func (w *WebAppsServerTransport) dispatchNewListSiteContainersPager(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sitecontainers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14888,7 +14888,7 @@ func (w *WebAppsServerTransport) dispatchNewListSiteContainersSlotPager(req *htt 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~%@]+)/sitecontainers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14933,7 +14933,7 @@ func (w *WebAppsServerTransport) dispatchNewListSiteExtensionsPager(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/siteextensions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -14974,7 +14974,7 @@ func (w *WebAppsServerTransport) dispatchNewListSiteExtensionsSlotPager(req *htt 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~%@]+)/siteextensions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15017,7 +15017,7 @@ func (w *WebAppsServerTransport) dispatchListSitePushSettings(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/pushsettings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15050,7 +15050,7 @@ func (w *WebAppsServerTransport) dispatchListSitePushSettingsSlot(req *http.Requ 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~%@]+)/config/pushsettings/list` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15087,7 +15087,7 @@ func (w *WebAppsServerTransport) dispatchListSlotConfigurationNames(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/slotConfigNames` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15122,7 +15122,7 @@ func (w *WebAppsServerTransport) dispatchNewListSlotDifferencesFromProductionPag const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slotsdiffs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmSlotEntity](req) @@ -15167,7 +15167,7 @@ func (w *WebAppsServerTransport) dispatchNewListSlotDifferencesSlotPager(req *ht 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~%@]+)/slotsdiffs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmSlotEntity](req) @@ -15216,7 +15216,7 @@ func (w *WebAppsServerTransport) dispatchNewListSlotSiteDeploymentStatusesSlotPa 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~%@]+)/deploymentStatus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15261,7 +15261,7 @@ func (w *WebAppsServerTransport) dispatchNewListSlotsPager(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slots` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15302,7 +15302,7 @@ func (w *WebAppsServerTransport) dispatchNewListSnapshotsPager(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/snapshots` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15343,7 +15343,7 @@ func (w *WebAppsServerTransport) dispatchNewListSnapshotsFromDRSecondaryPager(re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/snapshotsdr` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15384,7 +15384,7 @@ func (w *WebAppsServerTransport) dispatchNewListSnapshotsFromDRSecondarySlotPage 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~%@]+)/snapshotsdr` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15429,7 +15429,7 @@ func (w *WebAppsServerTransport) dispatchNewListSnapshotsSlotPager(req *http.Req 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~%@]+)/snapshots` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15472,7 +15472,7 @@ func (w *WebAppsServerTransport) dispatchListSyncFunctionTriggers(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listsyncfunctiontriggerstatus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15505,7 +15505,7 @@ func (w *WebAppsServerTransport) dispatchListSyncFunctionTriggersSlot(req *http. 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~%@]+)/listsyncfunctiontriggerstatus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15542,7 +15542,7 @@ func (w *WebAppsServerTransport) dispatchListSyncStatus(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/host/default/listsyncstatus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15575,7 +15575,7 @@ func (w *WebAppsServerTransport) dispatchListSyncStatusSlot(req *http.Request) ( 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~%@]+)/host/default/listsyncstatus` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15614,7 +15614,7 @@ func (w *WebAppsServerTransport) dispatchNewListTriggeredWebJobHistoryPager(req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/history` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15659,7 +15659,7 @@ func (w *WebAppsServerTransport) dispatchNewListTriggeredWebJobHistorySlotPager( 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~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/history` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15708,7 +15708,7 @@ func (w *WebAppsServerTransport) dispatchNewListTriggeredWebJobsPager(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggeredwebjobs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15749,7 +15749,7 @@ func (w *WebAppsServerTransport) dispatchNewListTriggeredWebJobsSlotPager(req *h 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~%@]+)/triggeredwebjobs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15794,7 +15794,7 @@ func (w *WebAppsServerTransport) dispatchNewListUsagesPager(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -15847,7 +15847,7 @@ func (w *WebAppsServerTransport) dispatchNewListUsagesSlotPager(req *http.Reques 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~%@]+)/usages` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -15902,7 +15902,7 @@ func (w *WebAppsServerTransport) dispatchListVnetConnections(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15935,7 +15935,7 @@ func (w *WebAppsServerTransport) dispatchListVnetConnectionsSlot(req *http.Reque 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~%@]+)/virtualNetworkConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -15974,7 +15974,7 @@ func (w *WebAppsServerTransport) dispatchNewListWebJobsPager(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/webjobs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16015,7 +16015,7 @@ func (w *WebAppsServerTransport) dispatchNewListWebJobsSlotPager(req *http.Reque 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~%@]+)/webjobs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16060,7 +16060,7 @@ func (w *WebAppsServerTransport) dispatchNewListWorkflowsPager(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/workflows` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16099,7 +16099,7 @@ func (w *WebAppsServerTransport) dispatchListWorkflowsConnections(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listWorkflowsConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16132,7 +16132,7 @@ func (w *WebAppsServerTransport) dispatchListWorkflowsConnectionsSlot(req *http. 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~%@]+)/listWorkflowsConnections` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16171,7 +16171,7 @@ func (w *WebAppsServerTransport) dispatchBeginMigrateMySQL(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/migratemysql` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.MigrateMySQLRequest](req) @@ -16219,7 +16219,7 @@ func (w *WebAppsServerTransport) dispatchBeginMigrateStorage(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/migrate` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -16270,7 +16270,7 @@ func (w *WebAppsServerTransport) dispatchPutPrivateAccessVnet(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/privateAccess/virtualNetworks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PrivateAccess](req) @@ -16307,7 +16307,7 @@ func (w *WebAppsServerTransport) dispatchPutPrivateAccessVnetSlot(req *http.Requ 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~%@]+)/privateAccess/virtualNetworks` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PrivateAccess](req) @@ -16348,7 +16348,7 @@ func (w *WebAppsServerTransport) dispatchRecoverSiteConfigurationSnapshot(req *h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/web/snapshots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recover` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16385,7 +16385,7 @@ func (w *WebAppsServerTransport) dispatchRecoverSiteConfigurationSnapshotSlot(re 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~%@]+)/config/web/snapshots/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/recover` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16426,7 +16426,7 @@ func (w *WebAppsServerTransport) dispatchResetProductionSlotConfig(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resetSlotConfig` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16459,7 +16459,7 @@ func (w *WebAppsServerTransport) dispatchResetSlotConfigurationSlot(req *http.Re 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~%@]+)/resetSlotConfig` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -16496,7 +16496,7 @@ func (w *WebAppsServerTransport) dispatchRestart(req *http.Request) (*http.Respo const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restart` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -16553,7 +16553,7 @@ func (w *WebAppsServerTransport) dispatchRestartSlot(req *http.Request) (*http.R 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~%@]+)/restart` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -16616,7 +16616,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestore(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restore` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RestoreRequest](req) @@ -16668,7 +16668,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromBackupBlob(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restoreFromBackupBlob` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RestoreRequest](req) @@ -16716,7 +16716,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromBackupBlobSlot(req *htt 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~%@]+)/restoreFromBackupBlob` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RestoreRequest](req) @@ -16768,7 +16768,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromDeletedApp(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restoreFromDeletedApp` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DeletedAppRestoreRequest](req) @@ -16816,7 +16816,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreFromDeletedAppSlot(req *htt 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~%@]+)/restoreFromDeletedApp` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.DeletedAppRestoreRequest](req) @@ -16868,7 +16868,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreSlot(req *http.Request) (*h 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~%@]+)/backups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restore` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RestoreRequest](req) @@ -16924,7 +16924,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreSnapshot(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/restoreSnapshot` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SnapshotRestoreRequest](req) @@ -16972,7 +16972,7 @@ func (w *WebAppsServerTransport) dispatchBeginRestoreSnapshotSlot(req *http.Requ 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~%@]+)/restoreSnapshot` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SnapshotRestoreRequest](req) @@ -17022,7 +17022,7 @@ func (w *WebAppsServerTransport) dispatchRunTriggeredWebJob(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/run` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17059,7 +17059,7 @@ func (w *WebAppsServerTransport) dispatchRunTriggeredWebJobSlot(req *http.Reques 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~%@]+)/triggeredwebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/run` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17100,7 +17100,7 @@ func (w *WebAppsServerTransport) dispatchStart(req *http.Request) (*http.Respons const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/start` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17133,7 +17133,7 @@ func (w *WebAppsServerTransport) dispatchStartContinuousWebJob(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/start` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17170,7 +17170,7 @@ func (w *WebAppsServerTransport) dispatchStartContinuousWebJobSlot(req *http.Req 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~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/start` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17213,7 +17213,7 @@ func (w *WebAppsServerTransport) dispatchBeginStartNetworkTrace(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/startNetworkTrace` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -17299,7 +17299,7 @@ func (w *WebAppsServerTransport) dispatchBeginStartNetworkTraceSlot(req *http.Re 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~%@]+)/startNetworkTrace` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -17387,7 +17387,7 @@ func (w *WebAppsServerTransport) dispatchStartSlot(req *http.Request) (*http.Res 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~%@]+)/start` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17424,7 +17424,7 @@ func (w *WebAppsServerTransport) dispatchStartWebSiteNetworkTrace(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTrace/start` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -17501,7 +17501,7 @@ func (w *WebAppsServerTransport) dispatchBeginStartWebSiteNetworkTraceOperation( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTrace/startOperation` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -17587,7 +17587,7 @@ func (w *WebAppsServerTransport) dispatchBeginStartWebSiteNetworkTraceOperationS 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~%@]+)/networkTrace/startOperation` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -17675,7 +17675,7 @@ func (w *WebAppsServerTransport) dispatchStartWebSiteNetworkTraceSlot(req *http. 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~%@]+)/networkTrace/start` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -17754,7 +17754,7 @@ func (w *WebAppsServerTransport) dispatchStop(req *http.Request) (*http.Response const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/stop` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17787,7 +17787,7 @@ func (w *WebAppsServerTransport) dispatchStopContinuousWebJob(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/stop` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17824,7 +17824,7 @@ func (w *WebAppsServerTransport) dispatchStopContinuousWebJobSlot(req *http.Requ 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~%@]+)/continuouswebjobs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/stop` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17865,7 +17865,7 @@ func (w *WebAppsServerTransport) dispatchStopNetworkTrace(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/stopNetworkTrace` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17898,7 +17898,7 @@ func (w *WebAppsServerTransport) dispatchStopNetworkTraceSlot(req *http.Request) 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~%@]+)/stopNetworkTrace` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17935,7 +17935,7 @@ func (w *WebAppsServerTransport) dispatchStopSlot(req *http.Request) (*http.Resp 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~%@]+)/stop` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -17972,7 +17972,7 @@ func (w *WebAppsServerTransport) dispatchStopWebSiteNetworkTrace(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkTrace/stop` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18005,7 +18005,7 @@ func (w *WebAppsServerTransport) dispatchStopWebSiteNetworkTraceSlot(req *http.R 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~%@]+)/networkTrace/stop` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18044,7 +18044,7 @@ func (w *WebAppsServerTransport) dispatchBeginSwapSlot(req *http.Request) (*http 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~%@]+)/slotsswap` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmSlotEntity](req) @@ -18096,7 +18096,7 @@ func (w *WebAppsServerTransport) dispatchBeginSwapSlotWithProduction(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/slotsswap` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmSlotEntity](req) @@ -18142,7 +18142,7 @@ func (w *WebAppsServerTransport) dispatchSyncFunctionTriggers(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/syncfunctiontriggers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18175,7 +18175,7 @@ func (w *WebAppsServerTransport) dispatchSyncFunctionTriggersSlot(req *http.Requ 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~%@]+)/syncfunctiontriggers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18212,7 +18212,7 @@ func (w *WebAppsServerTransport) dispatchSyncFunctions(req *http.Request) (*http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/host/default/sync` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18245,7 +18245,7 @@ func (w *WebAppsServerTransport) dispatchSyncFunctionsSlot(req *http.Request) (* 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~%@]+)/host/default/sync` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18282,7 +18282,7 @@ func (w *WebAppsServerTransport) dispatchSyncRepository(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sync` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18315,7 +18315,7 @@ func (w *WebAppsServerTransport) dispatchSyncRepositorySlot(req *http.Request) ( 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~%@]+)/sync` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -18352,7 +18352,7 @@ func (w *WebAppsServerTransport) dispatchUpdate(req *http.Request) (*http.Respon const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SitePatchResource](req) @@ -18389,7 +18389,7 @@ func (w *WebAppsServerTransport) dispatchUpdateApplicationSettings(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/appsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -18426,7 +18426,7 @@ func (w *WebAppsServerTransport) dispatchUpdateApplicationSettingsSlot(req *http 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~%@]+)/config/appsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -18467,7 +18467,7 @@ func (w *WebAppsServerTransport) dispatchUpdateAuthSettings(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/authsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteAuthSettings](req) @@ -18504,7 +18504,7 @@ func (w *WebAppsServerTransport) dispatchUpdateAuthSettingsSlot(req *http.Reques 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~%@]+)/config/authsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteAuthSettings](req) @@ -18545,7 +18545,7 @@ func (w *WebAppsServerTransport) dispatchUpdateAuthSettingsV2(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/authsettingsV2` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteAuthSettingsV2](req) @@ -18582,7 +18582,7 @@ func (w *WebAppsServerTransport) dispatchUpdateAuthSettingsV2Slot(req *http.Requ 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~%@]+)/config/authsettingsV2` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteAuthSettingsV2](req) @@ -18623,7 +18623,7 @@ func (w *WebAppsServerTransport) dispatchUpdateAzureStorageAccounts(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/azurestorageaccounts` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AzureStoragePropertyDictionaryResource](req) @@ -18660,7 +18660,7 @@ func (w *WebAppsServerTransport) dispatchUpdateAzureStorageAccountsSlot(req *htt 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~%@]+)/config/azurestorageaccounts` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.AzureStoragePropertyDictionaryResource](req) @@ -18701,7 +18701,7 @@ func (w *WebAppsServerTransport) dispatchUpdateBackupConfiguration(req *http.Req const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/backup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.BackupRequest](req) @@ -18738,7 +18738,7 @@ func (w *WebAppsServerTransport) dispatchUpdateBackupConfigurationSlot(req *http 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~%@]+)/config/backup` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.BackupRequest](req) @@ -18779,7 +18779,7 @@ func (w *WebAppsServerTransport) dispatchUpdateConfiguration(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteConfigResource](req) @@ -18816,7 +18816,7 @@ func (w *WebAppsServerTransport) dispatchUpdateConfigurationSlot(req *http.Reque 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~%@]+)/config/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteConfigResource](req) @@ -18857,7 +18857,7 @@ func (w *WebAppsServerTransport) dispatchUpdateConnectionStrings(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/connectionstrings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.ConnectionStringDictionary](req) @@ -18894,7 +18894,7 @@ func (w *WebAppsServerTransport) dispatchUpdateConnectionStringsSlot(req *http.R 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~%@]+)/config/connectionstrings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.ConnectionStringDictionary](req) @@ -18935,7 +18935,7 @@ func (w *WebAppsServerTransport) dispatchUpdateDiagnosticLogsConfig(req *http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/logs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteLogsConfig](req) @@ -18972,7 +18972,7 @@ func (w *WebAppsServerTransport) dispatchUpdateDiagnosticLogsConfigSlot(req *htt 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~%@]+)/config/logs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteLogsConfig](req) @@ -19013,7 +19013,7 @@ func (w *WebAppsServerTransport) dispatchUpdateDomainOwnershipIdentifier(req *ht const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Identifier](req) @@ -19054,7 +19054,7 @@ func (w *WebAppsServerTransport) dispatchUpdateDomainOwnershipIdentifierSlot(req 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~%@]+)/domainOwnershipIdentifiers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Identifier](req) @@ -19099,7 +19099,7 @@ func (w *WebAppsServerTransport) dispatchUpdateFtpAllowed(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicPublishingCredentialsPolicies/ftp` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmPublishingCredentialsPoliciesEntity](req) @@ -19136,7 +19136,7 @@ func (w *WebAppsServerTransport) dispatchUpdateFtpAllowedSlot(req *http.Request) 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~%@]+)/basicPublishingCredentialsPolicies/ftp` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmPublishingCredentialsPoliciesEntity](req) @@ -19177,7 +19177,7 @@ func (w *WebAppsServerTransport) dispatchUpdateHybridConnection(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.HybridConnection](req) @@ -19222,7 +19222,7 @@ func (w *WebAppsServerTransport) dispatchUpdateHybridConnectionSlot(req *http.Re 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~%@]+)/hybridConnectionNamespaces/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/relays/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.HybridConnection](req) @@ -19271,7 +19271,7 @@ func (w *WebAppsServerTransport) dispatchUpdateMachineKey(req *http.Request) (*h 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 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -19304,7 +19304,7 @@ func (w *WebAppsServerTransport) dispatchUpdateMetadata(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/metadata` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -19341,7 +19341,7 @@ func (w *WebAppsServerTransport) dispatchUpdateMetadataSlot(req *http.Request) ( 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~%@]+)/config/metadata` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.StringDictionary](req) @@ -19382,7 +19382,7 @@ func (w *WebAppsServerTransport) dispatchUpdatePremierAddOn(req *http.Request) ( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PremierAddOnPatchResource](req) @@ -19423,7 +19423,7 @@ func (w *WebAppsServerTransport) dispatchUpdatePremierAddOnSlot(req *http.Reques 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~%@]+)/premieraddons/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PremierAddOnPatchResource](req) @@ -19468,7 +19468,7 @@ func (w *WebAppsServerTransport) dispatchUpdateRelayServiceConnection(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RelayServiceConnectionEntity](req) @@ -19509,7 +19509,7 @@ func (w *WebAppsServerTransport) dispatchUpdateRelayServiceConnectionSlot(req *h 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~%@]+)/hybridconnection/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RelayServiceConnectionEntity](req) @@ -19554,7 +19554,7 @@ func (w *WebAppsServerTransport) dispatchUpdateScmAllowed(req *http.Request) (*h const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/basicPublishingCredentialsPolicies/scm` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmPublishingCredentialsPoliciesEntity](req) @@ -19591,7 +19591,7 @@ func (w *WebAppsServerTransport) dispatchUpdateScmAllowedSlot(req *http.Request) 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~%@]+)/basicPublishingCredentialsPolicies/scm` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.CsmPublishingCredentialsPoliciesEntity](req) @@ -19632,7 +19632,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSitePushSettings(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/pushsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PushSettings](req) @@ -19669,7 +19669,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSitePushSettingsSlot(req *http.Re 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~%@]+)/config/pushsettings` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.PushSettings](req) @@ -19710,7 +19710,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSlot(req *http.Request) (*http.Re 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~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SitePatchResource](req) @@ -19751,7 +19751,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSlotConfigurationNames(req *http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/config/slotConfigNames` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SlotConfigNamesResource](req) @@ -19788,7 +19788,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSourceControl(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteSourceControl](req) @@ -19825,7 +19825,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSourceControlSlot(req *http.Reque 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~%@]+)/sourcecontrols/web` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SiteSourceControl](req) @@ -19866,7 +19866,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSwiftVirtualNetworkConnectionWith const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 3 { + if len(matches) < 4 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SwiftVirtualNetwork](req) @@ -19903,7 +19903,7 @@ func (w *WebAppsServerTransport) dispatchUpdateSwiftVirtualNetworkConnectionWith 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~%@]+)/networkConfig/virtualNetwork` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.SwiftVirtualNetwork](req) @@ -19944,7 +19944,7 @@ func (w *WebAppsServerTransport) dispatchUpdateVnetConnection(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetInfoResource](req) @@ -19985,7 +19985,7 @@ func (w *WebAppsServerTransport) dispatchUpdateVnetConnectionGateway(req *http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetGateway](req) @@ -20030,7 +20030,7 @@ func (w *WebAppsServerTransport) dispatchUpdateVnetConnectionGatewaySlot(req *ht 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetGateway](req) @@ -20079,7 +20079,7 @@ func (w *WebAppsServerTransport) dispatchUpdateVnetConnectionSlot(req *http.Requ 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~%@]+)/virtualNetworkConnections/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.VnetInfoResource](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go index 6be758e8eb0d..f611d2375cbc 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitions_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -108,7 +108,7 @@ func (w *WorkflowRunActionRepetitionsServerTransport) dispatchGet(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/repetitions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 7 { + if len(matches) < 8 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -159,7 +159,7 @@ func (w *WorkflowRunActionRepetitionsServerTransport) dispatchNewListPager(req * const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/repetitions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -212,7 +212,7 @@ func (w *WorkflowRunActionRepetitionsServerTransport) dispatchNewListExpressionT const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/repetitions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listExpressionTraces` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 7 { + if len(matches) < 8 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go index 7d5988ecaf66..aca378a9548f 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionrepetitionsrequesthistories_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -100,7 +100,7 @@ func (w *WorkflowRunActionRepetitionsRequestHistoriesServerTransport) dispatchGe const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/repetitions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/requestHistories/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 8 { + if len(matches) < 9 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -155,7 +155,7 @@ func (w *WorkflowRunActionRepetitionsRequestHistoriesServerTransport) dispatchNe const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/repetitions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/requestHistories` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 7 { + if len(matches) < 8 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go index f4ff921fdd1b..e5c50dda4f80 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactions_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -109,7 +109,7 @@ func (w *WorkflowRunActionsServerTransport) dispatchGet(req *http.Request) (*htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -156,7 +156,7 @@ func (w *WorkflowRunActionsServerTransport) dispatchNewListPager(req *http.Reque const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -232,7 +232,7 @@ func (w *WorkflowRunActionsServerTransport) dispatchNewListExpressionTracesPager const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listExpressionTraces` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go index beb8e282f8e2..3ad8228421d1 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowrunactionscoperepetitions_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -100,7 +100,7 @@ func (w *WorkflowRunActionScopeRepetitionsServerTransport) dispatchGet(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/scopeRepetitions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 7 { + if len(matches) < 8 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -151,7 +151,7 @@ func (w *WorkflowRunActionScopeRepetitionsServerTransport) dispatchNewListPager( const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/actions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/scopeRepetitions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go index 5c7dddf8d069..a15b52a42833 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowruns_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -107,7 +107,7 @@ func (w *WorkflowRunsServerTransport) dispatchCancel(req *http.Request) (*http.R const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/cancel` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -148,7 +148,7 @@ func (w *WorkflowRunsServerTransport) dispatchGet(req *http.Request) (*http.Resp const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -191,7 +191,7 @@ func (w *WorkflowRunsServerTransport) dispatchNewListPager(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runs` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go index 84909650f71e..da6985f4b91f 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflows_server.go @@ -12,7 +12,7 @@ import ( azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -95,7 +95,7 @@ func (w *WorkflowsServerTransport) dispatchRegenerateAccessKey(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/regenerateAccessKey` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.RegenerateActionParameter](req) @@ -136,7 +136,7 @@ func (w *WorkflowsServerTransport) dispatchValidate(req *http.Request) (*http.Re const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/validate` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } body, err := server.UnmarshalRequestAsJSON[armappservice.Workflow](req) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go index 1318531034b1..3375e4fc7729 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggerhistories_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -109,7 +109,7 @@ func (w *WorkflowTriggerHistoriesServerTransport) dispatchGet(req *http.Request) const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/histories/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -156,7 +156,7 @@ func (w *WorkflowTriggerHistoriesServerTransport) dispatchNewListPager(req *http const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/histories` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -232,7 +232,7 @@ func (w *WorkflowTriggerHistoriesServerTransport) dispatchBeginResubmit(req *htt const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/histories/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resubmit` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 6 { + if len(matches) < 7 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go index f9552b104ecd..f7bf149480f9 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowtriggers_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -121,7 +121,7 @@ func (w *WorkflowTriggersServerTransport) dispatchGet(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -162,7 +162,7 @@ func (w *WorkflowTriggersServerTransport) dispatchGetSchemaJSON(req *http.Reques const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/schemas/json` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -205,7 +205,7 @@ func (w *WorkflowTriggersServerTransport) dispatchNewListPager(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() @@ -275,7 +275,7 @@ func (w *WorkflowTriggersServerTransport) dispatchListCallbackURL(req *http.Requ const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/listCallbackUrl` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -318,7 +318,7 @@ func (w *WorkflowTriggersServerTransport) dispatchBeginRun(req *http.Request) (* const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/triggers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/run` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) diff --git a/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go b/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go index 5c3d33a5f250..d8a19715f455 100644 --- a/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go +++ b/sdk/resourcemanager/appservice/armappservice/fake/workflowversions_server.go @@ -13,7 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" "net/http" "net/url" "regexp" @@ -101,7 +101,7 @@ func (w *WorkflowVersionsServerTransport) dispatchGet(req *http.Request) (*http. const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/versions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 5 { + if len(matches) < 6 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) @@ -144,7 +144,7 @@ func (w *WorkflowVersionsServerTransport) dispatchNewListPager(req *http.Request const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.Web/sites/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/hostruntime/runtime/webhooks/workflow/api/management/workflows/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/versions` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) - if matches == nil || len(matches) < 4 { + if len(matches) < 5 { return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) } qp := req.URL.Query() diff --git a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go index f26e10c72796..f3e2710acf84 100644 --- a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go +++ b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client.go @@ -27,7 +27,7 @@ type GetUsagesInLocationClient struct { // NewGetUsagesInLocationClient creates a new instance of GetUsagesInLocationClient 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. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewGetUsagesInLocationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GetUsagesInLocationClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -42,7 +42,7 @@ func NewGetUsagesInLocationClient(subscriptionID string, credential azcore.Token // NewListPager - List usages in cores for all skus used by a subscription in a given location, for a specific quota type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - location - The name of the Azure region. // - options - GetUsagesInLocationClientListOptions contains the optional parameters for the GetUsagesInLocationClient.NewListPager // method. @@ -85,7 +85,7 @@ func (client *GetUsagesInLocationClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 3ca5d127b2a7..b11dc644b001 100644 --- a/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/getusagesinlocation_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUsagesInLocation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUsagesInLocation.json func ExampleGetUsagesInLocationClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/global_client.go b/sdk/resourcemanager/appservice/armappservice/global_client.go index 768f56729dfd..c611bad84d88 100644 --- a/sdk/resourcemanager/appservice/armappservice/global_client.go +++ b/sdk/resourcemanager/appservice/armappservice/global_client.go @@ -27,7 +27,7 @@ type GlobalClient struct { // NewGlobalClient creates a new instance of GlobalClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewGlobalClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GlobalClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewGlobalClient(subscriptionID string, credential azcore.TokenCredential, o // GetDeletedWebApp - Description for Get deleted app for a subscription. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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) { @@ -84,7 +84,7 @@ func (client *GlobalClient) getDeletedWebAppCreateRequest(ctx context.Context, d return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -102,7 +102,7 @@ func (client *GlobalClient) getDeletedWebAppHandleResponse(resp *http.Response) // GetDeletedWebAppSnapshots - Description for Get all deleted apps for a subscription. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - deletedSiteID - The numeric ID of the deleted app, e.g. 12345 // - options - GlobalClientGetDeletedWebAppSnapshotsOptions contains the optional parameters for the GlobalClient.GetDeletedWebAppSnapshots // method. @@ -144,7 +144,7 @@ func (client *GlobalClient) getDeletedWebAppSnapshotsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -162,7 +162,7 @@ func (client *GlobalClient) getDeletedWebAppSnapshotsHandleResponse(resp *http.R // GetSubscriptionOperationWithAsyncResponse - Description for Gets an operation in a subscription and given region // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - location - Location name // - operationID - Operation Id // - options - GlobalClientGetSubscriptionOperationWithAsyncResponseOptions contains the optional parameters for the GlobalClient.GetSubscriptionOperationWithAsyncResponse @@ -208,7 +208,7 @@ func (client *GlobalClient) getSubscriptionOperationWithAsyncResponseCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 55933bffa178..fb7de1854211 100644 --- a/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/global_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebApp.json func ExampleGlobalClient_GetDeletedWebApp() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,7 +52,7 @@ func ExampleGlobalClient_GetDeletedWebApp() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetDeletedWebAppSnapshots.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetDeletedWebAppSnapshots.json func ExampleGlobalClient_GetDeletedWebAppSnapshots() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,7 +81,7 @@ func ExampleGlobalClient_GetDeletedWebAppSnapshots() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSubscriptionOperationWithAsyncResponse.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSubscriptionOperationWithAsyncResponse.json func ExampleGlobalClient_GetSubscriptionOperationWithAsyncResponse() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/go.mod b/sdk/resourcemanager/appservice/armappservice/go.mod index b3a0c30790aa..fdf6369e93cc 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.mod +++ b/sdk/resourcemanager/appservice/armappservice/go.mod @@ -1,21 +1,21 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6 -go 1.23.0 +go 1.24.0 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.20.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // 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.40.0 // indirect - golang.org/x/net v0.42.0 // indirect - golang.org/x/sys v0.34.0 // indirect - golang.org/x/text v0.27.0 // indirect + golang.org/x/crypto v0.44.0 // indirect + golang.org/x/net v0.47.0 // indirect + golang.org/x/sys v0.38.0 // indirect + golang.org/x/text v0.31.0 // indirect ) diff --git a/sdk/resourcemanager/appservice/armappservice/go.sum b/sdk/resourcemanager/appservice/armappservice/go.sum index 49e874cd7954..00c9c92f844a 100644 --- a/sdk/resourcemanager/appservice/armappservice/go.sum +++ b/sdk/resourcemanager/appservice/armappservice/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.1 h1:Wc1ml6QlJs2BHQ/9Bqu1jiyggbsSjramq2oUmp5WeIo= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.1/go.mod h1:Ot/6aikWnKWi4l9QB7qVSwa8iMphQNqkWALMoNT3rzM= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.20.0 h1:JXg2dwJUmPB9JmtVmdEB16APJ7jurfbY5jnfXpJoRMc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.20.0/go.mod h1:YD5h/ldMsG0XiIw7PdyNhLxaM317eFh5yNLccNfGdyw= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1 h1:B+blDbyVIG3WaikNxPnhPiJ1MThR03b3vKGtER95TP4= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1/go.mod h1:JdM5psgjfBf5fo2uWOZhflPWyDBZ/O/CNAH9CtsuZE4= github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2 h1:yz1bePFlP5Vws5+8ez6T3HWXPmwOK7Yvq8QxDBD3SKY= github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2/go.mod h1:Pa9ZNPuoNu/GztvBSKk9J1cDJW6vk/n0zLtV4mgd8N8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 h1:FPKJS1T+clwv+OLGt13a8UjqeRuh0O4SJ3lUriThc+4= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1/go.mod h1:j2chePtV91HrC22tGoRX3sGY42uF13WzmmV80/OdVAA= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 h1:9iefClla7iYpfYWdzPCRDozdmndjTm8DXdpCzPajMgA= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2/go.mod h1:XtLgD3ZD34DAaVIIAyG3objl5DynM3CQ/vMcbBNJZGI= github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE= github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 h1:oygO0locgZJe7PpYPXT5A29ZkwJaPqcva7BVeemZOZs= @@ -30,16 +30,16 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/redis/go-redis/v9 v9.8.0 h1:q3nRvjrlge/6UD7eTu/DSg2uYiU2mCL0G/uzBWqhicI= github.com/redis/go-redis/v9 v9.8.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM= -golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY= -golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs= -golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +golang.org/x/crypto v0.44.0 h1:A97SsFvM3AIwEEmTBiaxPPTYpDC47w720rdiiUvgoAU= +golang.org/x/crypto v0.44.0/go.mod h1:013i+Nw79BMiQiMsOPcVCB5ZIJbYkerPrGnOa00tvmc= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA= -golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4= -golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go index 6cae2b6966a7..ea1c469e190b 100644 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go +++ b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client.go @@ -27,7 +27,7 @@ type KubeEnvironmentsClient struct { // NewKubeEnvironmentsClient creates a new instance of KubeEnvironmentsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewKubeEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KubeEnvironmentsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewKubeEnvironmentsClient(subscriptionID string, credential azcore.TokenCre // BeginCreateOrUpdate - Description for Creates or updates a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the Kubernetes Environment. // - kubeEnvironmentEnvelope - Configuration details of the Kubernetes Environment. @@ -69,7 +69,7 @@ func (client *KubeEnvironmentsClient) BeginCreateOrUpdate(ctx context.Context, r // CreateOrUpdate - Description for Creates or updates a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -111,7 +111,7 @@ func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubeEnvironmentEnvelope); err != nil { @@ -123,7 +123,7 @@ func (client *KubeEnvironmentsClient) createOrUpdateCreateRequest(ctx context.Co // BeginDelete - Description for Delete a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the Kubernetes Environment. // - options - KubeEnvironmentsClientBeginDeleteOptions contains the optional parameters for the KubeEnvironmentsClient.BeginDelete @@ -148,7 +148,7 @@ func (client *KubeEnvironmentsClient) BeginDelete(ctx context.Context, resourceG // Delete - Description for Delete a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *KubeEnvironmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, name string, options *KubeEnvironmentsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "KubeEnvironmentsClient.BeginDelete" @@ -190,7 +190,7 @@ func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -199,7 +199,7 @@ func (client *KubeEnvironmentsClient) deleteCreateRequest(ctx context.Context, r // Get - Description for Get the properties of a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the Kubernetes Environment. // - options - KubeEnvironmentsClientGetOptions contains the optional parameters for the KubeEnvironmentsClient.Get method. @@ -245,7 +245,7 @@ func (client *KubeEnvironmentsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -262,7 +262,7 @@ func (client *KubeEnvironmentsClient) getHandleResponse(resp *http.Response) (Ku // NewListByResourceGroupPager - Description for Get all the Kubernetes Environments in a resource group. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - KubeEnvironmentsClientListByResourceGroupOptions contains the optional parameters for the KubeEnvironmentsClient.NewListByResourceGroupPager // method. @@ -305,7 +305,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,7 +322,7 @@ func (client *KubeEnvironmentsClient) listByResourceGroupHandleResponse(resp *ht // NewListBySubscriptionPager - Description for Get all Kubernetes Environments for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - KubeEnvironmentsClientListBySubscriptionOptions contains the optional parameters for the KubeEnvironmentsClient.NewListBySubscriptionPager // method. func (client *KubeEnvironmentsClient) NewListBySubscriptionPager(options *KubeEnvironmentsClientListBySubscriptionOptions) *runtime.Pager[KubeEnvironmentsClientListBySubscriptionResponse] { @@ -360,7 +360,7 @@ func (client *KubeEnvironmentsClient) listBySubscriptionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -378,7 +378,7 @@ func (client *KubeEnvironmentsClient) listBySubscriptionHandleResponse(resp *htt // Update - Description for Creates or updates a Kubernetes Environment. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the Kubernetes Environment. // - kubeEnvironmentEnvelope - Configuration details of the Kubernetes Environment. @@ -425,7 +425,7 @@ func (client *KubeEnvironmentsClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index e0f1a264824d..4f8d912b089a 100644 --- a/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/kubeenvironments_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_ListBySubscription.json func ExampleKubeEnvironmentsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -74,7 +74,7 @@ func ExampleKubeEnvironmentsClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_ListByResourceGroup.json func ExampleKubeEnvironmentsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -138,7 +138,7 @@ func ExampleKubeEnvironmentsClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Get.json func ExampleKubeEnvironmentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -177,7 +177,7 @@ func ExampleKubeEnvironmentsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_CreateOrUpdate.json func ExampleKubeEnvironmentsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -225,7 +225,7 @@ func ExampleKubeEnvironmentsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Delete.json func ExampleKubeEnvironmentsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -246,7 +246,7 @@ func ExampleKubeEnvironmentsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/KubeEnvironments_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/KubeEnvironments_Update.json func ExampleKubeEnvironmentsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go b/sdk/resourcemanager/appservice/armappservice/management_client.go similarity index 56% rename from sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go rename to sdk/resourcemanager/appservice/armappservice/management_client.go index 2df741dd3b2e..869e424e2f8b 100644 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client.go +++ b/sdk/resourcemanager/appservice/armappservice/management_client.go @@ -18,23 +18,23 @@ import ( "strings" ) -// WebSiteManagementClient contains the methods for the WebSiteManagementClient group. -// Don't use this type directly, use NewWebSiteManagementClient() instead. -type WebSiteManagementClient struct { +// ManagementClient contains the methods for the AppServiceManagementClient group. +// Don't use this type directly, use NewManagementClient() instead. +type ManagementClient struct { internal *arm.Client subscriptionID string } -// NewWebSiteManagementClient creates a new instance of WebSiteManagementClient with the specified values. +// NewManagementClient creates a new instance of ManagementClient 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 NewWebSiteManagementClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebSiteManagementClient, error) { +// - options - Contains optional client configuration. Pass nil to accept the default values. +func NewManagementClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } - client := &WebSiteManagementClient{ + client := &ManagementClient{ subscriptionID: subscriptionID, internal: cl, } @@ -44,34 +44,34 @@ func NewWebSiteManagementClient(subscriptionID string, credential azcore.TokenCr // CheckNameAvailability - Description for Check if a resource name is available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - request - Name availability request. -// - options - WebSiteManagementClientCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.CheckNameAvailability +// - options - ManagementClientCheckNameAvailabilityOptions contains the optional parameters for the ManagementClient.CheckNameAvailability // method. -func (client *WebSiteManagementClient) CheckNameAvailability(ctx context.Context, request ResourceNameAvailabilityRequest, options *WebSiteManagementClientCheckNameAvailabilityOptions) (WebSiteManagementClientCheckNameAvailabilityResponse, error) { +func (client *ManagementClient) CheckNameAvailability(ctx context.Context, request ResourceNameAvailabilityRequest, options *ManagementClientCheckNameAvailabilityOptions) (ManagementClientCheckNameAvailabilityResponse, error) { var err error - const operationName = "WebSiteManagementClient.CheckNameAvailability" + const operationName = "ManagementClient.CheckNameAvailability" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.checkNameAvailabilityCreateRequest(ctx, request, options) if err != nil { - return WebSiteManagementClientCheckNameAvailabilityResponse{}, err + return ManagementClientCheckNameAvailabilityResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientCheckNameAvailabilityResponse{}, err + return ManagementClientCheckNameAvailabilityResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientCheckNameAvailabilityResponse{}, err + return ManagementClientCheckNameAvailabilityResponse{}, err } resp, err := client.checkNameAvailabilityHandleResponse(httpResp) return resp, err } // checkNameAvailabilityCreateRequest creates the CheckNameAvailability request. -func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx context.Context, request ResourceNameAvailabilityRequest, _ *WebSiteManagementClientCheckNameAvailabilityOptions) (*policy.Request, error) { +func (client *ManagementClient) checkNameAvailabilityCreateRequest(ctx context.Context, request ResourceNameAvailabilityRequest, _ *ManagementClientCheckNameAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -82,7 +82,7 @@ func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -92,10 +92,10 @@ func (client *WebSiteManagementClient) checkNameAvailabilityCreateRequest(ctx co } // checkNameAvailabilityHandleResponse handles the CheckNameAvailability response. -func (client *WebSiteManagementClient) checkNameAvailabilityHandleResponse(resp *http.Response) (WebSiteManagementClientCheckNameAvailabilityResponse, error) { - result := WebSiteManagementClientCheckNameAvailabilityResponse{} +func (client *ManagementClient) checkNameAvailabilityHandleResponse(resp *http.Response) (ManagementClientCheckNameAvailabilityResponse, error) { + result := ManagementClientCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ResourceNameAvailability); err != nil { - return WebSiteManagementClientCheckNameAvailabilityResponse{}, err + return ManagementClientCheckNameAvailabilityResponse{}, err } return result, nil } @@ -103,50 +103,50 @@ func (client *WebSiteManagementClient) checkNameAvailabilityHandleResponse(resp // GetPublishingUser - Description for Gets publishing user // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientGetPublishingUserOptions contains the optional parameters for the WebSiteManagementClient.GetPublishingUser +// Generated from API version 2025-03-01 +// - options - ManagementClientGetPublishingUserOptions contains the optional parameters for the ManagementClient.GetPublishingUser // method. -func (client *WebSiteManagementClient) GetPublishingUser(ctx context.Context, options *WebSiteManagementClientGetPublishingUserOptions) (WebSiteManagementClientGetPublishingUserResponse, error) { +func (client *ManagementClient) GetPublishingUser(ctx context.Context, options *ManagementClientGetPublishingUserOptions) (ManagementClientGetPublishingUserResponse, error) { var err error - const operationName = "WebSiteManagementClient.GetPublishingUser" + const operationName = "ManagementClient.GetPublishingUser" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.getPublishingUserCreateRequest(ctx, options) if err != nil { - return WebSiteManagementClientGetPublishingUserResponse{}, err + return ManagementClientGetPublishingUserResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientGetPublishingUserResponse{}, err + return ManagementClientGetPublishingUserResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientGetPublishingUserResponse{}, err + return ManagementClientGetPublishingUserResponse{}, err } resp, err := client.getPublishingUserHandleResponse(httpResp) return resp, err } // getPublishingUserCreateRequest creates the GetPublishingUser request. -func (client *WebSiteManagementClient) getPublishingUserCreateRequest(ctx context.Context, _ *WebSiteManagementClientGetPublishingUserOptions) (*policy.Request, error) { +func (client *ManagementClient) getPublishingUserCreateRequest(ctx context.Context, _ *ManagementClientGetPublishingUserOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/publishingUsers/web" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // getPublishingUserHandleResponse handles the GetPublishingUser response. -func (client *WebSiteManagementClient) getPublishingUserHandleResponse(resp *http.Response) (WebSiteManagementClientGetPublishingUserResponse, error) { - result := WebSiteManagementClientGetPublishingUserResponse{} +func (client *ManagementClient) getPublishingUserHandleResponse(resp *http.Response) (ManagementClientGetPublishingUserResponse, error) { + result := ManagementClientGetPublishingUserResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.User); err != nil { - return WebSiteManagementClientGetPublishingUserResponse{}, err + return ManagementClientGetPublishingUserResponse{}, err } return result, nil } @@ -154,34 +154,34 @@ func (client *WebSiteManagementClient) getPublishingUserHandleResponse(resp *htt // GetSourceControl - Description for Gets source control token // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - sourceControlType - Type of source control -// - options - WebSiteManagementClientGetSourceControlOptions contains the optional parameters for the WebSiteManagementClient.GetSourceControl +// - options - ManagementClientGetSourceControlOptions contains the optional parameters for the ManagementClient.GetSourceControl // method. -func (client *WebSiteManagementClient) GetSourceControl(ctx context.Context, sourceControlType string, options *WebSiteManagementClientGetSourceControlOptions) (WebSiteManagementClientGetSourceControlResponse, error) { +func (client *ManagementClient) GetSourceControl(ctx context.Context, sourceControlType string, options *ManagementClientGetSourceControlOptions) (ManagementClientGetSourceControlResponse, error) { var err error - const operationName = "WebSiteManagementClient.GetSourceControl" + const operationName = "ManagementClient.GetSourceControl" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.getSourceControlCreateRequest(ctx, sourceControlType, options) if err != nil { - return WebSiteManagementClientGetSourceControlResponse{}, err + return ManagementClientGetSourceControlResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientGetSourceControlResponse{}, err + return ManagementClientGetSourceControlResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientGetSourceControlResponse{}, err + return ManagementClientGetSourceControlResponse{}, err } resp, err := client.getSourceControlHandleResponse(httpResp) return resp, err } // getSourceControlCreateRequest creates the GetSourceControl request. -func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context.Context, sourceControlType string, _ *WebSiteManagementClientGetSourceControlOptions) (*policy.Request, error) { +func (client *ManagementClient) getSourceControlCreateRequest(ctx context.Context, sourceControlType string, _ *ManagementClientGetSourceControlOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/sourcecontrols/{sourceControlType}" if sourceControlType == "" { return nil, errors.New("parameter sourceControlType cannot be empty") @@ -192,17 +192,17 @@ func (client *WebSiteManagementClient) getSourceControlCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // getSourceControlHandleResponse handles the GetSourceControl response. -func (client *WebSiteManagementClient) getSourceControlHandleResponse(resp *http.Response) (WebSiteManagementClientGetSourceControlResponse, error) { - result := WebSiteManagementClientGetSourceControlResponse{} +func (client *ManagementClient) getSourceControlHandleResponse(resp *http.Response) (ManagementClientGetSourceControlResponse, error) { + result := ManagementClientGetSourceControlResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SourceControl); err != nil { - return WebSiteManagementClientGetSourceControlResponse{}, err + return ManagementClientGetSourceControlResponse{}, err } return result, nil } @@ -210,33 +210,33 @@ func (client *WebSiteManagementClient) getSourceControlHandleResponse(resp *http // GetSubscriptionDeploymentLocations - Description for Gets list of available geo regions plus ministamps // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the WebSiteManagementClient.GetSubscriptionDeploymentLocations +// Generated from API version 2025-03-01 +// - options - ManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the ManagementClient.GetSubscriptionDeploymentLocations // method. -func (client *WebSiteManagementClient) GetSubscriptionDeploymentLocations(ctx context.Context, options *WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse, error) { +func (client *ManagementClient) GetSubscriptionDeploymentLocations(ctx context.Context, options *ManagementClientGetSubscriptionDeploymentLocationsOptions) (ManagementClientGetSubscriptionDeploymentLocationsResponse, error) { var err error - const operationName = "WebSiteManagementClient.GetSubscriptionDeploymentLocations" + const operationName = "ManagementClient.GetSubscriptionDeploymentLocations" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.getSubscriptionDeploymentLocationsCreateRequest(ctx, options) if err != nil { - return WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse{}, err + return ManagementClientGetSubscriptionDeploymentLocationsResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse{}, err + return ManagementClientGetSubscriptionDeploymentLocationsResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse{}, err + return ManagementClientGetSubscriptionDeploymentLocationsResponse{}, err } resp, err := client.getSubscriptionDeploymentLocationsHandleResponse(httpResp) return resp, err } // getSubscriptionDeploymentLocationsCreateRequest creates the GetSubscriptionDeploymentLocations request. -func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateRequest(ctx context.Context, _ *WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions) (*policy.Request, error) { +func (client *ManagementClient) getSubscriptionDeploymentLocationsCreateRequest(ctx context.Context, _ *ManagementClientGetSubscriptionDeploymentLocationsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/deploymentLocations" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -247,33 +247,33 @@ func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // getSubscriptionDeploymentLocationsHandleResponse handles the GetSubscriptionDeploymentLocations response. -func (client *WebSiteManagementClient) getSubscriptionDeploymentLocationsHandleResponse(resp *http.Response) (WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse, error) { - result := WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse{} +func (client *ManagementClient) getSubscriptionDeploymentLocationsHandleResponse(resp *http.Response) (ManagementClientGetSubscriptionDeploymentLocationsResponse, error) { + result := ManagementClientGetSubscriptionDeploymentLocationsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DeploymentLocations); err != nil { - return WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse{}, err + return ManagementClientGetSubscriptionDeploymentLocationsResponse{}, err } return result, nil } // NewListAseRegionsPager - Description for get a list of available ASE regions and its supported Skus. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListAseRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListAseRegionsPager +// Generated from API version 2025-03-01 +// - options - ManagementClientListAseRegionsOptions contains the optional parameters for the ManagementClient.NewListAseRegionsPager // method. -func (client *WebSiteManagementClient) NewListAseRegionsPager(options *WebSiteManagementClientListAseRegionsOptions) *runtime.Pager[WebSiteManagementClientListAseRegionsResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListAseRegionsResponse]{ - More: func(page WebSiteManagementClientListAseRegionsResponse) bool { +func (client *ManagementClient) NewListAseRegionsPager(options *ManagementClientListAseRegionsOptions) *runtime.Pager[ManagementClientListAseRegionsResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListAseRegionsResponse]{ + More: func(page ManagementClientListAseRegionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListAseRegionsResponse) (WebSiteManagementClientListAseRegionsResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListAseRegionsPager") + Fetcher: func(ctx context.Context, page *ManagementClientListAseRegionsResponse) (ManagementClientListAseRegionsResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListAseRegionsPager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -282,7 +282,7 @@ func (client *WebSiteManagementClient) NewListAseRegionsPager(options *WebSiteMa return client.listAseRegionsCreateRequest(ctx, options) }, nil) if err != nil { - return WebSiteManagementClientListAseRegionsResponse{}, err + return ManagementClientListAseRegionsResponse{}, err } return client.listAseRegionsHandleResponse(resp) }, @@ -291,7 +291,7 @@ func (client *WebSiteManagementClient) NewListAseRegionsPager(options *WebSiteMa } // listAseRegionsCreateRequest creates the ListAseRegions request. -func (client *WebSiteManagementClient) listAseRegionsCreateRequest(ctx context.Context, _ *WebSiteManagementClientListAseRegionsOptions) (*policy.Request, error) { +func (client *ManagementClient) listAseRegionsCreateRequest(ctx context.Context, _ *ManagementClientListAseRegionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/aseRegions" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -302,33 +302,33 @@ func (client *WebSiteManagementClient) listAseRegionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // listAseRegionsHandleResponse handles the ListAseRegions response. -func (client *WebSiteManagementClient) listAseRegionsHandleResponse(resp *http.Response) (WebSiteManagementClientListAseRegionsResponse, error) { - result := WebSiteManagementClientListAseRegionsResponse{} +func (client *ManagementClient) listAseRegionsHandleResponse(resp *http.Response) (ManagementClientListAseRegionsResponse, error) { + result := ManagementClientListAseRegionsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.AseRegionCollection); err != nil { - return WebSiteManagementClientListAseRegionsResponse{}, err + return ManagementClientListAseRegionsResponse{}, err } return result, nil } // NewListBillingMetersPager - Description for Gets a list of meters for a given location. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.NewListBillingMetersPager +// Generated from API version 2025-03-01 +// - options - ManagementClientListBillingMetersOptions contains the optional parameters for the ManagementClient.NewListBillingMetersPager // method. -func (client *WebSiteManagementClient) NewListBillingMetersPager(options *WebSiteManagementClientListBillingMetersOptions) *runtime.Pager[WebSiteManagementClientListBillingMetersResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListBillingMetersResponse]{ - More: func(page WebSiteManagementClientListBillingMetersResponse) bool { +func (client *ManagementClient) NewListBillingMetersPager(options *ManagementClientListBillingMetersOptions) *runtime.Pager[ManagementClientListBillingMetersResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListBillingMetersResponse]{ + More: func(page ManagementClientListBillingMetersResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListBillingMetersResponse) (WebSiteManagementClientListBillingMetersResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListBillingMetersPager") + Fetcher: func(ctx context.Context, page *ManagementClientListBillingMetersResponse) (ManagementClientListBillingMetersResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListBillingMetersPager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -337,7 +337,7 @@ func (client *WebSiteManagementClient) NewListBillingMetersPager(options *WebSit return client.listBillingMetersCreateRequest(ctx, options) }, nil) if err != nil { - return WebSiteManagementClientListBillingMetersResponse{}, err + return ManagementClientListBillingMetersResponse{}, err } return client.listBillingMetersHandleResponse(resp) }, @@ -346,7 +346,7 @@ func (client *WebSiteManagementClient) NewListBillingMetersPager(options *WebSit } // listBillingMetersCreateRequest creates the ListBillingMeters request. -func (client *WebSiteManagementClient) listBillingMetersCreateRequest(ctx context.Context, options *WebSiteManagementClientListBillingMetersOptions) (*policy.Request, error) { +func (client *ManagementClient) listBillingMetersCreateRequest(ctx context.Context, options *ManagementClientListBillingMetersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -357,7 +357,7 @@ func (client *WebSiteManagementClient) listBillingMetersCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.BillingLocation != nil { reqQP.Set("billingLocation", *options.BillingLocation) } @@ -370,26 +370,26 @@ func (client *WebSiteManagementClient) listBillingMetersCreateRequest(ctx contex } // listBillingMetersHandleResponse handles the ListBillingMeters response. -func (client *WebSiteManagementClient) listBillingMetersHandleResponse(resp *http.Response) (WebSiteManagementClientListBillingMetersResponse, error) { - result := WebSiteManagementClientListBillingMetersResponse{} +func (client *ManagementClient) listBillingMetersHandleResponse(resp *http.Response) (ManagementClientListBillingMetersResponse, error) { + result := ManagementClientListBillingMetersResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.BillingMeterCollection); err != nil { - return WebSiteManagementClientListBillingMetersResponse{}, err + return ManagementClientListBillingMetersResponse{}, err } return result, nil } // NewListCustomHostNameSitesPager - Get custom hostnames under this subscription // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.NewListCustomHostNameSitesPager +// Generated from API version 2025-03-01 +// - options - ManagementClientListCustomHostNameSitesOptions contains the optional parameters for the ManagementClient.NewListCustomHostNameSitesPager // method. -func (client *WebSiteManagementClient) NewListCustomHostNameSitesPager(options *WebSiteManagementClientListCustomHostNameSitesOptions) *runtime.Pager[WebSiteManagementClientListCustomHostNameSitesResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListCustomHostNameSitesResponse]{ - More: func(page WebSiteManagementClientListCustomHostNameSitesResponse) bool { +func (client *ManagementClient) NewListCustomHostNameSitesPager(options *ManagementClientListCustomHostNameSitesOptions) *runtime.Pager[ManagementClientListCustomHostNameSitesResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListCustomHostNameSitesResponse]{ + More: func(page ManagementClientListCustomHostNameSitesResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListCustomHostNameSitesResponse) (WebSiteManagementClientListCustomHostNameSitesResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListCustomHostNameSitesPager") + Fetcher: func(ctx context.Context, page *ManagementClientListCustomHostNameSitesResponse) (ManagementClientListCustomHostNameSitesResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListCustomHostNameSitesPager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -398,7 +398,7 @@ func (client *WebSiteManagementClient) NewListCustomHostNameSitesPager(options * return client.listCustomHostNameSitesCreateRequest(ctx, options) }, nil) if err != nil { - return WebSiteManagementClientListCustomHostNameSitesResponse{}, err + return ManagementClientListCustomHostNameSitesResponse{}, err } return client.listCustomHostNameSitesHandleResponse(resp) }, @@ -407,7 +407,7 @@ func (client *WebSiteManagementClient) NewListCustomHostNameSitesPager(options * } // listCustomHostNameSitesCreateRequest creates the ListCustomHostNameSites request. -func (client *WebSiteManagementClient) listCustomHostNameSitesCreateRequest(ctx context.Context, options *WebSiteManagementClientListCustomHostNameSitesOptions) (*policy.Request, error) { +func (client *ManagementClient) listCustomHostNameSitesCreateRequest(ctx context.Context, options *ManagementClientListCustomHostNameSitesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/customhostnameSites" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -418,7 +418,7 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.Hostname != nil { reqQP.Set("hostname", *options.Hostname) } @@ -428,26 +428,26 @@ func (client *WebSiteManagementClient) listCustomHostNameSitesCreateRequest(ctx } // listCustomHostNameSitesHandleResponse handles the ListCustomHostNameSites response. -func (client *WebSiteManagementClient) listCustomHostNameSitesHandleResponse(resp *http.Response) (WebSiteManagementClientListCustomHostNameSitesResponse, error) { - result := WebSiteManagementClientListCustomHostNameSitesResponse{} +func (client *ManagementClient) listCustomHostNameSitesHandleResponse(resp *http.Response) (ManagementClientListCustomHostNameSitesResponse, error) { + result := ManagementClientListCustomHostNameSitesResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.CustomHostnameSitesCollection); err != nil { - return WebSiteManagementClientListCustomHostNameSitesResponse{}, err + return ManagementClientListCustomHostNameSitesResponse{}, err } return result, nil } // NewListGeoRegionsPager - Description for Get a list of available geographical regions. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListGeoRegionsPager +// Generated from API version 2025-03-01 +// - options - ManagementClientListGeoRegionsOptions contains the optional parameters for the ManagementClient.NewListGeoRegionsPager // method. -func (client *WebSiteManagementClient) NewListGeoRegionsPager(options *WebSiteManagementClientListGeoRegionsOptions) *runtime.Pager[WebSiteManagementClientListGeoRegionsResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListGeoRegionsResponse]{ - More: func(page WebSiteManagementClientListGeoRegionsResponse) bool { +func (client *ManagementClient) NewListGeoRegionsPager(options *ManagementClientListGeoRegionsOptions) *runtime.Pager[ManagementClientListGeoRegionsResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListGeoRegionsResponse]{ + More: func(page ManagementClientListGeoRegionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListGeoRegionsResponse) (WebSiteManagementClientListGeoRegionsResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListGeoRegionsPager") + Fetcher: func(ctx context.Context, page *ManagementClientListGeoRegionsResponse) (ManagementClientListGeoRegionsResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListGeoRegionsPager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -456,7 +456,7 @@ func (client *WebSiteManagementClient) NewListGeoRegionsPager(options *WebSiteMa return client.listGeoRegionsCreateRequest(ctx, options) }, nil) if err != nil { - return WebSiteManagementClientListGeoRegionsResponse{}, err + return ManagementClientListGeoRegionsResponse{}, err } return client.listGeoRegionsHandleResponse(resp) }, @@ -465,7 +465,7 @@ func (client *WebSiteManagementClient) NewListGeoRegionsPager(options *WebSiteMa } // listGeoRegionsCreateRequest creates the ListGeoRegions request. -func (client *WebSiteManagementClient) listGeoRegionsCreateRequest(ctx context.Context, options *WebSiteManagementClientListGeoRegionsOptions) (*policy.Request, error) { +func (client *ManagementClient) listGeoRegionsCreateRequest(ctx context.Context, options *ManagementClientListGeoRegionsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -476,7 +476,10 @@ func (client *WebSiteManagementClient) listGeoRegionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") + if options != nil && options.CustomModeWorkersEnabled != nil { + reqQP.Set("customModeWorkersEnabled ", strconv.FormatBool(*options.CustomModeWorkersEnabled)) + } if options != nil && options.LinuxDynamicWorkersEnabled != nil { reqQP.Set("linuxDynamicWorkersEnabled", strconv.FormatBool(*options.LinuxDynamicWorkersEnabled)) } @@ -495,26 +498,26 @@ func (client *WebSiteManagementClient) listGeoRegionsCreateRequest(ctx context.C } // listGeoRegionsHandleResponse handles the ListGeoRegions response. -func (client *WebSiteManagementClient) listGeoRegionsHandleResponse(resp *http.Response) (WebSiteManagementClientListGeoRegionsResponse, error) { - result := WebSiteManagementClientListGeoRegionsResponse{} +func (client *ManagementClient) listGeoRegionsHandleResponse(resp *http.Response) (ManagementClientListGeoRegionsResponse, error) { + result := ManagementClientListGeoRegionsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.GeoRegionCollection); err != nil { - return WebSiteManagementClientListGeoRegionsResponse{}, err + return ManagementClientListGeoRegionsResponse{}, err } return result, nil } // NewListPremierAddOnOffersPager - Description for List all premier add-on offers. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.NewListPremierAddOnOffersPager +// Generated from API version 2025-03-01 +// - options - ManagementClientListPremierAddOnOffersOptions contains the optional parameters for the ManagementClient.NewListPremierAddOnOffersPager // method. -func (client *WebSiteManagementClient) NewListPremierAddOnOffersPager(options *WebSiteManagementClientListPremierAddOnOffersOptions) *runtime.Pager[WebSiteManagementClientListPremierAddOnOffersResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListPremierAddOnOffersResponse]{ - More: func(page WebSiteManagementClientListPremierAddOnOffersResponse) bool { +func (client *ManagementClient) NewListPremierAddOnOffersPager(options *ManagementClientListPremierAddOnOffersOptions) *runtime.Pager[ManagementClientListPremierAddOnOffersResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListPremierAddOnOffersResponse]{ + More: func(page ManagementClientListPremierAddOnOffersResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListPremierAddOnOffersResponse) (WebSiteManagementClientListPremierAddOnOffersResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListPremierAddOnOffersPager") + Fetcher: func(ctx context.Context, page *ManagementClientListPremierAddOnOffersResponse) (ManagementClientListPremierAddOnOffersResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListPremierAddOnOffersPager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -523,7 +526,7 @@ func (client *WebSiteManagementClient) NewListPremierAddOnOffersPager(options *W return client.listPremierAddOnOffersCreateRequest(ctx, options) }, nil) if err != nil { - return WebSiteManagementClientListPremierAddOnOffersResponse{}, err + return ManagementClientListPremierAddOnOffersResponse{}, err } return client.listPremierAddOnOffersHandleResponse(resp) }, @@ -532,7 +535,7 @@ func (client *WebSiteManagementClient) NewListPremierAddOnOffersPager(options *W } // listPremierAddOnOffersCreateRequest creates the ListPremierAddOnOffers request. -func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx context.Context, _ *WebSiteManagementClientListPremierAddOnOffersOptions) (*policy.Request, error) { +func (client *ManagementClient) listPremierAddOnOffersCreateRequest(ctx context.Context, _ *ManagementClientListPremierAddOnOffersOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -543,17 +546,17 @@ func (client *WebSiteManagementClient) listPremierAddOnOffersCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // listPremierAddOnOffersHandleResponse handles the ListPremierAddOnOffers response. -func (client *WebSiteManagementClient) listPremierAddOnOffersHandleResponse(resp *http.Response) (WebSiteManagementClientListPremierAddOnOffersResponse, error) { - result := WebSiteManagementClientListPremierAddOnOffersResponse{} +func (client *ManagementClient) listPremierAddOnOffersHandleResponse(resp *http.Response) (ManagementClientListPremierAddOnOffersResponse, error) { + result := ManagementClientListPremierAddOnOffersResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.PremierAddOnOfferCollection); err != nil { - return WebSiteManagementClientListPremierAddOnOffersResponse{}, err + return ManagementClientListPremierAddOnOffersResponse{}, err } return result, nil } @@ -561,33 +564,32 @@ func (client *WebSiteManagementClient) listPremierAddOnOffersHandleResponse(resp // ListSKUs - Description for List all SKUs. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListSKUsOptions contains the optional parameters for the WebSiteManagementClient.ListSKUs -// method. -func (client *WebSiteManagementClient) ListSKUs(ctx context.Context, options *WebSiteManagementClientListSKUsOptions) (WebSiteManagementClientListSKUsResponse, error) { +// Generated from API version 2025-03-01 +// - options - ManagementClientListSKUsOptions contains the optional parameters for the ManagementClient.ListSKUs method. +func (client *ManagementClient) ListSKUs(ctx context.Context, options *ManagementClientListSKUsOptions) (ManagementClientListSKUsResponse, error) { var err error - const operationName = "WebSiteManagementClient.ListSKUs" + const operationName = "ManagementClient.ListSKUs" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.listSKUsCreateRequest(ctx, options) if err != nil { - return WebSiteManagementClientListSKUsResponse{}, err + return ManagementClientListSKUsResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientListSKUsResponse{}, err + return ManagementClientListSKUsResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientListSKUsResponse{}, err + return ManagementClientListSKUsResponse{}, err } resp, err := client.listSKUsHandleResponse(httpResp) return resp, err } // listSKUsCreateRequest creates the ListSKUs request. -func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context, _ *WebSiteManagementClientListSKUsOptions) (*policy.Request, error) { +func (client *ManagementClient) listSKUsCreateRequest(ctx context.Context, _ *ManagementClientListSKUsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/skus" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -598,34 +600,34 @@ func (client *WebSiteManagementClient) listSKUsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // listSKUsHandleResponse handles the ListSKUs response. -func (client *WebSiteManagementClient) listSKUsHandleResponse(resp *http.Response) (WebSiteManagementClientListSKUsResponse, error) { - result := WebSiteManagementClientListSKUsResponse{} +func (client *ManagementClient) listSKUsHandleResponse(resp *http.Response) (ManagementClientListSKUsResponse, error) { + result := ManagementClientListSKUsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SKUInfos); err != nil { - return WebSiteManagementClientListSKUsResponse{}, err + return ManagementClientListSKUsResponse{}, err } return result, nil } // NewListSiteIdentifiersAssignedToHostNamePager - Description for List all apps that are assigned to a hostname. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - nameIdentifier - Hostname information. -// - options - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the -// WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager method. -func (client *WebSiteManagementClient) NewListSiteIdentifiersAssignedToHostNamePager(nameIdentifier NameIdentifier, options *WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions) *runtime.Pager[WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse]{ - More: func(page WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse) bool { +// - options - ManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager +// method. +func (client *ManagementClient) NewListSiteIdentifiersAssignedToHostNamePager(nameIdentifier NameIdentifier, options *ManagementClientListSiteIdentifiersAssignedToHostNameOptions) *runtime.Pager[ManagementClientListSiteIdentifiersAssignedToHostNameResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListSiteIdentifiersAssignedToHostNameResponse]{ + More: func(page ManagementClientListSiteIdentifiersAssignedToHostNameResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse) (WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager") + Fetcher: func(ctx context.Context, page *ManagementClientListSiteIdentifiersAssignedToHostNameResponse) (ManagementClientListSiteIdentifiersAssignedToHostNameResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -634,7 +636,7 @@ func (client *WebSiteManagementClient) NewListSiteIdentifiersAssignedToHostNameP return client.listSiteIdentifiersAssignedToHostNameCreateRequest(ctx, nameIdentifier, options) }, nil) if err != nil { - return WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse{}, err + return ManagementClientListSiteIdentifiersAssignedToHostNameResponse{}, err } return client.listSiteIdentifiersAssignedToHostNameHandleResponse(resp) }, @@ -643,7 +645,7 @@ func (client *WebSiteManagementClient) NewListSiteIdentifiersAssignedToHostNameP } // listSiteIdentifiersAssignedToHostNameCreateRequest creates the ListSiteIdentifiersAssignedToHostName request. -func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCreateRequest(ctx context.Context, nameIdentifier NameIdentifier, _ *WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions) (*policy.Request, error) { +func (client *ManagementClient) listSiteIdentifiersAssignedToHostNameCreateRequest(ctx context.Context, nameIdentifier NameIdentifier, _ *ManagementClientListSiteIdentifiersAssignedToHostNameOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -654,7 +656,7 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, nameIdentifier); err != nil { @@ -664,26 +666,26 @@ func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameCrea } // listSiteIdentifiersAssignedToHostNameHandleResponse handles the ListSiteIdentifiersAssignedToHostName response. -func (client *WebSiteManagementClient) listSiteIdentifiersAssignedToHostNameHandleResponse(resp *http.Response) (WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse, error) { - result := WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse{} +func (client *ManagementClient) listSiteIdentifiersAssignedToHostNameHandleResponse(resp *http.Response) (ManagementClientListSiteIdentifiersAssignedToHostNameResponse, error) { + result := ManagementClientListSiteIdentifiersAssignedToHostNameResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.IdentifierCollection); err != nil { - return WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse{}, err + return ManagementClientListSiteIdentifiersAssignedToHostNameResponse{}, err } return result, nil } // NewListSourceControlsPager - Description for Gets the source controls available for Azure websites. // -// Generated from API version 2024-11-01 -// - options - WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.NewListSourceControlsPager +// Generated from API version 2025-03-01 +// - options - ManagementClientListSourceControlsOptions contains the optional parameters for the ManagementClient.NewListSourceControlsPager // method. -func (client *WebSiteManagementClient) NewListSourceControlsPager(options *WebSiteManagementClientListSourceControlsOptions) *runtime.Pager[WebSiteManagementClientListSourceControlsResponse] { - return runtime.NewPager(runtime.PagingHandler[WebSiteManagementClientListSourceControlsResponse]{ - More: func(page WebSiteManagementClientListSourceControlsResponse) bool { +func (client *ManagementClient) NewListSourceControlsPager(options *ManagementClientListSourceControlsOptions) *runtime.Pager[ManagementClientListSourceControlsResponse] { + return runtime.NewPager(runtime.PagingHandler[ManagementClientListSourceControlsResponse]{ + More: func(page ManagementClientListSourceControlsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 }, - Fetcher: func(ctx context.Context, page *WebSiteManagementClientListSourceControlsResponse) (WebSiteManagementClientListSourceControlsResponse, error) { - ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "WebSiteManagementClient.NewListSourceControlsPager") + Fetcher: func(ctx context.Context, page *ManagementClientListSourceControlsResponse) (ManagementClientListSourceControlsResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "ManagementClient.NewListSourceControlsPager") nextLink := "" if page != nil { nextLink = *page.NextLink @@ -692,7 +694,7 @@ func (client *WebSiteManagementClient) NewListSourceControlsPager(options *WebSi return client.listSourceControlsCreateRequest(ctx, options) }, nil) if err != nil { - return WebSiteManagementClientListSourceControlsResponse{}, err + return ManagementClientListSourceControlsResponse{}, err } return client.listSourceControlsHandleResponse(resp) }, @@ -701,24 +703,24 @@ func (client *WebSiteManagementClient) NewListSourceControlsPager(options *WebSi } // listSourceControlsCreateRequest creates the ListSourceControls request. -func (client *WebSiteManagementClient) listSourceControlsCreateRequest(ctx context.Context, _ *WebSiteManagementClientListSourceControlsOptions) (*policy.Request, error) { +func (client *ManagementClient) listSourceControlsCreateRequest(ctx context.Context, _ *ManagementClientListSourceControlsOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/sourcecontrols" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } // listSourceControlsHandleResponse handles the ListSourceControls response. -func (client *WebSiteManagementClient) listSourceControlsHandleResponse(resp *http.Response) (WebSiteManagementClientListSourceControlsResponse, error) { - result := WebSiteManagementClientListSourceControlsResponse{} +func (client *ManagementClient) listSourceControlsHandleResponse(resp *http.Response) (ManagementClientListSourceControlsResponse, error) { + result := ManagementClientListSourceControlsResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SourceControlCollection); err != nil { - return WebSiteManagementClientListSourceControlsResponse{}, err + return ManagementClientListSourceControlsResponse{}, err } return result, nil } @@ -726,33 +728,33 @@ func (client *WebSiteManagementClient) listSourceControlsHandleResponse(resp *ht // Move - Description for Move resources between resource groups. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - moveResourceEnvelope - Object that represents the resource to move. -// - options - WebSiteManagementClientMoveOptions contains the optional parameters for the WebSiteManagementClient.Move method. -func (client *WebSiteManagementClient) Move(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *WebSiteManagementClientMoveOptions) (WebSiteManagementClientMoveResponse, error) { +// - options - ManagementClientMoveOptions contains the optional parameters for the ManagementClient.Move method. +func (client *ManagementClient) Move(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *ManagementClientMoveOptions) (ManagementClientMoveResponse, error) { var err error - const operationName = "WebSiteManagementClient.Move" + const operationName = "ManagementClient.Move" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.moveCreateRequest(ctx, resourceGroupName, moveResourceEnvelope, options) if err != nil { - return WebSiteManagementClientMoveResponse{}, err + return ManagementClientMoveResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientMoveResponse{}, err + return ManagementClientMoveResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusNoContent) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientMoveResponse{}, err + return ManagementClientMoveResponse{}, err } - return WebSiteManagementClientMoveResponse{}, nil + return ManagementClientMoveResponse{}, nil } // moveCreateRequest creates the Move request. -func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, _ *WebSiteManagementClientMoveOptions) (*policy.Request, error) { +func (client *ManagementClient) moveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, _ *ManagementClientMoveOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -767,7 +769,7 @@ func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, moveResourceEnvelope); err != nil { @@ -779,34 +781,34 @@ func (client *WebSiteManagementClient) moveCreateRequest(ctx context.Context, re // RegionalCheckNameAvailability - Check if a resource name is available for DNL sites. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - request - Name availability request. -// - options - WebSiteManagementClientRegionalCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.RegionalCheckNameAvailability +// - options - ManagementClientRegionalCheckNameAvailabilityOptions contains the optional parameters for the ManagementClient.RegionalCheckNameAvailability // method. -func (client *WebSiteManagementClient) RegionalCheckNameAvailability(ctx context.Context, location string, request DnlResourceNameAvailabilityRequest, options *WebSiteManagementClientRegionalCheckNameAvailabilityOptions) (WebSiteManagementClientRegionalCheckNameAvailabilityResponse, error) { +func (client *ManagementClient) RegionalCheckNameAvailability(ctx context.Context, location string, request DnlResourceNameAvailabilityRequest, options *ManagementClientRegionalCheckNameAvailabilityOptions) (ManagementClientRegionalCheckNameAvailabilityResponse, error) { var err error - const operationName = "WebSiteManagementClient.RegionalCheckNameAvailability" + const operationName = "ManagementClient.RegionalCheckNameAvailability" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.regionalCheckNameAvailabilityCreateRequest(ctx, location, request, options) if err != nil { - return WebSiteManagementClientRegionalCheckNameAvailabilityResponse{}, err + return ManagementClientRegionalCheckNameAvailabilityResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientRegionalCheckNameAvailabilityResponse{}, err + return ManagementClientRegionalCheckNameAvailabilityResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientRegionalCheckNameAvailabilityResponse{}, err + return ManagementClientRegionalCheckNameAvailabilityResponse{}, err } resp, err := client.regionalCheckNameAvailabilityHandleResponse(httpResp) return resp, err } // regionalCheckNameAvailabilityCreateRequest creates the RegionalCheckNameAvailability request. -func (client *WebSiteManagementClient) regionalCheckNameAvailabilityCreateRequest(ctx context.Context, location string, request DnlResourceNameAvailabilityRequest, _ *WebSiteManagementClientRegionalCheckNameAvailabilityOptions) (*policy.Request, error) { +func (client *ManagementClient) regionalCheckNameAvailabilityCreateRequest(ctx context.Context, location string, request DnlResourceNameAvailabilityRequest, _ *ManagementClientRegionalCheckNameAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/checknameavailability" if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -821,7 +823,7 @@ func (client *WebSiteManagementClient) regionalCheckNameAvailabilityCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -831,10 +833,10 @@ func (client *WebSiteManagementClient) regionalCheckNameAvailabilityCreateReques } // regionalCheckNameAvailabilityHandleResponse handles the RegionalCheckNameAvailability response. -func (client *WebSiteManagementClient) regionalCheckNameAvailabilityHandleResponse(resp *http.Response) (WebSiteManagementClientRegionalCheckNameAvailabilityResponse, error) { - result := WebSiteManagementClientRegionalCheckNameAvailabilityResponse{} +func (client *ManagementClient) regionalCheckNameAvailabilityHandleResponse(resp *http.Response) (ManagementClientRegionalCheckNameAvailabilityResponse, error) { + result := ManagementClientRegionalCheckNameAvailabilityResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.DnlResourceNameAvailability); err != nil { - return WebSiteManagementClientRegionalCheckNameAvailabilityResponse{}, err + return ManagementClientRegionalCheckNameAvailabilityResponse{}, err } return result, nil } @@ -842,41 +844,41 @@ func (client *WebSiteManagementClient) regionalCheckNameAvailabilityHandleRespon // UpdatePublishingUser - Description for Updates publishing user // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - userDetails - Details of publishing user -// - options - WebSiteManagementClientUpdatePublishingUserOptions contains the optional parameters for the WebSiteManagementClient.UpdatePublishingUser +// - options - ManagementClientUpdatePublishingUserOptions contains the optional parameters for the ManagementClient.UpdatePublishingUser // method. -func (client *WebSiteManagementClient) UpdatePublishingUser(ctx context.Context, userDetails User, options *WebSiteManagementClientUpdatePublishingUserOptions) (WebSiteManagementClientUpdatePublishingUserResponse, error) { +func (client *ManagementClient) UpdatePublishingUser(ctx context.Context, userDetails User, options *ManagementClientUpdatePublishingUserOptions) (ManagementClientUpdatePublishingUserResponse, error) { var err error - const operationName = "WebSiteManagementClient.UpdatePublishingUser" + const operationName = "ManagementClient.UpdatePublishingUser" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.updatePublishingUserCreateRequest(ctx, userDetails, options) if err != nil { - return WebSiteManagementClientUpdatePublishingUserResponse{}, err + return ManagementClientUpdatePublishingUserResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientUpdatePublishingUserResponse{}, err + return ManagementClientUpdatePublishingUserResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientUpdatePublishingUserResponse{}, err + return ManagementClientUpdatePublishingUserResponse{}, err } resp, err := client.updatePublishingUserHandleResponse(httpResp) return resp, err } // updatePublishingUserCreateRequest creates the UpdatePublishingUser request. -func (client *WebSiteManagementClient) updatePublishingUserCreateRequest(ctx context.Context, userDetails User, _ *WebSiteManagementClientUpdatePublishingUserOptions) (*policy.Request, error) { +func (client *ManagementClient) updatePublishingUserCreateRequest(ctx context.Context, userDetails User, _ *ManagementClientUpdatePublishingUserOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/publishingUsers/web" req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, userDetails); err != nil { @@ -886,10 +888,10 @@ func (client *WebSiteManagementClient) updatePublishingUserCreateRequest(ctx con } // updatePublishingUserHandleResponse handles the UpdatePublishingUser response. -func (client *WebSiteManagementClient) updatePublishingUserHandleResponse(resp *http.Response) (WebSiteManagementClientUpdatePublishingUserResponse, error) { - result := WebSiteManagementClientUpdatePublishingUserResponse{} +func (client *ManagementClient) updatePublishingUserHandleResponse(resp *http.Response) (ManagementClientUpdatePublishingUserResponse, error) { + result := ManagementClientUpdatePublishingUserResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.User); err != nil { - return WebSiteManagementClientUpdatePublishingUserResponse{}, err + return ManagementClientUpdatePublishingUserResponse{}, err } return result, nil } @@ -897,35 +899,35 @@ func (client *WebSiteManagementClient) updatePublishingUserHandleResponse(resp * // UpdateSourceControl - Description for Updates source control token // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - sourceControlType - Type of source control // - requestMessage - Source control token information -// - options - WebSiteManagementClientUpdateSourceControlOptions contains the optional parameters for the WebSiteManagementClient.UpdateSourceControl +// - options - ManagementClientUpdateSourceControlOptions contains the optional parameters for the ManagementClient.UpdateSourceControl // method. -func (client *WebSiteManagementClient) UpdateSourceControl(ctx context.Context, sourceControlType string, requestMessage SourceControl, options *WebSiteManagementClientUpdateSourceControlOptions) (WebSiteManagementClientUpdateSourceControlResponse, error) { +func (client *ManagementClient) UpdateSourceControl(ctx context.Context, sourceControlType string, requestMessage SourceControl, options *ManagementClientUpdateSourceControlOptions) (ManagementClientUpdateSourceControlResponse, error) { var err error - const operationName = "WebSiteManagementClient.UpdateSourceControl" + const operationName = "ManagementClient.UpdateSourceControl" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.updateSourceControlCreateRequest(ctx, sourceControlType, requestMessage, options) if err != nil { - return WebSiteManagementClientUpdateSourceControlResponse{}, err + return ManagementClientUpdateSourceControlResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientUpdateSourceControlResponse{}, err + return ManagementClientUpdateSourceControlResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientUpdateSourceControlResponse{}, err + return ManagementClientUpdateSourceControlResponse{}, err } resp, err := client.updateSourceControlHandleResponse(httpResp) return resp, err } // updateSourceControlCreateRequest creates the UpdateSourceControl request. -func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx context.Context, sourceControlType string, requestMessage SourceControl, _ *WebSiteManagementClientUpdateSourceControlOptions) (*policy.Request, error) { +func (client *ManagementClient) updateSourceControlCreateRequest(ctx context.Context, sourceControlType string, requestMessage SourceControl, _ *ManagementClientUpdateSourceControlOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Web/sourcecontrols/{sourceControlType}" if sourceControlType == "" { return nil, errors.New("parameter sourceControlType cannot be empty") @@ -936,7 +938,7 @@ func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, requestMessage); err != nil { @@ -946,10 +948,10 @@ func (client *WebSiteManagementClient) updateSourceControlCreateRequest(ctx cont } // updateSourceControlHandleResponse handles the UpdateSourceControl response. -func (client *WebSiteManagementClient) updateSourceControlHandleResponse(resp *http.Response) (WebSiteManagementClientUpdateSourceControlResponse, error) { - result := WebSiteManagementClientUpdateSourceControlResponse{} +func (client *ManagementClient) updateSourceControlHandleResponse(resp *http.Response) (ManagementClientUpdateSourceControlResponse, error) { + result := ManagementClientUpdateSourceControlResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.SourceControl); err != nil { - return WebSiteManagementClientUpdateSourceControlResponse{}, err + return ManagementClientUpdateSourceControlResponse{}, err } return result, nil } @@ -957,35 +959,34 @@ func (client *WebSiteManagementClient) updateSourceControlHandleResponse(resp *h // Validate - Description for Validate if a resource can be created. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - validateRequest - Request with the resources to validate. -// - options - WebSiteManagementClientValidateOptions contains the optional parameters for the WebSiteManagementClient.Validate -// method. -func (client *WebSiteManagementClient) Validate(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, options *WebSiteManagementClientValidateOptions) (WebSiteManagementClientValidateResponse, error) { +// - options - ManagementClientValidateOptions contains the optional parameters for the ManagementClient.Validate method. +func (client *ManagementClient) Validate(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, options *ManagementClientValidateOptions) (ManagementClientValidateResponse, error) { var err error - const operationName = "WebSiteManagementClient.Validate" + const operationName = "ManagementClient.Validate" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.validateCreateRequest(ctx, resourceGroupName, validateRequest, options) if err != nil { - return WebSiteManagementClientValidateResponse{}, err + return ManagementClientValidateResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientValidateResponse{}, err + return ManagementClientValidateResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientValidateResponse{}, err + return ManagementClientValidateResponse{}, err } resp, err := client.validateHandleResponse(httpResp) return resp, err } // validateCreateRequest creates the Validate request. -func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, _ *WebSiteManagementClientValidateOptions) (*policy.Request, error) { +func (client *ManagementClient) validateCreateRequest(ctx context.Context, resourceGroupName string, validateRequest ValidateRequest, _ *ManagementClientValidateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1000,7 +1001,7 @@ func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, validateRequest); err != nil { @@ -1010,10 +1011,10 @@ func (client *WebSiteManagementClient) validateCreateRequest(ctx context.Context } // validateHandleResponse handles the Validate response. -func (client *WebSiteManagementClient) validateHandleResponse(resp *http.Response) (WebSiteManagementClientValidateResponse, error) { - result := WebSiteManagementClientValidateResponse{} +func (client *ManagementClient) validateHandleResponse(resp *http.Response) (ManagementClientValidateResponse, error) { + result := ManagementClientValidateResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.ValidateResponse); err != nil { - return WebSiteManagementClientValidateResponse{}, err + return ManagementClientValidateResponse{}, err } return result, nil } @@ -1021,34 +1022,33 @@ func (client *WebSiteManagementClient) validateHandleResponse(resp *http.Respons // ValidateMove - Description for Validate whether a resource can be moved. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - moveResourceEnvelope - Object that represents the resource to move. -// - options - WebSiteManagementClientValidateMoveOptions contains the optional parameters for the WebSiteManagementClient.ValidateMove -// method. -func (client *WebSiteManagementClient) ValidateMove(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *WebSiteManagementClientValidateMoveOptions) (WebSiteManagementClientValidateMoveResponse, error) { +// - options - ManagementClientValidateMoveOptions contains the optional parameters for the ManagementClient.ValidateMove method. +func (client *ManagementClient) ValidateMove(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, options *ManagementClientValidateMoveOptions) (ManagementClientValidateMoveResponse, error) { var err error - const operationName = "WebSiteManagementClient.ValidateMove" + const operationName = "ManagementClient.ValidateMove" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.validateMoveCreateRequest(ctx, resourceGroupName, moveResourceEnvelope, options) if err != nil { - return WebSiteManagementClientValidateMoveResponse{}, err + return ManagementClientValidateMoveResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientValidateMoveResponse{}, err + return ManagementClientValidateMoveResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusNoContent) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientValidateMoveResponse{}, err + return ManagementClientValidateMoveResponse{}, err } - return WebSiteManagementClientValidateMoveResponse{}, nil + return ManagementClientValidateMoveResponse{}, nil } // validateMoveCreateRequest creates the ValidateMove request. -func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, _ *WebSiteManagementClientValidateMoveOptions) (*policy.Request, error) { +func (client *ManagementClient) validateMoveCreateRequest(ctx context.Context, resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope, _ *ManagementClientValidateMoveOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1063,7 +1063,7 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, moveResourceEnvelope); err != nil { @@ -1076,34 +1076,34 @@ func (client *WebSiteManagementClient) validateMoveCreateRequest(ctx context.Con // the Network Security Group rules. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - parameters - VNET information -// - options - WebSiteManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the WebSiteManagementClient.VerifyHostingEnvironmentVnet +// - options - ManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the ManagementClient.VerifyHostingEnvironmentVnet // method. -func (client *WebSiteManagementClient) VerifyHostingEnvironmentVnet(ctx context.Context, parameters VnetParameters, options *WebSiteManagementClientVerifyHostingEnvironmentVnetOptions) (WebSiteManagementClientVerifyHostingEnvironmentVnetResponse, error) { +func (client *ManagementClient) VerifyHostingEnvironmentVnet(ctx context.Context, parameters VnetParameters, options *ManagementClientVerifyHostingEnvironmentVnetOptions) (ManagementClientVerifyHostingEnvironmentVnetResponse, error) { var err error - const operationName = "WebSiteManagementClient.VerifyHostingEnvironmentVnet" + const operationName = "ManagementClient.VerifyHostingEnvironmentVnet" ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) defer func() { endSpan(err) }() req, err := client.verifyHostingEnvironmentVnetCreateRequest(ctx, parameters, options) if err != nil { - return WebSiteManagementClientVerifyHostingEnvironmentVnetResponse{}, err + return ManagementClientVerifyHostingEnvironmentVnetResponse{}, err } httpResp, err := client.internal.Pipeline().Do(req) if err != nil { - return WebSiteManagementClientVerifyHostingEnvironmentVnetResponse{}, err + return ManagementClientVerifyHostingEnvironmentVnetResponse{}, err } if !runtime.HasStatusCode(httpResp, http.StatusOK) { err = runtime.NewResponseError(httpResp) - return WebSiteManagementClientVerifyHostingEnvironmentVnetResponse{}, err + return ManagementClientVerifyHostingEnvironmentVnetResponse{}, err } resp, err := client.verifyHostingEnvironmentVnetHandleResponse(httpResp) return resp, err } // verifyHostingEnvironmentVnetCreateRequest creates the VerifyHostingEnvironmentVnet request. -func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest(ctx context.Context, parameters VnetParameters, _ *WebSiteManagementClientVerifyHostingEnvironmentVnetOptions) (*policy.Request, error) { +func (client *ManagementClient) verifyHostingEnvironmentVnetCreateRequest(ctx context.Context, parameters VnetParameters, _ *ManagementClientVerifyHostingEnvironmentVnetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -1114,7 +1114,7 @@ func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -1124,10 +1124,10 @@ func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetCreateRequest } // verifyHostingEnvironmentVnetHandleResponse handles the VerifyHostingEnvironmentVnet response. -func (client *WebSiteManagementClient) verifyHostingEnvironmentVnetHandleResponse(resp *http.Response) (WebSiteManagementClientVerifyHostingEnvironmentVnetResponse, error) { - result := WebSiteManagementClientVerifyHostingEnvironmentVnetResponse{} +func (client *ManagementClient) verifyHostingEnvironmentVnetHandleResponse(resp *http.Response) (ManagementClientVerifyHostingEnvironmentVnetResponse, error) { + result := ManagementClientVerifyHostingEnvironmentVnetResponse{} if err := runtime.UnmarshalAsJSON(resp, &result.VnetValidationFailureDetails); err != nil { - return WebSiteManagementClientVerifyHostingEnvironmentVnetResponse{}, err + return ManagementClientVerifyHostingEnvironmentVnetResponse{}, err } return result, nil } diff --git a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/management_client_example_test.go similarity index 84% rename from sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go rename to sdk/resourcemanager/appservice/armappservice/management_client_example_test.go index 110c44e60434..21ab99ca0ba7 100644 --- a/sdk/resourcemanager/appservice/armappservice/websitemanagement_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/management_client_example_test.go @@ -15,11 +15,11 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCustomHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getCustomHostnamesUnderSubscription() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCustomHostNameSites.json +func ExampleManagementClient_NewListCustomHostNameSitesPager_getCustomHostnamesUnderSubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -29,7 +29,7 @@ func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getCustomHos if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := clientFactory.NewWebSiteManagementClient().NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: nil}) + pager := clientFactory.NewManagementClient().NewListCustomHostNameSitesPager(&armappservice.ManagementClientListCustomHostNameSitesOptions{Hostname: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { @@ -78,8 +78,8 @@ func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getCustomHos } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListCustomSpecificHostNameSites.json -func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getSpecificCustomHostnameUnderSubscription() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListCustomSpecificHostNameSites.json +func ExampleManagementClient_NewListCustomHostNameSitesPager_getSpecificCustomHostnameUnderSubscription() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -89,7 +89,7 @@ func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getSpecificC if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := clientFactory.NewWebSiteManagementClient().NewListCustomHostNameSitesPager(&armappservice.WebSiteManagementClientListCustomHostNameSitesOptions{Hostname: to.Ptr("www.example.com")}) + pager := clientFactory.NewManagementClient().NewListCustomHostNameSitesPager(&armappservice.ManagementClientListCustomHostNameSitesOptions{Hostname: to.Ptr("www.example.com")}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { @@ -125,8 +125,8 @@ func ExampleWebSiteManagementClient_NewListCustomHostNameSitesPager_getSpecificC } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAseRegions.json -func ExampleWebSiteManagementClient_NewListAseRegionsPager() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAseRegions.json +func ExampleManagementClient_NewListAseRegionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -136,7 +136,7 @@ func ExampleWebSiteManagementClient_NewListAseRegionsPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := clientFactory.NewWebSiteManagementClient().NewListAseRegionsPager(nil) + pager := clientFactory.NewManagementClient().NewListAseRegionsPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { @@ -188,8 +188,8 @@ func ExampleWebSiteManagementClient_NewListAseRegionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/VerifyHostingEnvironmentVnet.json -func ExampleWebSiteManagementClient_VerifyHostingEnvironmentVnet() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/VerifyHostingEnvironmentVnet.json +func ExampleManagementClient_VerifyHostingEnvironmentVnet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -199,7 +199,7 @@ func ExampleWebSiteManagementClient_VerifyHostingEnvironmentVnet() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := clientFactory.NewWebSiteManagementClient().VerifyHostingEnvironmentVnet(ctx, armappservice.VnetParameters{ + res, err := clientFactory.NewManagementClient().VerifyHostingEnvironmentVnet(ctx, armappservice.VnetParameters{ Properties: &armappservice.VnetParametersProperties{ VnetName: to.Ptr("vNet123"), VnetResourceGroup: to.Ptr("vNet123rg"), diff --git a/sdk/resourcemanager/appservice/armappservice/models.go b/sdk/resourcemanager/appservice/armappservice/models.go index 3a5e7cff8003..017947691fea 100644 --- a/sdk/resourcemanager/appservice/armappservice/models.go +++ b/sdk/resourcemanager/appservice/armappservice/models.go @@ -41,7 +41,7 @@ type APIKVReferenceCollection struct { // APIKVReferenceProperties - ApiKVReference resource specific properties type APIKVReferenceProperties struct { - // CONSTANT; undefinedField has constant value "KeyVault", any specified value is ignored. + // CONSTANT; Field has constant value "KeyVault", any specified value is ignored. Source *string ActiveVersion *string Details *string @@ -2258,6 +2258,11 @@ type DefaultErrorResponseErrorDetailsItem struct { Target *string } +type DefaultIdentity struct { + IdentityType *ManagedServiceIdentityType + UserAssignedIdentityResourceID *string +} + // DeletedAppRestoreRequest - Details about restoring a deleted app. type DeletedAppRestoreRequest struct { // Kind of resource. @@ -4357,6 +4362,24 @@ type InboundEnvironmentEndpointCollection struct { NextLink *string } +// InstallScript - Server farm install script configuration. +type InstallScript struct { + // Name of the install script. + Name *string + + // Source of the install script. + Source *InstallScriptSource +} + +// InstallScriptSource - Object to hold install script reference. +type InstallScriptSource struct { + // Install script source URI where the install script file will be fetched from. + SourceURI *string + + // Type of the install script. + Type *InstallScriptType +} + // JSONSchema - The JSON schema. type JSONSchema struct { // The JSON content. @@ -4392,6 +4415,15 @@ type KeyValuePairStringObject struct { Value any } +// KeyVaultReferenceWithStatus - Object to hold key vault reference and the resolution status +type KeyVaultReferenceWithStatus struct { + // Reference status of the key vault secret. + ReferenceStatus *string + + // Key vault secret URI. + SecretURI *string +} + // KubeEnvironment - A Kubernetes cluster specialized for web workloads by Azure App Service type KubeEnvironment struct { // REQUIRED; Resource Location. @@ -5181,6 +5213,9 @@ type Plan struct { // Extended Location. ExtendedLocation *ExtendedLocation + // Managed service identity. + Identity *ManagedServiceIdentity + // 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. @@ -5216,6 +5251,9 @@ type PlanCollection struct { // PlanPatchResource - ARM resource for a app service plan. type PlanPatchResource struct { + // Managed service identity. + Identity *ManagedServiceIdentity + // Kind of resource. Kind *string @@ -5324,6 +5362,12 @@ type PlanProperties struct { // If Hyper-V container app service plan true, false otherwise. HyperV *bool + // Install scripts associated with this App Service plan. + InstallScripts []*InstallScript + + // Whether this server farm is in custom mode. + IsCustomMode *bool + // If true, this App Service Plan owns spot instances. IsSpot *bool @@ -5336,16 +5380,32 @@ type PlanProperties struct { // Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan MaximumElasticWorkerCount *int32 + // All network settings for the server farm. + Network *ServerFarmNetworkSettings + // If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service // plan will scale to all instances of the plan. PerSiteScaling *bool + // Identity to use by platform for various features and integrations using managed identity. + PlanDefaultIdentity *DefaultIdentity + + // If true, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If false, RDP access is + // disabled. + RdpEnabled *bool + + // Registry adapters associated with this App Service plan. + RegistryAdapters []*RegistryAdapter + // If Linux app service plan true, false otherwise. Reserved *bool // The time when the server farm expires. Valid only if it is a spot server farm. SpotExpirationTime *time.Time + // Storage mounts associated with this App Service plan. + StorageMounts []*StorageMount + // Scaling worker count. TargetWorkerCount *int32 @@ -6273,6 +6333,18 @@ type RegenerateActionParameter struct { KeyType *KeyType } +// RegistryAdapter - Server farm registry adapter configuration. +type RegistryAdapter struct { + // Key vault reference to the value that will be placed in the registry location + KeyVaultSecretReference *KeyVaultReferenceWithStatus + + // Registry key for the adapter. + RegistryKey *string + + // Type of the registry adapter. + Type *RegistryAdapterType +} + // ReissueCertificateOrderRequest - Class representing certificate reissue request. type ReissueCertificateOrderRequest struct { // Kind of resource. @@ -6974,6 +7046,47 @@ type ScaleRuleAuth struct { TriggerParameter *string } +// ServerFarmInstance - Represents details of a single instance in a server farm. +type ServerFarmInstance struct { + // The instance IP address. + IPAddress *string + + // The instance name. + InstanceName *string + + // The instance status. + Status *string +} + +// ServerFarmInstanceDetails - Represents instance details for an app service plan. +type ServerFarmInstanceDetails struct { + // The total number of instances. + InstanceCount *int32 + + // The list of server farm instances. + Instances []*ServerFarmInstance + + // The server farm name. + ServerFarmName *string +} + +// ServerFarmNetworkSettings - Network settings for an app service plan. +type ServerFarmNetworkSettings struct { + // Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of + // the form + // /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} + VirtualNetworkSubnetID *string +} + +// ServerFarmRdpDetails - Server Farm RDP connection details. +type ServerFarmRdpDetails struct { + // The RDP password for the server farm. + RdpPassword *string + + // The RDP password expiry date. + RdpPasswordExpiry *time.Time +} + // ServiceSpecification - Resource metrics service provided by Microsoft.Insights resource provider. type ServiceSpecification struct { LogSpecifications []*LogSpecification @@ -7878,6 +7991,9 @@ type SitePatchResourceProperties struct { // Identity to use for Key Vault Reference authentication. KeyVaultReferenceIdentity *string + // Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string. + PublicNetworkAccess *string + // Site redundancy mode RedundancyMode *RedundancyMode @@ -9430,6 +9546,24 @@ type StorageMigrationResponseProperties struct { OperationID *string } +// StorageMount - Server farm storage mount configuration. +type StorageMount struct { + // KV reference to the credentials to connect to the share. + CredentialsKeyVaultReference *KeyVaultReferenceWithStatus + + // Path on worker where storage will be mounted. + DestinationPath *string + + // Name of the storage mount. + Name *string + + // Source of the fileshare/storage. + Source *string + + // Type of the storage mount. + Type *StorageMountType +} + // StringDictionary - String dictionary resource. type StringDictionary struct { // Kind of resource. diff --git a/sdk/resourcemanager/appservice/armappservice/models_serde.go b/sdk/resourcemanager/appservice/armappservice/models_serde.go index cd4581be4128..9a65da4011c5 100644 --- a/sdk/resourcemanager/appservice/armappservice/models_serde.go +++ b/sdk/resourcemanager/appservice/armappservice/models_serde.go @@ -5846,6 +5846,37 @@ func (d *DefaultErrorResponseErrorDetailsItem) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type DefaultIdentity. +func (d DefaultIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identityType", d.IdentityType) + populate(objectMap, "userAssignedIdentityResourceId", d.UserAssignedIdentityResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DefaultIdentity. +func (d *DefaultIdentity) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identityType": + err = unpopulate(val, "IdentityType", &d.IdentityType) + delete(rawMsg, key) + case "userAssignedIdentityResourceId": + err = unpopulate(val, "UserAssignedIdentityResourceID", &d.UserAssignedIdentityResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DeletedAppRestoreRequest. func (d DeletedAppRestoreRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -11155,6 +11186,68 @@ func (i *InboundEnvironmentEndpointCollection) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type InstallScript. +func (i InstallScript) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "source", i.Source) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InstallScript. +func (i *InstallScript) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &i.Source) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type InstallScriptSource. +func (i InstallScriptSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sourceUri", i.SourceURI) + populate(objectMap, "type", i.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InstallScriptSource. +func (i *InstallScriptSource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sourceUri": + err = unpopulate(val, "SourceURI", &i.SourceURI) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type JSONSchema. func (j JSONSchema) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -11279,6 +11372,37 @@ func (k *KeyValuePairStringObject) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type KeyVaultReferenceWithStatus. +func (k KeyVaultReferenceWithStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "referenceStatus", k.ReferenceStatus) + populate(objectMap, "secretUri", k.SecretURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultReferenceWithStatus. +func (k *KeyVaultReferenceWithStatus) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "referenceStatus": + err = unpopulate(val, "ReferenceStatus", &k.ReferenceStatus) + delete(rawMsg, key) + case "secretUri": + err = unpopulate(val, "SecretURI", &k.SecretURI) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type KubeEnvironment. func (k KubeEnvironment) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -13360,6 +13484,7 @@ func (p Plan) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "extendedLocation", p.ExtendedLocation) populate(objectMap, "id", p.ID) + populate(objectMap, "identity", p.Identity) populate(objectMap, "kind", p.Kind) populate(objectMap, "location", p.Location) populate(objectMap, "name", p.Name) @@ -13385,6 +13510,9 @@ func (p *Plan) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &p.ID) delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &p.Identity) + delete(rawMsg, key) case "kind": err = unpopulate(val, "Kind", &p.Kind) delete(rawMsg, key) @@ -13449,6 +13577,7 @@ func (p *PlanCollection) UnmarshalJSON(data []byte) error { func (p PlanPatchResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "id", p.ID) + populate(objectMap, "identity", p.Identity) populate(objectMap, "kind", p.Kind) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -13468,6 +13597,9 @@ func (p *PlanPatchResource) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &p.ID) delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &p.Identity) + delete(rawMsg, key) case "kind": err = unpopulate(val, "Kind", &p.Kind) delete(rawMsg, key) @@ -13612,19 +13744,26 @@ func (p PlanProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "geoRegion", p.GeoRegion) populate(objectMap, "hostingEnvironmentProfile", p.HostingEnvironmentProfile) populate(objectMap, "hyperV", p.HyperV) + populate(objectMap, "installScripts", p.InstallScripts) + populate(objectMap, "isCustomMode", p.IsCustomMode) populate(objectMap, "isSpot", p.IsSpot) populate(objectMap, "isXenon", p.IsXenon) populate(objectMap, "kubeEnvironmentProfile", p.KubeEnvironmentProfile) populate(objectMap, "maximumElasticWorkerCount", p.MaximumElasticWorkerCount) populate(objectMap, "maximumNumberOfWorkers", p.MaximumNumberOfWorkers) + populate(objectMap, "network", p.Network) populate(objectMap, "numberOfSites", p.NumberOfSites) populate(objectMap, "numberOfWorkers", p.NumberOfWorkers) populate(objectMap, "perSiteScaling", p.PerSiteScaling) + populate(objectMap, "planDefaultIdentity", p.PlanDefaultIdentity) populate(objectMap, "provisioningState", p.ProvisioningState) + populate(objectMap, "rdpEnabled", p.RdpEnabled) + populate(objectMap, "registryAdapters", p.RegistryAdapters) populate(objectMap, "reserved", p.Reserved) populate(objectMap, "resourceGroup", p.ResourceGroup) populateDateTimeRFC3339(objectMap, "spotExpirationTime", p.SpotExpirationTime) populate(objectMap, "status", p.Status) + populate(objectMap, "storageMounts", p.StorageMounts) populate(objectMap, "subscription", p.Subscription) populate(objectMap, "targetWorkerCount", p.TargetWorkerCount) populate(objectMap, "targetWorkerSizeId", p.TargetWorkerSizeID) @@ -13660,6 +13799,12 @@ func (p *PlanProperties) UnmarshalJSON(data []byte) error { case "hyperV": err = unpopulate(val, "HyperV", &p.HyperV) delete(rawMsg, key) + case "installScripts": + err = unpopulate(val, "InstallScripts", &p.InstallScripts) + delete(rawMsg, key) + case "isCustomMode": + err = unpopulate(val, "IsCustomMode", &p.IsCustomMode) + delete(rawMsg, key) case "isSpot": err = unpopulate(val, "IsSpot", &p.IsSpot) delete(rawMsg, key) @@ -13675,6 +13820,9 @@ func (p *PlanProperties) UnmarshalJSON(data []byte) error { case "maximumNumberOfWorkers": err = unpopulate(val, "MaximumNumberOfWorkers", &p.MaximumNumberOfWorkers) delete(rawMsg, key) + case "network": + err = unpopulate(val, "Network", &p.Network) + delete(rawMsg, key) case "numberOfSites": err = unpopulate(val, "NumberOfSites", &p.NumberOfSites) delete(rawMsg, key) @@ -13684,9 +13832,18 @@ func (p *PlanProperties) UnmarshalJSON(data []byte) error { case "perSiteScaling": err = unpopulate(val, "PerSiteScaling", &p.PerSiteScaling) delete(rawMsg, key) + case "planDefaultIdentity": + err = unpopulate(val, "PlanDefaultIdentity", &p.PlanDefaultIdentity) + delete(rawMsg, key) case "provisioningState": err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) delete(rawMsg, key) + case "rdpEnabled": + err = unpopulate(val, "RdpEnabled", &p.RdpEnabled) + delete(rawMsg, key) + case "registryAdapters": + err = unpopulate(val, "RegistryAdapters", &p.RegistryAdapters) + delete(rawMsg, key) case "reserved": err = unpopulate(val, "Reserved", &p.Reserved) delete(rawMsg, key) @@ -13699,6 +13856,9 @@ func (p *PlanProperties) UnmarshalJSON(data []byte) error { case "status": err = unpopulate(val, "Status", &p.Status) delete(rawMsg, key) + case "storageMounts": + err = unpopulate(val, "StorageMounts", &p.StorageMounts) + delete(rawMsg, key) case "subscription": err = unpopulate(val, "Subscription", &p.Subscription) delete(rawMsg, key) @@ -15772,6 +15932,41 @@ func (r *RegenerateActionParameter) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RegistryAdapter. +func (r RegistryAdapter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultSecretReference", r.KeyVaultSecretReference) + populate(objectMap, "registryKey", r.RegistryKey) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryAdapter. +func (r *RegistryAdapter) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyVaultSecretReference": + err = unpopulate(val, "KeyVaultSecretReference", &r.KeyVaultSecretReference) + delete(rawMsg, key) + case "registryKey": + err = unpopulate(val, "RegistryKey", &r.RegistryKey) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ReissueCertificateOrderRequest. func (r ReissueCertificateOrderRequest) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -17601,6 +17796,134 @@ func (s *ScaleRuleAuth) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ServerFarmInstance. +func (s ServerFarmInstance) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipAddress", s.IPAddress) + populate(objectMap, "instanceName", s.InstanceName) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerFarmInstance. +func (s *ServerFarmInstance) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "ipAddress": + err = unpopulate(val, "IPAddress", &s.IPAddress) + delete(rawMsg, key) + case "instanceName": + err = unpopulate(val, "InstanceName", &s.InstanceName) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerFarmInstanceDetails. +func (s ServerFarmInstanceDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "instanceCount", s.InstanceCount) + populate(objectMap, "instances", s.Instances) + populate(objectMap, "serverFarmName", s.ServerFarmName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerFarmInstanceDetails. +func (s *ServerFarmInstanceDetails) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "instanceCount": + err = unpopulate(val, "InstanceCount", &s.InstanceCount) + delete(rawMsg, key) + case "instances": + err = unpopulate(val, "Instances", &s.Instances) + delete(rawMsg, key) + case "serverFarmName": + err = unpopulate(val, "ServerFarmName", &s.ServerFarmName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerFarmNetworkSettings. +func (s ServerFarmNetworkSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "virtualNetworkSubnetId", s.VirtualNetworkSubnetID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerFarmNetworkSettings. +func (s *ServerFarmNetworkSettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "virtualNetworkSubnetId": + err = unpopulate(val, "VirtualNetworkSubnetID", &s.VirtualNetworkSubnetID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerFarmRdpDetails. +func (s ServerFarmRdpDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "rdpPassword", s.RdpPassword) + populateDateTimeRFC3339(objectMap, "rdpPasswordExpiry", s.RdpPasswordExpiry) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerFarmRdpDetails. +func (s *ServerFarmRdpDetails) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "rdpPassword": + err = unpopulate(val, "RdpPassword", &s.RdpPassword) + delete(rawMsg, key) + case "rdpPasswordExpiry": + err = unpopulateDateTimeRFC3339(val, "RdpPasswordExpiry", &s.RdpPasswordExpiry) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ServiceSpecification. func (s ServiceSpecification) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -19205,6 +19528,7 @@ func (s SitePatchResourceProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "maxNumberOfWorkers", s.MaxNumberOfWorkers) populate(objectMap, "outboundIpAddresses", s.OutboundIPAddresses) populate(objectMap, "possibleOutboundIpAddresses", s.PossibleOutboundIPAddresses) + populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) populate(objectMap, "redundancyMode", s.RedundancyMode) populate(objectMap, "repositorySiteName", s.RepositorySiteName) populate(objectMap, "reserved", s.Reserved) @@ -19316,6 +19640,9 @@ func (s *SitePatchResourceProperties) UnmarshalJSON(data []byte) error { case "possibleOutboundIpAddresses": err = unpopulate(val, "PossibleOutboundIPAddresses", &s.PossibleOutboundIPAddresses) delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess) + delete(rawMsg, key) case "redundancyMode": err = unpopulate(val, "RedundancyMode", &s.RedundancyMode) delete(rawMsg, key) @@ -22813,6 +23140,49 @@ func (s *StorageMigrationResponseProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type StorageMount. +func (s StorageMount) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "credentialsKeyVaultReference", s.CredentialsKeyVaultReference) + populate(objectMap, "destinationPath", s.DestinationPath) + populate(objectMap, "name", s.Name) + populate(objectMap, "source", s.Source) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageMount. +func (s *StorageMount) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "credentialsKeyVaultReference": + err = unpopulate(val, "CredentialsKeyVaultReference", &s.CredentialsKeyVaultReference) + delete(rawMsg, key) + case "destinationPath": + err = unpopulate(val, "DestinationPath", &s.DestinationPath) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &s.Source) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type StringDictionary. func (s StringDictionary) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/sdk/resourcemanager/appservice/armappservice/options.go b/sdk/resourcemanager/appservice/armappservice/options.go index 9c66d166c814..e4f82d045c66 100644 --- a/sdk/resourcemanager/appservice/armappservice/options.go +++ b/sdk/resourcemanager/appservice/armappservice/options.go @@ -819,6 +819,132 @@ type KubeEnvironmentsClientUpdateOptions struct { // placeholder for future optional parameters } +// ManagementClientCheckNameAvailabilityOptions contains the optional parameters for the ManagementClient.CheckNameAvailability +// method. +type ManagementClientCheckNameAvailabilityOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientGetPublishingUserOptions contains the optional parameters for the ManagementClient.GetPublishingUser method. +type ManagementClientGetPublishingUserOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientGetSourceControlOptions contains the optional parameters for the ManagementClient.GetSourceControl method. +type ManagementClientGetSourceControlOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the ManagementClient.GetSubscriptionDeploymentLocations +// method. +type ManagementClientGetSubscriptionDeploymentLocationsOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientListAseRegionsOptions contains the optional parameters for the ManagementClient.NewListAseRegionsPager +// method. +type ManagementClientListAseRegionsOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientListBillingMetersOptions contains the optional parameters for the ManagementClient.NewListBillingMetersPager +// method. +type ManagementClientListBillingMetersOptions struct { + // Azure Location of billable resource + BillingLocation *string + + // App Service OS type meters used for + OSType *string +} + +// ManagementClientListCustomHostNameSitesOptions contains the optional parameters for the ManagementClient.NewListCustomHostNameSitesPager +// method. +type ManagementClientListCustomHostNameSitesOptions struct { + // Specific hostname + Hostname *string +} + +// ManagementClientListGeoRegionsOptions contains the optional parameters for the ManagementClient.NewListGeoRegionsPager +// method. +type ManagementClientListGeoRegionsOptions struct { + // Specify true if you want to filter to only regions that support App Service Plans with IsCustomMode set to true. + CustomModeWorkersEnabled *bool + + // Specify true if you want to filter to only regions that support Linux Consumption Workers. + LinuxDynamicWorkersEnabled *bool + + // Specify true if you want to filter to only regions that support Linux workers. + LinuxWorkersEnabled *bool + + // Name of SKU used to filter the regions. + SKU *SKUName + + // Specify true if you want to filter to only regions that support Xenon workers. + XenonWorkersEnabled *bool +} + +// ManagementClientListPremierAddOnOffersOptions contains the optional parameters for the ManagementClient.NewListPremierAddOnOffersPager +// method. +type ManagementClientListPremierAddOnOffersOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientListSKUsOptions contains the optional parameters for the ManagementClient.ListSKUs method. +type ManagementClientListSKUsOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager +// method. +type ManagementClientListSiteIdentifiersAssignedToHostNameOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientListSourceControlsOptions contains the optional parameters for the ManagementClient.NewListSourceControlsPager +// method. +type ManagementClientListSourceControlsOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientMoveOptions contains the optional parameters for the ManagementClient.Move method. +type ManagementClientMoveOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientRegionalCheckNameAvailabilityOptions contains the optional parameters for the ManagementClient.RegionalCheckNameAvailability +// method. +type ManagementClientRegionalCheckNameAvailabilityOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientUpdatePublishingUserOptions contains the optional parameters for the ManagementClient.UpdatePublishingUser +// method. +type ManagementClientUpdatePublishingUserOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientUpdateSourceControlOptions contains the optional parameters for the ManagementClient.UpdateSourceControl +// method. +type ManagementClientUpdateSourceControlOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientValidateMoveOptions contains the optional parameters for the ManagementClient.ValidateMove method. +type ManagementClientValidateMoveOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientValidateOptions contains the optional parameters for the ManagementClient.Validate method. +type ManagementClientValidateOptions struct { + // placeholder for future optional parameters +} + +// ManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the ManagementClient.VerifyHostingEnvironmentVnet +// method. +type ManagementClientVerifyHostingEnvironmentVnetOptions struct { + // placeholder for future optional parameters +} + // PlansClientBeginCreateOrUpdateOptions contains the optional parameters for the PlansClient.BeginCreateOrUpdate method. type PlansClientBeginCreateOrUpdateOptions struct { // Resumes the long-running operation from the provided token. @@ -867,6 +993,18 @@ type PlansClientGetRouteForVnetOptions struct { // placeholder for future optional parameters } +// PlansClientGetServerFarmInstanceDetailsOptions contains the optional parameters for the PlansClient.GetServerFarmInstanceDetails +// method. +type PlansClientGetServerFarmInstanceDetailsOptions struct { + // placeholder for future optional parameters +} + +// PlansClientGetServerFarmRdpPasswordOptions contains the optional parameters for the PlansClient.GetServerFarmRdpPassword +// method. +type PlansClientGetServerFarmRdpPasswordOptions struct { + // placeholder for future optional parameters +} + // PlansClientGetServerFarmSKUsOptions contains the optional parameters for the PlansClient.GetServerFarmSKUs method. type PlansClientGetServerFarmSKUsOptions struct { // placeholder for future optional parameters @@ -954,6 +1092,12 @@ type PlansClientRebootWorkerOptions struct { // placeholder for future optional parameters } +// PlansClientRecycleManagedInstanceWorkerOptions contains the optional parameters for the PlansClient.RecycleManagedInstanceWorker +// method. +type PlansClientRecycleManagedInstanceWorkerOptions struct { + // placeholder for future optional parameters +} + // PlansClientRestartWebAppsOptions contains the optional parameters for the PlansClient.RestartWebApps method. type PlansClientRestartWebAppsOptions struct { // Specify true to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default @@ -4191,132 +4335,6 @@ type WebAppsClientUpdateVnetConnectionSlotOptions struct { // placeholder for future optional parameters } -// WebSiteManagementClientCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.CheckNameAvailability -// method. -type WebSiteManagementClientCheckNameAvailabilityOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientGetPublishingUserOptions contains the optional parameters for the WebSiteManagementClient.GetPublishingUser -// method. -type WebSiteManagementClientGetPublishingUserOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientGetSourceControlOptions contains the optional parameters for the WebSiteManagementClient.GetSourceControl -// method. -type WebSiteManagementClientGetSourceControlOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions contains the optional parameters for the WebSiteManagementClient.GetSubscriptionDeploymentLocations -// method. -type WebSiteManagementClientGetSubscriptionDeploymentLocationsOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientListAseRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListAseRegionsPager -// method. -type WebSiteManagementClientListAseRegionsOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientListBillingMetersOptions contains the optional parameters for the WebSiteManagementClient.NewListBillingMetersPager -// method. -type WebSiteManagementClientListBillingMetersOptions struct { - // Azure Location of billable resource - BillingLocation *string - - // App Service OS type meters used for - OSType *string -} - -// WebSiteManagementClientListCustomHostNameSitesOptions contains the optional parameters for the WebSiteManagementClient.NewListCustomHostNameSitesPager -// method. -type WebSiteManagementClientListCustomHostNameSitesOptions struct { - // Specific hostname - Hostname *string -} - -// WebSiteManagementClientListGeoRegionsOptions contains the optional parameters for the WebSiteManagementClient.NewListGeoRegionsPager -// method. -type WebSiteManagementClientListGeoRegionsOptions struct { - // Specify true if you want to filter to only regions that support Linux Consumption Workers. - LinuxDynamicWorkersEnabled *bool - - // Specify true if you want to filter to only regions that support Linux workers. - LinuxWorkersEnabled *bool - - // Name of SKU used to filter the regions. - SKU *SKUName - - // Specify true if you want to filter to only regions that support Xenon workers. - XenonWorkersEnabled *bool -} - -// WebSiteManagementClientListPremierAddOnOffersOptions contains the optional parameters for the WebSiteManagementClient.NewListPremierAddOnOffersPager -// method. -type WebSiteManagementClientListPremierAddOnOffersOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientListSKUsOptions contains the optional parameters for the WebSiteManagementClient.ListSKUs method. -type WebSiteManagementClientListSKUsOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions contains the optional parameters for the WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager -// method. -type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientListSourceControlsOptions contains the optional parameters for the WebSiteManagementClient.NewListSourceControlsPager -// method. -type WebSiteManagementClientListSourceControlsOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientMoveOptions contains the optional parameters for the WebSiteManagementClient.Move method. -type WebSiteManagementClientMoveOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientRegionalCheckNameAvailabilityOptions contains the optional parameters for the WebSiteManagementClient.RegionalCheckNameAvailability -// method. -type WebSiteManagementClientRegionalCheckNameAvailabilityOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientUpdatePublishingUserOptions contains the optional parameters for the WebSiteManagementClient.UpdatePublishingUser -// method. -type WebSiteManagementClientUpdatePublishingUserOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientUpdateSourceControlOptions contains the optional parameters for the WebSiteManagementClient.UpdateSourceControl -// method. -type WebSiteManagementClientUpdateSourceControlOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientValidateMoveOptions contains the optional parameters for the WebSiteManagementClient.ValidateMove -// method. -type WebSiteManagementClientValidateMoveOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientValidateOptions contains the optional parameters for the WebSiteManagementClient.Validate method. -type WebSiteManagementClientValidateOptions struct { - // placeholder for future optional parameters -} - -// WebSiteManagementClientVerifyHostingEnvironmentVnetOptions contains the optional parameters for the WebSiteManagementClient.VerifyHostingEnvironmentVnet -// method. -type WebSiteManagementClientVerifyHostingEnvironmentVnetOptions struct { - // placeholder for future optional parameters -} - // WorkflowRunActionRepetitionsClientGetOptions contains the optional parameters for the WorkflowRunActionRepetitionsClient.Get // method. type WorkflowRunActionRepetitionsClientGetOptions struct { diff --git a/sdk/resourcemanager/appservice/armappservice/plans_client.go b/sdk/resourcemanager/appservice/armappservice/plans_client.go index 2a3d288ccade..38e67efe7fc2 100644 --- a/sdk/resourcemanager/appservice/armappservice/plans_client.go +++ b/sdk/resourcemanager/appservice/armappservice/plans_client.go @@ -28,7 +28,7 @@ type PlansClient struct { // NewPlansClient creates a new instance of PlansClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewPlansClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PlansClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewPlansClient(subscriptionID string, credential azcore.TokenCredential, op // BeginCreateOrUpdate - Description for Creates or updates an App Service Plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - appServicePlan - Details of the App Service plan. @@ -70,7 +70,7 @@ func (client *PlansClient) BeginCreateOrUpdate(ctx context.Context, resourceGrou // CreateOrUpdate - Description for Creates or updates an App Service Plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -112,7 +112,7 @@ func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appServicePlan); err != nil { @@ -124,7 +124,7 @@ func (client *PlansClient) createOrUpdateCreateRequest(ctx context.Context, reso // CreateOrUpdateVnetRoute - Description for Create or update a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -182,7 +182,7 @@ func (client *PlansClient) createOrUpdateVnetRouteCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, route); err != nil { @@ -203,7 +203,7 @@ func (client *PlansClient) createOrUpdateVnetRouteHandleResponse(resp *http.Resp // Delete - Description for Delete an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientDeleteOptions contains the optional parameters for the PlansClient.Delete method. @@ -248,7 +248,7 @@ func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -257,7 +257,7 @@ func (client *PlansClient) deleteCreateRequest(ctx context.Context, resourceGrou // DeleteHybridConnection - Description for Delete a Hybrid Connection in use in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - namespaceName - Name of the Service Bus namespace. @@ -313,7 +313,7 @@ func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,7 +322,7 @@ func (client *PlansClient) deleteHybridConnectionCreateRequest(ctx context.Conte // DeleteVnetRoute - Description for Delete a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -377,7 +377,7 @@ func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -386,7 +386,7 @@ func (client *PlansClient) deleteVnetRouteCreateRequest(ctx context.Context, res // Get - Description for Get an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientGetOptions contains the optional parameters for the PlansClient.Get method. @@ -432,7 +432,7 @@ func (client *PlansClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -450,7 +450,7 @@ func (client *PlansClient) getHandleResponse(resp *http.Response) (PlansClientGe // GetHybridConnection - Description for Retrieve a Hybrid Connection in use in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - namespaceName - Name of the Service Bus namespace. @@ -507,7 +507,7 @@ func (client *PlansClient) getHybridConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -525,7 +525,7 @@ func (client *PlansClient) getHybridConnectionHandleResponse(resp *http.Response // GetHybridConnectionPlanLimit - Description for Get the maximum number of Hybrid Connections allowed in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientGetHybridConnectionPlanLimitOptions contains the optional parameters for the PlansClient.GetHybridConnectionPlanLimit @@ -572,7 +572,7 @@ func (client *PlansClient) getHybridConnectionPlanLimitCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -590,7 +590,7 @@ func (client *PlansClient) getHybridConnectionPlanLimitHandleResponse(resp *http // GetRouteForVnet - Description for Get a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -646,7 +646,7 @@ func (client *PlansClient) getRouteForVnetCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -661,10 +661,140 @@ func (client *PlansClient) getRouteForVnetHandleResponse(resp *http.Response) (P return result, nil } +// GetServerFarmInstanceDetails - Description for Get the instance details for an app service plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2025-03-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientGetServerFarmInstanceDetailsOptions contains the optional parameters for the PlansClient.GetServerFarmInstanceDetails +// method. +func (client *PlansClient) GetServerFarmInstanceDetails(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetServerFarmInstanceDetailsOptions) (PlansClientGetServerFarmInstanceDetailsResponse, error) { + var err error + const operationName = "PlansClient.GetServerFarmInstanceDetails" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getServerFarmInstanceDetailsCreateRequest(ctx, resourceGroupName, name, options) + if err != nil { + return PlansClientGetServerFarmInstanceDetailsResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return PlansClientGetServerFarmInstanceDetailsResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PlansClientGetServerFarmInstanceDetailsResponse{}, err + } + resp, err := client.getServerFarmInstanceDetailsHandleResponse(httpResp) + return resp, err +} + +// getServerFarmInstanceDetailsCreateRequest creates the GetServerFarmInstanceDetails request. +func (client *PlansClient) getServerFarmInstanceDetailsCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientGetServerFarmInstanceDetailsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/listinstances" + 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", "2025-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getServerFarmInstanceDetailsHandleResponse handles the GetServerFarmInstanceDetails response. +func (client *PlansClient) getServerFarmInstanceDetailsHandleResponse(resp *http.Response) (PlansClientGetServerFarmInstanceDetailsResponse, error) { + result := PlansClientGetServerFarmInstanceDetailsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ServerFarmInstanceDetails); err != nil { + return PlansClientGetServerFarmInstanceDetailsResponse{}, err + } + return result, nil +} + +// GetServerFarmRdpPassword - Description for Get the RDP password for an IsCustomMode ServerFarm. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2025-03-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - options - PlansClientGetServerFarmRdpPasswordOptions contains the optional parameters for the PlansClient.GetServerFarmRdpPassword +// method. +func (client *PlansClient) GetServerFarmRdpPassword(ctx context.Context, resourceGroupName string, name string, options *PlansClientGetServerFarmRdpPasswordOptions) (PlansClientGetServerFarmRdpPasswordResponse, error) { + var err error + const operationName = "PlansClient.GetServerFarmRdpPassword" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getServerFarmRdpPasswordCreateRequest(ctx, resourceGroupName, name, options) + if err != nil { + return PlansClientGetServerFarmRdpPasswordResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return PlansClientGetServerFarmRdpPasswordResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PlansClientGetServerFarmRdpPasswordResponse{}, err + } + resp, err := client.getServerFarmRdpPasswordHandleResponse(httpResp) + return resp, err +} + +// getServerFarmRdpPasswordCreateRequest creates the GetServerFarmRdpPassword request. +func (client *PlansClient) getServerFarmRdpPasswordCreateRequest(ctx context.Context, resourceGroupName string, name string, _ *PlansClientGetServerFarmRdpPasswordOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/getrdppassword" + 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", "2025-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getServerFarmRdpPasswordHandleResponse handles the GetServerFarmRdpPassword response. +func (client *PlansClient) getServerFarmRdpPasswordHandleResponse(resp *http.Response) (PlansClientGetServerFarmRdpPasswordResponse, error) { + result := PlansClientGetServerFarmRdpPasswordResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ServerFarmRdpDetails); err != nil { + return PlansClientGetServerFarmRdpPasswordResponse{}, err + } + return result, nil +} + // GetServerFarmSKUs - Description for Gets all selectable SKUs for a given App Service Plan // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of App Service Plan // - options - PlansClientGetServerFarmSKUsOptions contains the optional parameters for the PlansClient.GetServerFarmSKUs method. @@ -710,7 +840,7 @@ func (client *PlansClient) getServerFarmSKUsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -728,7 +858,7 @@ func (client *PlansClient) getServerFarmSKUsHandleResponse(resp *http.Response) // GetVnetFromServerFarm - Description for Get a Virtual Network associated with an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -780,7 +910,7 @@ func (client *PlansClient) getVnetFromServerFarmCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -798,7 +928,7 @@ func (client *PlansClient) getVnetFromServerFarmHandleResponse(resp *http.Respon // GetVnetGateway - Description for Get a Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -854,7 +984,7 @@ func (client *PlansClient) getVnetGatewayCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -871,7 +1001,7 @@ func (client *PlansClient) getVnetGatewayHandleResponse(resp *http.Response) (Pl // NewListPager - Description for Get all App Service plans for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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]{ @@ -908,7 +1038,7 @@ func (client *PlansClient) listCreateRequest(ctx context.Context, options *Plans return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.Detailed != nil { reqQP.Set("detailed", strconv.FormatBool(*options.Detailed)) } @@ -928,7 +1058,7 @@ func (client *PlansClient) listHandleResponse(resp *http.Response) (PlansClientL // NewListByResourceGroupPager - Description for Get all App Service plans in a resource group. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - PlansClientListByResourceGroupOptions contains the optional parameters for the PlansClient.NewListByResourceGroupPager // method. @@ -971,7 +1101,7 @@ func (client *PlansClient) listByResourceGroupCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -989,7 +1119,7 @@ func (client *PlansClient) listByResourceGroupHandleResponse(resp *http.Response // ListCapabilities - Description for List all capabilities of an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientListCapabilitiesOptions contains the optional parameters for the PlansClient.ListCapabilities method. @@ -1035,7 +1165,7 @@ func (client *PlansClient) listCapabilitiesCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1053,7 +1183,7 @@ func (client *PlansClient) listCapabilitiesHandleResponse(resp *http.Response) ( // ListHybridConnectionKeys - Description for Get the send key name and value of a Hybrid Connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - namespaceName - The name of the Service Bus namespace. @@ -1110,7 +1240,7 @@ func (client *PlansClient) listHybridConnectionKeysCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1127,7 +1257,7 @@ func (client *PlansClient) listHybridConnectionKeysHandleResponse(resp *http.Res // NewListHybridConnectionsPager - Description for Retrieve all Hybrid Connections in use in an App Service plan. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientListHybridConnectionsOptions contains the optional parameters for the PlansClient.NewListHybridConnectionsPager @@ -1175,7 +1305,7 @@ func (client *PlansClient) listHybridConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1193,7 +1323,7 @@ func (client *PlansClient) listHybridConnectionsHandleResponse(resp *http.Respon // ListRoutesForVnet - Description for Get all routes that are associated with a Virtual Network in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -1244,7 +1374,7 @@ func (client *PlansClient) listRoutesForVnetCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1261,7 +1391,7 @@ func (client *PlansClient) listRoutesForVnetHandleResponse(resp *http.Response) // NewListUsagesPager - Description for Gets server farm usage information // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of App Service Plan // - options - PlansClientListUsagesOptions contains the optional parameters for the PlansClient.NewListUsagesPager method. @@ -1308,7 +1438,7 @@ func (client *PlansClient) listUsagesCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -1331,7 +1461,7 @@ func (client *PlansClient) listUsagesHandleResponse(resp *http.Response) (PlansC // ListVnets - Description for Get all Virtual Networks associated with an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientListVnetsOptions contains the optional parameters for the PlansClient.ListVnets method. @@ -1377,7 +1507,7 @@ func (client *PlansClient) listVnetsCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1394,7 +1524,7 @@ func (client *PlansClient) listVnetsHandleResponse(resp *http.Response) (PlansCl // NewListWebAppsPager - Description for Get all apps associated with an App Service plan. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientListWebAppsOptions contains the optional parameters for the PlansClient.NewListWebAppsPager method. @@ -1447,7 +1577,7 @@ func (client *PlansClient) listWebAppsCreateRequest(ctx context.Context, resourc if options != nil && options.Top != nil { reqQP.Set("$top", *options.Top) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -1469,7 +1599,7 @@ func (client *PlansClient) listWebAppsHandleResponse(resp *http.Response) (Plans // NewListWebAppsByHybridConnectionPager - Description for Get all apps that use a Hybrid Connection in an App Service Plan. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - namespaceName - Name of the Hybrid Connection namespace. @@ -1527,7 +1657,7 @@ func (client *PlansClient) listWebAppsByHybridConnectionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1545,7 +1675,7 @@ func (client *PlansClient) listWebAppsByHybridConnectionHandleResponse(resp *htt // RebootWorker - Description for Reboot a worker machine in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - workerName - Name of worker machine, which typically starts with RD. @@ -1595,16 +1725,86 @@ func (client *PlansClient) rebootWorkerCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } +// RecycleManagedInstanceWorker - Description for Recycles a managed instance worker machine. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2025-03-01 +// - resourceGroupName - Name of the resource group to which the resource belongs. +// - name - Name of the App Service plan. +// - workerName - Name of worker machine. +// - options - PlansClientRecycleManagedInstanceWorkerOptions contains the optional parameters for the PlansClient.RecycleManagedInstanceWorker +// method. +func (client *PlansClient) RecycleManagedInstanceWorker(ctx context.Context, resourceGroupName string, name string, workerName string, options *PlansClientRecycleManagedInstanceWorkerOptions) (PlansClientRecycleManagedInstanceWorkerResponse, error) { + var err error + const operationName = "PlansClient.RecycleManagedInstanceWorker" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.recycleManagedInstanceWorkerCreateRequest(ctx, resourceGroupName, name, workerName, options) + if err != nil { + return PlansClientRecycleManagedInstanceWorkerResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return PlansClientRecycleManagedInstanceWorkerResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return PlansClientRecycleManagedInstanceWorkerResponse{}, err + } + resp, err := client.recycleManagedInstanceWorkerHandleResponse(httpResp) + return resp, err +} + +// recycleManagedInstanceWorkerCreateRequest creates the RecycleManagedInstanceWorker request. +func (client *PlansClient) recycleManagedInstanceWorkerCreateRequest(ctx context.Context, resourceGroupName string, name string, workerName string, _ *PlansClientRecycleManagedInstanceWorkerOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/recycleinstance" + 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 workerName == "" { + return nil, errors.New("parameter workerName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workerName}", url.PathEscape(workerName)) + 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", "2025-03-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// recycleManagedInstanceWorkerHandleResponse handles the RecycleManagedInstanceWorker response. +func (client *PlansClient) recycleManagedInstanceWorkerHandleResponse(resp *http.Response) (PlansClientRecycleManagedInstanceWorkerResponse, error) { + result := PlansClientRecycleManagedInstanceWorkerResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Operation); err != nil { + return PlansClientRecycleManagedInstanceWorkerResponse{}, err + } + return result, nil +} + // RestartWebApps - Description for Restart all apps in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - options - PlansClientRestartWebAppsOptions contains the optional parameters for the PlansClient.RestartWebApps method. @@ -1649,7 +1849,7 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -1661,7 +1861,7 @@ func (client *PlansClient) restartWebAppsCreateRequest(ctx context.Context, reso // Update - Description for Creates or updates an App Service Plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - appServicePlan - Details of the App Service plan. @@ -1708,7 +1908,7 @@ func (client *PlansClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appServicePlan); err != nil { @@ -1729,7 +1929,7 @@ func (client *PlansClient) updateHandleResponse(resp *http.Response) (PlansClien // UpdateVnetGateway - Description for Update a Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -1786,7 +1986,7 @@ func (client *PlansClient) updateVnetGatewayCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -1807,7 +2007,7 @@ func (client *PlansClient) updateVnetGatewayHandleResponse(resp *http.Response) // UpdateVnetRoute - Description for Create or update a Virtual Network route in an App Service plan. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the App Service plan. // - vnetName - Name of the Virtual Network. @@ -1864,7 +2064,7 @@ func (client *PlansClient) updateVnetRouteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 998b43cc0a39..5bed6cce8e3e 100644 --- a/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/plans_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAppServicePlans.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAppServicePlans.json func ExamplePlansClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -98,7 +98,7 @@ func ExamplePlansClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAppServicePlansByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAppServicePlansByResourceGroup.json func ExamplePlansClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -178,7 +178,7 @@ func ExamplePlansClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAppServicePlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAppServicePlan.json func ExamplePlansClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -224,7 +224,7 @@ func ExamplePlansClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateAppServicePlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateAppServicePlan.json func ExamplePlansClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -284,7 +284,7 @@ func ExamplePlansClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteAppServicePlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteAppServicePlan.json func ExamplePlansClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -301,7 +301,7 @@ func ExamplePlansClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchAppServicePlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchAppServicePlan.json func ExamplePlansClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/provider_client.go b/sdk/resourcemanager/appservice/armappservice/provider_client.go index 7c7d273358fb..1f9f5a16ad1f 100644 --- a/sdk/resourcemanager/appservice/armappservice/provider_client.go +++ b/sdk/resourcemanager/appservice/armappservice/provider_client.go @@ -27,7 +27,7 @@ type ProviderClient struct { // NewProviderClient creates a new instance of ProviderClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewProviderClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProviderClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -42,7 +42,7 @@ func NewProviderClient(subscriptionID string, credential azcore.TokenCredential, // NewGetAvailableStacksPager - Description for Get available application frameworks and their versions // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - ProviderClientGetAvailableStacksOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksPager // method. func (client *ProviderClient) NewGetAvailableStacksPager(options *ProviderClientGetAvailableStacksOptions) *runtime.Pager[ProviderClientGetAvailableStacksResponse] { @@ -76,7 +76,7 @@ func (client *ProviderClient) getAvailableStacksCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } @@ -96,7 +96,7 @@ func (client *ProviderClient) getAvailableStacksHandleResponse(resp *http.Respon // NewGetAvailableStacksOnPremPager - Description for Get available application frameworks and their versions // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - ProviderClientGetAvailableStacksOnPremOptions contains the optional parameters for the ProviderClient.NewGetAvailableStacksOnPremPager // method. func (client *ProviderClient) NewGetAvailableStacksOnPremPager(options *ProviderClientGetAvailableStacksOnPremOptions) *runtime.Pager[ProviderClientGetAvailableStacksOnPremResponse] { @@ -134,7 +134,7 @@ func (client *ProviderClient) getAvailableStacksOnPremCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.OSTypeSelected != nil { reqQP.Set("osTypeSelected", string(*options.OSTypeSelected)) } @@ -154,7 +154,7 @@ func (client *ProviderClient) getAvailableStacksOnPremHandleResponse(resp *http. // NewGetFunctionAppStacksPager - Description for Get available Function app frameworks and their versions // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - ProviderClientGetFunctionAppStacksOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksPager // method. func (client *ProviderClient) NewGetFunctionAppStacksPager(options *ProviderClientGetFunctionAppStacksOptions) *runtime.Pager[ProviderClientGetFunctionAppStacksResponse] { @@ -188,7 +188,7 @@ func (client *ProviderClient) getFunctionAppStacksCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -209,7 +209,7 @@ func (client *ProviderClient) getFunctionAppStacksHandleResponse(resp *http.Resp // NewGetFunctionAppStacksForLocationPager - Description for Get available Function app frameworks and their versions for // location // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - location - Function App stack location. // - options - ProviderClientGetFunctionAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetFunctionAppStacksForLocationPager // method. @@ -248,7 +248,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -268,7 +268,7 @@ func (client *ProviderClient) getFunctionAppStacksForLocationHandleResponse(resp // NewGetWebAppStacksPager - Description for Get available Web app frameworks and their versions // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - ProviderClientGetWebAppStacksOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksPager // method. func (client *ProviderClient) NewGetWebAppStacksPager(options *ProviderClientGetWebAppStacksOptions) *runtime.Pager[ProviderClientGetWebAppStacksResponse] { @@ -302,7 +302,7 @@ func (client *ProviderClient) getWebAppStacksCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -322,7 +322,7 @@ func (client *ProviderClient) getWebAppStacksHandleResponse(resp *http.Response) // NewGetWebAppStacksForLocationPager - Description for Get available Web app frameworks and their versions for location // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - location - Web App stack location. // - options - ProviderClientGetWebAppStacksForLocationOptions contains the optional parameters for the ProviderClient.NewGetWebAppStacksForLocationPager // method. @@ -361,7 +361,7 @@ func (client *ProviderClient) getWebAppStacksForLocationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.StackOsType != nil { reqQP.Set("stackOsType", string(*options.StackOsType)) } @@ -382,7 +382,7 @@ func (client *ProviderClient) getWebAppStacksForLocationHandleResponse(resp *htt // NewListOperationsPager - Description for Gets all available operations for the Microsoft.Web resource provider. Also exposes // resource metric definitions // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - ProviderClientListOperationsOptions contains the optional parameters for the ProviderClient.NewListOperationsPager // method. func (client *ProviderClient) NewListOperationsPager(options *ProviderClientListOperationsOptions) *runtime.Pager[ProviderClientListOperationsResponse] { @@ -416,7 +416,7 @@ func (client *ProviderClient) listOperationsCreateRequest(ctx context.Context, _ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 41879ff8f8b7..18fee2f15834 100644 --- a/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/provider_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetFunctionAppStacks.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetFunctionAppStacks.json func ExampleProviderClient_NewGetFunctionAppStacksPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -767,7 +767,7 @@ func ExampleProviderClient_NewGetFunctionAppStacksPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetFunctionAppStacksForLocation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetFunctionAppStacksForLocation.json func ExampleProviderClient_NewGetFunctionAppStacksForLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1523,7 +1523,7 @@ func ExampleProviderClient_NewGetFunctionAppStacksForLocationPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppStacksForLocation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppStacksForLocation.json func ExampleProviderClient_NewGetWebAppStacksForLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2959,7 +2959,7 @@ func ExampleProviderClient_NewGetWebAppStacksForLocationPager() { // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-11-01T00:00:00.000Z"); return t}()), + // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-01T00:00:00.000Z"); return t}()), // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, @@ -2971,7 +2971,7 @@ func ExampleProviderClient_NewGetWebAppStacksForLocationPager() { // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-11-01T00:00:00.000Z"); return t}()), + // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-01T00:00:00.000Z"); return t}()), // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, @@ -4420,7 +4420,7 @@ func ExampleProviderClient_NewGetWebAppStacksForLocationPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListOperations.json func ExampleProviderClient_NewListOperationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -10143,7 +10143,7 @@ func ExampleProviderClient_NewListOperationsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppStacks.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppStacks.json func ExampleProviderClient_NewGetWebAppStacksPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -11575,7 +11575,7 @@ func ExampleProviderClient_NewGetWebAppStacksPager() { // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-11-01T00:00:00.000Z"); return t}()), + // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-01T00:00:00.000Z"); return t}()), // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, @@ -11587,7 +11587,7 @@ func ExampleProviderClient_NewGetWebAppStacksPager() { // AppInsightsSettings: &armappservice.AppInsightsWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, - // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2024-11-01T00:00:00.000Z"); return t}()), + // EndOfLifeDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-03-01T00:00:00.000Z"); return t}()), // GitHubActionSettings: &armappservice.GitHubActionWebAppStackSettings{ // IsSupported: to.Ptr(false), // }, diff --git a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go index a87717644a35..a9fee142cd0f 100644 --- a/sdk/resourcemanager/appservice/armappservice/recommendations_client.go +++ b/sdk/resourcemanager/appservice/armappservice/recommendations_client.go @@ -28,7 +28,7 @@ type RecommendationsClient struct { // NewRecommendationsClient creates a new instance of RecommendationsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewRecommendationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RecommendationsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewRecommendationsClient(subscriptionID string, credential azcore.TokenCred // DisableAllForHostingEnvironment - Description for Disable all recommendations for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - environmentName - Name of the app. // - options - RecommendationsClientDisableAllForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.DisableAllForHostingEnvironment @@ -90,7 +90,7 @@ func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") reqQP.Set("environmentName", environmentName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -100,7 +100,7 @@ func (client *RecommendationsClient) disableAllForHostingEnvironmentCreateReques // DisableAllForWebApp - Description for Disable all recommendations for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Name of the app. // - options - RecommendationsClientDisableAllForWebAppOptions contains the optional parameters for the RecommendationsClient.DisableAllForWebApp @@ -146,7 +146,7 @@ func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -155,7 +155,7 @@ func (client *RecommendationsClient) disableAllForWebAppCreateRequest(ctx contex // DisableRecommendationForHostingEnvironment - Description for Disables the specific rule for a web site permanently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - environmentName - Site name // - name - Rule name @@ -206,7 +206,7 @@ func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") reqQP.Set("environmentName", environmentName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -216,7 +216,7 @@ func (client *RecommendationsClient) disableRecommendationForHostingEnvironmentC // DisableRecommendationForSite - Description for Disables the specific rule for a web site permanently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Site name // - name - Rule name @@ -267,7 +267,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -277,7 +277,7 @@ func (client *RecommendationsClient) disableRecommendationForSiteCreateRequest(c // in the future. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - name - Rule name // - options - RecommendationsClientDisableRecommendationForSubscriptionOptions contains the optional parameters for the RecommendationsClient.DisableRecommendationForSubscription // method. @@ -318,7 +318,7 @@ func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,7 +327,7 @@ func (client *RecommendationsClient) disableRecommendationForSubscriptionCreateR // GetRuleDetailsByHostingEnvironment - Description for Get a recommendation rule for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - hostingEnvironmentName - Name of the hosting environment. // - name - Name of the recommendation. @@ -379,7 +379,7 @@ func (client *RecommendationsClient) getRuleDetailsByHostingEnvironmentCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } @@ -403,7 +403,7 @@ func (client *RecommendationsClient) getRuleDetailsByHostingEnvironmentHandleRes // GetRuleDetailsByWebApp - Description for Get a recommendation rule for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Name of the app. // - name - Name of the recommendation. @@ -455,7 +455,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.RecommendationID != nil { reqQP.Set("recommendationId", *options.RecommendationID) } @@ -478,7 +478,7 @@ func (client *RecommendationsClient) getRuleDetailsByWebAppHandleResponse(resp * // NewListPager - Description for List all recommendations for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - RecommendationsClientListOptions contains the optional parameters for the RecommendationsClient.NewListPager // method. func (client *RecommendationsClient) NewListPager(options *RecommendationsClientListOptions) *runtime.Pager[RecommendationsClientListResponse] { @@ -516,7 +516,7 @@ func (client *RecommendationsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -542,7 +542,7 @@ func (client *RecommendationsClient) listHandleResponse(resp *http.Response) (Re // NewListHistoryForHostingEnvironmentPager - Description for Get past recommendations for an app, optionally specified by // the time range. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - hostingEnvironmentName - Name of the hosting environment. // - options - RecommendationsClientListHistoryForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.NewListHistoryForHostingEnvironmentPager @@ -590,7 +590,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } @@ -615,7 +615,7 @@ func (client *RecommendationsClient) listHistoryForHostingEnvironmentHandleRespo // NewListHistoryForWebAppPager - Description for Get past recommendations for an app, optionally specified by the time range. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Name of the app. // - options - RecommendationsClientListHistoryForWebAppOptions contains the optional parameters for the RecommendationsClient.NewListHistoryForWebAppPager @@ -663,7 +663,7 @@ func (client *RecommendationsClient) listHistoryForWebAppCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.ExpiredOnly != nil { reqQP.Set("expiredOnly", strconv.FormatBool(*options.ExpiredOnly)) } @@ -688,7 +688,7 @@ func (client *RecommendationsClient) listHistoryForWebAppHandleResponse(resp *ht // NewListRecommendedRulesForHostingEnvironmentPager - Description for Get all recommendations for a hosting environment. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - hostingEnvironmentName - Name of the app. // - options - RecommendationsClientListRecommendedRulesForHostingEnvironmentOptions contains the optional parameters for the @@ -736,7 +736,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -761,7 +761,7 @@ func (client *RecommendationsClient) listRecommendedRulesForHostingEnvironmentHa // NewListRecommendedRulesForWebAppPager - Description for Get all recommendations for an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Name of the app. // - options - RecommendationsClientListRecommendedRulesForWebAppOptions contains the optional parameters for the RecommendationsClient.NewListRecommendedRulesForWebAppPager @@ -809,7 +809,7 @@ func (client *RecommendationsClient) listRecommendedRulesForWebAppCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.Featured != nil { reqQP.Set("featured", strconv.FormatBool(*options.Featured)) } @@ -835,7 +835,7 @@ func (client *RecommendationsClient) listRecommendedRulesForWebAppHandleResponse // ResetAllFilters - Description for Reset all recommendation opt-out settings for a subscription. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - RecommendationsClientResetAllFiltersOptions contains the optional parameters for the RecommendationsClient.ResetAllFilters // method. func (client *RecommendationsClient) ResetAllFilters(ctx context.Context, options *RecommendationsClientResetAllFiltersOptions) (RecommendationsClientResetAllFiltersResponse, error) { @@ -871,7 +871,7 @@ func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -880,7 +880,7 @@ func (client *RecommendationsClient) resetAllFiltersCreateRequest(ctx context.Co // ResetAllFiltersForHostingEnvironment - Description for Reset all recommendation opt-out settings for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - environmentName - Name of the app. // - options - RecommendationsClientResetAllFiltersForHostingEnvironmentOptions contains the optional parameters for the RecommendationsClient.ResetAllFiltersForHostingEnvironment @@ -926,7 +926,7 @@ func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") reqQP.Set("environmentName", environmentName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -936,7 +936,7 @@ func (client *RecommendationsClient) resetAllFiltersForHostingEnvironmentCreateR // ResetAllFiltersForWebApp - Description for Reset all recommendation opt-out settings for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - siteName - Name of the app. // - options - RecommendationsClientResetAllFiltersForWebAppOptions contains the optional parameters for the RecommendationsClient.ResetAllFiltersForWebApp @@ -982,7 +982,7 @@ func (client *RecommendationsClient) resetAllFiltersForWebAppCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 0fb3a53b712f..b15e645ab955 100644 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go +++ b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client.go @@ -27,7 +27,7 @@ type ResourceHealthMetadataClient struct { // NewResourceHealthMetadataClient creates a new instance of ResourceHealthMetadataClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewResourceHealthMetadataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceHealthMetadataClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewResourceHealthMetadataClient(subscriptionID string, credential azcore.To // GetBySite - Description for Gets the category of ResourceHealthMetadata to use for the given site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app // - options - ResourceHealthMetadataClientGetBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.GetBySite @@ -90,7 +90,7 @@ func (client *ResourceHealthMetadataClient) getBySiteCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -108,7 +108,7 @@ func (client *ResourceHealthMetadataClient) getBySiteHandleResponse(resp *http.R // GetBySiteSlot - Description for Gets the category of ResourceHealthMetadata to use for the given site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app // - slot - Name of web app slot. If not specified then will default to production slot. @@ -160,7 +160,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -177,7 +177,7 @@ func (client *ResourceHealthMetadataClient) getBySiteSlotHandleResponse(resp *ht // NewListPager - Description for List all ResourceHealthMetadata for all sites in the subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - options - ResourceHealthMetadataClientListOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListPager // method. func (client *ResourceHealthMetadataClient) NewListPager(options *ResourceHealthMetadataClientListOptions) *runtime.Pager[ResourceHealthMetadataClientListResponse] { @@ -215,7 +215,7 @@ func (client *ResourceHealthMetadataClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -233,7 +233,7 @@ func (client *ResourceHealthMetadataClient) listHandleResponse(resp *http.Respon // NewListByResourceGroupPager - Description for List all ResourceHealthMetadata for all sites in the resource group in the // subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - ResourceHealthMetadataClientListByResourceGroupOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListByResourceGroupPager // method. @@ -276,7 +276,7 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -293,7 +293,7 @@ func (client *ResourceHealthMetadataClient) listByResourceGroupHandleResponse(re // NewListBySitePager - Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - ResourceHealthMetadataClientListBySiteOptions contains the optional parameters for the ResourceHealthMetadataClient.NewListBySitePager @@ -341,7 +341,7 @@ func (client *ResourceHealthMetadataClient) listBySiteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -358,7 +358,7 @@ func (client *ResourceHealthMetadataClient) listBySiteHandleResponse(resp *http. // NewListBySiteSlotPager - Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -411,7 +411,7 @@ func (client *ResourceHealthMetadataClient) listBySiteSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 40445df686d2..af63ff6e434c 100644 --- a/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/resourcehealthmetadata_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListResourceHealthMetadataBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListResourceHealthMetadataBySubscription.json func ExampleResourceHealthMetadataClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,7 +54,7 @@ func ExampleResourceHealthMetadataClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListResourceHealthMetadataByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListResourceHealthMetadataByResourceGroup.json func ExampleResourceHealthMetadataClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -91,7 +91,7 @@ func ExampleResourceHealthMetadataClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListResourceHealthMetadataBySite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListResourceHealthMetadataBySite.json func ExampleResourceHealthMetadataClient_NewListBySitePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -128,7 +128,7 @@ func ExampleResourceHealthMetadataClient_NewListBySitePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetResourceHealthMetadataBySite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetResourceHealthMetadataBySite.json func ExampleResourceHealthMetadataClient_GetBySite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -157,7 +157,7 @@ func ExampleResourceHealthMetadataClient_GetBySite() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListResourceHealthMetadataBySite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListResourceHealthMetadataBySite.json func ExampleResourceHealthMetadataClient_NewListBySiteSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -194,7 +194,7 @@ func ExampleResourceHealthMetadataClient_NewListBySiteSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetResourceHealthMetadataBySite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetResourceHealthMetadataBySite.json func ExampleResourceHealthMetadataClient_GetBySiteSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/responses.go b/sdk/resourcemanager/appservice/armappservice/responses.go index 060b00ab13de..5062bab0f7c4 100644 --- a/sdk/resourcemanager/appservice/armappservice/responses.go +++ b/sdk/resourcemanager/appservice/armappservice/responses.go @@ -764,6 +764,119 @@ type KubeEnvironmentsClientUpdateResponse struct { KubeEnvironment } +// ManagementClientCheckNameAvailabilityResponse contains the response from method ManagementClient.CheckNameAvailability. +type ManagementClientCheckNameAvailabilityResponse struct { + // Information regarding availability of a resource name. + ResourceNameAvailability +} + +// ManagementClientGetPublishingUserResponse contains the response from method ManagementClient.GetPublishingUser. +type ManagementClientGetPublishingUserResponse struct { + // User credentials used for publishing activity. + User +} + +// ManagementClientGetSourceControlResponse contains the response from method ManagementClient.GetSourceControl. +type ManagementClientGetSourceControlResponse struct { + // The source control OAuth token. + SourceControl +} + +// ManagementClientGetSubscriptionDeploymentLocationsResponse contains the response from method ManagementClient.GetSubscriptionDeploymentLocations. +type ManagementClientGetSubscriptionDeploymentLocationsResponse struct { + // List of available locations (regions or App Service Environments) for + // deployment of App Service resources. + DeploymentLocations +} + +// ManagementClientListAseRegionsResponse contains the response from method ManagementClient.NewListAseRegionsPager. +type ManagementClientListAseRegionsResponse struct { + // Collection of ASE regions. + AseRegionCollection +} + +// ManagementClientListBillingMetersResponse contains the response from method ManagementClient.NewListBillingMetersPager. +type ManagementClientListBillingMetersResponse struct { + // Collection of Billing Meters + BillingMeterCollection +} + +// ManagementClientListCustomHostNameSitesResponse contains the response from method ManagementClient.NewListCustomHostNameSitesPager. +type ManagementClientListCustomHostNameSitesResponse struct { + // Collection of custom hostname sites + CustomHostnameSitesCollection +} + +// ManagementClientListGeoRegionsResponse contains the response from method ManagementClient.NewListGeoRegionsPager. +type ManagementClientListGeoRegionsResponse struct { + // Collection of geographical regions. + GeoRegionCollection +} + +// ManagementClientListPremierAddOnOffersResponse contains the response from method ManagementClient.NewListPremierAddOnOffersPager. +type ManagementClientListPremierAddOnOffersResponse struct { + // Collection of premier add-on offers. + PremierAddOnOfferCollection +} + +// ManagementClientListSKUsResponse contains the response from method ManagementClient.ListSKUs. +type ManagementClientListSKUsResponse struct { + // Collection of SKU information. + SKUInfos +} + +// ManagementClientListSiteIdentifiersAssignedToHostNameResponse contains the response from method ManagementClient.NewListSiteIdentifiersAssignedToHostNamePager. +type ManagementClientListSiteIdentifiersAssignedToHostNameResponse struct { + // Collection of identifiers. + IdentifierCollection +} + +// ManagementClientListSourceControlsResponse contains the response from method ManagementClient.NewListSourceControlsPager. +type ManagementClientListSourceControlsResponse struct { + // Collection of source controls. + SourceControlCollection +} + +// ManagementClientMoveResponse contains the response from method ManagementClient.Move. +type ManagementClientMoveResponse struct { + // placeholder for future response values +} + +// ManagementClientRegionalCheckNameAvailabilityResponse contains the response from method ManagementClient.RegionalCheckNameAvailability. +type ManagementClientRegionalCheckNameAvailabilityResponse struct { + // Information regarding availability of a resource name for DNL apps with regionalized default hostnames. + DnlResourceNameAvailability +} + +// ManagementClientUpdatePublishingUserResponse contains the response from method ManagementClient.UpdatePublishingUser. +type ManagementClientUpdatePublishingUserResponse struct { + // User credentials used for publishing activity. + User +} + +// ManagementClientUpdateSourceControlResponse contains the response from method ManagementClient.UpdateSourceControl. +type ManagementClientUpdateSourceControlResponse struct { + // The source control OAuth token. + SourceControl +} + +// ManagementClientValidateMoveResponse contains the response from method ManagementClient.ValidateMove. +type ManagementClientValidateMoveResponse struct { + // placeholder for future response values +} + +// ManagementClientValidateResponse contains the response from method ManagementClient.Validate. +type ManagementClientValidateResponse struct { + // Describes the result of resource validation. + ValidateResponse +} + +// ManagementClientVerifyHostingEnvironmentVnetResponse contains the response from method ManagementClient.VerifyHostingEnvironmentVnet. +type ManagementClientVerifyHostingEnvironmentVnetResponse struct { + // A class that describes the reason for a validation failure. + VnetValidationFailureDetails +} + // PlansClientCreateOrUpdateResponse contains the response from method PlansClient.BeginCreateOrUpdate. type PlansClientCreateOrUpdateResponse struct { // App Service plan. @@ -815,6 +928,18 @@ type PlansClientGetRouteForVnetResponse struct { VnetRouteArray []*VnetRoute } +// PlansClientGetServerFarmInstanceDetailsResponse contains the response from method PlansClient.GetServerFarmInstanceDetails. +type PlansClientGetServerFarmInstanceDetailsResponse struct { + // Represents instance details for an app service plan. + ServerFarmInstanceDetails +} + +// PlansClientGetServerFarmRdpPasswordResponse contains the response from method PlansClient.GetServerFarmRdpPassword. +type PlansClientGetServerFarmRdpPasswordResponse struct { + // Server Farm RDP connection details. + ServerFarmRdpDetails +} + // PlansClientGetServerFarmSKUsResponse contains the response from method PlansClient.GetServerFarmSKUs. type PlansClientGetServerFarmSKUsResponse struct { // Anything @@ -898,6 +1023,12 @@ type PlansClientRebootWorkerResponse struct { // placeholder for future response values } +// PlansClientRecycleManagedInstanceWorkerResponse contains the response from method PlansClient.RecycleManagedInstanceWorker. +type PlansClientRecycleManagedInstanceWorkerResponse struct { + // An operation on a resource. + Operation +} + // PlansClientRestartWebAppsResponse contains the response from method PlansClient.RestartWebApps. type PlansClientRestartWebAppsResponse struct { // placeholder for future response values @@ -3985,119 +4116,6 @@ type WebAppsClientUpdateVnetConnectionSlotResponse struct { VnetInfoResource } -// WebSiteManagementClientCheckNameAvailabilityResponse contains the response from method WebSiteManagementClient.CheckNameAvailability. -type WebSiteManagementClientCheckNameAvailabilityResponse struct { - // Information regarding availability of a resource name. - ResourceNameAvailability -} - -// WebSiteManagementClientGetPublishingUserResponse contains the response from method WebSiteManagementClient.GetPublishingUser. -type WebSiteManagementClientGetPublishingUserResponse struct { - // User credentials used for publishing activity. - User -} - -// WebSiteManagementClientGetSourceControlResponse contains the response from method WebSiteManagementClient.GetSourceControl. -type WebSiteManagementClientGetSourceControlResponse struct { - // The source control OAuth token. - SourceControl -} - -// WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse contains the response from method WebSiteManagementClient.GetSubscriptionDeploymentLocations. -type WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse struct { - // List of available locations (regions or App Service Environments) for - // deployment of App Service resources. - DeploymentLocations -} - -// WebSiteManagementClientListAseRegionsResponse contains the response from method WebSiteManagementClient.NewListAseRegionsPager. -type WebSiteManagementClientListAseRegionsResponse struct { - // Collection of ASE regions. - AseRegionCollection -} - -// WebSiteManagementClientListBillingMetersResponse contains the response from method WebSiteManagementClient.NewListBillingMetersPager. -type WebSiteManagementClientListBillingMetersResponse struct { - // Collection of Billing Meters - BillingMeterCollection -} - -// WebSiteManagementClientListCustomHostNameSitesResponse contains the response from method WebSiteManagementClient.NewListCustomHostNameSitesPager. -type WebSiteManagementClientListCustomHostNameSitesResponse struct { - // Collection of custom hostname sites - CustomHostnameSitesCollection -} - -// WebSiteManagementClientListGeoRegionsResponse contains the response from method WebSiteManagementClient.NewListGeoRegionsPager. -type WebSiteManagementClientListGeoRegionsResponse struct { - // Collection of geographical regions. - GeoRegionCollection -} - -// WebSiteManagementClientListPremierAddOnOffersResponse contains the response from method WebSiteManagementClient.NewListPremierAddOnOffersPager. -type WebSiteManagementClientListPremierAddOnOffersResponse struct { - // Collection of premier add-on offers. - PremierAddOnOfferCollection -} - -// WebSiteManagementClientListSKUsResponse contains the response from method WebSiteManagementClient.ListSKUs. -type WebSiteManagementClientListSKUsResponse struct { - // Collection of SKU information. - SKUInfos -} - -// WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse contains the response from method WebSiteManagementClient.NewListSiteIdentifiersAssignedToHostNamePager. -type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse struct { - // Collection of identifiers. - IdentifierCollection -} - -// WebSiteManagementClientListSourceControlsResponse contains the response from method WebSiteManagementClient.NewListSourceControlsPager. -type WebSiteManagementClientListSourceControlsResponse struct { - // Collection of source controls. - SourceControlCollection -} - -// WebSiteManagementClientMoveResponse contains the response from method WebSiteManagementClient.Move. -type WebSiteManagementClientMoveResponse struct { - // placeholder for future response values -} - -// WebSiteManagementClientRegionalCheckNameAvailabilityResponse contains the response from method WebSiteManagementClient.RegionalCheckNameAvailability. -type WebSiteManagementClientRegionalCheckNameAvailabilityResponse struct { - // Information regarding availability of a resource name for DNL apps with regionalized default hostnames. - DnlResourceNameAvailability -} - -// WebSiteManagementClientUpdatePublishingUserResponse contains the response from method WebSiteManagementClient.UpdatePublishingUser. -type WebSiteManagementClientUpdatePublishingUserResponse struct { - // User credentials used for publishing activity. - User -} - -// WebSiteManagementClientUpdateSourceControlResponse contains the response from method WebSiteManagementClient.UpdateSourceControl. -type WebSiteManagementClientUpdateSourceControlResponse struct { - // The source control OAuth token. - SourceControl -} - -// WebSiteManagementClientValidateMoveResponse contains the response from method WebSiteManagementClient.ValidateMove. -type WebSiteManagementClientValidateMoveResponse struct { - // placeholder for future response values -} - -// WebSiteManagementClientValidateResponse contains the response from method WebSiteManagementClient.Validate. -type WebSiteManagementClientValidateResponse struct { - // Describes the result of resource validation. - ValidateResponse -} - -// WebSiteManagementClientVerifyHostingEnvironmentVnetResponse contains the response from method WebSiteManagementClient.VerifyHostingEnvironmentVnet. -type WebSiteManagementClientVerifyHostingEnvironmentVnetResponse struct { - // A class that describes the reason for a validation failure. - VnetValidationFailureDetails -} - // WorkflowRunActionRepetitionsClientGetResponse contains the response from method WorkflowRunActionRepetitionsClient.Get. type WorkflowRunActionRepetitionsClientGetResponse struct { // The workflow run action repetition definition. diff --git a/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go index 8d161275de99..c206b85f6eeb 100644 --- a/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go +++ b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client.go @@ -27,7 +27,7 @@ type SiteCertificatesClient struct { // 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. +// - options - Contains optional client configuration. 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 { @@ -43,7 +43,7 @@ func NewSiteCertificatesClient(subscriptionID string, credential azcore.TokenCre // 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 +// Generated from API version 2025-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - name - Name of the site. // - certificateName - Name of the certificate. @@ -96,7 +96,7 @@ func (client *SiteCertificatesClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { @@ -117,7 +117,7 @@ func (client *SiteCertificatesClient) createOrUpdateHandleResponse(resp *http.Re // 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 +// Generated from API version 2025-03-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. @@ -175,7 +175,7 @@ func (client *SiteCertificatesClient) createOrUpdateSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { @@ -196,7 +196,7 @@ func (client *SiteCertificatesClient) createOrUpdateSlotHandleResponse(resp *htt // Delete - Delete a certificate from the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - name - Name of the site. // - certificateName - Name of the certificate. @@ -246,7 +246,7 @@ func (client *SiteCertificatesClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -255,7 +255,7 @@ func (client *SiteCertificatesClient) deleteCreateRequest(ctx context.Context, r // 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 +// Generated from API version 2025-03-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. @@ -311,7 +311,7 @@ func (client *SiteCertificatesClient) deleteSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -320,7 +320,7 @@ func (client *SiteCertificatesClient) deleteSlotCreateRequest(ctx context.Contex // 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 +// Generated from API version 2025-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - name - Name of the site. // - certificateName - Name of the certificate. @@ -371,7 +371,7 @@ func (client *SiteCertificatesClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -389,7 +389,7 @@ func (client *SiteCertificatesClient) getHandleResponse(resp *http.Response) (Si // 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 +// Generated from API version 2025-03-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. @@ -446,7 +446,7 @@ func (client *SiteCertificatesClient) getSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -463,7 +463,7 @@ func (client *SiteCertificatesClient) getSlotHandleResponse(resp *http.Response) // NewListPager - Get all certificates in a resource group under a site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -511,7 +511,7 @@ func (client *SiteCertificatesClient) listCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -528,7 +528,7 @@ func (client *SiteCertificatesClient) listHandleResponse(resp *http.Response) (S // NewListSlotPager - Get all certificates in a resource group for a given site and a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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. @@ -581,7 +581,7 @@ func (client *SiteCertificatesClient) listSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -599,7 +599,7 @@ func (client *SiteCertificatesClient) listSlotHandleResponse(resp *http.Response // 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 +// Generated from API version 2025-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - name - Name of the site. // - certificateName - Name of the certificate. @@ -651,7 +651,7 @@ func (client *SiteCertificatesClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, certificateEnvelope); err != nil { @@ -672,7 +672,7 @@ func (client *SiteCertificatesClient) updateHandleResponse(resp *http.Response) // 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 +// Generated from API version 2025-03-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. @@ -730,7 +730,7 @@ func (client *SiteCertificatesClient) updateSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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/sitecertificates_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client_example_test.go index 5446506ed8d9..a17fc4fa7f3d 100644 --- a/sdk/resourcemanager/appservice/armappservice/sitecertificates_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/sitecertificates_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteCertificatesByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteCertificatesByResourceGroup.json func ExampleSiteCertificatesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,7 +78,7 @@ func ExampleSiteCertificatesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificate.json func ExampleSiteCertificatesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -114,7 +114,7 @@ func ExampleSiteCertificatesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateSiteCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateSiteCertificate.json func ExampleSiteCertificatesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -157,7 +157,7 @@ func ExampleSiteCertificatesClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSiteCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSiteCertificate.json func ExampleSiteCertificatesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -174,7 +174,7 @@ func ExampleSiteCertificatesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchSiteCertificate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchSiteCertificate.json func ExampleSiteCertificatesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -215,7 +215,7 @@ func ExampleSiteCertificatesClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteCertificatesByResourceGroupSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteCertificatesByResourceGroupSlot.json func ExampleSiteCertificatesClient_NewListSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -275,7 +275,7 @@ func ExampleSiteCertificatesClient_NewListSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteCertificateSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteCertificateSlot.json func ExampleSiteCertificatesClient_GetSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -311,7 +311,7 @@ func ExampleSiteCertificatesClient_GetSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateSiteCertificateSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateSiteCertificateSlot.json func ExampleSiteCertificatesClient_CreateOrUpdateSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -354,7 +354,7 @@ func ExampleSiteCertificatesClient_CreateOrUpdateSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSiteCertificateSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSiteCertificateSlot.json func ExampleSiteCertificatesClient_DeleteSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -371,7 +371,7 @@ func ExampleSiteCertificatesClient_DeleteSlot() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchSiteCertificateSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchSiteCertificateSlot.json func ExampleSiteCertificatesClient_UpdateSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go index 270707c8b58a..a8a3c05d1abd 100644 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client.go +++ b/sdk/resourcemanager/appservice/armappservice/staticsites_client.go @@ -28,7 +28,7 @@ type StaticSitesClient struct { // NewStaticSitesClient creates a new instance of StaticSitesClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewStaticSitesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StaticSitesClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewStaticSitesClient(subscriptionID string, credential azcore.TokenCredenti // BeginApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -71,7 +71,7 @@ func (client *StaticSitesClient) BeginApproveOrRejectPrivateEndpointConnection(c // ApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -117,7 +117,7 @@ func (client *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 *StaticSitesClient) approveOrRejectPrivateEndpointConnectionCreateR // CreateOrUpdateBasicAuth - Description for Adds or updates basic auth for a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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. @@ -182,7 +182,7 @@ func (client *StaticSitesClient) createOrUpdateBasicAuthCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, basicAuthEnvelope); err != nil { @@ -203,7 +203,7 @@ func (client *StaticSitesClient) createOrUpdateBasicAuthHandleResponse(resp *htt // CreateOrUpdateBuildDatabaseConnection - Description for Create or update a database connection for a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -261,7 +261,7 @@ func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -282,7 +282,7 @@ func (client *StaticSitesClient) createOrUpdateBuildDatabaseConnectionHandleResp // CreateOrUpdateDatabaseConnection - Description for Create or update a database connection for a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -335,7 +335,7 @@ func (client *StaticSitesClient) createOrUpdateDatabaseConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -357,7 +357,7 @@ func (client *StaticSitesClient) createOrUpdateDatabaseConnectionHandleResponse( // existing static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site to create or update. // - staticSiteEnvelope - A JSON representation of the staticsite properties. See example. @@ -384,7 +384,7 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSite(ctx context.Conte // static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -426,7 +426,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteEnvelope); err != nil { @@ -438,7 +438,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCreateRequest(ctx conte // CreateOrUpdateStaticSiteAppSettings - Description for Creates or updates the app settings of a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - appSettings - The dictionary containing the static site app settings to update. @@ -486,7 +486,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -507,7 +507,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteAppSettingsHandleRespon // CreateOrUpdateStaticSiteBuildAppSettings - Description for Creates or updates the app settings of a static site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -560,7 +560,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -582,7 +582,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildAppSettingsHandleR // site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -635,7 +635,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -657,7 +657,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteBuildFunctionAppSetting // group and static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - domainName - The custom domain to create. @@ -686,7 +686,7 @@ func (client *StaticSitesClient) BeginCreateOrUpdateStaticSiteCustomDomain(ctx c // group and static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -732,7 +732,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteCustomDomainRequestPropertiesEnvelope); err != nil { @@ -745,7 +745,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteCustomDomainCreateReque // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - appSettings - The dictionary containing the static site function app settings to update. @@ -793,7 +793,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -814,7 +814,7 @@ func (client *StaticSitesClient) createOrUpdateStaticSiteFunctionAppSettingsHand // CreateUserRolesInvitationLink - Description for Creates an invitation link for a user with the role // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientCreateUserRolesInvitationLinkOptions contains the optional parameters for the StaticSitesClient.CreateUserRolesInvitationLink @@ -861,7 +861,7 @@ func (client *StaticSitesClient) createUserRolesInvitationLinkCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteUserRolesInvitationEnvelope); err != nil { @@ -882,7 +882,7 @@ func (client *StaticSitesClient) createUserRolesInvitationLinkHandleResponse(res // BeginCreateZipDeploymentForStaticSite - Description for Deploys zipped content to a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - staticSiteZipDeploymentEnvelope - A JSON representation of the StaticSiteZipDeployment properties. See example. @@ -908,7 +908,7 @@ func (client *StaticSitesClient) BeginCreateZipDeploymentForStaticSite(ctx conte // CreateZipDeploymentForStaticSite - Description for Deploys zipped content to a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -950,7 +950,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteZipDeploymentEnvelope); err != nil { @@ -963,7 +963,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteCreateRequest(c // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - Name of the environment. @@ -990,7 +990,7 @@ func (client *StaticSitesClient) BeginCreateZipDeploymentForStaticSiteBuild(ctx // CreateZipDeploymentForStaticSiteBuild - Description for Deploys zipped content to a specific environment of a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1036,7 +1036,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteZipDeploymentEnvelope); err != nil { @@ -1048,7 +1048,7 @@ func (client *StaticSitesClient) createZipDeploymentForStaticSiteBuildCreateRequ // DeleteBuildDatabaseConnection - Delete a database connection for a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -1104,7 +1104,7 @@ func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1113,7 +1113,7 @@ func (client *StaticSitesClient) deleteBuildDatabaseConnectionCreateRequest(ctx // DeleteDatabaseConnection - Delete a database connection for a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -1164,7 +1164,7 @@ func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1173,7 +1173,7 @@ func (client *StaticSitesClient) deleteDatabaseConnectionCreateRequest(ctx conte // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -1199,7 +1199,7 @@ func (client *StaticSitesClient) BeginDeletePrivateEndpointConnection(ctx contex // DeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1245,7 +1245,7 @@ func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1254,7 +1254,7 @@ func (client *StaticSitesClient) deletePrivateEndpointConnectionCreateRequest(ct // BeginDeleteStaticSite - Description for Deletes a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site to delete. // - options - StaticSitesClientBeginDeleteStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDeleteStaticSite @@ -1279,7 +1279,7 @@ func (client *StaticSitesClient) BeginDeleteStaticSite(ctx context.Context, reso // DeleteStaticSite - Description for Deletes a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *StaticSitesClient) deleteStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDeleteStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDeleteStaticSite" @@ -1321,7 +1321,7 @@ func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1330,7 +1330,7 @@ func (client *StaticSitesClient) deleteStaticSiteCreateRequest(ctx context.Conte // BeginDeleteStaticSiteBuild - Description for Deletes a static site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -1356,7 +1356,7 @@ func (client *StaticSitesClient) BeginDeleteStaticSiteBuild(ctx context.Context, // DeleteStaticSiteBuild - Description for Deletes a static site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1402,7 +1402,7 @@ func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1411,7 +1411,7 @@ func (client *StaticSitesClient) deleteStaticSiteBuildCreateRequest(ctx context. // BeginDeleteStaticSiteCustomDomain - Description for Deletes a custom domain. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - domainName - The custom domain to delete. @@ -1437,7 +1437,7 @@ func (client *StaticSitesClient) BeginDeleteStaticSiteCustomDomain(ctx context.C // DeleteStaticSiteCustomDomain - Description for Deletes a custom domain. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1483,7 +1483,7 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1492,7 +1492,7 @@ func (client *StaticSitesClient) deleteStaticSiteCustomDomainCreateRequest(ctx c // DeleteStaticSiteUser - Description for Deletes the user entry from the static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the staticsite. // - authprovider - The auth provider for this user. @@ -1548,7 +1548,7 @@ func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1557,7 +1557,7 @@ func (client *StaticSitesClient) deleteStaticSiteUserCreateRequest(ctx context.C // BeginDetachStaticSite - Description for Detaches a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site to detach. // - options - StaticSitesClientBeginDetachStaticSiteOptions contains the optional parameters for the StaticSitesClient.BeginDetachStaticSite @@ -1582,7 +1582,7 @@ func (client *StaticSitesClient) BeginDetachStaticSite(ctx context.Context, reso // DetachStaticSite - Description for Detaches a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *StaticSitesClient) detachStaticSite(ctx context.Context, resourceGroupName string, name string, options *StaticSitesClientBeginDetachStaticSiteOptions) (*http.Response, error) { var err error const operationName = "StaticSitesClient.BeginDetachStaticSite" @@ -1624,7 +1624,7 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1633,7 +1633,7 @@ func (client *StaticSitesClient) detachStaticSiteCreateRequest(ctx context.Conte // DetachUserProvidedFunctionAppFromStaticSite - Description for Detach the user provided function app from the static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - functionAppName - Name of the function app registered with the static site. @@ -1684,7 +1684,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1694,7 +1694,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteCrea // site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -1750,7 +1750,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuil return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1759,7 +1759,7 @@ func (client *StaticSitesClient) detachUserProvidedFunctionAppFromStaticSiteBuil // GetBasicAuth - Description for Gets the basic auth properties for a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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. @@ -1811,7 +1811,7 @@ func (client *StaticSitesClient) getBasicAuthCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1829,7 +1829,7 @@ func (client *StaticSitesClient) getBasicAuthHandleResponse(resp *http.Response) // GetBuildDatabaseConnection - Returns overview of a database connection for a static site build by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -1886,7 +1886,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1904,7 +1904,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionHandleResponse(resp * // GetBuildDatabaseConnectionWithDetails - Returns details of a database connection for a static site build by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -1961,7 +1961,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1978,7 +1978,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionWithDetailsHandleResp // NewGetBuildDatabaseConnectionsPager - Returns overviews of database connections for a static site build // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -2031,7 +2031,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2048,7 +2048,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsHandleResponse(resp // NewGetBuildDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site build // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -2101,7 +2101,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2119,7 +2119,7 @@ func (client *StaticSitesClient) getBuildDatabaseConnectionsWithDetailsHandleRes // GetDatabaseConnection - Returns overview of a database connection for a static site by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -2171,7 +2171,7 @@ func (client *StaticSitesClient) getDatabaseConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2189,7 +2189,7 @@ func (client *StaticSitesClient) getDatabaseConnectionHandleResponse(resp *http. // GetDatabaseConnectionWithDetails - Returns details of a database connection for a static site by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -2241,7 +2241,7 @@ func (client *StaticSitesClient) getDatabaseConnectionWithDetailsCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2258,7 +2258,7 @@ func (client *StaticSitesClient) getDatabaseConnectionWithDetailsHandleResponse( // NewGetDatabaseConnectionsPager - Returns overviews of database connections for a static site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -2306,7 +2306,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2323,7 +2323,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsHandleResponse(resp *http // NewGetDatabaseConnectionsWithDetailsPager - Returns details of database connections for a static site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -2371,7 +2371,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2389,7 +2389,7 @@ func (client *StaticSitesClient) getDatabaseConnectionsWithDetailsHandleResponse // GetLinkedBackend - Returns the details of a linked backend linked to a static site by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - linkedBackendName - Name of the linked backend that should be retrieved @@ -2441,7 +2441,7 @@ func (client *StaticSitesClient) getLinkedBackendCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2459,7 +2459,7 @@ func (client *StaticSitesClient) getLinkedBackendHandleResponse(resp *http.Respo // GetLinkedBackendForBuild - Returns the details of a linked backend linked to a static site build by name // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -2516,7 +2516,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2533,7 +2533,7 @@ func (client *StaticSitesClient) getLinkedBackendForBuildHandleResponse(resp *ht // NewGetLinkedBackendsPager - Returns details of all backends linked to a static site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - options - StaticSitesClientGetLinkedBackendsOptions contains the optional parameters for the StaticSitesClient.NewGetLinkedBackendsPager @@ -2581,7 +2581,7 @@ func (client *StaticSitesClient) getLinkedBackendsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2598,7 +2598,7 @@ func (client *StaticSitesClient) getLinkedBackendsHandleResponse(resp *http.Resp // NewGetLinkedBackendsForBuildPager - Returns details of all backends linked to a static site build // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -2651,7 +2651,7 @@ func (client *StaticSitesClient) getLinkedBackendsForBuildCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2669,7 +2669,7 @@ func (client *StaticSitesClient) getLinkedBackendsForBuildHandleResponse(resp *h // GetPrivateEndpointConnection - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -2721,7 +2721,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2739,7 +2739,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionHandleResponse(resp // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoint connections associated with // a static site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the StaticSitesClient.NewGetPrivateEndpointConnectionListPager @@ -2787,7 +2787,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionListCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2805,7 +2805,7 @@ func (client *StaticSitesClient) getPrivateEndpointConnectionListHandleResponse( // GetPrivateLinkResources - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - StaticSitesClientGetPrivateLinkResourcesOptions contains the optional parameters for the StaticSitesClient.GetPrivateLinkResources @@ -2852,7 +2852,7 @@ func (client *StaticSitesClient) getPrivateLinkResourcesCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2870,7 +2870,7 @@ func (client *StaticSitesClient) getPrivateLinkResourcesHandleResponse(resp *htt // GetStaticSite - Description for Gets the details of a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientGetStaticSiteOptions contains the optional parameters for the StaticSitesClient.GetStaticSite @@ -2917,7 +2917,7 @@ func (client *StaticSitesClient) getStaticSiteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2935,7 +2935,7 @@ func (client *StaticSitesClient) getStaticSiteHandleResponse(resp *http.Response // GetStaticSiteBuild - Description for Gets the details of a static site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -2987,7 +2987,7 @@ func (client *StaticSitesClient) getStaticSiteBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3004,7 +3004,7 @@ func (client *StaticSitesClient) getStaticSiteBuildHandleResponse(resp *http.Res // NewGetStaticSiteBuildsPager - Description for Gets all static site builds for a particular static site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientGetStaticSiteBuildsOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSiteBuildsPager @@ -3052,7 +3052,7 @@ func (client *StaticSitesClient) getStaticSiteBuildsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3070,7 +3070,7 @@ func (client *StaticSitesClient) getStaticSiteBuildsHandleResponse(resp *http.Re // GetStaticSiteCustomDomain - Description for Gets an existing custom domain for a particular static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site resource to search in. // - domainName - The custom domain name. @@ -3122,7 +3122,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3139,7 +3139,7 @@ func (client *StaticSitesClient) getStaticSiteCustomDomainHandleResponse(resp *h // NewGetStaticSitesByResourceGroupPager - Description for Gets all static sites in the specified resource group. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - StaticSitesClientGetStaticSitesByResourceGroupOptions contains the optional parameters for the StaticSitesClient.NewGetStaticSitesByResourceGroupPager // method. @@ -3182,7 +3182,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3201,7 +3201,7 @@ func (client *StaticSitesClient) getStaticSitesByResourceGroupHandleResponse(res // with a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - functionAppName - Name of the function app registered with the static site. @@ -3253,7 +3253,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3272,7 +3272,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteHandleRe // with a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3329,7 +3329,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3347,7 +3347,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppForStaticSiteBuildHan // NewGetUserProvidedFunctionAppsForStaticSitePager - Description for Gets the details of the user provided function apps // registered with a static site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientGetUserProvidedFunctionAppsForStaticSiteOptions contains the optional parameters for the StaticSitesClient.NewGetUserProvidedFunctionAppsForStaticSitePager @@ -3395,7 +3395,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3413,7 +3413,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteHandleR // NewGetUserProvidedFunctionAppsForStaticSiteBuildPager - Description for Gets the details of the user provided function // apps registered with a static site build // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3466,7 +3466,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3484,7 +3484,7 @@ func (client *StaticSitesClient) getUserProvidedFunctionAppsForStaticSiteBuildHa // BeginLinkBackend - Link backend to a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - linkedBackendName - Name of the backend to link to the static site @@ -3511,7 +3511,7 @@ func (client *StaticSitesClient) BeginLinkBackend(ctx context.Context, resourceG // LinkBackend - Link backend to a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -3557,7 +3557,7 @@ func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -3569,7 +3569,7 @@ func (client *StaticSitesClient) linkBackendCreateRequest(ctx context.Context, r // BeginLinkBackendToBuild - Link backend to a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -3597,7 +3597,7 @@ func (client *StaticSitesClient) BeginLinkBackendToBuild(ctx context.Context, re // LinkBackendToBuild - Link backend to a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -3647,7 +3647,7 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -3658,7 +3658,7 @@ func (client *StaticSitesClient) linkBackendToBuildCreateRequest(ctx context.Con // NewListPager - Description for Get all Static Sites for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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]{ @@ -3695,7 +3695,7 @@ func (client *StaticSitesClient) listCreateRequest(ctx context.Context, _ *Stati return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3712,7 +3712,7 @@ func (client *StaticSitesClient) listHandleResponse(resp *http.Response) (Static // NewListBasicAuthPager - Description for Gets the basic auth properties for a static site as a collection. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -3760,7 +3760,7 @@ func (client *StaticSitesClient) listBasicAuthCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3778,7 +3778,7 @@ func (client *StaticSitesClient) listBasicAuthHandleResponse(resp *http.Response // ListStaticSiteAppSettings - Description for Gets the application settings of a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientListStaticSiteAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteAppSettings @@ -3825,7 +3825,7 @@ func (client *StaticSitesClient) listStaticSiteAppSettingsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3843,7 +3843,7 @@ func (client *StaticSitesClient) listStaticSiteAppSettingsHandleResponse(resp *h // ListStaticSiteBuildAppSettings - Description for Gets the application settings of a static site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3895,7 +3895,7 @@ func (client *StaticSitesClient) listStaticSiteBuildAppSettingsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3913,7 +3913,7 @@ func (client *StaticSitesClient) listStaticSiteBuildAppSettingsHandleResponse(re // ListStaticSiteBuildFunctionAppSettings - Description for Gets the application settings of a static site build. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -3965,7 +3965,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3982,7 +3982,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionAppSettingsHandleRes // NewListStaticSiteBuildFunctionsPager - Description for Gets the functions of a particular static site build. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -4035,7 +4035,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionsCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4053,7 +4053,7 @@ func (client *StaticSitesClient) listStaticSiteBuildFunctionsHandleResponse(resp // ListStaticSiteConfiguredRoles - Description for Lists the roles configured for the static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientListStaticSiteConfiguredRolesOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteConfiguredRoles @@ -4100,7 +4100,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4117,7 +4117,7 @@ func (client *StaticSitesClient) listStaticSiteConfiguredRolesHandleResponse(res // NewListStaticSiteCustomDomainsPager - Description for Gets all static site custom domains for a particular static site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site resource to search in. // - options - StaticSitesClientListStaticSiteCustomDomainsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteCustomDomainsPager @@ -4165,7 +4165,7 @@ func (client *StaticSitesClient) listStaticSiteCustomDomainsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4183,7 +4183,7 @@ func (client *StaticSitesClient) listStaticSiteCustomDomainsHandleResponse(resp // ListStaticSiteFunctionAppSettings - Description for Gets the application settings of a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientListStaticSiteFunctionAppSettingsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteFunctionAppSettings @@ -4230,7 +4230,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4247,7 +4247,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionAppSettingsHandleResponse // NewListStaticSiteFunctionsPager - Description for Gets the functions of a static site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientListStaticSiteFunctionsOptions contains the optional parameters for the StaticSitesClient.NewListStaticSiteFunctionsPager @@ -4295,7 +4295,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4313,7 +4313,7 @@ func (client *StaticSitesClient) listStaticSiteFunctionsHandleResponse(resp *htt // ListStaticSiteSecrets - Description for Lists the secrets for an existing static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientListStaticSiteSecretsOptions contains the optional parameters for the StaticSitesClient.ListStaticSiteSecrets @@ -4360,7 +4360,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4377,7 +4377,7 @@ func (client *StaticSitesClient) listStaticSiteSecretsHandleResponse(resp *http. // NewListStaticSiteUsersPager - Description for Gets the list of users of a static site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - authprovider - The auth provider for the users. @@ -4430,7 +4430,7 @@ func (client *StaticSitesClient) listStaticSiteUsersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4448,7 +4448,7 @@ func (client *StaticSitesClient) listStaticSiteUsersHandleResponse(resp *http.Re // PreviewWorkflow - Description for Generates a preview workflow file for the static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - location - Location where you plan to create the static site. // - staticSitesWorkflowPreviewRequest - A JSON representation of the StaticSitesWorkflowPreviewRequest properties. See example. // - options - StaticSitesClientPreviewWorkflowOptions contains the optional parameters for the StaticSitesClient.PreviewWorkflow @@ -4491,7 +4491,7 @@ func (client *StaticSitesClient) previewWorkflowCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSitesWorkflowPreviewRequest); err != nil { @@ -4513,7 +4513,7 @@ func (client *StaticSitesClient) previewWorkflowHandleResponse(resp *http.Respon // site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - functionAppName - Name of the function app to register with the static site. @@ -4540,7 +4540,7 @@ func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticS // RegisterUserProvidedFunctionAppWithStaticSite - Description for Register a user provided function app with a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -4586,7 +4586,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } @@ -4602,7 +4602,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteCr // static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - environmentName - The stage site identifier. @@ -4631,7 +4631,7 @@ func (client *StaticSitesClient) BeginRegisterUserProvidedFunctionAppWithStaticS // site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -4681,7 +4681,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBu return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.IsForced != nil { reqQP.Set("isForced", strconv.FormatBool(*options.IsForced)) } @@ -4696,7 +4696,7 @@ func (client *StaticSitesClient) registerUserProvidedFunctionAppWithStaticSiteBu // ResetStaticSiteAPIKey - Description for Resets the api key for an existing static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - options - StaticSitesClientResetStaticSiteAPIKeyOptions contains the optional parameters for the StaticSitesClient.ResetStaticSiteAPIKey @@ -4742,7 +4742,7 @@ func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, resetPropertiesEnvelope); err != nil { @@ -4754,7 +4754,7 @@ func (client *StaticSitesClient) resetStaticSiteAPIKeyCreateRequest(ctx context. // UnlinkBackend - Unlink a backend from a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - linkedBackendName - Name of the backend linked to the static site @@ -4805,7 +4805,7 @@ func (client *StaticSitesClient) unlinkBackendCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } @@ -4817,7 +4817,7 @@ func (client *StaticSitesClient) unlinkBackendCreateRequest(ctx context.Context, // UnlinkBackendFromBuild - Unlink a backend from a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -4873,7 +4873,7 @@ func (client *StaticSitesClient) unlinkBackendFromBuildCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.IsCleaningAuthConfig != nil { reqQP.Set("isCleaningAuthConfig", strconv.FormatBool(*options.IsCleaningAuthConfig)) } @@ -4885,7 +4885,7 @@ func (client *StaticSitesClient) unlinkBackendFromBuildCreateRequest(ctx context // UpdateBuildDatabaseConnection - Description for Create or update a database connection for a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier. @@ -4943,7 +4943,7 @@ func (client *StaticSitesClient) updateBuildDatabaseConnectionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -4964,7 +4964,7 @@ func (client *StaticSitesClient) updateBuildDatabaseConnectionHandleResponse(res // UpdateDatabaseConnection - Description for Create or update a database connection for a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - databaseConnectionName - Name of the database connection. @@ -5017,7 +5017,7 @@ func (client *StaticSitesClient) updateDatabaseConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, databaseConnectionRequestEnvelope); err != nil { @@ -5039,7 +5039,7 @@ func (client *StaticSitesClient) updateDatabaseConnectionHandleResponse(resp *ht // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site to create or update. // - staticSiteEnvelope - A JSON representation of the staticsite properties. See example. @@ -5087,7 +5087,7 @@ func (client *StaticSitesClient) updateStaticSiteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteEnvelope); err != nil { @@ -5108,7 +5108,7 @@ func (client *StaticSitesClient) updateStaticSiteHandleResponse(resp *http.Respo // UpdateStaticSiteUser - Description for Updates a user entry with the listed roles // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - authprovider - The auth provider for this user. @@ -5166,7 +5166,7 @@ func (client *StaticSitesClient) updateStaticSiteUserCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteUserEnvelope); err != nil { @@ -5187,7 +5187,7 @@ func (client *StaticSitesClient) updateStaticSiteUserHandleResponse(resp *http.R // BeginValidateBackend - Validates that a backend can be linked to a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - linkedBackendName - Name of the linked backend that should be retrieved @@ -5214,7 +5214,7 @@ func (client *StaticSitesClient) BeginValidateBackend(ctx context.Context, resou // ValidateBackend - Validates that a backend can be linked to a static site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -5260,7 +5260,7 @@ func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -5272,7 +5272,7 @@ func (client *StaticSitesClient) validateBackendCreateRequest(ctx context.Contex // BeginValidateBackendForBuild - Validates that a backend can be linked to a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site // - environmentName - The stage site identifier @@ -5300,7 +5300,7 @@ func (client *StaticSitesClient) BeginValidateBackendForBuild(ctx context.Contex // ValidateBackendForBuild - Validates that a backend can be linked to a static site build // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -5350,7 +5350,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, staticSiteLinkedBackendEnvelope); err != nil { @@ -5363,7 +5363,7 @@ func (client *StaticSitesClient) validateBackendForBuildCreateRequest(ctx contex // a static site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the static site. // - domainName - The custom domain to validate. @@ -5392,7 +5392,7 @@ func (client *StaticSitesClient) BeginValidateCustomDomainCanBeAddedToStaticSite // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -5438,7 +5438,7 @@ func (client *StaticSitesClient) validateCustomDomainCanBeAddedToStaticSiteCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 0186a8c587e9..5140960057f1 100644 --- a/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/staticsites_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GenerateStaticSiteWorkflowPreview.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GenerateStaticSiteWorkflowPreview.json func ExampleStaticSitesClient_PreviewWorkflow() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,7 +54,7 @@ func ExampleStaticSitesClient_PreviewWorkflow() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAllStaticSites.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAllStaticSites.json func ExampleStaticSitesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -107,7 +107,7 @@ func ExampleStaticSitesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSites.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSites.json func ExampleStaticSitesClient_NewGetStaticSitesByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -160,7 +160,7 @@ func ExampleStaticSitesClient_NewGetStaticSitesByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSite.json func ExampleStaticSitesClient_GetStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -209,7 +209,7 @@ func ExampleStaticSitesClient_GetStaticSite() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSite.json func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -274,7 +274,7 @@ func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSite() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSite.json func ExampleStaticSitesClient_BeginDeleteStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -295,7 +295,7 @@ func ExampleStaticSitesClient_BeginDeleteStaticSite() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchStaticSite.json func ExampleStaticSitesClient_UpdateStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -342,7 +342,7 @@ func ExampleStaticSitesClient_UpdateStaticSite() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteUsers.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteUsers.json func ExampleStaticSitesClient_NewListStaticSiteUsersPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -379,7 +379,7 @@ func ExampleStaticSitesClient_NewListStaticSiteUsersPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteUser.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteUser.json func ExampleStaticSitesClient_DeleteStaticSiteUser() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -396,7 +396,7 @@ func ExampleStaticSitesClient_DeleteStaticSiteUser() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateStaticSiteUser.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateStaticSiteUser.json func ExampleStaticSitesClient_UpdateStaticSiteUser() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -428,7 +428,7 @@ func ExampleStaticSitesClient_UpdateStaticSiteUser() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuilds.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuilds.json func ExampleStaticSitesClient_NewGetStaticSiteBuildsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -487,7 +487,7 @@ func ExampleStaticSitesClient_NewGetStaticSiteBuildsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuild.json func ExampleStaticSitesClient_GetStaticSiteBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -525,7 +525,7 @@ func ExampleStaticSitesClient_GetStaticSiteBuild() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteBuild.json func ExampleStaticSitesClient_BeginDeleteStaticSiteBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -546,7 +546,7 @@ func ExampleStaticSitesClient_BeginDeleteStaticSiteBuild() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBuildAppSettings.json func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -578,7 +578,7 @@ func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBuildFunctionAppSettings.json func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildFunctionAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -610,7 +610,7 @@ func ExampleStaticSitesClient_CreateOrUpdateStaticSiteBuildFunctionAppSettings() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnections.json func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -648,7 +648,7 @@ func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnection.json func ExampleStaticSitesClient_GetBuildDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -678,7 +678,7 @@ func ExampleStaticSitesClient_GetBuildDatabaseConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBuildDatabaseConnection.json func ExampleStaticSitesClient_CreateOrUpdateBuildDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -715,7 +715,7 @@ func ExampleStaticSitesClient_CreateOrUpdateBuildDatabaseConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteBuildDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteBuildDatabaseConnection.json func ExampleStaticSitesClient_DeleteBuildDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -732,7 +732,7 @@ func ExampleStaticSitesClient_DeleteBuildDatabaseConnection() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchStaticSiteBuildDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchStaticSiteBuildDatabaseConnection.json func ExampleStaticSitesClient_UpdateBuildDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -764,7 +764,7 @@ func ExampleStaticSitesClient_UpdateBuildDatabaseConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnectionWithDetails.json func ExampleStaticSitesClient_GetBuildDatabaseConnectionWithDetails() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -806,7 +806,7 @@ func ExampleStaticSitesClient_GetBuildDatabaseConnectionWithDetails() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBuildFunctions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBuildFunctions.json func ExampleStaticSitesClient_NewListStaticSiteBuildFunctionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -841,7 +841,7 @@ func ExampleStaticSitesClient_NewListStaticSiteBuildFunctionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBuildAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBuildAppSettings.json func ExampleStaticSitesClient_ListStaticSiteBuildAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -867,7 +867,7 @@ func ExampleStaticSitesClient_ListStaticSiteBuildAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBuildFunctionAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBuildFunctionAppSettings.json func ExampleStaticSitesClient_ListStaticSiteBuildFunctionAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -893,7 +893,7 @@ func ExampleStaticSitesClient_ListStaticSiteBuildFunctionAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBuildDatabaseConnectionsWithDetails.json func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsWithDetailsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -943,7 +943,7 @@ func ExampleStaticSitesClient_NewGetBuildDatabaseConnectionsWithDetailsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppsForStaticSiteBuild.json func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSiteBuildPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -981,7 +981,7 @@ func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSiteBuildPa } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSiteBuild.json func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSiteBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1011,7 +1011,7 @@ func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSiteBuild() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSiteBuild.json func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1050,7 +1050,7 @@ func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSite // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DetachUserProvidedFunctionAppFromStaticSiteBuild.json func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSiteBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1067,7 +1067,7 @@ func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSiteBuild() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StaticSiteBuildZipDeploy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StaticSiteBuildZipDeploy.json func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSiteBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1080,8 +1080,8 @@ func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSiteBuild() { } 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"), + APIZipURL: to.Ptr("https://[examplestorageaccount].com/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip"), + AppZipURL: to.Ptr("https://[examplestorageaccount].com/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip"), DeploymentTitle: to.Ptr("Update index.html"), FunctionLanguage: to.Ptr("testFunctionLanguage"), Provider: to.Ptr("testProvider"), @@ -1096,7 +1096,7 @@ func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSiteBuild() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteAppSettings.json func ExampleStaticSitesClient_CreateOrUpdateStaticSiteAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1128,7 +1128,7 @@ func ExampleStaticSitesClient_CreateOrUpdateStaticSiteAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteBasicAuth.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteBasicAuth.json func ExampleStaticSitesClient_NewListBasicAuthPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1164,7 +1164,7 @@ func ExampleStaticSitesClient_NewListBasicAuthPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteBasicAuth.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteBasicAuth.json func ExampleStaticSitesClient_GetBasicAuth() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1192,7 +1192,7 @@ func ExampleStaticSitesClient_GetBasicAuth() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteBasicAuth.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteBasicAuth.json func ExampleStaticSitesClient_CreateOrUpdateBasicAuth() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1224,7 +1224,7 @@ func ExampleStaticSitesClient_CreateOrUpdateBasicAuth() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteFunctionAppSettings.json func ExampleStaticSitesClient_CreateOrUpdateStaticSiteFunctionAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1256,7 +1256,7 @@ func ExampleStaticSitesClient_CreateOrUpdateStaticSiteFunctionAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateUserRolesInvitationLink.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateUserRolesInvitationLink.json func ExampleStaticSitesClient_CreateUserRolesInvitationLink() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1290,7 +1290,7 @@ func ExampleStaticSitesClient_CreateUserRolesInvitationLink() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomains.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomains.json func ExampleStaticSitesClient_NewListStaticSiteCustomDomainsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1325,7 +1325,7 @@ func ExampleStaticSitesClient_NewListStaticSiteCustomDomainsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteCustomDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteCustomDomain.json func ExampleStaticSitesClient_GetStaticSiteCustomDomain() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1352,7 +1352,7 @@ func ExampleStaticSitesClient_GetStaticSiteCustomDomain() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteCustomDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteCustomDomain.json func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSiteCustomDomain() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1385,7 +1385,7 @@ func ExampleStaticSitesClient_BeginCreateOrUpdateStaticSiteCustomDomain() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteCustomDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteCustomDomain.json func ExampleStaticSitesClient_BeginDeleteStaticSiteCustomDomain() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1406,7 +1406,7 @@ func ExampleStaticSitesClient_BeginDeleteStaticSiteCustomDomain() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ValidateStaticSiteCustomDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ValidateStaticSiteCustomDomain.json func ExampleStaticSitesClient_BeginValidateCustomDomainCanBeAddedToStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1429,7 +1429,7 @@ func ExampleStaticSitesClient_BeginValidateCustomDomainCanBeAddedToStaticSite() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnections.json func ExampleStaticSitesClient_NewGetDatabaseConnectionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1467,7 +1467,7 @@ func ExampleStaticSitesClient_NewGetDatabaseConnectionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnection.json func ExampleStaticSitesClient_GetDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1497,7 +1497,7 @@ func ExampleStaticSitesClient_GetDatabaseConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateStaticSiteDatabaseConnection.json func ExampleStaticSitesClient_CreateOrUpdateDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1534,7 +1534,7 @@ func ExampleStaticSitesClient_CreateOrUpdateDatabaseConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteStaticSiteDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteStaticSiteDatabaseConnection.json func ExampleStaticSitesClient_DeleteDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1551,7 +1551,7 @@ func ExampleStaticSitesClient_DeleteDatabaseConnection() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PatchStaticSiteDatabaseConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PatchStaticSiteDatabaseConnection.json func ExampleStaticSitesClient_UpdateDatabaseConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1583,7 +1583,7 @@ func ExampleStaticSitesClient_UpdateDatabaseConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnectionWithDetails.json func ExampleStaticSitesClient_GetDatabaseConnectionWithDetails() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1625,7 +1625,7 @@ func ExampleStaticSitesClient_GetDatabaseConnectionWithDetails() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DetachStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DetachStaticSite.json func ExampleStaticSitesClient_BeginDetachStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1646,7 +1646,7 @@ func ExampleStaticSitesClient_BeginDetachStaticSite() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteFunctions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteFunctions.json func ExampleStaticSitesClient_NewListStaticSiteFunctionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1681,7 +1681,7 @@ func ExampleStaticSitesClient_NewListStaticSiteFunctionsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteAppSettings.json func ExampleStaticSitesClient_ListStaticSiteAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1707,7 +1707,7 @@ func ExampleStaticSitesClient_ListStaticSiteAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteConfiguredRoles.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteConfiguredRoles.json func ExampleStaticSitesClient_ListStaticSiteConfiguredRoles() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1733,7 +1733,7 @@ func ExampleStaticSitesClient_ListStaticSiteConfiguredRoles() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteFunctionAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteFunctionAppSettings.json func ExampleStaticSitesClient_ListStaticSiteFunctionAppSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1759,7 +1759,7 @@ func ExampleStaticSitesClient_ListStaticSiteFunctionAppSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListStaticSiteSecrets.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListStaticSiteSecrets.json func ExampleStaticSitesClient_ListStaticSiteSecrets() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1784,7 +1784,7 @@ func ExampleStaticSitesClient_ListStaticSiteSecrets() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionList.json func ExampleStaticSitesClient_NewGetPrivateEndpointConnectionListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1826,7 +1826,7 @@ func ExampleStaticSitesClient_NewGetPrivateEndpointConnectionListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json func ExampleStaticSitesClient_GetPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1860,7 +1860,7 @@ func ExampleStaticSitesClient_GetPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json func ExampleStaticSitesClient_BeginApproveOrRejectPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1908,7 +1908,7 @@ func ExampleStaticSitesClient_BeginApproveOrRejectPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSitePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSitePrivateEndpointConnection.json func ExampleStaticSitesClient_BeginDeletePrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1934,7 +1934,7 @@ func ExampleStaticSitesClient_BeginDeletePrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateLinkResources.json func ExampleStaticSitesClient_GetPrivateLinkResources() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1969,7 +1969,7 @@ func ExampleStaticSitesClient_GetPrivateLinkResources() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ResetStaticSiteApiKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ResetStaticSiteApiKey.json func ExampleStaticSitesClient_ResetStaticSiteAPIKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1991,7 +1991,7 @@ func ExampleStaticSitesClient_ResetStaticSiteAPIKey() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetStaticSiteDatabaseConnectionsWithDetails.json func ExampleStaticSitesClient_NewGetDatabaseConnectionsWithDetailsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2041,7 +2041,7 @@ func ExampleStaticSitesClient_NewGetDatabaseConnectionsWithDetailsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppsForStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppsForStaticSite.json func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSitePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2079,7 +2079,7 @@ func ExampleStaticSitesClient_NewGetUserProvidedFunctionAppsForStaticSitePager() } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetUserProvidedFunctionAppForStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetUserProvidedFunctionAppForStaticSite.json func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2109,7 +2109,7 @@ func ExampleStaticSitesClient_GetUserProvidedFunctionAppForStaticSite() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RegisterUserProvidedFunctionAppWithStaticSite.json func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2148,7 +2148,7 @@ func ExampleStaticSitesClient_BeginRegisterUserProvidedFunctionAppWithStaticSite // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DetachUserProvidedFunctionAppFromStaticSite.json func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2165,7 +2165,7 @@ func ExampleStaticSitesClient_DetachUserProvidedFunctionAppFromStaticSite() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StaticSiteZipDeploy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StaticSiteZipDeploy.json func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSite() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2178,8 +2178,8 @@ func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSite() { } 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"), + APIZipURL: to.Ptr("https://[examplestorageaccount].com/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip"), + AppZipURL: to.Ptr("https://[examplestorageaccount].com/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip"), DeploymentTitle: to.Ptr("Update index.html"), FunctionLanguage: to.Ptr("testFunctionLanguage"), Provider: to.Ptr("testProvider"), @@ -2194,7 +2194,7 @@ func ExampleStaticSitesClient_BeginCreateZipDeploymentForStaticSite() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ValidateLinkedBackendForStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ValidateLinkedBackendForStaticSite.json func ExampleStaticSitesClient_BeginValidateBackend() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2220,7 +2220,7 @@ func ExampleStaticSitesClient_BeginValidateBackend() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ValidateLinkedBackendForStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ValidateLinkedBackendForStaticSiteBuild.json func ExampleStaticSitesClient_BeginValidateBackendForBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2246,7 +2246,7 @@ func ExampleStaticSitesClient_BeginValidateBackendForBuild() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendsForStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendsForStaticSite.json func ExampleStaticSitesClient_NewGetLinkedBackendsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2285,7 +2285,7 @@ func ExampleStaticSitesClient_NewGetLinkedBackendsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendsForStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendsForStaticSiteBuild.json func ExampleStaticSitesClient_NewGetLinkedBackendsForBuildPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2324,7 +2324,7 @@ func ExampleStaticSitesClient_NewGetLinkedBackendsForBuildPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSite.json func ExampleStaticSitesClient_GetLinkedBackend() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2355,7 +2355,7 @@ func ExampleStaticSitesClient_GetLinkedBackend() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/LinkBackendToStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/LinkBackendToStaticSite.json func ExampleStaticSitesClient_BeginLinkBackend() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2395,7 +2395,7 @@ func ExampleStaticSitesClient_BeginLinkBackend() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UnlinkBackendFromStaticSite.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UnlinkBackendFromStaticSite.json func ExampleStaticSitesClient_UnlinkBackend() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2412,7 +2412,7 @@ func ExampleStaticSitesClient_UnlinkBackend() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetLinkedBackendForStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetLinkedBackendForStaticSiteBuild.json func ExampleStaticSitesClient_GetLinkedBackendForBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2443,7 +2443,7 @@ func ExampleStaticSitesClient_GetLinkedBackendForBuild() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/LinkBackendToStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/LinkBackendToStaticSiteBuild.json func ExampleStaticSitesClient_BeginLinkBackendToBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2483,7 +2483,7 @@ func ExampleStaticSitesClient_BeginLinkBackendToBuild() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UnlinkBackendFromStaticSiteBuild.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UnlinkBackendFromStaticSiteBuild.json func ExampleStaticSitesClient_UnlinkBackendFromBuild() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go index b6bf1603f2a2..2346b44d82bb 100644 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go +++ b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client.go @@ -27,7 +27,7 @@ type TopLevelDomainsClient struct { // NewTopLevelDomainsClient creates a new instance of TopLevelDomainsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewTopLevelDomainsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopLevelDomainsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go index 8946c3a8224f..277fb526b9e2 100644 --- a/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/topleveldomains_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomains.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomains.json func ExampleTopLevelDomainsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -118,7 +118,7 @@ func ExampleTopLevelDomainsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/GetTopLevelDomain.json func ExampleTopLevelDomainsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -146,7 +146,7 @@ func ExampleTopLevelDomainsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomainAgreements.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/domainregistration/resource-manager/Microsoft.DomainRegistration/DomainRegistration/stable/2024-11-01/examples/ListTopLevelDomainAgreements.json func ExampleTopLevelDomainsClient_NewListAgreementsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/version.go b/sdk/resourcemanager/appservice/armappservice/version.go new file mode 100644 index 000000000000..ea7c007cb4cb --- /dev/null +++ b/sdk/resourcemanager/appservice/armappservice/version.go @@ -0,0 +1,10 @@ +// 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. + +package armappservice + +const ( + moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice" + moduleVersion = "v6.0.0" +) diff --git a/sdk/resourcemanager/appservice/armappservice/webapps_client.go b/sdk/resourcemanager/appservice/armappservice/webapps_client.go index 0cd961fde7fb..9b1ea5351241 100644 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client.go +++ b/sdk/resourcemanager/appservice/armappservice/webapps_client.go @@ -28,7 +28,7 @@ type WebAppsClient struct { // NewWebAppsClient creates a new instance of WebAppsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWebAppsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebAppsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWebAppsClient(subscriptionID string, credential azcore.TokenCredential, // AddPremierAddOn - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -96,7 +96,7 @@ func (client *WebAppsClient) addPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -117,7 +117,7 @@ func (client *WebAppsClient) addPremierAddOnHandleResponse(resp *http.Response) // AddPremierAddOnSlot - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -176,7 +176,7 @@ func (client *WebAppsClient) addPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -197,7 +197,7 @@ func (client *WebAppsClient) addPremierAddOnSlotHandleResponse(resp *http.Respon // AnalyzeCustomHostname - Description for Analyze a custom hostname. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientAnalyzeCustomHostnameOptions contains the optional parameters for the WebAppsClient.AnalyzeCustomHostname @@ -244,7 +244,7 @@ func (client *WebAppsClient) analyzeCustomHostnameCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } @@ -265,7 +265,7 @@ func (client *WebAppsClient) analyzeCustomHostnameHandleResponse(resp *http.Resp // AnalyzeCustomHostnameSlot - Description for Analyze a custom hostname. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -317,7 +317,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.HostName != nil { reqQP.Set("hostName", *options.HostName) } @@ -339,7 +339,7 @@ func (client *WebAppsClient) analyzeCustomHostnameSlotHandleResponse(resp *http. // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slotSwapEntity - JSON object that contains the target slot name. See example. @@ -386,7 +386,7 @@ func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -398,7 +398,7 @@ func (client *WebAppsClient) applySlotConfigToProductionCreateRequest(ctx contex // ApplySlotConfigurationSlot - Description for Applies the configuration settings from the target slot onto the current slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. @@ -450,7 +450,7 @@ func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -462,7 +462,7 @@ func (client *WebAppsClient) applySlotConfigurationSlotCreateRequest(ctx context // BeginApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection @@ -487,7 +487,7 @@ func (client *WebAppsClient) BeginApproveOrRejectPrivateEndpointConnection(ctx c // ApproveOrRejectPrivateEndpointConnection - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -533,7 +533,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -545,7 +545,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionCreateReque // BeginApproveOrRejectPrivateEndpointConnectionSlot - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions contains the optional parameters for the @@ -570,7 +570,7 @@ func (client *WebAppsClient) BeginApproveOrRejectPrivateEndpointConnectionSlot(c // ApproveOrRejectPrivateEndpointConnectionSlot - Description for Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -620,7 +620,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateEndpointWrapper); err != nil { @@ -632,7 +632,7 @@ func (client *WebAppsClient) approveOrRejectPrivateEndpointConnectionSlotCreateR // Backup - Description for Creates a backup of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - request - Backup configuration. You can use the JSON response from the POST action as input here. @@ -679,7 +679,7 @@ func (client *WebAppsClient) backupCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -700,7 +700,7 @@ func (client *WebAppsClient) backupHandleResponse(resp *http.Response) (WebAppsC // BackupSlot - Description for Creates a backup of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. @@ -752,7 +752,7 @@ func (client *WebAppsClient) backupSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -773,7 +773,7 @@ func (client *WebAppsClient) backupSlotHandleResponse(resp *http.Response) (WebA // CreateDeployment - Description for Create a deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - ID of an existing deployment. @@ -826,7 +826,7 @@ func (client *WebAppsClient) createDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, deployment); err != nil { @@ -847,7 +847,7 @@ func (client *WebAppsClient) createDeploymentHandleResponse(resp *http.Response) // CreateDeploymentSlot - Description for Create a deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - ID of an existing deployment. @@ -905,7 +905,7 @@ func (client *WebAppsClient) createDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, deployment); err != nil { @@ -926,7 +926,7 @@ func (client *WebAppsClient) createDeploymentSlotHandleResponse(resp *http.Respo // BeginCreateFunction - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -953,7 +953,7 @@ func (client *WebAppsClient) BeginCreateFunction(ctx context.Context, resourceGr // CreateFunction - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -999,7 +999,7 @@ func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, functionEnvelope); err != nil { @@ -1011,7 +1011,7 @@ func (client *WebAppsClient) createFunctionCreateRequest(ctx context.Context, re // BeginCreateInstanceFunctionSlot - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -1039,7 +1039,7 @@ func (client *WebAppsClient) BeginCreateInstanceFunctionSlot(ctx context.Context // CreateInstanceFunctionSlot - Description for Create function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1089,7 +1089,7 @@ func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, functionEnvelope); err != nil { @@ -1101,7 +1101,7 @@ func (client *WebAppsClient) createInstanceFunctionSlotCreateRequest(ctx context // BeginCreateInstanceMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - instanceID - ID of web app instance. @@ -1128,7 +1128,7 @@ func (client *WebAppsClient) BeginCreateInstanceMSDeployOperation(ctx context.Co // CreateInstanceMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1174,7 +1174,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1186,7 +1186,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationCreateRequest(ctx co // BeginCreateInstanceMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -1214,7 +1214,7 @@ func (client *WebAppsClient) BeginCreateInstanceMSDeployOperationSlot(ctx contex // CreateInstanceMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1264,7 +1264,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1276,7 +1276,7 @@ func (client *WebAppsClient) createInstanceMSDeployOperationSlotCreateRequest(ct // BeginCreateMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - msDeploy - Details of MSDeploy operation @@ -1302,7 +1302,7 @@ func (client *WebAppsClient) BeginCreateMSDeployOperation(ctx context.Context, r // CreateMSDeployOperation - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1344,7 +1344,7 @@ func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1356,7 +1356,7 @@ func (client *WebAppsClient) createMSDeployOperationCreateRequest(ctx context.Co // BeginCreateMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -1383,7 +1383,7 @@ func (client *WebAppsClient) BeginCreateMSDeployOperationSlot(ctx context.Contex // CreateMSDeployOperationSlot - Description for Invoke the MSDeploy web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1429,7 +1429,7 @@ func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, msDeploy); err != nil { @@ -1441,7 +1441,7 @@ func (client *WebAppsClient) createMSDeployOperationSlotCreateRequest(ctx contex // CreateOneDeployOperation - Description for Invoke the OneDeploy publish web app extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientCreateOneDeployOperationOptions contains the optional parameters for the WebAppsClient.CreateOneDeployOperation @@ -1488,7 +1488,7 @@ func (client *WebAppsClient) createOneDeployOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1507,7 +1507,7 @@ func (client *WebAppsClient) createOneDeployOperationHandleResponse(resp *http.R // existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. // - siteEnvelope - A JSON representation of the app properties. See example. @@ -1534,7 +1534,7 @@ func (client *WebAppsClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -1576,7 +1576,7 @@ func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -1588,7 +1588,7 @@ func (client *WebAppsClient) createOrUpdateCreateRequest(ctx context.Context, re // CreateOrUpdateConfiguration - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - siteConfig - JSON representation of a SiteConfig object. See example. @@ -1636,7 +1636,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -1657,7 +1657,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationHandleResponse(resp *htt // CreateOrUpdateConfigurationSlot - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. @@ -1710,7 +1710,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -1732,7 +1732,7 @@ func (client *WebAppsClient) createOrUpdateConfigurationSlotHandleResponse(resp // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -1785,7 +1785,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -1807,7 +1807,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierHandleRespon // an existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -1865,7 +1865,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -1886,7 +1886,7 @@ func (client *WebAppsClient) createOrUpdateDomainOwnershipIdentifierSlotHandleRe // CreateOrUpdateFunctionSecret - Description for Add or update a function secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -1944,7 +1944,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -1965,7 +1965,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretHandleResponse(resp *ht // CreateOrUpdateFunctionSecretSlot - Description for Add or update a function secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -2028,7 +2028,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -2049,7 +2049,7 @@ func (client *WebAppsClient) createOrUpdateFunctionSecretSlotHandleResponse(resp // CreateOrUpdateHostNameBinding - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -2102,7 +2102,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostNameBinding); err != nil { @@ -2123,7 +2123,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingHandleResponse(resp *h // CreateOrUpdateHostNameBindingSlot - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -2181,7 +2181,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, hostNameBinding); err != nil { @@ -2202,7 +2202,7 @@ func (client *WebAppsClient) createOrUpdateHostNameBindingSlotHandleResponse(res // CreateOrUpdateHostSecret - Description for Add or update a host level secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -2260,7 +2260,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -2281,7 +2281,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretHandleResponse(resp *http.R // CreateOrUpdateHostSecretSlot - Description for Add or update a host level secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -2344,7 +2344,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, key); err != nil { @@ -2365,7 +2365,7 @@ func (client *WebAppsClient) createOrUpdateHostSecretSlotHandleResponse(resp *ht // CreateOrUpdateHybridConnection - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -2423,7 +2423,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2444,7 +2444,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionHandleResponse(resp * // CreateOrUpdateHybridConnectionSlot - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -2507,7 +2507,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2528,7 +2528,7 @@ func (client *WebAppsClient) createOrUpdateHybridConnectionSlotHandleResponse(re // CreateOrUpdatePublicCertificate - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -2581,7 +2581,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, publicCertificate); err != nil { @@ -2602,7 +2602,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateHandleResponse(resp // CreateOrUpdatePublicCertificateSlot - Description for Creates a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -2660,7 +2660,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, publicCertificate); err != nil { @@ -2682,7 +2682,7 @@ func (client *WebAppsClient) createOrUpdatePublicCertificateSlotHandleResponse(r // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -2735,7 +2735,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2757,7 +2757,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionHandleResponse( // an existing one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -2816,7 +2816,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -2837,7 +2837,7 @@ func (client *WebAppsClient) createOrUpdateRelayServiceConnectionSlotHandleRespo // CreateOrUpdateSiteContainer - Creates or Updates a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - containerName - Site Container Name @@ -2890,7 +2890,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -2911,7 +2911,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerHandleResponse(resp *htt // CreateOrUpdateSiteContainerSlot - Creates or Updates a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will create the container for the production slot. @@ -2969,7 +2969,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -2991,7 +2991,7 @@ func (client *WebAppsClient) createOrUpdateSiteContainerSlotHandleResponse(resp // an existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. // - slot - Name of the deployment slot to create or update. By default, this API attempts to create or modify the production @@ -3020,7 +3020,7 @@ func (client *WebAppsClient) BeginCreateOrUpdateSlot(ctx context.Context, resour // existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -3066,7 +3066,7 @@ func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -3078,7 +3078,7 @@ func (client *WebAppsClient) createOrUpdateSlotCreateRequest(ctx context.Context // BeginCreateOrUpdateSourceControl - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - siteSourceControl - JSON representation of a SiteSourceControl object. See example. @@ -3104,7 +3104,7 @@ func (client *WebAppsClient) BeginCreateOrUpdateSourceControl(ctx context.Contex // CreateOrUpdateSourceControl - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -3146,7 +3146,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -3158,7 +3158,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlCreateRequest(ctx contex // BeginCreateOrUpdateSourceControlSlot - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for @@ -3186,7 +3186,7 @@ func (client *WebAppsClient) BeginCreateOrUpdateSourceControlSlot(ctx context.Co // CreateOrUpdateSourceControlSlot - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -3232,7 +3232,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -3247,7 +3247,7 @@ func (client *WebAppsClient) createOrUpdateSourceControlSlotCreateRequest(ctx co // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - connectionEnvelope - Properties of the Virtual Network connection. See example. @@ -3295,7 +3295,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3319,7 +3319,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production @@ -3373,7 +3373,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3395,7 +3395,7 @@ func (client *WebAppsClient) createOrUpdateSwiftVirtualNetworkConnectionWithChec // connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -3448,7 +3448,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3470,7 +3470,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionHandleResponse(resp *ht // (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -3528,7 +3528,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3550,7 +3550,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewayHandleResponse(r // it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -3614,7 +3614,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3636,7 +3636,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionGatewaySlotHandleRespon // the connection properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -3695,7 +3695,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -3716,7 +3716,7 @@ func (client *WebAppsClient) createOrUpdateVnetConnectionSlotHandleResponse(resp // Delete - Description for Deletes a web, mobile, or API app, or one of the deployment slots. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app to delete. // - options - WebAppsClientDeleteOptions contains the optional parameters for the WebAppsClient.Delete method. @@ -3761,7 +3761,7 @@ func (client *WebAppsClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } @@ -3776,7 +3776,7 @@ func (client *WebAppsClient) deleteCreateRequest(ctx context.Context, resourceGr // DeleteBackup - Description for Deletes a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -3826,7 +3826,7 @@ func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3835,7 +3835,7 @@ func (client *WebAppsClient) deleteBackupCreateRequest(ctx context.Context, reso // DeleteBackupConfiguration - Description for Deletes the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientDeleteBackupConfigurationOptions contains the optional parameters for the WebAppsClient.DeleteBackupConfiguration @@ -3881,7 +3881,7 @@ func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3890,7 +3890,7 @@ func (client *WebAppsClient) deleteBackupConfigurationCreateRequest(ctx context. // DeleteBackupConfigurationSlot - Description for Deletes the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production @@ -3942,7 +3942,7 @@ func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -3951,7 +3951,7 @@ func (client *WebAppsClient) deleteBackupConfigurationSlotCreateRequest(ctx cont // DeleteBackupSlot - Description for Deletes a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -4007,7 +4007,7 @@ func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4016,7 +4016,7 @@ func (client *WebAppsClient) deleteBackupSlotCreateRequest(ctx context.Context, // DeleteContinuousWebJob - Description for Delete a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -4067,7 +4067,7 @@ func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4076,7 +4076,7 @@ func (client *WebAppsClient) deleteContinuousWebJobCreateRequest(ctx context.Con // DeleteContinuousWebJobSlot - Description for Delete a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -4132,7 +4132,7 @@ func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4141,7 +4141,7 @@ func (client *WebAppsClient) deleteContinuousWebJobSlotCreateRequest(ctx context // DeleteDeployment - Description for Delete a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -4192,7 +4192,7 @@ func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4201,7 +4201,7 @@ func (client *WebAppsClient) deleteDeploymentCreateRequest(ctx context.Context, // DeleteDeploymentSlot - Description for Delete a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -4257,7 +4257,7 @@ func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4266,7 +4266,7 @@ func (client *WebAppsClient) deleteDeploymentSlotCreateRequest(ctx context.Conte // DeleteDomainOwnershipIdentifier - Description for Deletes a domain ownership identifier for a web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -4317,7 +4317,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4326,7 +4326,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierCreateRequest(ctx co // DeleteDomainOwnershipIdentifierSlot - Description for Deletes a domain ownership identifier for a web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -4382,7 +4382,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4391,7 +4391,7 @@ func (client *WebAppsClient) deleteDomainOwnershipIdentifierSlotCreateRequest(ct // DeleteFunction - Description for Delete a function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -4441,7 +4441,7 @@ func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4450,7 +4450,7 @@ func (client *WebAppsClient) deleteFunctionCreateRequest(ctx context.Context, re // DeleteFunctionSecret - Description for Delete a function secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -4506,7 +4506,7 @@ func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4515,7 +4515,7 @@ func (client *WebAppsClient) deleteFunctionSecretCreateRequest(ctx context.Conte // DeleteFunctionSecretSlot - Description for Delete a function secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - The name of the function. @@ -4576,7 +4576,7 @@ func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4585,7 +4585,7 @@ func (client *WebAppsClient) deleteFunctionSecretSlotCreateRequest(ctx context.C // DeleteHostNameBinding - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -4636,7 +4636,7 @@ func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4645,7 +4645,7 @@ func (client *WebAppsClient) deleteHostNameBindingCreateRequest(ctx context.Cont // DeleteHostNameBindingSlot - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. @@ -4701,7 +4701,7 @@ func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4710,7 +4710,7 @@ func (client *WebAppsClient) deleteHostNameBindingSlotCreateRequest(ctx context. // DeleteHostSecret - Description for Delete a host level secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -4766,7 +4766,7 @@ func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4775,7 +4775,7 @@ func (client *WebAppsClient) deleteHostSecretCreateRequest(ctx context.Context, // DeleteHostSecretSlot - Description for Delete a host level secret. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - keyType - The type of host key. @@ -4836,7 +4836,7 @@ func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4845,7 +4845,7 @@ func (client *WebAppsClient) deleteHostSecretSlotCreateRequest(ctx context.Conte // DeleteHybridConnection - Description for Removes a Hybrid Connection from this site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -4901,7 +4901,7 @@ func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4910,7 +4910,7 @@ func (client *WebAppsClient) deleteHybridConnectionCreateRequest(ctx context.Con // DeleteHybridConnectionSlot - Description for Removes a Hybrid Connection from this site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -4971,7 +4971,7 @@ func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -4980,7 +4980,7 @@ func (client *WebAppsClient) deleteHybridConnectionSlotCreateRequest(ctx context // DeleteInstanceFunctionSlot - Description for Delete a function for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -5036,7 +5036,7 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5046,7 +5046,7 @@ func (client *WebAppsClient) deleteInstanceFunctionSlotCreateRequest(ctx context // scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5103,7 +5103,7 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5113,7 +5113,7 @@ func (client *WebAppsClient) deleteInstanceProcessCreateRequest(ctx context.Cont // scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5175,7 +5175,7 @@ func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5184,7 +5184,7 @@ func (client *WebAppsClient) deleteInstanceProcessSlotCreateRequest(ctx context. // DeletePremierAddOn - Description for Delete a premier add-on from an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -5235,7 +5235,7 @@ func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5244,7 +5244,7 @@ func (client *WebAppsClient) deletePremierAddOnCreateRequest(ctx context.Context // DeletePremierAddOnSlot - Description for Delete a premier add-on from an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -5301,7 +5301,7 @@ func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5310,7 +5310,7 @@ func (client *WebAppsClient) deletePremierAddOnSlotCreateRequest(ctx context.Con // BeginDeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientBeginDeletePrivateEndpointConnectionOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnection @@ -5335,7 +5335,7 @@ func (client *WebAppsClient) BeginDeletePrivateEndpointConnection(ctx context.Co // DeletePrivateEndpointConnection - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -5381,7 +5381,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5390,7 +5390,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionCreateRequest(ctx co // BeginDeletePrivateEndpointConnectionSlot - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientBeginDeletePrivateEndpointConnectionSlotOptions contains the optional parameters for the WebAppsClient.BeginDeletePrivateEndpointConnectionSlot @@ -5415,7 +5415,7 @@ func (client *WebAppsClient) BeginDeletePrivateEndpointConnectionSlot(ctx contex // DeletePrivateEndpointConnectionSlot - Description for Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -5465,7 +5465,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5475,7 +5475,7 @@ func (client *WebAppsClient) deletePrivateEndpointConnectionSlotCreateRequest(ct // instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5525,7 +5525,7 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5535,7 +5535,7 @@ func (client *WebAppsClient) deleteProcessCreateRequest(ctx context.Context, res // instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -5591,7 +5591,7 @@ func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5600,7 +5600,7 @@ func (client *WebAppsClient) deleteProcessSlotCreateRequest(ctx context.Context, // DeletePublicCertificate - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -5651,7 +5651,7 @@ func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5660,7 +5660,7 @@ func (client *WebAppsClient) deletePublicCertificateCreateRequest(ctx context.Co // DeletePublicCertificateSlot - Description for Deletes a hostname binding for an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. @@ -5716,7 +5716,7 @@ func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5725,7 +5725,7 @@ func (client *WebAppsClient) deletePublicCertificateSlotCreateRequest(ctx contex // DeleteRelayServiceConnection - Description for Deletes a relay service connection by its name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -5776,7 +5776,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5785,7 +5785,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionCreateRequest(ctx conte // DeleteRelayServiceConnectionSlot - Description for Deletes a relay service connection by its name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -5842,7 +5842,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5851,7 +5851,7 @@ func (client *WebAppsClient) deleteRelayServiceConnectionSlotCreateRequest(ctx c // DeleteSiteContainer - Deletes a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - containerName - Site Container Name @@ -5902,7 +5902,7 @@ func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5911,7 +5911,7 @@ func (client *WebAppsClient) deleteSiteContainerCreateRequest(ctx context.Contex // DeleteSiteContainerSlot - Deletes a site container for a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the container for the production slot. @@ -5967,7 +5967,7 @@ func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -5976,7 +5976,7 @@ func (client *WebAppsClient) deleteSiteContainerSlotCreateRequest(ctx context.Co // DeleteSiteExtension - Description for Remove a site extension from a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -6027,7 +6027,7 @@ func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6036,7 +6036,7 @@ func (client *WebAppsClient) deleteSiteExtensionCreateRequest(ctx context.Contex // DeleteSiteExtensionSlot - Description for Remove a site extension from a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -6092,7 +6092,7 @@ func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6101,7 +6101,7 @@ func (client *WebAppsClient) deleteSiteExtensionSlotCreateRequest(ctx context.Co // DeleteSlot - Description for Deletes a web, mobile, or API app, or one of the deployment slots. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app to delete. // - slot - Name of the deployment slot to delete. By default, the API deletes the production slot. @@ -6151,7 +6151,7 @@ func (client *WebAppsClient) deleteSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DeleteEmptyServerFarm != nil { reqQP.Set("deleteEmptyServerFarm", strconv.FormatBool(*options.DeleteEmptyServerFarm)) } @@ -6166,7 +6166,7 @@ func (client *WebAppsClient) deleteSlotCreateRequest(ctx context.Context, resour // DeleteSourceControl - Description for Deletes the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientDeleteSourceControlOptions contains the optional parameters for the WebAppsClient.DeleteSourceControl @@ -6215,7 +6215,7 @@ func (client *WebAppsClient) deleteSourceControlCreateRequest(ctx context.Contex if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6224,7 +6224,7 @@ func (client *WebAppsClient) deleteSourceControlCreateRequest(ctx context.Contex // DeleteSourceControlSlot - Description for Deletes the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the source control configuration for @@ -6279,7 +6279,7 @@ func (client *WebAppsClient) deleteSourceControlSlotCreateRequest(ctx context.Co if options != nil && options.AdditionalFlags != nil { reqQP.Set("additionalFlags", *options.AdditionalFlags) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6288,7 +6288,7 @@ func (client *WebAppsClient) deleteSourceControlSlotCreateRequest(ctx context.Co // DeleteSwiftVirtualNetwork - Description for Deletes a Swift Virtual Network connection from an app (or deployment slot). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientDeleteSwiftVirtualNetworkOptions contains the optional parameters for the WebAppsClient.DeleteSwiftVirtualNetwork @@ -6334,7 +6334,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6343,7 +6343,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkCreateRequest(ctx context. // DeleteSwiftVirtualNetworkSlot - Description for Deletes a Swift Virtual Network connection from an app (or deployment slot). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. @@ -6394,7 +6394,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6403,7 +6403,7 @@ func (client *WebAppsClient) deleteSwiftVirtualNetworkSlotCreateRequest(ctx cont // DeleteTriggeredWebJob - Description for Delete a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -6454,7 +6454,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6463,7 +6463,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobCreateRequest(ctx context.Cont // DeleteTriggeredWebJobSlot - Description for Delete a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -6519,7 +6519,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6528,7 +6528,7 @@ func (client *WebAppsClient) deleteTriggeredWebJobSlotCreateRequest(ctx context. // DeleteVnetConnection - Description for Deletes a connection from an app (or deployment slot to a named virtual network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -6579,7 +6579,7 @@ func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6588,7 +6588,7 @@ func (client *WebAppsClient) deleteVnetConnectionCreateRequest(ctx context.Conte // DeleteVnetConnectionSlot - Description for Deletes a connection from an app (or deployment slot to a named virtual network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -6644,7 +6644,7 @@ func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6653,7 +6653,7 @@ func (client *WebAppsClient) deleteVnetConnectionSlotCreateRequest(ctx context.C // DeployWorkflowArtifacts - Description for Creates the artifacts for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -6699,7 +6699,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.WorkflowArtifacts != nil { @@ -6714,7 +6714,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsCreateRequest(ctx context.Co // DeployWorkflowArtifactsSlot - Description for Creates the artifacts for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -6765,7 +6765,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.WorkflowArtifacts != nil { @@ -6781,7 +6781,7 @@ func (client *WebAppsClient) deployWorkflowArtifactsSlotCreateRequest(ctx contex // this to get information about the databases stored in a backup. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - request - A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. @@ -6828,7 +6828,7 @@ func (client *WebAppsClient) discoverBackupCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -6850,7 +6850,7 @@ func (client *WebAppsClient) discoverBackupHandleResponse(resp *http.Response) ( // Use this to get information about the databases stored in a backup. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. @@ -6903,7 +6903,7 @@ func (client *WebAppsClient) discoverBackupSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -6925,7 +6925,7 @@ func (client *WebAppsClient) discoverBackupSlotHandleResponse(resp *http.Respons // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGenerateNewSitePublishingPasswordOptions contains the optional parameters for the WebAppsClient.GenerateNewSitePublishingPassword @@ -6971,7 +6971,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -6981,7 +6981,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordCreateRequest(ctx // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API generate a new publishing password for the production @@ -7033,7 +7033,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7042,7 +7042,7 @@ func (client *WebAppsClient) generateNewSitePublishingPasswordSlotCreateRequest( // Get - Description for Gets the details of a web, mobile, or API app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetOptions contains the optional parameters for the WebAppsClient.Get method. @@ -7088,7 +7088,7 @@ func (client *WebAppsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7106,7 +7106,7 @@ func (client *WebAppsClient) getHandleResponse(resp *http.Response) (WebAppsClie // GetAppSettingKeyVaultReference - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - appSettingKey - App Setting key name. @@ -7158,7 +7158,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7176,7 +7176,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceHandleResponse(resp * // GetAppSettingKeyVaultReferenceSlot - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - appSettingKey - App Setting key name. @@ -7232,7 +7232,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7249,7 +7249,7 @@ func (client *WebAppsClient) getAppSettingKeyVaultReferenceSlotHandleResponse(re // NewGetAppSettingsKeyVaultReferencesPager - Description for Gets the config reference app settings and status of an app // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetAppSettingsKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.NewGetAppSettingsKeyVaultReferencesPager @@ -7297,7 +7297,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7315,7 +7315,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesHandleResponse(resp // NewGetAppSettingsKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status of an // app // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetAppSettingsKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.NewGetAppSettingsKeyVaultReferencesSlotPager @@ -7367,7 +7367,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7385,7 +7385,7 @@ func (client *WebAppsClient) getAppSettingsKeyVaultReferencesSlotHandleResponse( // GetAuthSettings - Description for Gets the Authentication/Authorization settings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetAuthSettingsOptions contains the optional parameters for the WebAppsClient.GetAuthSettings method. @@ -7431,7 +7431,7 @@ func (client *WebAppsClient) getAuthSettingsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7449,7 +7449,7 @@ func (client *WebAppsClient) getAuthSettingsHandleResponse(resp *http.Response) // GetAuthSettingsSlot - Description for Gets the Authentication/Authorization settings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. @@ -7501,7 +7501,7 @@ func (client *WebAppsClient) getAuthSettingsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7519,7 +7519,7 @@ func (client *WebAppsClient) getAuthSettingsSlotHandleResponse(resp *http.Respon // GetAuthSettingsV2 - Description for Gets site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetAuthSettingsV2Options contains the optional parameters for the WebAppsClient.GetAuthSettingsV2 @@ -7566,7 +7566,7 @@ func (client *WebAppsClient) getAuthSettingsV2CreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7584,7 +7584,7 @@ func (client *WebAppsClient) getAuthSettingsV2HandleResponse(resp *http.Response // GetAuthSettingsV2Slot - Description for Gets site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. @@ -7636,7 +7636,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7655,7 +7655,7 @@ func (client *WebAppsClient) getAuthSettingsV2SlotHandleResponse(resp *http.Resp // V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetAuthSettingsV2WithoutSecretsOptions contains the optional parameters for the WebAppsClient.GetAuthSettingsV2WithoutSecrets @@ -7702,7 +7702,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7720,7 +7720,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsHandleResponse(resp // GetAuthSettingsV2WithoutSecretsSlot - Gets site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. @@ -7772,7 +7772,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7790,7 +7790,7 @@ func (client *WebAppsClient) getAuthSettingsV2WithoutSecretsSlotHandleResponse(r // GetBackupConfiguration - Description for Gets the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetBackupConfigurationOptions contains the optional parameters for the WebAppsClient.GetBackupConfiguration @@ -7837,7 +7837,7 @@ func (client *WebAppsClient) getBackupConfigurationCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7855,7 +7855,7 @@ func (client *WebAppsClient) getBackupConfigurationHandleResponse(resp *http.Res // GetBackupConfigurationSlot - Description for Gets the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production @@ -7908,7 +7908,7 @@ func (client *WebAppsClient) getBackupConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7926,7 +7926,7 @@ func (client *WebAppsClient) getBackupConfigurationSlotHandleResponse(resp *http // GetBackupStatus - Description for Gets a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -7977,7 +7977,7 @@ func (client *WebAppsClient) getBackupStatusCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -7995,7 +7995,7 @@ func (client *WebAppsClient) getBackupStatusHandleResponse(resp *http.Response) // GetBackupStatusSlot - Description for Gets a backup of an app by its ID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -8052,7 +8052,7 @@ func (client *WebAppsClient) getBackupStatusSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8071,7 +8071,7 @@ func (client *WebAppsClient) getBackupStatusSlotHandleResponse(resp *http.Respon // virtual applications, Always On, etc. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetConfigurationOptions contains the optional parameters for the WebAppsClient.GetConfiguration @@ -8118,7 +8118,7 @@ func (client *WebAppsClient) getConfigurationCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8137,7 +8137,7 @@ func (client *WebAppsClient) getConfigurationHandleResponse(resp *http.Response) // documents, virtual applications, Always On, etc. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. @@ -8189,7 +8189,7 @@ func (client *WebAppsClient) getConfigurationSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8207,7 +8207,7 @@ func (client *WebAppsClient) getConfigurationSlotHandleResponse(resp *http.Respo // GetConfigurationSnapshot - Description for Gets a snapshot of the configuration of an app at a previous point in time. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - snapshotID - The ID of the snapshot to read. @@ -8259,7 +8259,7 @@ func (client *WebAppsClient) getConfigurationSnapshotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8277,7 +8277,7 @@ func (client *WebAppsClient) getConfigurationSnapshotHandleResponse(resp *http.R // GetConfigurationSnapshotSlot - Description for Gets a snapshot of the configuration of an app at a previous point in time. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - snapshotID - The ID of the snapshot to read. @@ -8334,7 +8334,7 @@ func (client *WebAppsClient) getConfigurationSnapshotSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8352,7 +8352,7 @@ func (client *WebAppsClient) getConfigurationSnapshotSlotHandleResponse(resp *ht // GetContainerLogsZip - Description for Gets the ZIP archived docker log files for the given site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetContainerLogsZipOptions contains the optional parameters for the WebAppsClient.GetContainerLogsZip @@ -8398,7 +8398,7 @@ func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/zip"} @@ -8408,7 +8408,7 @@ func (client *WebAppsClient) getContainerLogsZipCreateRequest(ctx context.Contex // GetContainerLogsZipSlot - Description for Gets the ZIP archived docker log files for the given site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -8459,7 +8459,7 @@ func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/zip"} @@ -8469,7 +8469,7 @@ func (client *WebAppsClient) getContainerLogsZipSlotCreateRequest(ctx context.Co // GetContinuousWebJob - Description for Gets a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -8521,7 +8521,7 @@ func (client *WebAppsClient) getContinuousWebJobCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8539,7 +8539,7 @@ func (client *WebAppsClient) getContinuousWebJobHandleResponse(resp *http.Respon // GetContinuousWebJobSlot - Description for Gets a continuous web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -8596,7 +8596,7 @@ func (client *WebAppsClient) getContinuousWebJobSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8614,7 +8614,7 @@ func (client *WebAppsClient) getContinuousWebJobSlotHandleResponse(resp *http.Re // GetDeployment - Description for Get a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -8665,7 +8665,7 @@ func (client *WebAppsClient) getDeploymentCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8683,7 +8683,7 @@ func (client *WebAppsClient) getDeploymentHandleResponse(resp *http.Response) (W // GetDeploymentSlot - Description for Get a deployment by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - Deployment ID. @@ -8740,7 +8740,7 @@ func (client *WebAppsClient) getDeploymentSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8758,7 +8758,7 @@ func (client *WebAppsClient) getDeploymentSlotHandleResponse(resp *http.Response // GetDiagnosticLogsConfiguration - Description for Gets the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetDiagnosticLogsConfigurationOptions contains the optional parameters for the WebAppsClient.GetDiagnosticLogsConfiguration @@ -8805,7 +8805,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8823,7 +8823,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationHandleResponse(resp * // GetDiagnosticLogsConfigurationSlot - Description for Gets the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production @@ -8876,7 +8876,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8894,7 +8894,7 @@ func (client *WebAppsClient) getDiagnosticLogsConfigurationSlotHandleResponse(re // GetDomainOwnershipIdentifier - Description for Get domain ownership identifier for web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -8946,7 +8946,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -8964,7 +8964,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierHandleResponse(resp *ht // GetDomainOwnershipIdentifierSlot - Description for Get domain ownership identifier for web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -9021,7 +9021,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9039,7 +9039,7 @@ func (client *WebAppsClient) getDomainOwnershipIdentifierSlotHandleResponse(resp // GetFtpAllowed - Description for Returns whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetFtpAllowedOptions contains the optional parameters for the WebAppsClient.GetFtpAllowed method. @@ -9085,7 +9085,7 @@ func (client *WebAppsClient) getFtpAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9103,7 +9103,7 @@ func (client *WebAppsClient) getFtpAllowedHandleResponse(resp *http.Response) (W // GetFtpAllowedSlot - Description for Returns whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetFtpAllowedSlotOptions contains the optional parameters for the WebAppsClient.GetFtpAllowedSlot @@ -9154,7 +9154,7 @@ func (client *WebAppsClient) getFtpAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9172,7 +9172,7 @@ func (client *WebAppsClient) getFtpAllowedSlotHandleResponse(resp *http.Response // GetFunction - Description for Get function information by its ID for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -9223,7 +9223,7 @@ func (client *WebAppsClient) getFunctionCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9241,7 +9241,7 @@ func (client *WebAppsClient) getFunctionHandleResponse(resp *http.Response) (Web // GetFunctionsAdminToken - Description for Fetch a short lived token that can be exchanged for a master key. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetFunctionsAdminTokenOptions contains the optional parameters for the WebAppsClient.GetFunctionsAdminToken @@ -9288,7 +9288,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9306,7 +9306,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenHandleResponse(resp *http.Res // GetFunctionsAdminTokenSlot - Description for Fetch a short lived token that can be exchanged for a master key. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -9358,7 +9358,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9376,7 +9376,7 @@ func (client *WebAppsClient) getFunctionsAdminTokenSlotHandleResponse(resp *http // GetHostNameBinding - Description for Get the named hostname binding for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - hostName - Hostname in the hostname binding. @@ -9428,7 +9428,7 @@ func (client *WebAppsClient) getHostNameBindingCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9446,7 +9446,7 @@ func (client *WebAppsClient) getHostNameBindingHandleResponse(resp *http.Respons // GetHostNameBindingSlot - Description for Get the named hostname binding for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. @@ -9503,7 +9503,7 @@ func (client *WebAppsClient) getHostNameBindingSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9521,7 +9521,7 @@ func (client *WebAppsClient) getHostNameBindingSlotHandleResponse(resp *http.Res // GetHybridConnection - Description for Retrieves a specific Service Bus Hybrid Connection used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -9578,7 +9578,7 @@ func (client *WebAppsClient) getHybridConnectionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9596,7 +9596,7 @@ func (client *WebAppsClient) getHybridConnectionHandleResponse(resp *http.Respon // GetHybridConnectionSlot - Description for Retrieves a specific Service Bus Hybrid Connection used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -9658,7 +9658,7 @@ func (client *WebAppsClient) getHybridConnectionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9676,7 +9676,7 @@ func (client *WebAppsClient) getHybridConnectionSlotHandleResponse(resp *http.Re // GetInstanceFunctionSlot - Description for Get function information by its ID for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -9733,7 +9733,7 @@ func (client *WebAppsClient) getInstanceFunctionSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9751,7 +9751,7 @@ func (client *WebAppsClient) getInstanceFunctionSlotHandleResponse(resp *http.Re // GetInstanceInfo - Description for Gets all scale-out instances of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetInstanceInfoOptions contains the optional parameters for the WebAppsClient.GetInstanceInfo method. @@ -9801,7 +9801,7 @@ func (client *WebAppsClient) getInstanceInfoCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9819,7 +9819,7 @@ func (client *WebAppsClient) getInstanceInfoHandleResponse(resp *http.Response) // GetInstanceInfoSlot - Description for Gets all scale-out instances of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. @@ -9875,7 +9875,7 @@ func (client *WebAppsClient) getInstanceInfoSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9893,7 +9893,7 @@ func (client *WebAppsClient) getInstanceInfoSlotHandleResponse(resp *http.Respon // GetInstanceMSDeployLog - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - instanceID - ID of web app instance. @@ -9945,7 +9945,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -9963,7 +9963,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogHandleResponse(resp *http.Res // GetInstanceMSDeployLogSlot - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -10020,7 +10020,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10038,7 +10038,7 @@ func (client *WebAppsClient) getInstanceMSDeployLogSlotHandleResponse(resp *http // GetInstanceMsDeployStatus - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - instanceID - ID of web app instance. @@ -10090,7 +10090,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10108,7 +10108,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusHandleResponse(resp *http. // GetInstanceMsDeployStatusSlot - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -10165,7 +10165,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10183,7 +10183,7 @@ func (client *WebAppsClient) getInstanceMsDeployStatusSlotHandleResponse(resp *h // GetInstanceProcess - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10241,7 +10241,7 @@ func (client *WebAppsClient) getInstanceProcessCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10260,7 +10260,7 @@ func (client *WebAppsClient) getInstanceProcessHandleResponse(resp *http.Respons // a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10317,7 +10317,7 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -10328,7 +10328,7 @@ func (client *WebAppsClient) getInstanceProcessDumpCreateRequest(ctx context.Con // in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10390,7 +10390,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -10401,7 +10401,7 @@ func (client *WebAppsClient) getInstanceProcessDumpSlotCreateRequest(ctx context // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10464,7 +10464,7 @@ func (client *WebAppsClient) getInstanceProcessModuleCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10483,7 +10483,7 @@ func (client *WebAppsClient) getInstanceProcessModuleHandleResponse(resp *http.R // a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10551,7 +10551,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10570,7 +10570,7 @@ func (client *WebAppsClient) getInstanceProcessModuleSlotHandleResponse(resp *ht // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -10633,7 +10633,7 @@ func (client *WebAppsClient) getInstanceProcessSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10651,7 +10651,7 @@ func (client *WebAppsClient) getInstanceProcessSlotHandleResponse(resp *http.Res // GetInstanceWorkflowSlot - Get workflow information by its ID for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -10708,7 +10708,7 @@ func (client *WebAppsClient) getInstanceWorkflowSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10726,7 +10726,7 @@ func (client *WebAppsClient) getInstanceWorkflowSlotHandleResponse(resp *http.Re // GetMSDeployLog - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetMSDeployLogOptions contains the optional parameters for the WebAppsClient.GetMSDeployLog method. @@ -10772,7 +10772,7 @@ func (client *WebAppsClient) getMSDeployLogCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10790,7 +10790,7 @@ func (client *WebAppsClient) getMSDeployLogHandleResponse(resp *http.Response) ( // GetMSDeployLogSlot - Description for Get the MSDeploy Log for the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -10842,7 +10842,7 @@ func (client *WebAppsClient) getMSDeployLogSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10860,7 +10860,7 @@ func (client *WebAppsClient) getMSDeployLogSlotHandleResponse(resp *http.Respons // GetMSDeployStatus - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetMSDeployStatusOptions contains the optional parameters for the WebAppsClient.GetMSDeployStatus @@ -10907,7 +10907,7 @@ func (client *WebAppsClient) getMSDeployStatusCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10925,7 +10925,7 @@ func (client *WebAppsClient) getMSDeployStatusHandleResponse(resp *http.Response // GetMSDeployStatusSlot - Description for Get the status of the last MSDeploy operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -10977,7 +10977,7 @@ func (client *WebAppsClient) getMSDeployStatusSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -10996,7 +10996,7 @@ func (client *WebAppsClient) getMSDeployStatusSlotHandleResponse(resp *http.Resp // not MySql in app is enabled // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetMigrateMySQLStatusOptions contains the optional parameters for the WebAppsClient.GetMigrateMySQLStatus @@ -11043,7 +11043,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11062,7 +11062,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusHandleResponse(resp *http.Resp // or not MySql in app is enabled // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of the deployment slot. @@ -11114,7 +11114,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11133,7 +11133,7 @@ func (client *WebAppsClient) getMigrateMySQLStatusSlotHandleResponse(resp *http. // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11185,7 +11185,7 @@ func (client *WebAppsClient) getNetworkTraceOperationCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11204,7 +11204,7 @@ func (client *WebAppsClient) getNetworkTraceOperationHandleResponse(resp *http.R // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11261,7 +11261,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11280,7 +11280,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotHandleResponse(resp *ht // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11337,7 +11337,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2CreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11356,7 +11356,7 @@ func (client *WebAppsClient) getNetworkTraceOperationSlotV2HandleResponse(resp * // if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11408,7 +11408,7 @@ func (client *WebAppsClient) getNetworkTraceOperationV2CreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11426,7 +11426,7 @@ func (client *WebAppsClient) getNetworkTraceOperationV2HandleResponse(resp *http // GetNetworkTraces - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11478,7 +11478,7 @@ func (client *WebAppsClient) getNetworkTracesCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11496,7 +11496,7 @@ func (client *WebAppsClient) getNetworkTracesHandleResponse(resp *http.Response) // GetNetworkTracesSlot - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11553,7 +11553,7 @@ func (client *WebAppsClient) getNetworkTracesSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11571,7 +11571,7 @@ func (client *WebAppsClient) getNetworkTracesSlotHandleResponse(resp *http.Respo // GetNetworkTracesSlotV2 - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11628,7 +11628,7 @@ func (client *WebAppsClient) getNetworkTracesSlotV2CreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11646,7 +11646,7 @@ func (client *WebAppsClient) getNetworkTracesSlotV2HandleResponse(resp *http.Res // GetNetworkTracesV2 - Description for Gets a named operation for a network trace capturing (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - operationID - GUID of the operation. @@ -11698,7 +11698,7 @@ func (client *WebAppsClient) getNetworkTracesV2CreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11717,7 +11717,7 @@ func (client *WebAppsClient) getNetworkTracesV2HandleResponse(resp *http.Respons // site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetOneDeployStatusOptions contains the optional parameters for the WebAppsClient.GetOneDeployStatus @@ -11764,7 +11764,7 @@ func (client *WebAppsClient) getOneDeployStatusCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11782,7 +11782,7 @@ func (client *WebAppsClient) getOneDeployStatusHandleResponse(resp *http.Respons // GetPremierAddOn - Description for Gets a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -11833,7 +11833,7 @@ func (client *WebAppsClient) getPremierAddOnCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11851,7 +11851,7 @@ func (client *WebAppsClient) getPremierAddOnHandleResponse(resp *http.Response) // GetPremierAddOnSlot - Description for Gets a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -11908,7 +11908,7 @@ func (client *WebAppsClient) getPremierAddOnSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11927,7 +11927,7 @@ func (client *WebAppsClient) getPremierAddOnSlotHandleResponse(resp *http.Respon // can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientGetPrivateAccessOptions contains the optional parameters for the WebAppsClient.GetPrivateAccess @@ -11974,7 +11974,7 @@ func (client *WebAppsClient) getPrivateAccessCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -11993,7 +11993,7 @@ func (client *WebAppsClient) getPrivateAccessHandleResponse(resp *http.Response) // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for the web app. @@ -12045,7 +12045,7 @@ func (client *WebAppsClient) getPrivateAccessSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12063,7 +12063,7 @@ func (client *WebAppsClient) getPrivateAccessSlotHandleResponse(resp *http.Respo // GetPrivateEndpointConnection - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -12115,7 +12115,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12133,7 +12133,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionHandleResponse(resp *ht // NewGetPrivateEndpointConnectionListPager - Description for Gets the list of private endpoint connections associated with // a site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientGetPrivateEndpointConnectionListOptions contains the optional parameters for the WebAppsClient.NewGetPrivateEndpointConnectionListPager @@ -12181,7 +12181,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12199,7 +12199,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListHandleResponse(resp // NewGetPrivateEndpointConnectionListSlotPager - Description for Gets the list of private endpoint connections associated // with a site // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - slot - Name of the site deployment slot. @@ -12252,7 +12252,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12270,7 +12270,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionListSlotHandleResponse( // GetPrivateEndpointConnectionSlot - Description for Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - privateEndpointConnectionName - Name of the private endpoint connection. @@ -12327,7 +12327,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12345,7 +12345,7 @@ func (client *WebAppsClient) getPrivateEndpointConnectionSlotHandleResponse(resp // GetPrivateLinkResources - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientGetPrivateLinkResourcesOptions contains the optional parameters for the WebAppsClient.GetPrivateLinkResources @@ -12392,7 +12392,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12410,7 +12410,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesHandleResponse(resp *http.Re // GetPrivateLinkResourcesSlot - Description for Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the site. // - options - WebAppsClientGetPrivateLinkResourcesSlotOptions contains the optional parameters for the WebAppsClient.GetPrivateLinkResourcesSlot @@ -12461,7 +12461,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12479,7 +12479,7 @@ func (client *WebAppsClient) getPrivateLinkResourcesSlotHandleResponse(resp *htt // GetProcess - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12530,7 +12530,7 @@ func (client *WebAppsClient) getProcessCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12548,7 +12548,7 @@ func (client *WebAppsClient) getProcessHandleResponse(resp *http.Response) (WebA // GetProcessDump - Description for Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12598,7 +12598,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -12609,7 +12609,7 @@ func (client *WebAppsClient) getProcessDumpCreateRequest(ctx context.Context, re // site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12665,7 +12665,7 @@ func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/json"} @@ -12675,7 +12675,7 @@ func (client *WebAppsClient) getProcessDumpSlotCreateRequest(ctx context.Context // GetProcessModule - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12732,7 +12732,7 @@ func (client *WebAppsClient) getProcessModuleCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12750,7 +12750,7 @@ func (client *WebAppsClient) getProcessModuleHandleResponse(resp *http.Response) // GetProcessModuleSlot - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12812,7 +12812,7 @@ func (client *WebAppsClient) getProcessModuleSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12830,7 +12830,7 @@ func (client *WebAppsClient) getProcessModuleSlotHandleResponse(resp *http.Respo // GetProcessSlot - Description for Get process information by its ID for a specific scaled-out instance in a web site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -12886,7 +12886,7 @@ func (client *WebAppsClient) getProcessSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12904,7 +12904,7 @@ func (client *WebAppsClient) getProcessSlotHandleResponse(resp *http.Response) ( // BeginGetProductionSiteDeploymentStatus - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - deploymentStatusID - GUID of the deployment operation. @@ -12930,7 +12930,7 @@ func (client *WebAppsClient) BeginGetProductionSiteDeploymentStatus(ctx context. // GetProductionSiteDeploymentStatus - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -12976,7 +12976,7 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -12985,7 +12985,7 @@ func (client *WebAppsClient) getProductionSiteDeploymentStatusCreateRequest(ctx // GetPublicCertificate - Description for Get the named public certificate for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publicCertificateName - Public certificate name. @@ -13037,7 +13037,7 @@ func (client *WebAppsClient) getPublicCertificateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13055,7 +13055,7 @@ func (client *WebAppsClient) getPublicCertificateHandleResponse(resp *http.Respo // GetPublicCertificateSlot - Description for Get the named public certificate for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. @@ -13112,7 +13112,7 @@ func (client *WebAppsClient) getPublicCertificateSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13130,7 +13130,7 @@ func (client *WebAppsClient) getPublicCertificateSlotHandleResponse(resp *http.R // GetRelayServiceConnection - Description for Gets a hybrid connection configuration by its name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection. @@ -13182,7 +13182,7 @@ func (client *WebAppsClient) getRelayServiceConnectionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13200,7 +13200,7 @@ func (client *WebAppsClient) getRelayServiceConnectionHandleResponse(resp *http. // GetRelayServiceConnectionSlot - Description for Gets a hybrid connection configuration by its name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection. @@ -13258,7 +13258,7 @@ func (client *WebAppsClient) getRelayServiceConnectionSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13276,7 +13276,7 @@ func (client *WebAppsClient) getRelayServiceConnectionSlotHandleResponse(resp *h // GetScmAllowed - Description for Returns whether Scm basic auth is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetScmAllowedOptions contains the optional parameters for the WebAppsClient.GetScmAllowed method. @@ -13322,7 +13322,7 @@ func (client *WebAppsClient) getScmAllowedCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13340,7 +13340,7 @@ func (client *WebAppsClient) getScmAllowedHandleResponse(resp *http.Response) (W // GetScmAllowedSlot - Description for Returns whether Scm basic auth is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetScmAllowedSlotOptions contains the optional parameters for the WebAppsClient.GetScmAllowedSlot @@ -13391,7 +13391,7 @@ func (client *WebAppsClient) getScmAllowedSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13409,7 +13409,7 @@ func (client *WebAppsClient) getScmAllowedSlotHandleResponse(resp *http.Response // GetSiteConnectionStringKeyVaultReference - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetSiteConnectionStringKeyVaultReferenceOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReference @@ -13460,7 +13460,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13478,7 +13478,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceHandleRespo // GetSiteConnectionStringKeyVaultReferenceSlot - Description for Gets the config reference and status of an app // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetSiteConnectionStringKeyVaultReferenceSlotOptions contains the optional parameters for the WebAppsClient.GetSiteConnectionStringKeyVaultReferenceSlot @@ -13533,7 +13533,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13551,7 +13551,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferenceSlotHandleR // NewGetSiteConnectionStringKeyVaultReferencesPager - Description for Gets the config reference app settings and status of // an app // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetSiteConnectionStringKeyVaultReferencesOptions contains the optional parameters for the WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesPager @@ -13599,7 +13599,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13617,7 +13617,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesHandleResp // NewGetSiteConnectionStringKeyVaultReferencesSlotPager - Description for Gets the config reference app settings and status // of an app // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetSiteConnectionStringKeyVaultReferencesSlotOptions contains the optional parameters for the WebAppsClient.NewGetSiteConnectionStringKeyVaultReferencesSlotPager @@ -13669,7 +13669,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotCreate return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13687,7 +13687,7 @@ func (client *WebAppsClient) getSiteConnectionStringKeyVaultReferencesSlotHandle // GetSiteContainer - Gets a site container of a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - containerName - Site Container Name @@ -13739,7 +13739,7 @@ func (client *WebAppsClient) getSiteContainerCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13757,7 +13757,7 @@ func (client *WebAppsClient) getSiteContainerHandleResponse(resp *http.Response) // GetSiteContainerSlot - Gets a site container of a site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the Site Container for the production @@ -13815,7 +13815,7 @@ func (client *WebAppsClient) getSiteContainerSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13833,7 +13833,7 @@ func (client *WebAppsClient) getSiteContainerSlotHandleResponse(resp *http.Respo // GetSiteExtension - Description for Get site extension information by its ID for a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -13885,7 +13885,7 @@ func (client *WebAppsClient) getSiteExtensionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13903,7 +13903,7 @@ func (client *WebAppsClient) getSiteExtensionHandleResponse(resp *http.Response) // GetSiteExtensionSlot - Description for Get site extension information by its ID for a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -13960,7 +13960,7 @@ func (client *WebAppsClient) getSiteExtensionSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -13978,7 +13978,7 @@ func (client *WebAppsClient) getSiteExtensionSlotHandleResponse(resp *http.Respo // GetSitePhpErrorLogFlag - Description for Gets web app's event logs. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetSitePhpErrorLogFlagOptions contains the optional parameters for the WebAppsClient.GetSitePhpErrorLogFlag @@ -14025,7 +14025,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14043,7 +14043,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagHandleResponse(resp *http.Res // GetSitePhpErrorLogFlagSlot - Description for Gets web app's event logs. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -14095,7 +14095,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14113,7 +14113,7 @@ func (client *WebAppsClient) getSitePhpErrorLogFlagSlotHandleResponse(resp *http // GetSlot - Description for Gets the details of a web, mobile, or API app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. By default, this API returns the production slot. @@ -14164,7 +14164,7 @@ func (client *WebAppsClient) getSlotCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14182,7 +14182,7 @@ func (client *WebAppsClient) getSlotHandleResponse(resp *http.Response) (WebApps // BeginGetSlotSiteDeploymentStatusSlot - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the deployment status for the production @@ -14210,7 +14210,7 @@ func (client *WebAppsClient) BeginGetSlotSiteDeploymentStatusSlot(ctx context.Co // GetSlotSiteDeploymentStatusSlot - Gets the deployment status for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -14260,7 +14260,7 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14269,7 +14269,7 @@ func (client *WebAppsClient) getSlotSiteDeploymentStatusSlotCreateRequest(ctx co // GetSourceControl - Description for Gets the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetSourceControlOptions contains the optional parameters for the WebAppsClient.GetSourceControl @@ -14316,7 +14316,7 @@ func (client *WebAppsClient) getSourceControlCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14334,7 +14334,7 @@ func (client *WebAppsClient) getSourceControlHandleResponse(resp *http.Response) // GetSourceControlSlot - Description for Gets the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the source control configuration for the @@ -14387,7 +14387,7 @@ func (client *WebAppsClient) getSourceControlSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14405,7 +14405,7 @@ func (client *WebAppsClient) getSourceControlSlotHandleResponse(resp *http.Respo // GetSwiftVirtualNetworkConnection - Description for Gets a Swift Virtual Network connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientGetSwiftVirtualNetworkConnectionOptions contains the optional parameters for the WebAppsClient.GetSwiftVirtualNetworkConnection @@ -14452,7 +14452,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14470,7 +14470,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionHandleResponse(resp // GetSwiftVirtualNetworkConnectionSlot - Description for Gets a Swift Virtual Network connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual @@ -14523,7 +14523,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14541,7 +14541,7 @@ func (client *WebAppsClient) getSwiftVirtualNetworkConnectionSlotHandleResponse( // GetTriggeredWebJob - Description for Gets a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14593,7 +14593,7 @@ func (client *WebAppsClient) getTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14612,7 +14612,7 @@ func (client *WebAppsClient) getTriggeredWebJobHandleResponse(resp *http.Respons // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14669,7 +14669,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14688,7 +14688,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistoryHandleResponse(resp *http. // slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14750,7 +14750,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistorySlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14768,7 +14768,7 @@ func (client *WebAppsClient) getTriggeredWebJobHistorySlotHandleResponse(resp *h // GetTriggeredWebJobSlot - Description for Gets a triggered web job by its ID for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -14825,7 +14825,7 @@ func (client *WebAppsClient) getTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14843,7 +14843,7 @@ func (client *WebAppsClient) getTriggeredWebJobSlotHandleResponse(resp *http.Res // GetVnetConnection - Description for Gets a virtual network the app (or deployment slot) is connected to by name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -14895,7 +14895,7 @@ func (client *WebAppsClient) getVnetConnectionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14913,7 +14913,7 @@ func (client *WebAppsClient) getVnetConnectionHandleResponse(resp *http.Response // GetVnetConnectionGateway - Description for Gets an app's Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -14970,7 +14970,7 @@ func (client *WebAppsClient) getVnetConnectionGatewayCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -14988,7 +14988,7 @@ func (client *WebAppsClient) getVnetConnectionGatewayHandleResponse(resp *http.R // GetVnetConnectionGatewaySlot - Description for Gets an app's Virtual Network gateway. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -15051,7 +15051,7 @@ func (client *WebAppsClient) getVnetConnectionGatewaySlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15069,7 +15069,7 @@ func (client *WebAppsClient) getVnetConnectionGatewaySlotHandleResponse(resp *ht // GetVnetConnectionSlot - Description for Gets a virtual network the app (or deployment slot) is connected to by name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the virtual network. @@ -15127,7 +15127,7 @@ func (client *WebAppsClient) getVnetConnectionSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15145,7 +15145,7 @@ func (client *WebAppsClient) getVnetConnectionSlotHandleResponse(resp *http.Resp // GetWebJob - Description for Get webjob information for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of the web job. @@ -15196,7 +15196,7 @@ func (client *WebAppsClient) getWebJobCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15214,7 +15214,7 @@ func (client *WebAppsClient) getWebJobHandleResponse(resp *http.Response) (WebAp // GetWebJobSlot - Description for Get webjob information for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of the web job. @@ -15270,7 +15270,7 @@ func (client *WebAppsClient) getWebJobSlotCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15288,7 +15288,7 @@ func (client *WebAppsClient) getWebJobSlotHandleResponse(resp *http.Response) (W // GetWebSiteContainerLogs - Description for Gets the last lines of docker logs for the given site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientGetWebSiteContainerLogsOptions contains the optional parameters for the WebAppsClient.GetWebSiteContainerLogs @@ -15334,7 +15334,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream"} @@ -15344,7 +15344,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsCreateRequest(ctx context.Co // GetWebSiteContainerLogsSlot - Description for Gets the last lines of docker logs for the given site // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -15395,7 +15395,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream"} @@ -15405,7 +15405,7 @@ func (client *WebAppsClient) getWebSiteContainerLogsSlotCreateRequest(ctx contex // GetWorkflow - Get workflow information by its ID for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - Workflow name. @@ -15456,7 +15456,7 @@ func (client *WebAppsClient) getWorkflowCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15474,7 +15474,7 @@ func (client *WebAppsClient) getWorkflowHandleResponse(resp *http.Response) (Web // BeginInstallSiteExtension - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -15500,7 +15500,7 @@ func (client *WebAppsClient) BeginInstallSiteExtension(ctx context.Context, reso // InstallSiteExtension - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -15546,7 +15546,7 @@ func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15555,7 +15555,7 @@ func (client *WebAppsClient) installSiteExtensionCreateRequest(ctx context.Conte // BeginInstallSiteExtensionSlot - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - siteExtensionID - Site extension name. @@ -15582,7 +15582,7 @@ func (client *WebAppsClient) BeginInstallSiteExtensionSlot(ctx context.Context, // InstallSiteExtensionSlot - Description for Install site extension on a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -15632,7 +15632,7 @@ func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15641,7 +15641,7 @@ func (client *WebAppsClient) installSiteExtensionSlotCreateRequest(ctx context.C // IsCloneable - Description for Shows whether an app can be cloned to another resource group or subscription. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientIsCloneableOptions contains the optional parameters for the WebAppsClient.IsCloneable method. @@ -15687,7 +15687,7 @@ func (client *WebAppsClient) isCloneableCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15705,7 +15705,7 @@ func (client *WebAppsClient) isCloneableHandleResponse(resp *http.Response) (Web // IsCloneableSlot - Description for Shows whether an app can be cloned to another resource group or subscription. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. By default, this API returns information on the production slot. @@ -15756,7 +15756,7 @@ func (client *WebAppsClient) isCloneableSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15773,7 +15773,7 @@ func (client *WebAppsClient) isCloneableSlotHandleResponse(resp *http.Response) // NewListPager - Description for Get all apps for a subscription. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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]{ @@ -15810,7 +15810,7 @@ func (client *WebAppsClient) listCreateRequest(ctx context.Context, _ *WebAppsCl return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15828,7 +15828,7 @@ func (client *WebAppsClient) listHandleResponse(resp *http.Response) (WebAppsCli // ListApplicationSettings - Description for Gets the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListApplicationSettingsOptions contains the optional parameters for the WebAppsClient.ListApplicationSettings @@ -15875,7 +15875,7 @@ func (client *WebAppsClient) listApplicationSettingsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15893,7 +15893,7 @@ func (client *WebAppsClient) listApplicationSettingsHandleResponse(resp *http.Re // ListApplicationSettingsSlot - Description for Gets the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production @@ -15946,7 +15946,7 @@ func (client *WebAppsClient) listApplicationSettingsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -15964,7 +15964,7 @@ func (client *WebAppsClient) listApplicationSettingsSlotHandleResponse(resp *htt // ListAzureStorageAccounts - Description for Gets the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListAzureStorageAccountsOptions contains the optional parameters for the WebAppsClient.ListAzureStorageAccounts @@ -16011,7 +16011,7 @@ func (client *WebAppsClient) listAzureStorageAccountsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16029,7 +16029,7 @@ func (client *WebAppsClient) listAzureStorageAccountsHandleResponse(resp *http.R // ListAzureStorageAccountsSlot - Description for Gets the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations @@ -16082,7 +16082,7 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16102,7 +16102,7 @@ func (client *WebAppsClient) listAzureStorageAccountsSlotHandleResponse(resp *ht // backup if a new URL is passed in the request body. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - backupID - ID of backup. @@ -16155,7 +16155,7 @@ func (client *WebAppsClient) listBackupStatusSecretsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -16178,7 +16178,7 @@ func (client *WebAppsClient) listBackupStatusSecretsHandleResponse(resp *http.Re // backup if a new URL is passed in the request body. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - backupID - ID of backup. @@ -16236,7 +16236,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -16256,7 +16256,7 @@ func (client *WebAppsClient) listBackupStatusSecretsSlotHandleResponse(resp *htt // NewListBackupsPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListBackupsOptions contains the optional parameters for the WebAppsClient.NewListBackupsPager method. @@ -16303,7 +16303,7 @@ func (client *WebAppsClient) listBackupsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16320,7 +16320,7 @@ func (client *WebAppsClient) listBackupsHandleResponse(resp *http.Response) (Web // NewListBackupsSlotPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. @@ -16373,7 +16373,7 @@ func (client *WebAppsClient) listBackupsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16391,7 +16391,7 @@ func (client *WebAppsClient) listBackupsSlotHandleResponse(resp *http.Response) // NewListBasicPublishingCredentialsPoliciesPager - Description for Returns whether Scm basic auth is allowed and whether // Ftp is allowed for a given site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListBasicPublishingCredentialsPoliciesOptions contains the optional parameters for the WebAppsClient.NewListBasicPublishingCredentialsPoliciesPager @@ -16439,7 +16439,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16457,7 +16457,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesHandleRespons // NewListBasicPublishingCredentialsPoliciesSlotPager - Description for Returns whether Scm basic auth is allowed and whether // Ftp is allowed for a given site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListBasicPublishingCredentialsPoliciesSlotOptions contains the optional parameters for the WebAppsClient.NewListBasicPublishingCredentialsPoliciesSlotPager @@ -16509,7 +16509,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16526,7 +16526,7 @@ func (client *WebAppsClient) listBasicPublishingCredentialsPoliciesSlotHandleRes // NewListByResourceGroupPager - Description for Gets all web, mobile, and API apps in the specified resource group. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - options - WebAppsClientListByResourceGroupOptions contains the optional parameters for the WebAppsClient.NewListByResourceGroupPager // method. @@ -16569,7 +16569,7 @@ func (client *WebAppsClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.IncludeSlots != nil { reqQP.Set("includeSlots", strconv.FormatBool(*options.IncludeSlots)) } @@ -16590,7 +16590,7 @@ func (client *WebAppsClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListConfigurationSnapshotInfoPager - Description for Gets a list of web app configuration snapshots identifiers. Each // element of the list contains a timestamp and the ID of the snapshot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListConfigurationSnapshotInfoOptions contains the optional parameters for the WebAppsClient.NewListConfigurationSnapshotInfoPager @@ -16638,7 +16638,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16656,7 +16656,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoHandleResponse(resp *h // NewListConfigurationSnapshotInfoSlotPager - Description for Gets a list of web app configuration snapshots identifiers. // Each element of the list contains a timestamp and the ID of the snapshot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. @@ -16709,7 +16709,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16726,7 +16726,7 @@ func (client *WebAppsClient) listConfigurationSnapshotInfoSlotHandleResponse(res // NewListConfigurationsPager - Description for List the configurations of an app // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListConfigurationsOptions contains the optional parameters for the WebAppsClient.NewListConfigurationsPager @@ -16774,7 +16774,7 @@ func (client *WebAppsClient) listConfigurationsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16791,7 +16791,7 @@ func (client *WebAppsClient) listConfigurationsHandleResponse(resp *http.Respons // NewListConfigurationsSlotPager - Description for List the configurations of an app // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. @@ -16844,7 +16844,7 @@ func (client *WebAppsClient) listConfigurationsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16862,7 +16862,7 @@ func (client *WebAppsClient) listConfigurationsSlotHandleResponse(resp *http.Res // ListConnectionStrings - Description for Gets the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListConnectionStringsOptions contains the optional parameters for the WebAppsClient.ListConnectionStrings @@ -16909,7 +16909,7 @@ func (client *WebAppsClient) listConnectionStringsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16927,7 +16927,7 @@ func (client *WebAppsClient) listConnectionStringsHandleResponse(resp *http.Resp // ListConnectionStringsSlot - Description for Gets the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production @@ -16980,7 +16980,7 @@ func (client *WebAppsClient) listConnectionStringsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -16997,7 +16997,7 @@ func (client *WebAppsClient) listConnectionStringsSlotHandleResponse(resp *http. // NewListContinuousWebJobsPager - Description for List continuous web jobs for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListContinuousWebJobsOptions contains the optional parameters for the WebAppsClient.NewListContinuousWebJobsPager @@ -17045,7 +17045,7 @@ func (client *WebAppsClient) listContinuousWebJobsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17062,7 +17062,7 @@ func (client *WebAppsClient) listContinuousWebJobsHandleResponse(resp *http.Resp // NewListContinuousWebJobsSlotPager - Description for List continuous web jobs for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. @@ -17115,7 +17115,7 @@ func (client *WebAppsClient) listContinuousWebJobsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17133,7 +17133,7 @@ func (client *WebAppsClient) listContinuousWebJobsSlotHandleResponse(resp *http. // ListDeploymentLog - Description for List deployment log for specific deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". @@ -17185,7 +17185,7 @@ func (client *WebAppsClient) listDeploymentLogCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17203,7 +17203,7 @@ func (client *WebAppsClient) listDeploymentLogHandleResponse(resp *http.Response // ListDeploymentLogSlot - Description for List deployment log for specific deployment for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - id - The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". @@ -17260,7 +17260,7 @@ func (client *WebAppsClient) listDeploymentLogSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17277,7 +17277,7 @@ func (client *WebAppsClient) listDeploymentLogSlotHandleResponse(resp *http.Resp // NewListDeploymentsPager - Description for List deployments for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListDeploymentsOptions contains the optional parameters for the WebAppsClient.NewListDeploymentsPager @@ -17325,7 +17325,7 @@ func (client *WebAppsClient) listDeploymentsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17342,7 +17342,7 @@ func (client *WebAppsClient) listDeploymentsHandleResponse(resp *http.Response) // NewListDeploymentsSlotPager - Description for List deployments for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. @@ -17395,7 +17395,7 @@ func (client *WebAppsClient) listDeploymentsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17412,7 +17412,7 @@ func (client *WebAppsClient) listDeploymentsSlotHandleResponse(resp *http.Respon // NewListDomainOwnershipIdentifiersPager - Description for Lists ownership identifiers for domain associated with web app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListDomainOwnershipIdentifiersOptions contains the optional parameters for the WebAppsClient.NewListDomainOwnershipIdentifiersPager @@ -17460,7 +17460,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17478,7 +17478,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersHandleResponse(resp * // NewListDomainOwnershipIdentifiersSlotPager - Description for Lists ownership identifiers for domain associated with web // app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. @@ -17531,7 +17531,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17549,7 +17549,7 @@ func (client *WebAppsClient) listDomainOwnershipIdentifiersSlotHandleResponse(re // ListFunctionKeys - Description for Get function keys for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17601,7 +17601,7 @@ func (client *WebAppsClient) listFunctionKeysCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17619,7 +17619,7 @@ func (client *WebAppsClient) listFunctionKeysHandleResponse(resp *http.Response) // ListFunctionKeysSlot - Description for Get function keys for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17676,7 +17676,7 @@ func (client *WebAppsClient) listFunctionKeysSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17694,7 +17694,7 @@ func (client *WebAppsClient) listFunctionKeysSlotHandleResponse(resp *http.Respo // ListFunctionSecrets - Description for Get function secrets for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17746,7 +17746,7 @@ func (client *WebAppsClient) listFunctionSecretsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17764,7 +17764,7 @@ func (client *WebAppsClient) listFunctionSecretsHandleResponse(resp *http.Respon // ListFunctionSecretsSlot - Description for Get function secrets for a function in a web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - functionName - Function name. @@ -17821,7 +17821,7 @@ func (client *WebAppsClient) listFunctionSecretsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17838,7 +17838,7 @@ func (client *WebAppsClient) listFunctionSecretsSlotHandleResponse(resp *http.Re // NewListFunctionsPager - Description for List the functions for a web site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListFunctionsOptions contains the optional parameters for the WebAppsClient.NewListFunctionsPager @@ -17886,7 +17886,7 @@ func (client *WebAppsClient) listFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17904,7 +17904,7 @@ func (client *WebAppsClient) listFunctionsHandleResponse(resp *http.Response) (W // ListHostKeys - Description for Get host secrets for a function app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListHostKeysOptions contains the optional parameters for the WebAppsClient.ListHostKeys method. @@ -17950,7 +17950,7 @@ func (client *WebAppsClient) listHostKeysCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -17968,7 +17968,7 @@ func (client *WebAppsClient) listHostKeysHandleResponse(resp *http.Response) (We // ListHostKeysSlot - Description for Get host secrets for a function app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -18020,7 +18020,7 @@ func (client *WebAppsClient) listHostKeysSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18037,7 +18037,7 @@ func (client *WebAppsClient) listHostKeysSlotHandleResponse(resp *http.Response) // NewListHostNameBindingsPager - Description for Get hostname bindings for an app or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListHostNameBindingsOptions contains the optional parameters for the WebAppsClient.NewListHostNameBindingsPager @@ -18085,7 +18085,7 @@ func (client *WebAppsClient) listHostNameBindingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18102,7 +18102,7 @@ func (client *WebAppsClient) listHostNameBindingsHandleResponse(resp *http.Respo // NewListHostNameBindingsSlotPager - Description for Get hostname bindings for an app or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. @@ -18155,7 +18155,7 @@ func (client *WebAppsClient) listHostNameBindingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18173,7 +18173,7 @@ func (client *WebAppsClient) listHostNameBindingsSlotHandleResponse(resp *http.R // ListHybridConnections - Description for Retrieves all Service Bus Hybrid Connections used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientListHybridConnectionsOptions contains the optional parameters for the WebAppsClient.ListHybridConnections @@ -18220,7 +18220,7 @@ func (client *WebAppsClient) listHybridConnectionsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18238,7 +18238,7 @@ func (client *WebAppsClient) listHybridConnectionsHandleResponse(resp *http.Resp // ListHybridConnectionsSlot - Description for Retrieves all Service Bus Hybrid Connections used by this Web App. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for the web app. @@ -18290,7 +18290,7 @@ func (client *WebAppsClient) listHybridConnectionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18307,7 +18307,7 @@ func (client *WebAppsClient) listHybridConnectionsSlotHandleResponse(resp *http. // NewListInstanceFunctionsSlotPager - Description for List the functions for a web site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -18360,7 +18360,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18377,7 +18377,7 @@ func (client *WebAppsClient) listInstanceFunctionsSlotHandleResponse(resp *http. // NewListInstanceIdentifiersPager - Description for Gets all scale-out instances of an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListInstanceIdentifiersOptions contains the optional parameters for the WebAppsClient.NewListInstanceIdentifiersPager @@ -18425,7 +18425,7 @@ func (client *WebAppsClient) listInstanceIdentifiersCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18442,7 +18442,7 @@ func (client *WebAppsClient) listInstanceIdentifiersHandleResponse(resp *http.Re // NewListInstanceIdentifiersSlotPager - Description for Gets all scale-out instances of an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. @@ -18495,7 +18495,7 @@ func (client *WebAppsClient) listInstanceIdentifiersSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18513,7 +18513,7 @@ func (client *WebAppsClient) listInstanceIdentifiersSlotHandleResponse(resp *htt // NewListInstanceProcessModulesPager - Description for List module information for a process by its ID for a specific scaled-out // instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18572,7 +18572,7 @@ func (client *WebAppsClient) listInstanceProcessModulesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18590,7 +18590,7 @@ func (client *WebAppsClient) listInstanceProcessModulesHandleResponse(resp *http // NewListInstanceProcessModulesSlotPager - Description for List module information for a process by its ID for a specific // scaled-out instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18654,7 +18654,7 @@ func (client *WebAppsClient) listInstanceProcessModulesSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18672,7 +18672,7 @@ func (client *WebAppsClient) listInstanceProcessModulesSlotHandleResponse(resp * // NewListInstanceProcessThreadsPager - Description for List the threads in a process by its ID for a specific scaled-out // instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18731,7 +18731,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18749,7 +18749,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsHandleResponse(resp *http // NewListInstanceProcessThreadsSlotPager - Description for List the threads in a process by its ID for a specific scaled-out // instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -18813,7 +18813,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18831,7 +18831,7 @@ func (client *WebAppsClient) listInstanceProcessThreadsSlotHandleResponse(resp * // NewListInstanceProcessesPager - Description for Get list of processes for a web site, or a deployment slot, or for a specific // scaled-out instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - instanceID - ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET @@ -18885,7 +18885,7 @@ func (client *WebAppsClient) listInstanceProcessesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18903,7 +18903,7 @@ func (client *WebAppsClient) listInstanceProcessesHandleResponse(resp *http.Resp // NewListInstanceProcessesSlotPager - Description for Get list of processes for a web site, or a deployment slot, or for // a specific scaled-out instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. @@ -18962,7 +18962,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -18979,7 +18979,7 @@ func (client *WebAppsClient) listInstanceProcessesSlotHandleResponse(resp *http. // NewListInstanceWorkflowsSlotPager - List the workflows for a web site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -19032,7 +19032,7 @@ func (client *WebAppsClient) listInstanceWorkflowsSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19050,7 +19050,7 @@ func (client *WebAppsClient) listInstanceWorkflowsSlotHandleResponse(resp *http. // ListMetadata - Description for Gets the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListMetadataOptions contains the optional parameters for the WebAppsClient.ListMetadata method. @@ -19096,7 +19096,7 @@ func (client *WebAppsClient) listMetadataCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19114,7 +19114,7 @@ func (client *WebAppsClient) listMetadataHandleResponse(resp *http.Response) (We // ListMetadataSlot - Description for Gets the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. @@ -19166,7 +19166,7 @@ func (client *WebAppsClient) listMetadataSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19184,7 +19184,7 @@ func (client *WebAppsClient) listMetadataSlotHandleResponse(resp *http.Response) // ListNetworkFeatures - Description for Gets all network features used by the app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - view - The type of view. Only "summary" is supported at this time. @@ -19236,7 +19236,7 @@ func (client *WebAppsClient) listNetworkFeaturesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19254,7 +19254,7 @@ func (client *WebAppsClient) listNetworkFeaturesHandleResponse(resp *http.Respon // ListNetworkFeaturesSlot - Description for Gets all network features used by the app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - view - The type of view. Only "summary" is supported at this time. @@ -19311,7 +19311,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19328,7 +19328,7 @@ func (client *WebAppsClient) listNetworkFeaturesSlotHandleResponse(resp *http.Re // NewListPerfMonCountersPager - Description for Gets perfmon counters for web app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientListPerfMonCountersOptions contains the optional parameters for the WebAppsClient.NewListPerfMonCountersPager @@ -19376,7 +19376,7 @@ func (client *WebAppsClient) listPerfMonCountersCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -19398,7 +19398,7 @@ func (client *WebAppsClient) listPerfMonCountersHandleResponse(resp *http.Respon // NewListPerfMonCountersSlotPager - Description for Gets perfmon counters for web app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -19451,7 +19451,7 @@ func (client *WebAppsClient) listPerfMonCountersSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -19474,7 +19474,7 @@ func (client *WebAppsClient) listPerfMonCountersSlotHandleResponse(resp *http.Re // ListPremierAddOns - Description for Gets the premier add-ons of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListPremierAddOnsOptions contains the optional parameters for the WebAppsClient.ListPremierAddOns @@ -19521,7 +19521,7 @@ func (client *WebAppsClient) listPremierAddOnsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19539,7 +19539,7 @@ func (client *WebAppsClient) listPremierAddOnsHandleResponse(resp *http.Response // ListPremierAddOnsSlot - Description for Gets the premier add-ons of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the premier add-ons for the production @@ -19592,7 +19592,7 @@ func (client *WebAppsClient) listPremierAddOnsSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19610,7 +19610,7 @@ func (client *WebAppsClient) listPremierAddOnsSlotHandleResponse(resp *http.Resp // NewListProcessModulesPager - Description for List module information for a process by its ID for a specific scaled-out // instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19663,7 +19663,7 @@ func (client *WebAppsClient) listProcessModulesCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19681,7 +19681,7 @@ func (client *WebAppsClient) listProcessModulesHandleResponse(resp *http.Respons // NewListProcessModulesSlotPager - Description for List module information for a process by its ID for a specific scaled-out // instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19739,7 +19739,7 @@ func (client *WebAppsClient) listProcessModulesSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19757,7 +19757,7 @@ func (client *WebAppsClient) listProcessModulesSlotHandleResponse(resp *http.Res // NewListProcessThreadsPager - Description for List the threads in a process by its ID for a specific scaled-out instance // in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19810,7 +19810,7 @@ func (client *WebAppsClient) listProcessThreadsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19828,7 +19828,7 @@ func (client *WebAppsClient) listProcessThreadsHandleResponse(resp *http.Respons // NewListProcessThreadsSlotPager - Description for List the threads in a process by its ID for a specific scaled-out instance // in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - processID - PID. @@ -19886,7 +19886,7 @@ func (client *WebAppsClient) listProcessThreadsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19904,7 +19904,7 @@ func (client *WebAppsClient) listProcessThreadsSlotHandleResponse(resp *http.Res // NewListProcessesPager - Description for Get list of processes for a web site, or a deployment slot, or for a specific scaled-out // instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListProcessesOptions contains the optional parameters for the WebAppsClient.NewListProcessesPager @@ -19952,7 +19952,7 @@ func (client *WebAppsClient) listProcessesCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -19970,7 +19970,7 @@ func (client *WebAppsClient) listProcessesHandleResponse(resp *http.Response) (W // NewListProcessesSlotPager - Description for Get list of processes for a web site, or a deployment slot, or for a specific // scaled-out instance in a web site. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. @@ -20023,7 +20023,7 @@ func (client *WebAppsClient) listProcessesSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20040,7 +20040,7 @@ func (client *WebAppsClient) listProcessesSlotHandleResponse(resp *http.Response // NewListProductionSiteDeploymentStatusesPager - List deployment statuses for an app (or deployment slot, if specified). // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListProductionSiteDeploymentStatusesOptions contains the optional parameters for the WebAppsClient.NewListProductionSiteDeploymentStatusesPager @@ -20088,7 +20088,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20105,7 +20105,7 @@ func (client *WebAppsClient) listProductionSiteDeploymentStatusesHandleResponse( // NewListPublicCertificatesPager - Description for Get public certificates for an app or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListPublicCertificatesOptions contains the optional parameters for the WebAppsClient.NewListPublicCertificatesPager @@ -20153,7 +20153,7 @@ func (client *WebAppsClient) listPublicCertificatesCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20170,7 +20170,7 @@ func (client *WebAppsClient) listPublicCertificatesHandleResponse(resp *http.Res // NewListPublicCertificatesSlotPager - Description for Get public certificates for an app or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. @@ -20223,7 +20223,7 @@ func (client *WebAppsClient) listPublicCertificatesSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20241,7 +20241,7 @@ func (client *WebAppsClient) listPublicCertificatesSlotHandleResponse(resp *http // BeginListPublishingCredentials - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientBeginListPublishingCredentialsOptions contains the optional parameters for the WebAppsClient.BeginListPublishingCredentials @@ -20266,7 +20266,7 @@ func (client *WebAppsClient) BeginListPublishingCredentials(ctx context.Context, // ListPublishingCredentials - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *WebAppsClient) listPublishingCredentials(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginListPublishingCredentialsOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginListPublishingCredentials" @@ -20308,7 +20308,7 @@ func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20317,7 +20317,7 @@ func (client *WebAppsClient) listPublishingCredentialsCreateRequest(ctx context. // BeginListPublishingCredentialsSlot - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production @@ -20344,7 +20344,7 @@ func (client *WebAppsClient) BeginListPublishingCredentialsSlot(ctx context.Cont // ListPublishingCredentialsSlot - Description for Gets the Git/FTP publishing credentials of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -20390,7 +20390,7 @@ func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20399,7 +20399,7 @@ func (client *WebAppsClient) listPublishingCredentialsSlotCreateRequest(ctx cont // ListPublishingProfileXMLWithSecrets - Description for Gets the publishing profile for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - publishingProfileOptions - Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} @@ -20447,7 +20447,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/xml"} @@ -20461,7 +20461,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsCreateRequest(ct // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production @@ -20515,7 +20515,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/xml"} @@ -20528,7 +20528,7 @@ func (client *WebAppsClient) listPublishingProfileXMLWithSecretsSlotCreateReques // ListRelayServiceConnections - Description for Gets hybrid connections configured for an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListRelayServiceConnectionsOptions contains the optional parameters for the WebAppsClient.ListRelayServiceConnections @@ -20575,7 +20575,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20594,7 +20594,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsHandleResponse(resp *htt // specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production @@ -20647,7 +20647,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20664,7 +20664,7 @@ func (client *WebAppsClient) listRelayServiceConnectionsSlotHandleResponse(resp // NewListSiteBackupsPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListSiteBackupsOptions contains the optional parameters for the WebAppsClient.NewListSiteBackupsPager @@ -20712,7 +20712,7 @@ func (client *WebAppsClient) listSiteBackupsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20729,7 +20729,7 @@ func (client *WebAppsClient) listSiteBackupsHandleResponse(resp *http.Response) // NewListSiteBackupsSlotPager - Description for Gets existing backups of an app. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. @@ -20782,7 +20782,7 @@ func (client *WebAppsClient) listSiteBackupsSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20799,7 +20799,7 @@ func (client *WebAppsClient) listSiteBackupsSlotHandleResponse(resp *http.Respon // NewListSiteContainersPager - Lists all the site containers of a site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -20847,7 +20847,7 @@ func (client *WebAppsClient) listSiteContainersCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20864,7 +20864,7 @@ func (client *WebAppsClient) listSiteContainersHandleResponse(resp *http.Respons // NewListSiteContainersSlotPager - Lists all the site containers of a site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get a list of site containers for the production @@ -20918,7 +20918,7 @@ func (client *WebAppsClient) listSiteContainersSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -20935,7 +20935,7 @@ func (client *WebAppsClient) listSiteContainersSlotHandleResponse(resp *http.Res // NewListSiteExtensionsPager - Description for Get list of siteextensions for a web site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListSiteExtensionsOptions contains the optional parameters for the WebAppsClient.NewListSiteExtensionsPager @@ -20983,7 +20983,7 @@ func (client *WebAppsClient) listSiteExtensionsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21000,7 +21000,7 @@ func (client *WebAppsClient) listSiteExtensionsHandleResponse(resp *http.Respons // NewListSiteExtensionsSlotPager - Description for Get list of siteextensions for a web site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. If a slot is not specified, the API uses the production slot. @@ -21053,7 +21053,7 @@ func (client *WebAppsClient) listSiteExtensionsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21071,7 +21071,7 @@ func (client *WebAppsClient) listSiteExtensionsSlotHandleResponse(resp *http.Res // ListSitePushSettings - Description for Gets the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientListSitePushSettingsOptions contains the optional parameters for the WebAppsClient.ListSitePushSettings @@ -21118,7 +21118,7 @@ func (client *WebAppsClient) listSitePushSettingsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21136,7 +21136,7 @@ func (client *WebAppsClient) listSitePushSettingsHandleResponse(resp *http.Respo // ListSitePushSettingsSlot - Description for Gets the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -21188,7 +21188,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21207,7 +21207,7 @@ func (client *WebAppsClient) listSitePushSettingsSlotHandleResponse(resp *http.R // (not swapped). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListSlotConfigurationNamesOptions contains the optional parameters for the WebAppsClient.ListSlotConfigurationNames @@ -21254,7 +21254,7 @@ func (client *WebAppsClient) listSlotConfigurationNamesCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21272,7 +21272,7 @@ func (client *WebAppsClient) listSlotConfigurationNamesHandleResponse(resp *http // NewListSlotDifferencesFromProductionPager - Description for Get the difference in configuration settings between two web // app slots. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slotSwapEntity - JSON object that contains the target slot name. See example. @@ -21321,7 +21321,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -21341,7 +21341,7 @@ func (client *WebAppsClient) listSlotDifferencesFromProductionHandleResponse(res // NewListSlotDifferencesSlotPager - Description for Get the difference in configuration settings between two web app slots. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. @@ -21395,7 +21395,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -21415,7 +21415,7 @@ func (client *WebAppsClient) listSlotDifferencesSlotHandleResponse(resp *http.Re // NewListSlotSiteDeploymentStatusesSlotPager - List deployment statuses for an app (or deployment slot, if specified). // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get the deployment status for the production @@ -21469,7 +21469,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21486,7 +21486,7 @@ func (client *WebAppsClient) listSlotSiteDeploymentStatusesSlotHandleResponse(re // NewListSlotsPager - Description for Gets an app's deployment slots. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListSlotsOptions contains the optional parameters for the WebAppsClient.NewListSlotsPager method. @@ -21533,7 +21533,7 @@ func (client *WebAppsClient) listSlotsCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21550,7 +21550,7 @@ func (client *WebAppsClient) listSlotsHandleResponse(resp *http.Response) (WebAp // NewListSnapshotsPager - Description for Returns all Snapshots to the user. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Website Name. // - options - WebAppsClientListSnapshotsOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsPager @@ -21598,7 +21598,7 @@ func (client *WebAppsClient) listSnapshotsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21615,7 +21615,7 @@ func (client *WebAppsClient) listSnapshotsHandleResponse(resp *http.Response) (W // NewListSnapshotsFromDRSecondaryPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Website Name. // - options - WebAppsClientListSnapshotsFromDRSecondaryOptions contains the optional parameters for the WebAppsClient.NewListSnapshotsFromDRSecondaryPager @@ -21663,7 +21663,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21680,7 +21680,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondaryHandleResponse(resp *ht // NewListSnapshotsFromDRSecondarySlotPager - Description for Returns all Snapshots to the user from DRSecondary endpoint. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Website Name. // - slot - Website Slot. @@ -21733,7 +21733,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21750,7 +21750,7 @@ func (client *WebAppsClient) listSnapshotsFromDRSecondarySlotHandleResponse(resp // NewListSnapshotsSlotPager - Description for Returns all Snapshots to the user. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Website Name. // - slot - Website Slot. @@ -21803,7 +21803,7 @@ func (client *WebAppsClient) listSnapshotsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21821,7 +21821,7 @@ func (client *WebAppsClient) listSnapshotsSlotHandleResponse(resp *http.Response // ListSyncFunctionTriggers - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListSyncFunctionTriggersOptions contains the optional parameters for the WebAppsClient.ListSyncFunctionTriggers @@ -21868,7 +21868,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21886,7 +21886,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersHandleResponse(resp *http.R // ListSyncFunctionTriggersSlot - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -21938,7 +21938,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -21956,7 +21956,7 @@ func (client *WebAppsClient) listSyncFunctionTriggersSlotHandleResponse(resp *ht // ListSyncStatus - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListSyncStatusOptions contains the optional parameters for the WebAppsClient.ListSyncStatus method. @@ -22001,7 +22001,7 @@ func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22010,7 +22010,7 @@ func (client *WebAppsClient) listSyncStatusCreateRequest(ctx context.Context, re // ListSyncStatusSlot - Description for This is to allow calling via powershell and ARM template. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -22061,7 +22061,7 @@ func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22069,7 +22069,7 @@ func (client *WebAppsClient) listSyncStatusSlotCreateRequest(ctx context.Context // NewListTriggeredWebJobHistoryPager - Description for List a triggered web job's history for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -22122,7 +22122,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22140,7 +22140,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistoryHandleResponse(resp *http // NewListTriggeredWebJobHistorySlotPager - Description for List a triggered web job's history for an app, or a deployment // slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -22198,7 +22198,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22215,7 +22215,7 @@ func (client *WebAppsClient) listTriggeredWebJobHistorySlotHandleResponse(resp * // NewListTriggeredWebJobsPager - Description for List triggered web jobs for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListTriggeredWebJobsOptions contains the optional parameters for the WebAppsClient.NewListTriggeredWebJobsPager @@ -22263,7 +22263,7 @@ func (client *WebAppsClient) listTriggeredWebJobsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22280,7 +22280,7 @@ func (client *WebAppsClient) listTriggeredWebJobsHandleResponse(resp *http.Respo // NewListTriggeredWebJobsSlotPager - Description for List triggered web jobs for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. @@ -22333,7 +22333,7 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22350,7 +22350,7 @@ func (client *WebAppsClient) listTriggeredWebJobsSlotHandleResponse(resp *http.R // NewListUsagesPager - Description for Gets the quota usage information of an app (or deployment slot, if specified). // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListUsagesOptions contains the optional parameters for the WebAppsClient.NewListUsagesPager method. @@ -22397,7 +22397,7 @@ func (client *WebAppsClient) listUsagesCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -22419,7 +22419,7 @@ func (client *WebAppsClient) listUsagesHandleResponse(resp *http.Response) (WebA // NewListUsagesSlotPager - Description for Gets the quota usage information of an app (or deployment slot, if specified). // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. @@ -22472,7 +22472,7 @@ func (client *WebAppsClient) listUsagesSlotCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() unencodedParams := []string{req.Raw().URL.RawQuery} if options != nil && options.Filter != nil { @@ -22495,7 +22495,7 @@ func (client *WebAppsClient) listUsagesSlotHandleResponse(resp *http.Response) ( // ListVnetConnections - Description for Gets the virtual networks the app (or deployment slot) is connected to. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientListVnetConnectionsOptions contains the optional parameters for the WebAppsClient.ListVnetConnections @@ -22542,7 +22542,7 @@ func (client *WebAppsClient) listVnetConnectionsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22560,7 +22560,7 @@ func (client *WebAppsClient) listVnetConnectionsHandleResponse(resp *http.Respon // ListVnetConnectionsSlot - Description for Gets the virtual networks the app (or deployment slot) is connected to. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will get virtual network connections for the production @@ -22613,7 +22613,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22630,7 +22630,7 @@ func (client *WebAppsClient) listVnetConnectionsSlotHandleResponse(resp *http.Re // NewListWebJobsPager - Description for List webjobs for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - options - WebAppsClientListWebJobsOptions contains the optional parameters for the WebAppsClient.NewListWebJobsPager method. @@ -22677,7 +22677,7 @@ func (client *WebAppsClient) listWebJobsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22694,7 +22694,7 @@ func (client *WebAppsClient) listWebJobsHandleResponse(resp *http.Response) (Web // NewListWebJobsSlotPager - Description for List webjobs for an app, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. @@ -22747,7 +22747,7 @@ func (client *WebAppsClient) listWebJobsSlotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22764,7 +22764,7 @@ func (client *WebAppsClient) listWebJobsSlotHandleResponse(resp *http.Response) // NewListWorkflowsPager - List the workflows for a web site, or a deployment slot. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -22812,7 +22812,7 @@ func (client *WebAppsClient) listWorkflowsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22830,7 +22830,7 @@ func (client *WebAppsClient) listWorkflowsHandleResponse(resp *http.Response) (W // ListWorkflowsConnections - Lists logic app's connections for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -22877,7 +22877,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22895,7 +22895,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsHandleResponse(resp *http.R // ListWorkflowsConnectionsSlot - Lists logic app's connections for web site, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - slot - Name of the deployment slot. @@ -22947,7 +22947,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -22965,7 +22965,7 @@ func (client *WebAppsClient) listWorkflowsConnectionsSlotHandleResponse(resp *ht // BeginMigrateMySQL - Description for Migrates a local (in-app) MySql database to a remote MySql database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - migrationRequestEnvelope - MySql migration options. @@ -22991,7 +22991,7 @@ func (client *WebAppsClient) BeginMigrateMySQL(ctx context.Context, resourceGrou // MigrateMySQL - Description for Migrates a local (in-app) MySql database to a remote MySql database. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -23033,7 +23033,7 @@ func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, migrationRequestEnvelope); err != nil { @@ -23045,7 +23045,7 @@ func (client *WebAppsClient) migrateMySQLCreateRequest(ctx context.Context, reso // BeginMigrateStorage - Description for Restores a web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - subscriptionName - Azure subscription. // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. @@ -23072,7 +23072,7 @@ func (client *WebAppsClient) BeginMigrateStorage(ctx context.Context, subscripti // MigrateStorage - Description for Restores a web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -23114,7 +23114,7 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") reqQP.Set("subscriptionName", subscriptionName) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -23128,7 +23128,7 @@ func (client *WebAppsClient) migrateStorageCreateRequest(ctx context.Context, su // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - access - The information for the private access @@ -23176,7 +23176,7 @@ func (client *WebAppsClient) putPrivateAccessVnetCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, access); err != nil { @@ -23198,7 +23198,7 @@ func (client *WebAppsClient) putPrivateAccessVnetHandleResponse(resp *http.Respo // that can access the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for the web app. @@ -23251,7 +23251,7 @@ func (client *WebAppsClient) putPrivateAccessVnetSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, access); err != nil { @@ -23272,7 +23272,7 @@ func (client *WebAppsClient) putPrivateAccessVnetSlotHandleResponse(resp *http.R // RecoverSiteConfigurationSnapshot - Description for Reverts the configuration of an app to a previous snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - snapshotID - The ID of the snapshot to read. @@ -23323,7 +23323,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23332,7 +23332,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotCreateRequest(ctx c // RecoverSiteConfigurationSnapshotSlot - Description for Reverts the configuration of an app to a previous snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - snapshotID - The ID of the snapshot to read. @@ -23388,7 +23388,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23398,7 +23398,7 @@ func (client *WebAppsClient) recoverSiteConfigurationSnapshotSlotCreateRequest(c // modified by calling the API with POST. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientResetProductionSlotConfigOptions contains the optional parameters for the WebAppsClient.ResetProductionSlotConfig @@ -23444,7 +23444,7 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23454,7 +23454,7 @@ func (client *WebAppsClient) resetProductionSlotConfigCreateRequest(ctx context. // modified by calling the API with POST. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API resets configuration settings for the production @@ -23506,7 +23506,7 @@ func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -23515,7 +23515,7 @@ func (client *WebAppsClient) resetSlotConfigurationSlotCreateRequest(ctx context // Restart - Description for Restarts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientRestartOptions contains the optional parameters for the WebAppsClient.Restart method. @@ -23560,7 +23560,7 @@ func (client *WebAppsClient) restartCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -23575,7 +23575,7 @@ func (client *WebAppsClient) restartCreateRequest(ctx context.Context, resourceG // RestartSlot - Description for Restarts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will restart the production slot. @@ -23625,7 +23625,7 @@ func (client *WebAppsClient) restartSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.SoftRestart != nil { reqQP.Set("softRestart", strconv.FormatBool(*options.SoftRestart)) } @@ -23640,7 +23640,7 @@ func (client *WebAppsClient) restartSlotCreateRequest(ctx context.Context, resou // BeginRestore - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -23666,7 +23666,7 @@ func (client *WebAppsClient) BeginRestore(ctx context.Context, resourceGroupName // Restore - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -23712,7 +23712,7 @@ func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -23724,7 +23724,7 @@ func (client *WebAppsClient) restoreCreateRequest(ctx context.Context, resourceG // BeginRestoreFromBackupBlob - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - request - Information on restore request . @@ -23750,7 +23750,7 @@ func (client *WebAppsClient) BeginRestoreFromBackupBlob(ctx context.Context, res // RestoreFromBackupBlob - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -23792,7 +23792,7 @@ func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -23804,7 +23804,7 @@ func (client *WebAppsClient) restoreFromBackupBlobCreateRequest(ctx context.Cont // BeginRestoreFromBackupBlobSlot - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. @@ -23831,7 +23831,7 @@ func (client *WebAppsClient) BeginRestoreFromBackupBlobSlot(ctx context.Context, // RestoreFromBackupBlobSlot - Description for Restores an app from a backup blob in Azure Storage. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -23877,7 +23877,7 @@ func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -23889,7 +23889,7 @@ func (client *WebAppsClient) restoreFromBackupBlobSlotCreateRequest(ctx context. // BeginRestoreFromDeletedApp - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - restoreRequest - Deleted web app restore information. @@ -23915,7 +23915,7 @@ func (client *WebAppsClient) BeginRestoreFromDeletedApp(ctx context.Context, res // RestoreFromDeletedApp - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -23957,7 +23957,7 @@ func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -23969,7 +23969,7 @@ func (client *WebAppsClient) restoreFromDeletedAppCreateRequest(ctx context.Cont // BeginRestoreFromDeletedAppSlot - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -23996,7 +23996,7 @@ func (client *WebAppsClient) BeginRestoreFromDeletedAppSlot(ctx context.Context, // RestoreFromDeletedAppSlot - Description for Restores a deleted web app to this web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -24042,7 +24042,7 @@ func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -24054,7 +24054,7 @@ func (client *WebAppsClient) restoreFromDeletedAppSlotCreateRequest(ctx context. // BeginRestoreSlot - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - backupID - ID of the backup. @@ -24082,7 +24082,7 @@ func (client *WebAppsClient) BeginRestoreSlot(ctx context.Context, resourceGroup // RestoreSlot - Description for Restores a specific backup to another app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -24132,7 +24132,7 @@ func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -24144,7 +24144,7 @@ func (client *WebAppsClient) restoreSlotCreateRequest(ctx context.Context, resou // BeginRestoreSnapshot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - restoreRequest - Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots @@ -24171,7 +24171,7 @@ func (client *WebAppsClient) BeginRestoreSnapshot(ctx context.Context, resourceG // RestoreSnapshot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -24213,7 +24213,7 @@ func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -24225,7 +24225,7 @@ func (client *WebAppsClient) restoreSnapshotCreateRequest(ctx context.Context, r // BeginRestoreSnapshotSlot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -24253,7 +24253,7 @@ func (client *WebAppsClient) BeginRestoreSnapshotSlot(ctx context.Context, resou // RestoreSnapshotSlot - Description for Restores a web app from a snapshot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -24299,7 +24299,7 @@ func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, restoreRequest); err != nil { @@ -24311,7 +24311,7 @@ func (client *WebAppsClient) restoreSnapshotSlotCreateRequest(ctx context.Contex // RunTriggeredWebJob - Description for Run a triggered web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24362,7 +24362,7 @@ func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24371,7 +24371,7 @@ func (client *WebAppsClient) runTriggeredWebJobCreateRequest(ctx context.Context // RunTriggeredWebJobSlot - Description for Run a triggered web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24427,7 +24427,7 @@ func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24436,7 +24436,7 @@ func (client *WebAppsClient) runTriggeredWebJobSlotCreateRequest(ctx context.Con // Start - Description for Starts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientStartOptions contains the optional parameters for the WebAppsClient.Start method. @@ -24481,7 +24481,7 @@ func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24490,7 +24490,7 @@ func (client *WebAppsClient) startCreateRequest(ctx context.Context, resourceGro // StartContinuousWebJob - Description for Start a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24541,7 +24541,7 @@ func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24550,7 +24550,7 @@ func (client *WebAppsClient) startContinuousWebJobCreateRequest(ctx context.Cont // StartContinuousWebJobSlot - Description for Start a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -24606,7 +24606,7 @@ func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24615,7 +24615,7 @@ func (client *WebAppsClient) startContinuousWebJobSlotCreateRequest(ctx context. // BeginStartNetworkTrace - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientBeginStartNetworkTraceOptions contains the optional parameters for the WebAppsClient.BeginStartNetworkTrace @@ -24640,7 +24640,7 @@ func (client *WebAppsClient) BeginStartNetworkTrace(ctx context.Context, resourc // StartNetworkTrace - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *WebAppsClient) startNetworkTrace(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartNetworkTraceOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginStartNetworkTrace" @@ -24682,7 +24682,7 @@ func (client *WebAppsClient) startNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -24700,7 +24700,7 @@ func (client *WebAppsClient) startNetworkTraceCreateRequest(ctx context.Context, // BeginStartNetworkTraceSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for this web app. @@ -24726,7 +24726,7 @@ func (client *WebAppsClient) BeginStartNetworkTraceSlot(ctx context.Context, res // StartNetworkTraceSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -24772,7 +24772,7 @@ func (client *WebAppsClient) startNetworkTraceSlotCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -24790,7 +24790,7 @@ func (client *WebAppsClient) startNetworkTraceSlotCreateRequest(ctx context.Cont // StartSlot - Description for Starts an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will start the production slot. @@ -24840,7 +24840,7 @@ func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -24849,7 +24849,7 @@ func (client *WebAppsClient) startSlotCreateRequest(ctx context.Context, resourc // StartWebSiteNetworkTrace - Description for Start capturing network packets for the site (To be deprecated). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientStartWebSiteNetworkTraceOptions contains the optional parameters for the WebAppsClient.StartWebSiteNetworkTrace @@ -24896,7 +24896,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -24923,7 +24923,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceHandleResponse(resp *http.R // BeginStartWebSiteNetworkTraceOperation - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions contains the optional parameters for the WebAppsClient.BeginStartWebSiteNetworkTraceOperation @@ -24948,7 +24948,7 @@ func (client *WebAppsClient) BeginStartWebSiteNetworkTraceOperation(ctx context. // StartWebSiteNetworkTraceOperation - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 func (client *WebAppsClient) startWebSiteNetworkTraceOperation(ctx context.Context, resourceGroupName string, name string, options *WebAppsClientBeginStartWebSiteNetworkTraceOperationOptions) (*http.Response, error) { var err error const operationName = "WebAppsClient.BeginStartWebSiteNetworkTraceOperation" @@ -24990,7 +24990,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -25008,7 +25008,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationCreateRequest(ctx // BeginStartWebSiteNetworkTraceOperationSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for this web app. @@ -25034,7 +25034,7 @@ func (client *WebAppsClient) BeginStartWebSiteNetworkTraceOperationSlot(ctx cont // StartWebSiteNetworkTraceOperationSlot - Description for Start capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -25080,7 +25080,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlotCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -25098,7 +25098,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceOperationSlotCreateRequest( // StartWebSiteNetworkTraceSlot - Description for Start capturing network packets for the site (To be deprecated). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for this web app. @@ -25150,7 +25150,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceSlotCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") if options != nil && options.DurationInSeconds != nil { reqQP.Set("durationInSeconds", strconv.FormatInt(int64(*options.DurationInSeconds), 10)) } @@ -25177,7 +25177,7 @@ func (client *WebAppsClient) startWebSiteNetworkTraceSlotHandleResponse(resp *ht // Stop - Description for Stops an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientStopOptions contains the optional parameters for the WebAppsClient.Stop method. @@ -25222,7 +25222,7 @@ func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25231,7 +25231,7 @@ func (client *WebAppsClient) stopCreateRequest(ctx context.Context, resourceGrou // StopContinuousWebJob - Description for Stop a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -25282,7 +25282,7 @@ func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25291,7 +25291,7 @@ func (client *WebAppsClient) stopContinuousWebJobCreateRequest(ctx context.Conte // StopContinuousWebJobSlot - Description for Stop a continuous web job for an app, or a deployment slot. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - webJobName - Name of Web Job. @@ -25347,7 +25347,7 @@ func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25356,7 +25356,7 @@ func (client *WebAppsClient) stopContinuousWebJobSlotCreateRequest(ctx context.C // StopNetworkTrace - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientStopNetworkTraceOptions contains the optional parameters for the WebAppsClient.StopNetworkTrace @@ -25402,7 +25402,7 @@ func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25411,7 +25411,7 @@ func (client *WebAppsClient) stopNetworkTraceCreateRequest(ctx context.Context, // StopNetworkTraceSlot - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for this web app. @@ -25462,7 +25462,7 @@ func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25471,7 +25471,7 @@ func (client *WebAppsClient) stopNetworkTraceSlotCreateRequest(ctx context.Conte // StopSlot - Description for Stops an app (or deployment slot, if specified). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will stop the production slot. @@ -25521,7 +25521,7 @@ func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25530,7 +25530,7 @@ func (client *WebAppsClient) stopSlotCreateRequest(ctx context.Context, resource // StopWebSiteNetworkTrace - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - options - WebAppsClientStopWebSiteNetworkTraceOptions contains the optional parameters for the WebAppsClient.StopWebSiteNetworkTrace @@ -25576,7 +25576,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25585,7 +25585,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceCreateRequest(ctx context.Co // StopWebSiteNetworkTraceSlot - Description for Stop ongoing capturing network packets for the site. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - slot - The name of the slot for this web app. @@ -25636,7 +25636,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25645,7 +25645,7 @@ func (client *WebAppsClient) stopWebSiteNetworkTraceSlotCreateRequest(ctx contex // BeginSwapSlot - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the source slot. If a slot is not specified, the production slot is used as the source slot. @@ -25671,7 +25671,7 @@ func (client *WebAppsClient) BeginSwapSlot(ctx context.Context, resourceGroupNam // SwapSlot - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -25717,7 +25717,7 @@ func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -25729,7 +25729,7 @@ func (client *WebAppsClient) swapSlotCreateRequest(ctx context.Context, resource // BeginSwapSlotWithProduction - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slotSwapEntity - JSON object that contains the target slot name. See example. @@ -25755,7 +25755,7 @@ func (client *WebAppsClient) BeginSwapSlotWithProduction(ctx context.Context, re // SwapSlotWithProduction - Description for Swaps two deployment slots of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -25797,7 +25797,7 @@ func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotSwapEntity); err != nil { @@ -25809,7 +25809,7 @@ func (client *WebAppsClient) swapSlotWithProductionCreateRequest(ctx context.Con // SyncFunctionTriggers - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientSyncFunctionTriggersOptions contains the optional parameters for the WebAppsClient.SyncFunctionTriggers @@ -25855,7 +25855,7 @@ func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25864,7 +25864,7 @@ func (client *WebAppsClient) syncFunctionTriggersCreateRequest(ctx context.Conte // SyncFunctionTriggersSlot - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -25915,7 +25915,7 @@ func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25924,7 +25924,7 @@ func (client *WebAppsClient) syncFunctionTriggersSlotCreateRequest(ctx context.C // SyncFunctions - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientSyncFunctionsOptions contains the optional parameters for the WebAppsClient.SyncFunctions method. @@ -25969,7 +25969,7 @@ func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -25978,7 +25978,7 @@ func (client *WebAppsClient) syncFunctionsCreateRequest(ctx context.Context, res // SyncFunctionsSlot - Description for Syncs function trigger metadata to the management database // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. @@ -26029,7 +26029,7 @@ func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -26038,7 +26038,7 @@ func (client *WebAppsClient) syncFunctionsSlotCreateRequest(ctx context.Context, // SyncRepository - Description for Sync web app repository. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - options - WebAppsClientSyncRepositoryOptions contains the optional parameters for the WebAppsClient.SyncRepository method. @@ -26083,7 +26083,7 @@ func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -26092,7 +26092,7 @@ func (client *WebAppsClient) syncRepositoryCreateRequest(ctx context.Context, re // SyncRepositorySlot - Description for Sync web app repository. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -26143,7 +26143,7 @@ func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -26152,7 +26152,7 @@ func (client *WebAppsClient) syncRepositorySlotCreateRequest(ctx context.Context // Update - Description for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. // - siteEnvelope - A JSON representation of the app properties. See example. @@ -26199,7 +26199,7 @@ func (client *WebAppsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -26220,7 +26220,7 @@ func (client *WebAppsClient) updateHandleResponse(resp *http.Response) (WebAppsC // UpdateApplicationSettings - Description for Replaces the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - appSettings - Application settings of the app. @@ -26268,7 +26268,7 @@ func (client *WebAppsClient) updateApplicationSettingsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -26289,7 +26289,7 @@ func (client *WebAppsClient) updateApplicationSettingsHandleResponse(resp *http. // UpdateApplicationSettingsSlot - Description for Replaces the application settings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production @@ -26343,7 +26343,7 @@ func (client *WebAppsClient) updateApplicationSettingsSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, appSettings); err != nil { @@ -26364,7 +26364,7 @@ func (client *WebAppsClient) updateApplicationSettingsSlotHandleResponse(resp *h // UpdateAuthSettings - Description for Updates the Authentication / Authorization settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - siteAuthSettings - Auth settings associated with web app. @@ -26412,7 +26412,7 @@ func (client *WebAppsClient) updateAuthSettingsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettings); err != nil { @@ -26433,7 +26433,7 @@ func (client *WebAppsClient) updateAuthSettingsHandleResponse(resp *http.Respons // UpdateAuthSettingsSlot - Description for Updates the Authentication / Authorization settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -26486,7 +26486,7 @@ func (client *WebAppsClient) updateAuthSettingsSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettings); err != nil { @@ -26507,7 +26507,7 @@ func (client *WebAppsClient) updateAuthSettingsSlotHandleResponse(resp *http.Res // UpdateAuthSettingsV2 - Description for Updates site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - siteAuthSettingsV2 - Auth settings associated with web app. @@ -26555,7 +26555,7 @@ func (client *WebAppsClient) updateAuthSettingsV2CreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettingsV2); err != nil { @@ -26576,7 +26576,7 @@ func (client *WebAppsClient) updateAuthSettingsV2HandleResponse(resp *http.Respo // UpdateAuthSettingsV2Slot - Description for Updates site's Authentication / Authorization settings for apps via the V2 format // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -26629,7 +26629,7 @@ func (client *WebAppsClient) updateAuthSettingsV2SlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteAuthSettingsV2); err != nil { @@ -26650,7 +26650,7 @@ func (client *WebAppsClient) updateAuthSettingsV2SlotHandleResponse(resp *http.R // UpdateAzureStorageAccounts - Description for Updates the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - azureStorageAccounts - Azure storage accounts of the app. @@ -26698,7 +26698,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, azureStorageAccounts); err != nil { @@ -26719,7 +26719,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsHandleResponse(resp *http // UpdateAzureStorageAccountsSlot - Description for Updates the Azure storage account configurations of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations @@ -26773,7 +26773,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, azureStorageAccounts); err != nil { @@ -26794,7 +26794,7 @@ func (client *WebAppsClient) updateAzureStorageAccountsSlotHandleResponse(resp * // UpdateBackupConfiguration - Description for Updates the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - request - Edited backup configuration. @@ -26842,7 +26842,7 @@ func (client *WebAppsClient) updateBackupConfigurationCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -26863,7 +26863,7 @@ func (client *WebAppsClient) updateBackupConfigurationHandleResponse(resp *http. // UpdateBackupConfigurationSlot - Description for Updates the backup configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production @@ -26917,7 +26917,7 @@ func (client *WebAppsClient) updateBackupConfigurationSlotCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, request); err != nil { @@ -26938,7 +26938,7 @@ func (client *WebAppsClient) updateBackupConfigurationSlotHandleResponse(resp *h // UpdateConfiguration - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - siteConfig - JSON representation of a SiteConfig object. See example. @@ -26986,7 +26986,7 @@ func (client *WebAppsClient) updateConfigurationCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -27007,7 +27007,7 @@ func (client *WebAppsClient) updateConfigurationHandleResponse(resp *http.Respon // UpdateConfigurationSlot - Description for Updates the configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. @@ -27060,7 +27060,7 @@ func (client *WebAppsClient) updateConfigurationSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteConfig); err != nil { @@ -27081,7 +27081,7 @@ func (client *WebAppsClient) updateConfigurationSlotHandleResponse(resp *http.Re // UpdateConnectionStrings - Description for Replaces the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - connectionStrings - Connection strings of the app or deployment slot. See example. @@ -27129,7 +27129,7 @@ func (client *WebAppsClient) updateConnectionStringsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionStrings); err != nil { @@ -27150,7 +27150,7 @@ func (client *WebAppsClient) updateConnectionStringsHandleResponse(resp *http.Re // UpdateConnectionStringsSlot - Description for Replaces the connection strings of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production @@ -27204,7 +27204,7 @@ func (client *WebAppsClient) updateConnectionStringsSlotCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionStrings); err != nil { @@ -27225,7 +27225,7 @@ func (client *WebAppsClient) updateConnectionStringsSlotHandleResponse(resp *htt // UpdateDiagnosticLogsConfig - Description for Updates the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - siteLogsConfig - A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. @@ -27273,7 +27273,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteLogsConfig); err != nil { @@ -27294,7 +27294,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigHandleResponse(resp *http // UpdateDiagnosticLogsConfigSlot - Description for Updates the logging configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production @@ -27348,7 +27348,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteLogsConfig); err != nil { @@ -27370,7 +27370,7 @@ func (client *WebAppsClient) updateDiagnosticLogsConfigSlotHandleResponse(resp * // ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -27423,7 +27423,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -27445,7 +27445,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierHandleResponse(resp // existing ownership identifier. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - domainOwnershipIdentifierName - Name of domain ownership identifier. @@ -27503,7 +27503,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, domainOwnershipIdentifier); err != nil { @@ -27524,7 +27524,7 @@ func (client *WebAppsClient) updateDomainOwnershipIdentifierSlotHandleResponse(r // UpdateFtpAllowed - Description for Updates whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientUpdateFtpAllowedOptions contains the optional parameters for the WebAppsClient.UpdateFtpAllowed @@ -27571,7 +27571,7 @@ func (client *WebAppsClient) updateFtpAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -27592,7 +27592,7 @@ func (client *WebAppsClient) updateFtpAllowedHandleResponse(resp *http.Response) // UpdateFtpAllowedSlot - Description for Updates whether FTP is allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientUpdateFtpAllowedSlotOptions contains the optional parameters for the WebAppsClient.UpdateFtpAllowedSlot @@ -27643,7 +27643,7 @@ func (client *WebAppsClient) updateFtpAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -27664,7 +27664,7 @@ func (client *WebAppsClient) updateFtpAllowedSlotHandleResponse(resp *http.Respo // UpdateHybridConnection - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -27722,7 +27722,7 @@ func (client *WebAppsClient) updateHybridConnectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -27743,7 +27743,7 @@ func (client *WebAppsClient) updateHybridConnectionHandleResponse(resp *http.Res // UpdateHybridConnectionSlot - Description for Creates a new Hybrid Connection using a Service Bus relay. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - The name of the web app. // - namespaceName - The namespace for this hybrid connection. @@ -27806,7 +27806,7 @@ func (client *WebAppsClient) updateHybridConnectionSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -27827,7 +27827,7 @@ func (client *WebAppsClient) updateHybridConnectionSlotHandleResponse(resp *http // UpdateMachineKey - Updates the machine key of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 @@ -27874,7 +27874,7 @@ func (client *WebAppsClient) updateMachineKeyCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -27892,7 +27892,7 @@ func (client *WebAppsClient) updateMachineKeyHandleResponse(resp *http.Response) // UpdateMetadata - Description for Replaces the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - metadata - Edited metadata of the app or deployment slot. See example. @@ -27939,7 +27939,7 @@ func (client *WebAppsClient) updateMetadataCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, metadata); err != nil { @@ -27960,7 +27960,7 @@ func (client *WebAppsClient) updateMetadataHandleResponse(resp *http.Response) ( // UpdateMetadataSlot - Description for Replaces the metadata of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. @@ -28013,7 +28013,7 @@ func (client *WebAppsClient) updateMetadataSlotCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, metadata); err != nil { @@ -28034,7 +28034,7 @@ func (client *WebAppsClient) updateMetadataSlotHandleResponse(resp *http.Respons // UpdatePremierAddOn - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -28087,7 +28087,7 @@ func (client *WebAppsClient) updatePremierAddOnCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -28108,7 +28108,7 @@ func (client *WebAppsClient) updatePremierAddOnHandleResponse(resp *http.Respons // UpdatePremierAddOnSlot - Description for Updates a named add-on of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - premierAddOnName - Add-on name. @@ -28167,7 +28167,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, premierAddOn); err != nil { @@ -28189,7 +28189,7 @@ func (client *WebAppsClient) updatePremierAddOnSlotHandleResponse(resp *http.Res // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -28242,7 +28242,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -28264,7 +28264,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionHandleResponse(resp *ht // one (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - entityName - Name of the hybrid connection configuration. @@ -28323,7 +28323,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionSlotCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -28344,7 +28344,7 @@ func (client *WebAppsClient) updateRelayServiceConnectionSlotHandleResponse(resp // UpdateScmAllowed - Description for Updates whether user publishing credentials are allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientUpdateScmAllowedOptions contains the optional parameters for the WebAppsClient.UpdateScmAllowed @@ -28391,7 +28391,7 @@ func (client *WebAppsClient) updateScmAllowedCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -28412,7 +28412,7 @@ func (client *WebAppsClient) updateScmAllowedHandleResponse(resp *http.Response) // UpdateScmAllowedSlot - Description for Updates whether user publishing credentials are allowed on the site or not. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - options - WebAppsClientUpdateScmAllowedSlotOptions contains the optional parameters for the WebAppsClient.UpdateScmAllowedSlot @@ -28463,7 +28463,7 @@ func (client *WebAppsClient) updateScmAllowedSlotCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, csmPublishingAccessPoliciesEntity); err != nil { @@ -28484,7 +28484,7 @@ func (client *WebAppsClient) updateScmAllowedSlotHandleResponse(resp *http.Respo // UpdateSitePushSettings - Description for Updates the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - pushSettings - Push settings associated with web app. @@ -28532,7 +28532,7 @@ func (client *WebAppsClient) updateSitePushSettingsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, pushSettings); err != nil { @@ -28553,7 +28553,7 @@ func (client *WebAppsClient) updateSitePushSettingsHandleResponse(resp *http.Res // UpdateSitePushSettingsSlot - Description for Updates the Push settings associated with web app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of web app. // - slot - Name of web app slot. If not specified then will default to production slot. @@ -28606,7 +28606,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, pushSettings); err != nil { @@ -28628,7 +28628,7 @@ func (client *WebAppsClient) updateSitePushSettingsSlotHandleResponse(resp *http // app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. // - slot - Name of the deployment slot to create or update. By default, this API attempts to create or modify the production @@ -28681,7 +28681,7 @@ func (client *WebAppsClient) updateSlotCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteEnvelope); err != nil { @@ -28703,7 +28703,7 @@ func (client *WebAppsClient) updateSlotHandleResponse(resp *http.Response) (WebA // with the slot during swap operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slotConfigNames - Names of application settings and connection strings. See example. @@ -28751,7 +28751,7 @@ func (client *WebAppsClient) updateSlotConfigurationNamesCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, slotConfigNames); err != nil { @@ -28772,7 +28772,7 @@ func (client *WebAppsClient) updateSlotConfigurationNamesHandleResponse(resp *ht // UpdateSourceControl - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - siteSourceControl - JSON representation of a SiteSourceControl object. See example. @@ -28820,7 +28820,7 @@ func (client *WebAppsClient) updateSourceControlCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -28841,7 +28841,7 @@ func (client *WebAppsClient) updateSourceControlHandleResponse(resp *http.Respon // UpdateSourceControlSlot - Description for Updates the source control configuration of an app. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for @@ -28895,7 +28895,7 @@ func (client *WebAppsClient) updateSourceControlSlotCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, siteSourceControl); err != nil { @@ -28918,7 +28918,7 @@ func (client *WebAppsClient) updateSourceControlSlotHandleResponse(resp *http.Re // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - connectionEnvelope - Properties of the Virtual Network connection. See example. @@ -28966,7 +28966,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -28990,7 +28990,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckHandleR // delegated, and is not in use by another App Service Plan other than the one this App is in. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - slot - Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production @@ -29044,7 +29044,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29066,7 +29066,7 @@ func (client *WebAppsClient) updateSwiftVirtualNetworkConnectionWithCheckSlotHan // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -29119,7 +29119,7 @@ func (client *WebAppsClient) updateVnetConnectionCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29140,7 +29140,7 @@ func (client *WebAppsClient) updateVnetConnectionHandleResponse(resp *http.Respo // UpdateVnetConnectionGateway - Description for Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -29198,7 +29198,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewayCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29219,7 +29219,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewayHandleResponse(resp *htt // UpdateVnetConnectionGatewaySlot - Description for Adds a gateway to a connected Virtual Network (PUT) or updates it (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of the Virtual Network. @@ -29283,7 +29283,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, connectionEnvelope); err != nil { @@ -29305,7 +29305,7 @@ func (client *WebAppsClient) updateVnetConnectionGatewaySlotHandleResponse(resp // properties (PATCH). // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Name of the app. // - vnetName - Name of an existing Virtual Network. @@ -29364,7 +29364,7 @@ func (client *WebAppsClient) updateVnetConnectionSlotCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 7480ef8b8e4b..0185926d04cc 100644 --- a/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/webapps_client_example_test.go @@ -17,10 +17,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebApps.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebApps.json func ExampleWebAppsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -274,7 +274,7 @@ func ExampleWebAppsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppsByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppsByResourceGroup.json func ExampleWebAppsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -528,7 +528,7 @@ func ExampleWebAppsClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebApp.json func ExampleWebAppsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -662,7 +662,7 @@ func ExampleWebAppsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CloneWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CloneWebApp.json func ExampleWebAppsClient_BeginCreateOrUpdate_cloneWebApp() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -812,7 +812,7 @@ func ExampleWebAppsClient_BeginCreateOrUpdate_cloneWebApp() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateFunctionAppFlexConsumption.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateFunctionAppFlexConsumption.json func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateFlexConsumptionFunctionApp() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1006,7 +1006,7 @@ func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateFlexConsumptionFunct // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateFlexConsumptionFunctionAppWithDetails() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1220,7 +1220,7 @@ func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateFlexConsumptionFunct // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateWebApp.json func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateWebApp() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1364,7 +1364,7 @@ func ExampleWebAppsClient_BeginCreateOrUpdate_createOrUpdateWebApp() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteWebApp.json func ExampleWebAppsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1383,7 +1383,7 @@ func ExampleWebAppsClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateWebApp.json func ExampleWebAppsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1520,7 +1520,7 @@ func ExampleWebAppsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AnalyzeCustomHostName.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AnalyzeCustomHostName.json func ExampleWebAppsClient_AnalyzeCustomHostname() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1558,7 +1558,7 @@ func ExampleWebAppsClient_AnalyzeCustomHostname() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApplySlotConfig.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApplySlotConfig.json func ExampleWebAppsClient_ApplySlotConfigToProduction() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1578,7 +1578,7 @@ func ExampleWebAppsClient_ApplySlotConfigToProduction() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/BackupWebApp.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/BackupWebApp.json func ExampleWebAppsClient_Backup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1627,8 +1627,8 @@ func ExampleWebAppsClient_Backup() { // Type: to.Ptr("Microsoft.Web/sites"), // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141"), // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-11-01"), - // BlobName: to.Ptr("sitef6141_2024-11-01"), + // Name: to.Ptr("sitef6141_2025-03-01"), + // BlobName: to.Ptr("sitef6141_2025-03-01"), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), // Databases: []*armappservice.DatabaseBackupSetting{ // { @@ -1656,7 +1656,7 @@ func ExampleWebAppsClient_Backup() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppBackups.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppBackups.json func ExampleWebAppsClient_NewListBackupsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1685,8 +1685,8 @@ func ExampleWebAppsClient_NewListBackupsPager() { // Type: to.Ptr("Microsoft.Web/sites"), // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-11-01"), - // BlobName: to.Ptr("sitef6141_2024-11-01"), + // Name: to.Ptr("sitef6141_2025-03-01"), + // BlobName: to.Ptr("sitef6141_2025-03-01"), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), // Databases: []*armappservice.DatabaseBackupSetting{ // { @@ -1716,7 +1716,7 @@ func ExampleWebAppsClient_NewListBackupsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackup.json func ExampleWebAppsClient_GetBackupStatus() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1739,8 +1739,8 @@ func ExampleWebAppsClient_GetBackupStatus() { // Type: to.Ptr("Microsoft.Web/sites"), // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-11-01"), - // BlobName: to.Ptr("sitef6141_2024-11-01"), + // Name: to.Ptr("sitef6141_2025-03-01"), + // BlobName: to.Ptr("sitef6141_2025-03-01"), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), // Databases: []*armappservice.DatabaseBackupSetting{ // { @@ -1768,7 +1768,7 @@ func ExampleWebAppsClient_GetBackupStatus() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteWebAppBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteWebAppBackup.json func ExampleWebAppsClient_DeleteBackup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1785,7 +1785,7 @@ func ExampleWebAppsClient_DeleteBackup() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppBackupWithSecrets.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppBackupWithSecrets.json func ExampleWebAppsClient_ListBackupStatusSecrets() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1834,8 +1834,8 @@ func ExampleWebAppsClient_ListBackupStatusSecrets() { // Type: to.Ptr("Microsoft.Web/sites"), // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345"), // Properties: &armappservice.BackupItemProperties{ - // Name: to.Ptr("sitef6141_2024-11-01"), - // BlobName: to.Ptr("sitef6141_2024-11-01"), + // Name: to.Ptr("sitef6141_2025-03-01"), + // BlobName: to.Ptr("sitef6141_2025-03-01"), // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-09-03T17:33:11.641Z"); return t}()), // Databases: []*armappservice.DatabaseBackupSetting{ // { @@ -1863,7 +1863,7 @@ func ExampleWebAppsClient_ListBackupStatusSecrets() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/RestoreWebAppBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/RestoreWebAppBackup.json func ExampleWebAppsClient_BeginRestore() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1903,7 +1903,7 @@ func ExampleWebAppsClient_BeginRestore() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListPublishingCredentialsPolicies.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListPublishingCredentialsPolicies.json func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1947,7 +1947,7 @@ func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicy.json func ExampleWebAppsClient_GetFtpAllowed() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1973,7 +1973,7 @@ func ExampleWebAppsClient_GetFtpAllowed() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicy.json func ExampleWebAppsClient_UpdateFtpAllowed() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2003,7 +2003,7 @@ func ExampleWebAppsClient_UpdateFtpAllowed() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicy.json func ExampleWebAppsClient_GetScmAllowed() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2029,7 +2029,7 @@ func ExampleWebAppsClient_GetScmAllowed() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicy.json func ExampleWebAppsClient_UpdateScmAllowed() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2059,7 +2059,7 @@ func ExampleWebAppsClient_UpdateScmAllowed() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppConfigurations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppConfigurations.json func ExampleWebAppsClient_NewListConfigurationsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2143,7 +2143,7 @@ func ExampleWebAppsClient_NewListConfigurationsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAppSettings.json func ExampleWebAppsClient_UpdateApplicationSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2178,7 +2178,7 @@ func ExampleWebAppsClient_UpdateApplicationSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAppSettings.json func ExampleWebAppsClient_ListApplicationSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2208,7 +2208,7 @@ func ExampleWebAppsClient_ListApplicationSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAuthSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAuthSettings.json func ExampleWebAppsClient_UpdateAuthSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2259,7 +2259,7 @@ func ExampleWebAppsClient_UpdateAuthSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAuthSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAuthSettings.json func ExampleWebAppsClient_GetAuthSettings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2297,7 +2297,7 @@ func ExampleWebAppsClient_GetAuthSettings() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetAuthSettingsV2WithoutSecrets.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetAuthSettingsV2WithoutSecrets.json func ExampleWebAppsClient_GetAuthSettingsV2WithoutSecrets() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2386,7 +2386,7 @@ func ExampleWebAppsClient_GetAuthSettingsV2WithoutSecrets() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAuthSettingsV2.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAuthSettingsV2.json func ExampleWebAppsClient_UpdateAuthSettingsV2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2539,7 +2539,7 @@ func ExampleWebAppsClient_UpdateAuthSettingsV2() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListAuthSettingsV2.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListAuthSettingsV2.json func ExampleWebAppsClient_GetAuthSettingsV2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2628,7 +2628,7 @@ func ExampleWebAppsClient_GetAuthSettingsV2() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateAzureStorageAccounts.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateAzureStorageAccounts.json func ExampleWebAppsClient_UpdateAzureStorageAccounts() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2673,7 +2673,7 @@ func ExampleWebAppsClient_UpdateAzureStorageAccounts() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettings.json func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2717,7 +2717,7 @@ func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSetting.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSetting.json func ExampleWebAppsClient_GetAppSettingKeyVaultReference() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2745,7 +2745,7 @@ func ExampleWebAppsClient_GetAppSettingKeyVaultReference() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteConfig.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteConfig.json func ExampleWebAppsClient_GetConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2821,7 +2821,7 @@ func ExampleWebAppsClient_GetConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateSiteConfig.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateSiteConfig.json func ExampleWebAppsClient_CreateOrUpdateConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2947,7 +2947,7 @@ func ExampleWebAppsClient_CreateOrUpdateConfiguration() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteDeploymentStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteDeploymentStatus.json func ExampleWebAppsClient_NewListProductionSiteDeploymentStatusesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -2976,7 +2976,7 @@ func ExampleWebAppsClient_NewListProductionSiteDeploymentStatusesPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteDeploymentStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteDeploymentStatus.json func ExampleWebAppsClient_BeginGetProductionSiteDeploymentStatus() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3014,7 +3014,7 @@ func ExampleWebAppsClient_BeginGetProductionSiteDeploymentStatus() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json func ExampleWebAppsClient_GetInstanceInfo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3049,7 +3049,7 @@ func ExampleWebAppsClient_GetInstanceInfo() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSlotBackups.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSlotBackups.json func ExampleWebAppsClient_NewListSiteBackupsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3087,7 +3087,7 @@ func ExampleWebAppsClient_NewListSiteBackupsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateMachineKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateMachineKey.json func ExampleWebAppsClient_UpdateMachineKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3109,7 +3109,7 @@ func ExampleWebAppsClient_UpdateMachineKey() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_GetNetworkTraceOperation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3135,7 +3135,7 @@ func ExampleWebAppsClient_GetNetworkTraceOperation() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3168,7 +3168,7 @@ func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperation() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json func ExampleWebAppsClient_StopWebSiteNetworkTrace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3185,7 +3185,7 @@ func ExampleWebAppsClient_StopWebSiteNetworkTrace() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json func ExampleWebAppsClient_GetNetworkTraces() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3211,7 +3211,7 @@ func ExampleWebAppsClient_GetNetworkTraces() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_GetNetworkTraceOperationV2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3237,7 +3237,7 @@ func ExampleWebAppsClient_GetNetworkTraceOperationV2() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json func ExampleWebAppsClient_GetNetworkTracesV2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3263,7 +3263,7 @@ func ExampleWebAppsClient_GetNetworkTracesV2() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnection.json func ExampleWebAppsClient_GetPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3297,7 +3297,7 @@ func ExampleWebAppsClient_GetPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnection.json func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3345,7 +3345,7 @@ func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSitePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSitePrivateEndpointConnection.json func ExampleWebAppsClient_BeginDeletePrivateEndpointConnection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3371,7 +3371,7 @@ func ExampleWebAppsClient_BeginDeletePrivateEndpointConnection() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateLinkResources.json func ExampleWebAppsClient_GetPrivateLinkResources() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3406,7 +3406,7 @@ func ExampleWebAppsClient_GetPrivateLinkResources() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWebAppSlots.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWebAppSlots.json func ExampleWebAppsClient_NewListSlotsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3650,7 +3650,7 @@ func ExampleWebAppsClient_NewListSlotsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebAppSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebAppSlot.json func ExampleWebAppsClient_GetSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3779,7 +3779,7 @@ func ExampleWebAppsClient_GetSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CloneWebAppSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CloneWebAppSlot.json func ExampleWebAppsClient_BeginCreateOrUpdateSlot_cloneWebAppSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -3929,7 +3929,7 @@ func ExampleWebAppsClient_BeginCreateOrUpdateSlot_cloneWebAppSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/CreateOrUpdateWebAppSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/CreateOrUpdateWebAppSlot.json func ExampleWebAppsClient_BeginCreateOrUpdateSlot_createOrUpdateWebAppSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4067,7 +4067,7 @@ func ExampleWebAppsClient_BeginCreateOrUpdateSlot_createOrUpdateWebAppSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteWebAppSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteWebAppSlot.json func ExampleWebAppsClient_DeleteSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4086,7 +4086,7 @@ func ExampleWebAppsClient_DeleteSlot() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdateWebAppSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdateWebAppSlot.json func ExampleWebAppsClient_UpdateSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4218,7 +4218,7 @@ func ExampleWebAppsClient_UpdateSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/AnalyzeCustomHostNameSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/AnalyzeCustomHostNameSlot.json func ExampleWebAppsClient_AnalyzeCustomHostnameSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4256,7 +4256,7 @@ func ExampleWebAppsClient_AnalyzeCustomHostnameSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListPublishingCredentialsPoliciesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListPublishingCredentialsPoliciesSlot.json func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4300,7 +4300,7 @@ func ExampleWebAppsClient_NewListBasicPublishingCredentialsPoliciesSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicySlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicySlot.json func ExampleWebAppsClient_GetFtpAllowedSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4326,7 +4326,7 @@ func ExampleWebAppsClient_GetFtpAllowedSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicySlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicySlot.json func ExampleWebAppsClient_UpdateFtpAllowedSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4356,7 +4356,7 @@ func ExampleWebAppsClient_UpdateFtpAllowedSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetPublishingCredentialsPolicySlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetPublishingCredentialsPolicySlot.json func ExampleWebAppsClient_GetScmAllowedSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4382,7 +4382,7 @@ func ExampleWebAppsClient_GetScmAllowedSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/UpdatePublishingCredentialsPolicySlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/UpdatePublishingCredentialsPolicySlot.json func ExampleWebAppsClient_UpdateScmAllowedSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4412,7 +4412,7 @@ func ExampleWebAppsClient_UpdateScmAllowedSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingsSlot.json func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4456,7 +4456,7 @@ func ExampleWebAppsClient_NewGetAppSettingsKeyVaultReferencesSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetKeyVaultReferencesForAppSettingSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetKeyVaultReferencesForAppSettingSlot.json func ExampleWebAppsClient_GetAppSettingKeyVaultReferenceSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4484,7 +4484,7 @@ func ExampleWebAppsClient_GetAppSettingKeyVaultReferenceSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSiteDeploymentStatusSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSiteDeploymentStatusSlot.json func ExampleWebAppsClient_NewListSlotSiteDeploymentStatusesSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4513,7 +4513,7 @@ func ExampleWebAppsClient_NewListSlotSiteDeploymentStatusesSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteDeploymentStatusSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteDeploymentStatusSlot.json func ExampleWebAppsClient_BeginGetSlotSiteDeploymentStatusSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4551,7 +4551,7 @@ func ExampleWebAppsClient_BeginGetSlotSiteDeploymentStatusSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSiteInstanceInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSiteInstanceInfo.json func ExampleWebAppsClient_GetInstanceInfoSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4586,7 +4586,7 @@ func ExampleWebAppsClient_GetInstanceInfoSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListSlotBackups.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListSlotBackups.json func ExampleWebAppsClient_NewListSiteBackupsSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4624,7 +4624,7 @@ func ExampleWebAppsClient_NewListSiteBackupsSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_GetNetworkTraceOperationSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4650,7 +4650,7 @@ func ExampleWebAppsClient_GetNetworkTraceOperationSlot() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperationSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4683,7 +4683,7 @@ func ExampleWebAppsClient_BeginStartWebSiteNetworkTraceOperationSlot() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json func ExampleWebAppsClient_StopWebSiteNetworkTraceSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4700,7 +4700,7 @@ func ExampleWebAppsClient_StopWebSiteNetworkTraceSlot() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json func ExampleWebAppsClient_GetNetworkTracesSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4726,7 +4726,7 @@ func ExampleWebAppsClient_GetNetworkTracesSlot() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_GetNetworkTraceOperationSlotV2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4752,7 +4752,7 @@ func ExampleWebAppsClient_GetNetworkTraceOperationSlotV2() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWebSiteNetworkTraces.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWebSiteNetworkTraces.json func ExampleWebAppsClient_GetNetworkTracesSlotV2() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4778,7 +4778,7 @@ func ExampleWebAppsClient_GetNetworkTracesSlotV2() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateEndpointConnectionSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateEndpointConnectionSlot.json func ExampleWebAppsClient_GetPrivateEndpointConnectionSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4812,7 +4812,7 @@ func ExampleWebAppsClient_GetPrivateEndpointConnectionSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ApproveRejectSitePrivateEndpointConnectionSlot.json func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnectionSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4860,7 +4860,7 @@ func ExampleWebAppsClient_BeginApproveOrRejectPrivateEndpointConnectionSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteSitePrivateEndpointConnectionSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteSitePrivateEndpointConnectionSlot.json func ExampleWebAppsClient_BeginDeletePrivateEndpointConnectionSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4886,7 +4886,7 @@ func ExampleWebAppsClient_BeginDeletePrivateEndpointConnectionSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetSitePrivateLinkResourcesSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetSitePrivateLinkResourcesSlot.json func ExampleWebAppsClient_GetPrivateLinkResourcesSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4921,7 +4921,7 @@ func ExampleWebAppsClient_GetPrivateLinkResourcesSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_BeginStartNetworkTraceSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4954,7 +4954,7 @@ func ExampleWebAppsClient_BeginStartNetworkTraceSlot() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json func ExampleWebAppsClient_StopNetworkTraceSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -4971,7 +4971,7 @@ func ExampleWebAppsClient_StopNetworkTraceSlot() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StartWebSiteNetworkTraceOperation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StartWebSiteNetworkTraceOperation.json func ExampleWebAppsClient_BeginStartNetworkTrace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5004,7 +5004,7 @@ func ExampleWebAppsClient_BeginStartNetworkTrace() { // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/StopWebSiteNetworkTrace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/StopWebSiteNetworkTrace.json func ExampleWebAppsClient_StopNetworkTrace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5021,7 +5021,7 @@ func ExampleWebAppsClient_StopNetworkTrace() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/DeleteDeployWorkflowArtifacts.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/DeleteDeployWorkflowArtifacts.json func ExampleWebAppsClient_DeployWorkflowArtifacts_deleteWorkflowArtifacts() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5043,7 +5043,7 @@ func ExampleWebAppsClient_DeployWorkflowArtifacts_deleteWorkflowArtifacts() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PostDeployWorkflowArtifacts.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PostDeployWorkflowArtifacts.json func ExampleWebAppsClient_DeployWorkflowArtifacts_deploysWorkflowArtifacts() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5106,7 +5106,7 @@ func ExampleWebAppsClient_DeployWorkflowArtifacts_deploysWorkflowArtifacts() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/PostDeployWorkflowArtifactsSlot.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/PostDeployWorkflowArtifactsSlot.json func ExampleWebAppsClient_DeployWorkflowArtifactsSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5169,7 +5169,7 @@ func ExampleWebAppsClient_DeployWorkflowArtifactsSlot() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflows.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflows.json func ExampleWebAppsClient_NewListInstanceWorkflowsSlotPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5227,7 +5227,7 @@ func ExampleWebAppsClient_NewListInstanceWorkflowsSlotPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json func ExampleWebAppsClient_GetInstanceWorkflowSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5294,7 +5294,7 @@ func ExampleWebAppsClient_GetInstanceWorkflowSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflowsConfigurationConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflowsConfigurationConnections.json func ExampleWebAppsClient_ListWorkflowsConnectionsSlot() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5345,7 +5345,7 @@ func ExampleWebAppsClient_ListWorkflowsConnectionsSlot() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflows.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflows.json func ExampleWebAppsClient_NewListWorkflowsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5403,7 +5403,7 @@ func ExampleWebAppsClient_NewListWorkflowsPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/GetWorkflow.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/GetWorkflow.json func ExampleWebAppsClient_GetWorkflow() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -5470,7 +5470,7 @@ func ExampleWebAppsClient_GetWorkflow() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/ListWorkflowsConfigurationConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/ListWorkflowsConfigurationConnections.json func ExampleWebAppsClient_ListWorkflowsConnections() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go index b7f17a4798cb..593dde858e3e 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client.go @@ -27,7 +27,7 @@ type WorkflowRunActionRepetitionsClient struct { // NewWorkflowRunActionRepetitionsClient creates a new instance of WorkflowRunActionRepetitionsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowRunActionRepetitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionRepetitionsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewWorkflowRunActionRepetitionsClient(subscriptionID string, credential azc // Get - Get a workflow run action repetition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -110,7 +110,7 @@ func (client *WorkflowRunActionRepetitionsClient) getCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -127,7 +127,7 @@ func (client *WorkflowRunActionRepetitionsClient) getHandleResponse(resp *http.R // NewListPager - Get all of a workflow run action repetitions. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 *WorkflowRunActionRepetitionsClient) listCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -207,7 +207,7 @@ func (client *WorkflowRunActionRepetitionsClient) listHandleResponse(resp *http. // NewListExpressionTracesPager - Lists a workflow run expression trace. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -275,7 +275,7 @@ func (client *WorkflowRunActionRepetitionsClient) listExpressionTracesCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 83dd727cea58..4c393a8a5c8b 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitions_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_List.json func ExampleWorkflowRunActionRepetitionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -123,7 +123,7 @@ func ExampleWorkflowRunActionRepetitionsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_Get.json func ExampleWorkflowRunActionRepetitionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,7 +182,7 @@ func ExampleWorkflowRunActionRepetitionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json func ExampleWorkflowRunActionRepetitionsClient_NewListExpressionTracesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go index 6ba1198acd12..8aade4f4fd75 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client.go @@ -28,7 +28,7 @@ type WorkflowRunActionRepetitionsRequestHistoriesClient struct { // NewWorkflowRunActionRepetitionsRequestHistoriesClient creates a new instance of WorkflowRunActionRepetitionsRequestHistoriesClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowRunActionRepetitionsRequestHistoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionRepetitionsRequestHistoriesClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWorkflowRunActionRepetitionsRequestHistoriesClient(subscriptionID string // Get - Gets a workflow run repetition request history. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -116,7 +116,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -133,7 +133,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) getHandleRespo // NewListPager - List a workflow run repetition request history. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -201,7 +201,7 @@ func (client *WorkflowRunActionRepetitionsRequestHistoriesClient) listCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 7ef1ba4a5942..79faa2a4a703 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionrepetitionsrequesthistories_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -98,7 +98,7 @@ func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json func ExampleWorkflowRunActionRepetitionsRequestHistoriesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go index 3ad23b165b5b..04f8f243c62a 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client.go @@ -28,7 +28,7 @@ type WorkflowRunActionsClient struct { // NewWorkflowRunActionsClient creates a new instance of WorkflowRunActionsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowRunActionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWorkflowRunActionsClient(subscriptionID string, credential azcore.TokenC // Get - Gets a workflow run action. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -105,7 +105,7 @@ func (client *WorkflowRunActionsClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -122,7 +122,7 @@ func (client *WorkflowRunActionsClient) getHandleResponse(resp *http.Response) ( // NewListPager - Gets a list of workflow run actions. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -186,7 +186,7 @@ func (client *WorkflowRunActionsClient) listCreateRequest(ctx context.Context, r if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -203,7 +203,7 @@ func (client *WorkflowRunActionsClient) listHandleResponse(resp *http.Response) // NewListExpressionTracesPager - Lists a workflow run expression trace. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -266,7 +266,7 @@ func (client *WorkflowRunActionsClient) listExpressionTracesCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index e72e1ab2c9be..2a5cfc88fb82 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactions_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_List.json func ExampleWorkflowRunActionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -70,7 +70,7 @@ func ExampleWorkflowRunActionsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_Get.json func ExampleWorkflowRunActionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -113,7 +113,7 @@ func ExampleWorkflowRunActionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActions_ListExpressionTraces.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActions_ListExpressionTraces.json func ExampleWorkflowRunActionsClient_NewListExpressionTracesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go index 7e08f09facff..aab3b21a5aff 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client.go @@ -27,7 +27,7 @@ type WorkflowRunActionScopeRepetitionsClient struct { // NewWorkflowRunActionScopeRepetitionsClient creates a new instance of WorkflowRunActionScopeRepetitionsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowRunActionScopeRepetitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunActionScopeRepetitionsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewWorkflowRunActionScopeRepetitionsClient(subscriptionID string, credentia // Get - Get a workflow run action scoped repetition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -110,7 +110,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -127,7 +127,7 @@ func (client *WorkflowRunActionScopeRepetitionsClient) getHandleResponse(resp *h // NewListPager - List the workflow run action scoped repetitions. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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 *WorkflowRunActionScopeRepetitionsClient) listCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 444e49b31cc8..b9a95ba5e097 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowrunactionscoperepetitions_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_List.json func ExampleWorkflowRunActionScopeRepetitionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -85,7 +85,7 @@ func ExampleWorkflowRunActionScopeRepetitionsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRunActionScopeRepetitions_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRunActionScopeRepetitions_Get.json func ExampleWorkflowRunActionScopeRepetitionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go index 8298ccb10876..874565948ff7 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowruns_client.go @@ -28,7 +28,7 @@ type WorkflowRunsClient struct { // NewWorkflowRunsClient creates a new instance of WorkflowRunsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowRunsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWorkflowRunsClient(subscriptionID string, credential azcore.TokenCredent // Cancel - Cancels a workflow run. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -99,7 +99,7 @@ func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -108,7 +108,7 @@ func (client *WorkflowRunsClient) cancelCreateRequest(ctx context.Context, resou // Get - Gets a workflow run. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -164,7 +164,7 @@ func (client *WorkflowRunsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -181,7 +181,7 @@ func (client *WorkflowRunsClient) getHandleResponse(resp *http.Response) (Workfl // NewListPager - Gets a list of workflow runs. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -239,7 +239,7 @@ func (client *WorkflowRunsClient) listCreateRequest(ctx context.Context, resourc if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index ef58f78b81c2..5e246ae3797e 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowruns_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_List.json func ExampleWorkflowRunsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,7 +79,7 @@ func ExampleWorkflowRunsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Get.json func ExampleWorkflowRunsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -131,7 +131,7 @@ func ExampleWorkflowRunsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowRuns_Cancel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowRuns_Cancel.json func ExampleWorkflowRunsClient_Cancel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflows_client.go b/sdk/resourcemanager/appservice/armappservice/workflows_client.go index 07f26a2d51b0..d78676c0f1c1 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflows_client.go @@ -27,7 +27,7 @@ type WorkflowsClient struct { // NewWorkflowsClient creates a new instance of WorkflowsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -43,7 +43,7 @@ func NewWorkflowsClient(subscriptionID string, credential azcore.TokenCredential // RegenerateAccessKey - Regenerates the callback URL access key for request triggers. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -95,7 +95,7 @@ func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, keyType); err != nil { @@ -107,7 +107,7 @@ func (client *WorkflowsClient) regenerateAccessKeyCreateRequest(ctx context.Cont // Validate - Validates the workflow definition. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -158,7 +158,7 @@ func (client *WorkflowsClient) validateCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 605e019f99dc..c168fd9f3c6f 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflows_client_example_test.go @@ -15,10 +15,10 @@ import ( "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/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Workflows_RegenerateAccessKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Workflows_RegenerateAccessKey.json func ExampleWorkflowsClient_RegenerateAccessKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -37,7 +37,7 @@ func ExampleWorkflowsClient_RegenerateAccessKey() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/Workflows_Validate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/Workflows_Validate.json func ExampleWorkflowsClient_Validate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go index 10c621f4d7d0..4375b0218269 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client.go @@ -28,7 +28,7 @@ type WorkflowTriggerHistoriesClient struct { // NewWorkflowTriggerHistoriesClient creates a new instance of WorkflowTriggerHistoriesClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowTriggerHistoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowTriggerHistoriesClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWorkflowTriggerHistoriesClient(subscriptionID string, credential azcore. // Get - Gets a workflow trigger history. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -106,7 +106,7 @@ func (client *WorkflowTriggerHistoriesClient) getCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -123,7 +123,7 @@ func (client *WorkflowTriggerHistoriesClient) getHandleResponse(resp *http.Respo // NewListPager - Gets a list of workflow trigger histories. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -187,7 +187,7 @@ func (client *WorkflowTriggerHistoriesClient) listCreateRequest(ctx context.Cont if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -205,7 +205,7 @@ func (client *WorkflowTriggerHistoriesClient) listHandleResponse(resp *http.Resp // BeginResubmit - Resubmits a workflow run based on the trigger history. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -233,7 +233,7 @@ func (client *WorkflowTriggerHistoriesClient) BeginResubmit(ctx context.Context, // Resubmit - Resubmits a workflow run based on the trigger history. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -287,7 +287,7 @@ func (client *WorkflowTriggerHistoriesClient) resubmitCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index b9e437a3a581..901b537fbdd0 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggerhistories_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_List.json func ExampleWorkflowTriggerHistoriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -68,7 +68,7 @@ func ExampleWorkflowTriggerHistoriesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Get.json func ExampleWorkflowTriggerHistoriesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -109,7 +109,7 @@ func ExampleWorkflowTriggerHistoriesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggerHistories_Resubmit.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggerHistories_Resubmit.json func ExampleWorkflowTriggerHistoriesClient_BeginResubmit() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go index ad0cb14681bc..ba2ea1313c4d 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client.go @@ -28,7 +28,7 @@ type WorkflowTriggersClient struct { // NewWorkflowTriggersClient creates a new instance of WorkflowTriggersClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowTriggersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowTriggersClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWorkflowTriggersClient(subscriptionID string, credential azcore.TokenCre // Get - Gets a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -100,7 +100,7 @@ func (client *WorkflowTriggersClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -118,7 +118,7 @@ func (client *WorkflowTriggersClient) getHandleResponse(resp *http.Response) (Wo // GetSchemaJSON - Get the trigger schema as JSON. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -175,7 +175,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -192,7 +192,7 @@ func (client *WorkflowTriggersClient) getSchemaJSONHandleResponse(resp *http.Res // NewListPager - Gets a list of workflow triggers. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -251,7 +251,7 @@ func (client *WorkflowTriggersClient) listCreateRequest(ctx context.Context, res if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -269,7 +269,7 @@ func (client *WorkflowTriggersClient) listHandleResponse(resp *http.Response) (W // ListCallbackURL - Get the callback URL for a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -326,7 +326,7 @@ func (client *WorkflowTriggersClient) listCallbackURLCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -344,7 +344,7 @@ func (client *WorkflowTriggersClient) listCallbackURLHandleResponse(resp *http.R // BeginRun - Runs a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -371,7 +371,7 @@ func (client *WorkflowTriggersClient) BeginRun(ctx context.Context, resourceGrou // Run - Runs a workflow trigger. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-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" @@ -421,7 +421,7 @@ func (client *WorkflowTriggersClient) runCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 0017dcc89f63..1dce56c35bc2 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowtriggers_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_List.json func ExampleWorkflowTriggersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,7 +63,7 @@ func ExampleWorkflowTriggersClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Get.json func ExampleWorkflowTriggersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -99,7 +99,7 @@ func ExampleWorkflowTriggersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_ListCallbackUrl.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_ListCallbackUrl.json func ExampleWorkflowTriggersClient_ListCallbackURL() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -130,7 +130,7 @@ func ExampleWorkflowTriggersClient_ListCallbackURL() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_Run.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_Run.json func ExampleWorkflowTriggersClient_BeginRun() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -151,7 +151,7 @@ func ExampleWorkflowTriggersClient_BeginRun() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowTriggers_GetSchemaJson.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowTriggers_GetSchemaJson.json func ExampleWorkflowTriggersClient_GetSchemaJSON() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go index 705574909ba7..fa33e72907c9 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowversions_client.go @@ -28,7 +28,7 @@ type WorkflowVersionsClient struct { // NewWorkflowVersionsClient creates a new instance of WorkflowVersionsClient with the specified values. // - subscriptionID - Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). // - credential - used to authorize requests. Usually a credential from azidentity. -// - options - pass nil to accept the default values. +// - options - Contains optional client configuration. Pass nil to accept the default values. func NewWorkflowVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowVersionsClient, error) { cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { @@ -44,7 +44,7 @@ func NewWorkflowVersionsClient(subscriptionID string, credential azcore.TokenCre // Get - Gets a workflow version. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -100,7 +100,7 @@ func (client *WorkflowVersionsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,7 +117,7 @@ func (client *WorkflowVersionsClient) getHandleResponse(resp *http.Response) (Wo // NewListPager - Gets a list of workflow versions. // -// Generated from API version 2024-11-01 +// Generated from API version 2025-03-01 // - resourceGroupName - Name of the resource group to which the resource belongs. // - name - Site name. // - workflowName - The workflow name. @@ -173,7 +173,7 @@ func (client *WorkflowVersionsClient) listCreateRequest(ctx context.Context, res if options != nil && options.Top != nil { reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10)) } - reqQP.Set("api-version", "2024-11-01") + reqQP.Set("api-version", "2025-03-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 index 7b21018e79a0..ca75dff90e33 100644 --- a/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go +++ b/sdk/resourcemanager/appservice/armappservice/workflowversions_client_example_test.go @@ -14,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v5" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v6" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_List.json func ExampleWorkflowVersionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,7 +81,7 @@ func ExampleWorkflowVersionsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/82e9c6f9fbfa2d6d47d5e2a6a11c0ad2eb345c43/specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/examples/WorkflowVersions_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7773129f45971ca43cb38458e35a06d9cc1aba29/specification/web/resource-manager/Microsoft.Web/AppService/stable/2025-03-01/examples/WorkflowVersions_Get.json func ExampleWorkflowVersionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil {